autoupdate
[gnulib.git] / ChangeLog
blobd1f0d630ea8f681f4d9196f688a7377282718b3e
1 2018-12-21  Bruno Haible  <bruno@clisp.org>
3         Assume Autoconf >= 2.63.
4         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
5         versions < 2.60.
7 2018-12-21  Bruno Haible  <bruno@clisp.org>
9         memcmp: Mention the clang bug.
10         * tests/test-memcmp.c: Add comment about a known test failure.
11         * doc/posix-functions/memcmp.texi: Mention the clang bug.
13 2018-12-20  Jim Meyering  <meyering@fb.com>
15         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
16         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
17           echo '123-x'|LC_ALL=C grep -E '.\bx'
18         The goal is to revert the first, but reverting it requires to restore
19         the function deleted in the second. I ran this to restore the deleted
20         function:
21           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
22             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
23             | patch -R -p1
24         * lib/dfa.c (charclass_context): Restore deleted function.
25         Reverting the primary commit removes this change:
26         dfa: Simplify a building state
27         * lib/dfa.c (build_state): Simplify a building state.
29 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
31         version-etc: allow zero authors
32         * lib/version-etc.c (version_etc_arn): If no authors are given,
33         omit authorship info instead of dumping core.
35 2018-12-19  Bruno Haible  <bruno@clisp.org>
37         lchown tests: Be more permissive regarding errno values.
38         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
39         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
40         alternative to ENOSYS.
41         * modules/lchown-tests (Depends-on): Add 'errno'.
42         * modules/fchownat-tests (Depends-on): Likewise.
44 2018-12-18  Bruno Haible  <bruno@clisp.org>
46         duplocale: Avoid test failure on AIX 7.
47         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
48         (configure.ac): Invoke gt_FUNC_USELOCALE.
49         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
50         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
51         works.
53 2018-12-18  Bruno Haible  <bruno@clisp.org>
55         localename: Fix test failure on AIX 7.
56         Reported by Assaf Gordon in
57         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
58         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
59         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
60         instead of ac_cv_func_uselocale.
61         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
62         HAVE_USELOCALE.
63         * lib/localename-table.h: Likewise.
64         * lib/localename-table.c: Likewise.
65         * tests/test-localename.c: Likewise.
66         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
68 2018-12-18  Bruno Haible  <bruno@clisp.org>
70         localename: Update comments regarding Cygwin.
71         * lib/localename.c: Update comment.
72         * doc/posix-functions/uselocale.texi: Update platforms list.
73         * doc/posix-functions/newlocale.texi: Likewise.
74         * doc/posix-functions/duplocale.texi: Likewise.
75         * doc/posix-functions/freelocale.texi: Likewise.
77 2018-12-16  Bruno Haible  <bruno@clisp.org>
79         c-stack: Fix for Linux/sparc.
80         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
81         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
83 2018-12-16  Bruno Haible  <bruno@clisp.org>
85         localename: Avoid test failure on some glibc systems.
86         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
87         Unset environment variables that might disturb the first setlocale call,
88         and verify that this setlocale call succeeds.
90 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
92         random: Fix build error on native Windows (regression from 2018-06-21).
93         * lib/random.c (__srandom, __initstate, __setstate, __random,
94         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
95         to the symbols without '__' prefix.
97 2018-12-16  Bruno Haible  <bruno@clisp.org>
99         obstack, libc-config: Support HP-UX cc in C99 mode.
100         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
101         compiler, even when in C99 mode.
102         * lib/cdefs.h (__flexarr): Likewise.
103         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
105 2018-12-16  Bruno Haible  <bruno@clisp.org>
107         localename: Fix test failure on OpenBSD >= 6.2.
108         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
109         locale system. Define HAVE_FAKE_LOCALES in this case.
110         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
111         HAVE_USELOCALE.
112         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
113         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
114         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
115         platforms list.
116         * doc/posix-functions/newlocale.texi: Likewise.
117         * doc/posix-functions/duplocale.texi: Update platforms list.
118         * doc/posix-functions/freelocale.texi: Likewise.
120 2018-12-16  Bruno Haible  <bruno@clisp.org>
122         duplocale tests: Re-enable the test on platforms without <monetary.h>.
123         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
124         of the test, on platforms without <monetary.h>.
126 2018-12-16  Bruno Haible  <bruno@clisp.org>
128         localename: Update comments.
129         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
131 2018-12-15  Jim Meyering  <meyering@fb.com>
133         regex: fix indentation
134         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
136 2018-12-15  Bruno Haible  <bruno@clisp.org>
138         openat-safer tests: Avoid test failure on NetBSD 8.
139         * tests/test-openat-safer.c (main): Execute a Linux specific test only
140         on Linux.
142 2018-12-15  Jim Meyering  <meyering@fb.com>
144         regex: work around a bug in glibc-2.27 and prior
145         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
146         assertion for /0|()0|\1|0/.
147         * tests/test-regex.c (main): Add the same test here.
149 2018-12-15  Bruno Haible  <bruno@clisp.org>
151         localename: Fix use of uninitialized shell variable.
152         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
153         gt_cv_locale_solaris114 always before use. Remove assignment without
154         effect.
156 2018-12-15  Bruno Haible  <bruno@clisp.org>
158         dfa tests: Avoid test failure on Alpine Linux.
159         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
160         command found on Alpine Linux.
162 2018-12-15  Jim Meyering  <meyering@fb.com>
164         dfa: avoid new warnings from gcc
165         These would prevent building with -Werror and a Dec snapshot of gcc.
166         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
167         Rename each inner instance to "p".
168         (charclass_context): Remove unused static function.
170 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
172         mkdir-p: improve diagnostic for FUSE mounts
173         Problem reported by Niklas Hambüchen in:
174         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
175         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
176         errno to mkdir errno if the stat errno is likely more interesting.
178 2018-12-14  Bruno Haible  <bruno@clisp.org>
180         hash-map: Add tests.
181         * tests/test-hash_map.c: New file.
182         * modules/hash-map-tests: New file.
184         linkedhash-map: Add tests.
185         * tests/test-linkedhash_map.c: New file.
186         * modules/linkedhash-map-tests: New file.
188         array-map: Add tests.
189         * tests/test-array_map.c: New file.
190         * modules/array-map-tests: New file.
192         xmap: New module.
193         * lib/gl_xmap.h: New file.
194         * lib/gl_xmap.c: New file.
195         * modules/xmap: New file.
197         hash-map: New module.
198         * lib/gl_hash_map.h: New file.
199         * lib/gl_hash_map.c: New file.
200         * modules/hash-map: New file.
202         linkedhash-map: New module.
203         * lib/gl_linkedhash_map.h: New file.
204         * lib/gl_linkedhash_map.c: New file.
205         * lib/gl_anyhash1.h: Update comments.
206         * lib/gl_anyhash2.h: Likewise.
207         * modules/linkedhash-map: New file.
209         array-map: New module.
210         * lib/gl_array_map.h: New file.
211         * lib/gl_array_map.c: New file.
212         * modules/array-map: New file.
214         map: New module.
215         * lib/gl_map.h: New file.
216         * lib/gl_map.c: New file.
217         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
218         conflict with gl_map.h.
219         * modules/map: New file.
221 2018-12-13  Bruno Haible  <bruno@clisp.org>
223         select tests: Avoid test failure on Cygwin.
224         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
226 2018-12-13  Bruno Haible  <bruno@clisp.org>
228         localtime-buffer: Avoid endless recursion in localtime and gmtime.
229         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
231 2018-12-13  Bruno Haible  <bruno@clisp.org>
233         localeconv tests: Avoid test failure on Cygwin.
234         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
235         'mon_grouping' tests.
237 2018-12-11  Bruno Haible  <bruno@clisp.org>
239         omap: Don't dispose the old value when the function returns it.
240         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
241         here.
242         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
243         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
244         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
245         here.
247         array-omap, avltree-omap, rbtree-omap: Tweak style.
248         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
249         false.
250         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
252         rbtree-omap: Add tests.
253         * tests/test-rbtree_omap.c: New file.
254         * modules/rbtree-omap-tests: New file.
256         avltree-omap: Add tests.
257         * tests/test-avltree_omap.c: New file.
258         * modules/avltree-omap-tests: New file.
260         array-omap: Add tests.
261         * tests/test-array_omap.c: New file.
262         * modules/array-omap-tests: New file.
264         xomap: New module.
265         * lib/gl_xomap.h: New file.
266         * lib/gl_xomap.c: New file.
267         * modules/xomap: New file.
269         rbtree-omap: New module.
270         * lib/gl_rbtree_omap.h: New file.
271         * lib/gl_rbtree_omap.c: New file.
272         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
273         Parameterize.
274         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
275         * modules/rbtree-omap: New file.
276         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
277         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
279         avltree-omap: New module.
280         * lib/gl_avltree_omap.h: New file.
281         * lib/gl_avltree_omap.c: New file.
282         * lib/gl_avltree_ordered.h: Code moved to here from
283         lib/gl_avltree_oset.c. Parameterize.
284         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
285         * lib/gl_anytree_omap.h: New file.
286         * modules/avltree-omap: New file.
287         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
288         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
290         array-omap: New module.
291         * lib/gl_array_omap.h: New file.
292         * lib/gl_array_omap.c: New file.
293         * modules/array-omap: New file.
295         omap: New module.
296         * lib/gl_omap.h: New file.
297         * lib/gl_omap.c: New file.
298         * modules/omap: New file.
300 2018-12-11  Bruno Haible  <bruno@clisp.org>
302         hash-set, linkedhash-set: Reduce code duplication.
303         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
304         lib/gl_anyhash_set1.h.
305         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
306         lib/gl_anyhash_set2.h. Parameterize.
307         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
308         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
309         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
310         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
311         * lib/gl_rbtreehash_list.c: Likewise.
312         * lib/gl_linkedhash_list.c: Likewise.
313         (hash_resize_after_add): Remove function.
314         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
315         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
316         * gl_hash_set.c: Likewise.
317         * modules/avltreehash-list (Files, Makefile.am): Update file list.
318         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
319         * modules/linkedhash-list (Files, Makefile.am): Likewise.
320         * modules/linkedhash-set (Files, Makefile.am): Likewise.
321         * modules/hash-set (Files, Makefile.am): Likewise.
323 2018-12-11  Bruno Haible  <bruno@clisp.org>
325         array-set: Optimize.
326         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
327         outside the loop, not inside the loop.
329 2018-12-11  Bruno Haible  <bruno@clisp.org>
331         times: Fix tests.
332         * tests/test-times.c (doublecmp): Implement a total order.
334 2018-12-11  Bruno Haible  <bruno@clisp.org>
336         array-set, linkedhash-set, hash-set: Fix tests.
337         * tests/test-array_set.c (cmp_objects_in_array): New function.
338         (check_equals): Use it.
339         * tests/test-hash_set.c: Likewise.
340         * tests/test-linkedhash_set.c: Likewise.
342 2018-12-08  Bruno Haible  <bruno@clisp.org>
344         Fix comments.
345         * lib/gl_list.h (gl_list_free): Clarify what it does.
346         * lib/gl_oset.h (gl_oset_free): Likewise.
347         * lib/gl_set.h (gl_set_free): Likewise.
348         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
349         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
350         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
351         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
353 2018-12-03  Bruno Haible  <bruno@clisp.org>
355         hash-set: Add tests.
356         * tests/test-hash_set.c: New file.
357         * modules/hash-set-tests: New file.
359         linkedhash-set: Add tests.
360         * tests/test-linkedhash_set.c: New file.
361         * modules/linkedhash-set-tests: New file.
363         array-set: Add tests.
364         * tests/test-array_set.c: New file.
365         * modules/array-set-tests: New file.
367         xset: New module.
368         * lib/gl_xset.h: New file.
369         * lib/gl_xset.c: New file.
370         * modules/xset: New file.
372         hash-set: New module.
373         * lib/gl_hash_set.h: New file.
374         * lib/gl_hash_set.c: New file.
375         * modules/hash-set: New file.
377         linkedhash-set: New module.
378         * lib/gl_linkedhash_set.h: New file.
379         * lib/gl_linkedhash_set.c: New file.
380         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
381         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
382         * lib/gl_anyhash_primes.h: New file, extracted from
383         lib/gl_anyhash_list2.h.
384         * lib/gl_anyhash_list2.h: Include it.
385         (primes, next_prime): Remove definitions.
386         * modules/linkedhash-set: New file.
387         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
388         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
389         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
390         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
391         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
392         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
394         array-set: New module.
395         * lib/gl_array_set.h: New file.
396         * lib/gl_array_set.c: New file.
397         * modules/array-set: New file.
399         set: New module.
400         * lib/gl_set.h: New file.
401         * lib/gl_set.c: New file.
402         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
403         gl_set.h.
404         * modules/set: New file.
406 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
408         bison: don't force the Yacc mode
409         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
410         errors when Bison features are used in the grammar file.  Some of
411         these features (such as %expect) were flagged non-yacc recently.  Most
412         of the time, -y is actually used to please Automake's ylwrap which
413         expects the output to be y.tab.c.
414         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
416 2018-12-01  Bruno Haible  <bruno@clisp.org>
418         gnupload: Document short options.
419         * build-aux/gnupload (usage): Document the short options.
421 2018-11-28  Ben Elliston  <bje@gnu.org>
423         gnupload: Support option -h as alias of --help.
424         * build-aux/gnupload: Support -h.
426 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
428         memrchr: port better to clang
429         * lib/memrchr.c (__memrchr): Cast to void * instead of to
430         longword *, to pacify clang -Wcast-align (Bug#33544).
432 2018-11-29  Eric Blake  <eblake@redhat.com>
434         docs: mention printf %m considerations
435         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
436         is not portable, and is easy enough to work around.
437         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
438         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
439         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
440         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
441         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
442         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
443         * doc/posix-functions/printf.texi (printf): Likewise.
444         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
445         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
446         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
447         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
448         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
449         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
450         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
451         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
452         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
453         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
454         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
455         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
457 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
459         bitset: rename ebitset/expandable.* as tbitset/table.*
460         See
461         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
462         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
463         * lib/bitset/table.h, lib/bitset/table.c: these.
464         Rename all the ebitset* symbols as tbitset*.
465         Adjust dependencies.
467 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
469         bitset: check the operations
470         * tests/test-bitset.c (bitset_random): New.
471         Use it.
472         * lib/bitset/expandable.c (ebitset_not): Fix typo.
474 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
476         bitset: properly use false/true instead of 0/1 for Booleans
477         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
478         0/1, as Booleans.
480 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
482         bitset: rename BITSET_VARRAY as BITSET_VECTOR
483         For consistency with the name of the file.
484         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
485         * lib/bitset/stats.c, lib/bitset/vector.c
486         (BITSET_VARRAY): Rename as...
487         (BITSET_VECTOR): this.
489 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
491         strerror_r-posix: memmove, not memcpy
492         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
493         since the source and destination might overlap in the call
494         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
495         Simplify.
497 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
499         bitsetv: new module
500         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
502 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
504         bitset: add tests and doc
505         First stabs at providing a documentation and test for the bitset
506         module.
507         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
509 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
511         bitset: new module
512         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
513         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
514         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
515         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
516         * lib/bitset/vector.h, modules/bitset:
517         New.
519 2018-11-23  Bruno Haible  <bruno@clisp.org>
521         localename: Fix gettext test failures on mingw.
522         * lib/localename.c (gl_locale_name_posix): Convert the result of
523         gl_locale_name_environ to XPG syntax.
525 2018-11-23  Karl Berry  <karl@freefriends.org>
527         * config/srclistvars.txt,
528         * config/srclist.txt: remove all gettext references;
529         the gettext maintainers will sync as needed.
531 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
533         mktime: add libc-config dependency
534         I missed this when we synced from glibc.
535         * modules/mktime (Depends-on): Add libc-config.
537 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
539         longlong: fix comment typo
540         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
542 2018-11-11  Bruno Haible  <bruno@clisp.org>
544         havelib: Remove the need to include asm-underscore.m4.
545         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
546         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
547         gl_HOST_CPU_C_ABI.
548         * modules/havelib (Files): Add host-cpu-c-abi.m4.
549         (Depends-on): Remove host-cpu-c-abi.
551 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
553         parse-datetime: simplify test for mktime failure
554         * lib/parse-datetime.y (mktime_ok): Simplify.
555         Remove args TZ and T; no longer needed.  Callers changed.
557         posixtm: simplify test for mktime failure
558         * lib/posixtm.c (posixtime): Simplify.
560         nstrftime: simplify test for mktime failure
561         * lib/nstrftime.c (__strftime_internal): Simplify.
563 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
565         gnulib-common.m4: port _Noreturn to C++
566         Problem reported by Akim Demaille in:
567         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
568         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
569         Merge adjustments from _Noreturn.h and from glibc into the non-C++
570         version.
571         * lib/_Noreturn.h: Match gnulib-common.
573 2018-10-30  Bruno Haible  <bruno@clisp.org>
575         gnu-make: Fix for NetBSD 8 'make'.
576         Reported by Reuben Thomas in
577         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
578         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
579         output, ignoring exit codes.
581 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
583         maintainer-makefile: fix syntax-check rule for "same.h"
584         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
585         for 'same_nameat', too.
587 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
589         havelib: fix nested ‘configure’ chatter
590         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
591         AC_CACHE_CHECK calls, which resulted in confusing output like
592         “checking for the common suffixes of directories in the library
593         search path... checking for 64-bit host... no lib,lib”.
595         backupfile: tweak for better code
596         * lib/backupfile.c: Sort include directives, and remove
597         unnecessary <limits.h> include.
598         (FALLTHROUGH): New macro, copied from other modules.
599         (backupfile_internal): Use it to avoid code duplication.
600         This lets GCC 8.2.1 generate better code by inlining the
601         call to check_extension.
603 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
605         backupfile: new dir_fd args
606         New module opendirat with code taken from fts.
607         Use this module to let backupfile use a directory file descriptor.
608         * NEWS: Document the incompatible change.
609         * lib/backup-find.c (find_backup_file_name):
610         * lib/backup-rename.c (backup_file_rename):
611         New arg DIR_FD.
612         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
613         (SIZE_MAX): Remove.
614         Include opendirat.h rather than dirent--.h.
615         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
616         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
617         (backupfile_internal): New arg DIR_FD.  All callers changed.
618         * lib/fts.c: Include opendirat.h.
619         (opendirat): Move to opendirat.c.
620         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
621         * modules/backupfile (Depends-on): Remove dirfd, opendir.
622         Add opendirat.
623         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
624         Add opendirat.
626 2018-10-23  Bruno Haible  <bruno@clisp.org>
628         localename: Simplify support for per-thread locales on Solaris 11.4.
629         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
630         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
631         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
632         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
633         specific code.
634         * lib/localename-table.h: Update comments.
635         * lib/localename-table.c: Update comments.
636         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
637         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
638         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
639         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
640         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
641         HAVE_NAMELESS_LOCALES here.
642         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
643         m4/intlsolaris.m4.
644         * modules/gettext (Files): Likewise.
646 2018-10-22  Bruno Haible  <bruno@clisp.org>
648         std-gnu11: Support Autoconf versions < 2.64.
649         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
650         when _AC_DO_LIMIT does not exist.
652 2018-10-22  Bruno Haible  <bruno@clisp.org>
654         Assume Autoconf >= 2.63.
655         * DEPENDENCIES: Mention the requirement.
657         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
658         (func_get_filelist): Don't list m4/onceonly.m4 any more.
659         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
660         * m4/onceonly.m4: Remove file.
662         * m4/openmp.m4: Remove file.
663         * modules/openmp (Files): Remove m4/openmp.m4.
665         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
666         htmldir, dvidir, pdfdir, psdir, localedir.
667         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
669         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
670         Autoconf < 2.60.
671         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
672         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
674         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
675         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
676         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
678         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
679         exists.
680         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
682         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
683         Autoconf < 2.61.
685         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
686         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
687         Autoconf >= 2.52.
689         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
690         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
691         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
693 2018-10-22  Bruno Haible  <bruno@clisp.org>
695         Assume Automake >= 1.11.
696         * m4/configmake.m4: Update comments.
697         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
698         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
699         of 'eval'.
700         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
701         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
702         requires Automake >= 1.11.
704 2018-10-22  Bruno Haible  <bruno@clisp.org>
706         localename: Fix typo in comment.
707         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
709 2018-10-22  Bruno Haible  <bruno@clisp.org>
711         Fix failure of 'gnulib-tool --create-testdir' with all modules.
712         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
714 2018-10-21  Bruno Haible  <bruno@clisp.org>
716         locale: Ease integration with GNU libintl.
717         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
718         GNULIB_defined_freelocale): New macros.
720 2018-10-21  Bruno Haible  <bruno@clisp.org>
722         localename: Fine-tune support for per-thread locales on Solaris 11.4.
723         * lib/localename-table.h: New file, extracted from lib/localename.c.
724         * lib/localename-table.c: Likewise.
725         * lib/localename.c: Include localename-table.h.
726         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
727         locale_hash_function instead of pointer_hash.
728         * modules/localename (Files): Add lib/localename-table.h,
729         lib/localename-table.c.
730         (lib_SOURCES): Add localename-table.c.
731         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
732         for Solaris 11.4 locale system only on Solaris. Test for it
733         independently whether getlocalename_l exists.
734         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
735         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
736         HAVE_NAMELESS_LOCALES.
737         * modules/gettext (Files): Add m4/intlsolaris.m4.
739 2018-10-21  Bruno Haible  <bruno@clisp.org>
741         Small update from gettext.
742         * m4/intl.m4: Update from gettext:
743         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
744         mode on AIX.
745         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
746         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
748 2018-10-16  Bruno Haible  <bruno@clisp.org>
750         mountlist: Remove support for Cray with UNICOS 9.
751         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
752         MOUNTED_LISTMNTENT.
753         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
755 2018-10-16  Bruno Haible  <bruno@clisp.org>
757         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
758         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
759         STAT_STATFS2_FS_DATA.
760         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
761         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
762         MOUNTED_GETMNT.
763         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
764         * lib/getloadavg.c (decstation): Remove definition and case.
765         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
766         * lib/getgroups.c: Likewise.
767         * doc/posix-functions/getgroups.texi: Likewise.
768         * lib/time.in.h: Update comments.
770 2018-10-16  Bruno Haible  <bruno@clisp.org>
772         getloadavg: Remove support for ConvexOS.
773         * lib/getloadavg.c: Remove convex case.
775 2018-10-16  Bruno Haible  <bruno@clisp.org>
777         getloadavg: Remove support for Sony NEWS.
778         * lib/getloadavg.c: Remove sony_news case.
780 2018-10-16  Bruno Haible  <bruno@clisp.org>
782         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
783         * lib/fsusage.c: Remove _SEQUENT_ case.
784         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
785         * lib/mountlist.c: Don't test for MNTTABNAME.
786         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
787         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
788         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
789         * lib/stat-size.h: Don't mention the Sequent bug.
790         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
792 2018-10-16  Bruno Haible  <bruno@clisp.org>
794         fsusage: Remove support for AIX 3.
795         * lib/fsusage.c: Remove code for AIX 3.
796         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
798 2018-10-16  Bruno Haible  <bruno@clisp.org>
800         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
801         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
802         * lib/fsusage.c: Remove code for AIX PS/2.
803         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
804         * lib/getloadavg.c: Likewise.
806 2018-10-16  Bruno Haible  <bruno@clisp.org>
808         getloadavg: Remove support for HP-UX on m68k.
809         * lib/getloadavg.c: Remove hp9000s300 case.
811 2018-10-16  Bruno Haible  <bruno@clisp.org>
813         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
814         * lib/fsusage.c: Remove DOLPHIN case.
815         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
816         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
818 2018-10-16  Bruno Haible  <bruno@clisp.org>
820         getloadavg: Remove support for Alliant FX/2800.
821         * lib/getloadavg.c: Remove alliant case.
823 2018-10-16  Bruno Haible  <bruno@clisp.org>
825         getloadavg: Remove support for tek4300.
826         * lib/getloadavg.c: Remove tek4300 case.
828 2018-10-16  Bruno Haible  <bruno@clisp.org>
830         getloadavg: Remove support for Ardent.
831         * lib/getloadavg.c: Remove ardent case.
833 2018-10-16  Bruno Haible  <bruno@clisp.org>
835         mountlist: Remove support for SVR2.
836         Reported by Andrew Borodin <aborodin@vmail.ru> in
837         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
838         * lib/mountlist.c: Remove MOUNTED_FREAD case.
839         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
840         MOUNTED_FREAD.
842 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
844         libc-config: merge from glibc
845         * lib/cdefs.h (__glibc_has_attribute): New macro.
847         regex: depend on libc-config
848         * modules/regex (Depends-on): Add libc-config.
849         This is needed after the recent autoupdate from glibc.
851 2018-10-14  Bruno Haible  <bruno@clisp.org>
853         localename: Add support for per-thread locales on Solaris 11.4.
854         * lib/locale.in.h (newlocale, freelocale): New declarations.
855         (duplocale): Declare also when the 'localename' module requests it.
856         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
857         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
858         (struniq): Update.
859         (struct locale_categories_names, struct locale_hash_node): New types.
860         (LOCALE_HASH_TABLE_SIZE): New constant.
861         (locale_hash_table, locale_lock): New variables.
862         (pointer_hash, get_locale_t_name): New functions.
863         (newlocale, duplocale, freelocale): New overridden functions.
864         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
865         * m4/intlsolaris.m4: New file.
866         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
867         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
868         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
869         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
870         declared.
871         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
872         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
873         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
874         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
875         * modules/localename (Files): Add intlsolaris.m4.
876         (Depends-on): Add 'locale'.
877         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
878         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
879         the signatures.
881 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
883         timevar: use gethrxtime to get wall clock time
884         clock_gettime is not portable.  gethrxtime takes the best available
885         option to get the wall clock time, including clock_gettime (monotonic
886         clock), and gettime (non monotonic).
887         Also, using xtime_t instead of float preserves the precision.
888         Suggested by Bruno Haible.
889         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
890         * modules/timevar (Depends-on): We need gethrxtime.
891         We no longer use times().
892         (Link): Update.
893         * lib/timevar.h (timevar_time_def): Use xtime_t.
894         * lib/timevar.c (set_to_current_time): Use gethrxtime.
895         (timevar_print): Instead of checking whether the timings themselves
896         are large enough for the timevar to be printed, check the percentages.
898 2018-10-14  Bruno Haible  <bruno@clisp.org>
900         wcsnrtombs: Work around Solaris 11.4 bug.
901         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
902         macro.
903         (gl_FUNC_WCSNRTOMBS): Invoke it.
904         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
906 2018-10-14  Bruno Haible  <bruno@clisp.org>
908         mbsnrtowcs: Work around Solaris 11.4 bug.
909         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
910         macro.
911         (gl_FUNC_MBSNRTOWCS): Invoke it.
912         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
914 2018-10-14  Bruno Haible  <bruno@clisp.org>
916         doc: Update for Solaris 11.4.
917         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
918         mention Solaris 11.4.
919         * m4/printf.m4: Update comments about Solaris.
920         * m4/log.m4: Likewise.
921         * m4/log10.m4: Likewise.
922         * m4/logb.m4: Likewise.
923         * m4/logbf.m4: Likewise.
924         * m4/logbl.m4: Likewise.
925         * m4/rename.m4: Likewise.
926         * m4/wcrtomb.m4: Likewise.
927         * m4/hostent.m4: Likewise.
928         * m4/servent.m4: Likewise.
930 2018-10-14  Bruno Haible  <bruno@clisp.org>
932         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
933         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
934         pointer.
935         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
936         pointer.
937         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
938         pointer.
939         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
940         pointer.
941         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
942         pointer.
944 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
946         bootstrap: fix wget command for po files.
947         * build-aux/bootstrap (po_download_command_format): Fix comment,
948         and adjust callers.
950 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
952         timevar: improve the output format
953         Suggested by Bruno Haible.
954         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
955         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
956         wall, since its resolution is much higher.
958 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
960         timevar: expect that getrusage is available.
961         Don't keep both times and getrusage as backend: both are guaranteed by
962         gnulib, a single one suffices.  Using getrusage is open to possibly
963         tracking other types of resources in the future.
964         * modules/timevar (Depends-on): Add getrusage.
965         (configure.ac): Remove gl_TIMEVAR.
966         (Files): Remove m4/timevar.m4.
967         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
968         * lib/timevar.h (timevar_enabled): Clarify documentation.
969         * lib/timevar.c: Remove all the code about times.
970         Remove all the CPP guards about getrusage: expect it to be present
971         (courtesy of gnulib).
973 2018-10-12  Bruno Haible  <bruno@clisp.org>
975         mountlist: Improve support for Solaris in 64-bit mode.
976         Reported by David Wood <David.Wood@deshaw.com> in
977         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
978         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
979         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
980         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
982 2018-10-12  Bruno Haible  <bruno@clisp.org>
984         mountlist: Add support for Minix.
985         Reported by Assaf Gordon in
986         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
987         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
988         AC_CHECK_FUNCS to check for 'getmntinfo'.
989         * lib/mountlist.c: Update comments.
991 2018-10-12  Bruno Haible  <bruno@clisp.org>
993         Make better use of Autoconf.
994         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
995         * m4/manywarnings.m4: Likewise.
996         * m4/manywarnings-c++.m4: Likewise.
997         * m4/socklen.m4: Likewise.
998         * m4/sockpfaf.m4: Likewise.
999         * m4/stdarg.m4: Likewise.
1000         * m4/visibility.m4: Likewise.
1001         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
1002         indentation.
1003         * m4/ls-mntd-fs.m4: Likewise.
1005 2018-10-11  Bruno Haible  <bruno@clisp.org>
1007         mountlist: Modernize platform lists.
1008         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
1009         platforms, deemphasizing the obsolete ones.
1010         * lib/mountlist.c: Likewise.
1012 2018-10-11  Bruno Haible  <bruno@clisp.org>
1014         getprogname: Add support for 32-bit programs on HP-UX.
1015         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
1016         try the similar functions 32-bit programs on 64-bit HP-UX.
1018 2018-10-11  Bruno Haible  <bruno@clisp.org>
1020         getprogname: Work around program name truncation when possible.
1021         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
1022         possibly use pst_cmd instead.
1024 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1026         fts: cleanup after FTS_NOATIME removal
1027         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
1028         (FTS_STOP): Shrink to minimal values.  We don’t need to
1029         worry about binary compatibility in Gnulib, and the old way
1030         of doing things had a hole in the user options that caused
1031         FTS_OPTIONMASK to not work as desired.
1033 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
1035         fts: remove FTS_NOATIME
1036         This reverts commit da4d6974013c822af1498941e32db774b2031765.
1037         We cannot guarantee that O_NOATIME works: e.g. openat fails
1038         with EPERM if the effective user ID of the caller does not match
1039         the owner of the file and the caller is not privileged.
1040         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
1041         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
1042         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
1043         (FTS_OPTIONMASK): Adjust.
1044         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
1045         (fd_ring_check): Likewise.
1047 2018-10-08  Bruno Haible  <bruno@clisp.org>
1049         csharpcomp*, csharpexec*: Remove support for pnet.
1050         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
1051         HAVE_CSCC.
1052         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
1053         Don't test HAVE_CSCC.
1054         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
1055         (compile_csharp_class): Don't invoke it.
1056         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
1057         HAVE_ILRUN.
1058         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
1059         Don't test HAVE_ILRUN.
1060         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
1061         (execute_csharp_program): Don't invoke it.
1062         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
1063         any more.
1065 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
1067         renameatu: prefer renameat2 to syscall
1068         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
1069         Use renameat2 instead of syscall (Bug#32796).
1070         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
1072 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1074         bootstrap, gnulib-tool: use https instead of insecure rsync
1075         * build-aux/bootstrap (download_po_files, po_download_command_format):
1076         Don't try using rsync; always use wget over https to fetch PO files.
1077         * gnulib-tool (func_import): Likewise.
1078         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1080 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1082         bootstrap, gnulib-tool: correct the translations wget command
1083         * build-aux/bootstrap (po_download_command_format2): Restrict
1084         recursion to a single level.
1085         * gnulib-tool (func_import): Likewise.
1086         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1088 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1090         doc: the gnulib snapshots are not maintained
1091         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
1093 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1095         timevar: add to lib_SOURCES
1096         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
1098 2018-10-07  Bruno Haible  <bruno@clisp.org>
1100         dirent: Update documentation.
1101         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
1103 2018-10-05  Bruno Haible  <bruno@clisp.org>
1105         strpbrk: Make it possible to namespace the defined symbol.
1106         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
1108 2018-10-05  Bruno Haible  <bruno@clisp.org>
1110         strcspn: Make it possible to namespace the defined symbol.
1111         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
1113 2018-10-05  Bruno Haible  <bruno@clisp.org>
1115         raise: Make it possible to namespace the defined symbol.
1116         * lib/raise.c (raise): Undefine only after the replacement function has
1117         been defined.
1118         (raise): Renamed from rpl_raise.
1119         (raise_nothrow): Move to the end of the compilation unit.
1121 2018-10-05  Bruno Haible  <bruno@clisp.org>
1123         memcmp: Make it possible to namespace the defined symbol.
1124         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
1126 2018-10-05  Bruno Haible  <bruno@clisp.org>
1128         explicit_bzero: Make it possible to namespace the defined symbol.
1129         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
1130         glibc.
1132 2018-10-05  Bruno Haible  <bruno@clisp.org>
1134         mkdir-p: Depend on 'mkdir'.
1135         * modules/mkdir-p (Depends-on): Add 'mkdir'.
1137 2018-10-05  Bruno Haible  <bruno@clisp.org>
1139         tempname: Depend on 'mkdir'.
1140         Reported by Maarten Bosmans <mkbosmans@gmail.com>
1141         at <https://savannah.gnu.org/bugs/?33379>.
1142         * modules/tempname (Depends-on): Add 'mkdir'.
1144 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
1146         timevar: rely on gnulib modules for time portability.
1147         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
1148         * m4/timevar.m4: Don't check for clock_t and struct tms,
1149         guaranteed by gnulib.
1150         * lib/timevar.h: Use extern "C" protection.
1151         Include <stdio.h> for FILE.
1152         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
1153         they are guaranteed by gnulib.
1154         Remove uses of clock as (now useless) fallback.
1156 2018-10-04  Bruno Haible  <bruno@clisp.org>
1158         sh-filename: New module.
1159         * m4/sh-filename.m4: New file.
1160         * modules/sh-filename: New file.
1161         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
1162         "/bin/sh".
1163         * tests/test-posix_spawn1.c (main): Likewise.
1164         * tests/test-posix_spawn2.c (main): Likewise.
1165         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
1166         is_envjavac_gcj43): Likewise.
1167         * lib/javaexec.c (execute_java_class): Likewise.
1168         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
1169         * modules/posix_spawnp-tests (Depends-on): Likewise.
1170         * modules/javacomp (Depends-on): Likewise.
1171         * modules/javaexec (Depends-on): Likewise.
1173 2018-10-04  Bruno Haible  <bruno@clisp.org>
1175         spawn-pipe tests: Avoid test failure on native Windows.
1176         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
1177         that fd 2 is closed.
1179 2018-10-04  Bruno Haible  <bruno@clisp.org>
1181         fcntl: Make it possible to namespace the defined symbol.
1182         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
1183         been defined.
1184         (fcntl): Renamed from rpl_fcntl.
1185         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
1186         from fcntl.
1187         (klibc_fcntl): Move to the end of the compilation unit.
1189 2018-10-02  Bruno Haible  <bruno@clisp.org>
1191         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
1192         * tests/test-vasnprintf.c (test_function): Change the test added on
1193         2018-09-23 to check only the 18 most significant digits.
1195         vasnprintf tests: Avoid test failure on Cygwin.
1196         * tests/test-vasnprintf.c (test_function): Change the test added on
1197         2018-09-23 to check only the 42 most significant digits.
1199 2018-10-01  Bruno Haible  <bruno@clisp.org>
1201         mkostemp, mkostemps: Update documentation.
1202         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
1203         * doc/glibc-functions/mkostemps.texi: Likewise.
1205 2018-10-01  Tom Tromey  <tom@tromey.com>
1207         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
1208         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
1209         on OS X.
1211 2018-09-30  Pádraig Brady  <P@draigBrady.com>
1213         hmac-*: refactor to remove repetitive code
1214         * lib/hmac.c: A new parameterized single implementation.
1215         * lib/hmac-md5.c: Define parameters and include implementation.
1216         * lib/hmac-sha1.c: Likewise.
1217         * lib/hmac-sha256.c: Likewise.
1218         * lib/hmac-sha512.c: Likewise.
1219         * modules/crypto/hmac-md5: Reference the new implementation file.
1220         * modules/crypto/hmac-sha1: Likewise.
1221         * modules/crypto/hmac-sha256: Likewise.
1222         * modules/crypto/hmac-sha512: Likewise.
1223         * tests/test-hmac-md5.c: Refactor common code to a single function.
1224         * tests/test-hmac-sha1.c: Likewise.
1225         * tests/test-hmac-sha256.c: Likewise.
1226         * tests/test-hmac-sha512.c: Likewise.
1228 2018-09-30  Zhang Qing  <zhangqingl@126.com>
1230         hmac-sha512: fix hash for keys > blocksize (128 bytes)
1231         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
1232         key length to that output by sha512, not the blocksize.
1233         Otherwise uninitialized data from the stack
1234         is used when computing the hash.
1235         * tests/test-hmac-sha512.c: Add a shortened key test case.
1236         Reported at https://github.com/coreutils/gnulib/pull/5
1238 2018-09-30  Bruno Haible  <bruno@clisp.org>
1240         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
1241         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
1242         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
1243         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
1244         'unsigned int' before comparison with an unsigned value.
1246 2018-09-30  Bruno Haible  <bruno@clisp.org>
1248         grantpt: Remove unnecessary dependency.
1249         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
1251 2018-09-30  Bruno Haible  <bruno@clisp.org>
1253         timevar: Small tweaks.
1254         * lib/timevar.h: Fix comments. Add parameter names to function
1255         declarations.
1256         * lib/timevar.c: Include timevar.h immediately after config.h.
1257         * lib/timevar.def: Fix comments.
1258         * modules/timevar (Maintainer): List Akim Demaille.
1260 2018-09-30  Bruno Haible  <bruno@clisp.org>
1262         timevar: Include documentation in gnulib manual.
1263         * doc/timevar.texi: Change node and section name to 'Profiling of
1264         program phases'.
1265         In the code snippets, tweak the #includes and use GNU coding style.
1266         * doc/gnulib.texi: Include timevar.texi.
1268 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
1270         timevar: import from Bison.
1271         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
1272         New files.
1273         * lib/timevar.def: New file.
1274         * doc/timevar.texi: New file.
1276 2018-09-26  Bruno Haible  <bruno@clisp.org>
1278         javacomp-script, javacomp: Add preliminary support for Java 12..17.
1279         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
1280         * lib/javacomp.c (default_target_version): Likewise.
1282 2018-09-26  Bruno Haible  <bruno@clisp.org>
1284         javacomp-script, javacomp: Add support for Java 11.
1285         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
1286         target-version 11.
1287         * lib/javaversion.h: Update comments.
1288         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1289         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1290         TARGET_VERSION_BOUND, target_version_index,
1291         corresponding_classfile_version): Accept source_version 11 and
1292         target_version 11.
1293         * lib/javacomp.h: Update comments accordingly.
1295 2018-09-23  Bruno Haible  <bruno@clisp.org>
1297         vasnprintf: Fix heap memory overrun bug.
1298         Reported by Ben Pfaff <blp@cs.stanford.edu> in
1299         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
1300         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
1301         memory.
1302         * tests/test-vasnprintf.c (test_function): Add another test.
1304 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
1306         maint: mktime.c now shared with glibc
1307         * config/srclist.txt: intprops.h, timegm.c and mktime.c
1308         are now the same in Gnulib and glibc.
1310         mktime: fix _LIBC typo
1311         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
1313 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1315         dfa: optimization for state merge
1316         * lib/dfa.c (merge2): New function.
1317         (merge_nfa_state): Use it.
1319 2018-09-18  Jim Meyering  <meyering@fb.com>
1321         dfa: trivial comment fix: s/is/if/
1322         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
1324 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1326         dfa: use more-informative function name
1327         * lib/dfa.c (maybe_disable_superset_dfa):
1328         Rename from dfautf8noss.  Use change.
1330         dfa: tweak allocation performance
1331         * lib/dfa.c (merge_nfa_state, dfaoptimize):
1332         Prefer ptrdiff_t for indexes some more.
1333         Use char for flags, as it’s wide enough.
1334         Allocate queue and flags together, with one malloc call.
1335         No need to use xnmalloc since the multiplication and
1336         addition cannot overflow (it’s already been checked by
1337         earlier allocation).  Prefer memset to open-coding.
1339         dfa: prune states as we go
1340         * lib/dfa.c (prune): Remove.
1341         dfa: reorder enum for efficiency
1342         (merge_nfa_state): Prune as we go instead of at the end.
1343         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
1345         * lib/dfa.c (END): Now -1 again.  Reorder other elements
1346         of the enumeration to make it easier for GCC to generate
1347         efficient code by using fewer comparisons to check for
1348         ranges of values.
1349         (atom): Take advantage of the reordering.
1351 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1353         dfa: optimize alternation in NFA
1354         Even when similar states exist in alternation, the DFA treats them
1355         as separate items, which may complicate the transition in NFA and
1356         cause slowdown.  This change assembles the states into one.  For
1357         example, ab|ac is changed into a(b|c).  This change speeds-up
1358         matching for many branched patterns.  For example, grep speeds up
1359         more than 30× in:
1361           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
1362           time -p env LC_ALL=C grep -vf in in
1364         * lib/dfa.c (prune): New function.
1365         (merge_nfa_state): New function.  It merges similar NFA states.
1366         (dfaoptimize): New function.  It seeks merged and removed nodes.
1367         (dfaanalyze): Call new function.
1368         (dfautf8noss): Change name from dfaoptimize because of addition of new
1369         function.
1370         (dfacomp): Update caller.
1372         dfa: simplify initial state
1373         Simplifying the initial state enables easier optimization of the NFA.
1374         * lib/dfa.c (enum token): Add new element BEG.
1375         (prtok): Adjust due to adding element BEG.
1376         (dfaparse): Put BEG at a head of tokens.
1377         (state_index): Adjust due to adding element BEG.
1378         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
1379         build initial state.
1380         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
1382 2018-09-18  Bruno Haible  <bruno@clisp.org>
1384         file-has-acl: Fix test failure on Cygwin 2.9.
1385         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
1386         * lib/acl-internal.h: Likewise.
1387         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
1388         * lib/acl-internal.c: Update comments regarding Cygwin.
1389         * lib/acl_entries.c: Likewise.
1390         * lib/file-has-acl.c: Likewise.
1391         (file_has_acl): For Cygwin, use a different way to determine whether
1392         the "default" ACL of a directory is nontrivial.
1393         * lib/get-permissions.c: Update comments regarding Cygwin.
1394         * lib/set-permissions.c: Likewise.
1396 2018-09-18  Bruno Haible  <bruno@clisp.org>
1398         stat-time tests: Fix test failure on Cygwin.
1399         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
1401 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1403         doc: OS X 10.11 lacked ns time functions
1404         According to <https://github.com/zeromq/libzmq/issues/2175>,
1405         nanosecond-resolution timestamp functions were introduced
1406         in macOS 10.12, so document the last version (OS X 10.11)
1407         where they were absent.
1409         gettime: nanotime never existed
1410         Problem reported by Bruno Haible in:
1411         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
1412         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
1413         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
1415 2018-09-18  Bruno Haible  <bruno@clisp.org>
1417         doc: Update statement about target platforms.
1418         Reported by Simon Sobisch.
1419         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
1420         restrictions on MSVC versions.
1422 2018-09-18  Bruno Haible  <bruno@clisp.org>
1424         posix_spawn tests: Fix link error on 64-bit Cygwin.
1425         * tests/test-posix_spawn1.c (environ): Remove declaration.
1426         * tests/test-posix_spawn2.c (environ): Likewise.
1427         * tests/test-posix_spawn3.c (environ): Likewise.
1428         * tests/test-posix_spawn4.c (environ): Likewise.
1429         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
1430         * modules/posix_spawnp-tests (Depends-on): Likewise.
1432 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1434         timespec: new function current_timespec
1435         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
1436         and don’t worry about it failing on a CLOCK_REALTIME arg.
1437         POSIX requires it to succeed and I don’t know of any
1438         counterexamples where the fallbacks would work.
1439         (current_timespec): New function, taken from Emacs.  It is more
1440         convenient than gettime, and can help register allocation.
1441         * lib/timespec.h: Include arg-nonnull.h.
1442         (current_timespec): New declaration.
1443         (gettime, settime): Declare args to be nonnull.
1444         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
1446 2018-09-16  Bruno Haible  <bruno@clisp.org>
1448         setlocale: Improve locale handling on macOS 10.12 or newer.
1449         * lib/setlocale.c: Include header files for CoreFoundation. Declare
1450         gl_locale_name_canonicalize.
1451         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
1452         and LC_MESSAGES.
1453         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
1455 2018-09-16  Bruno Haible  <bruno@clisp.org>
1457         Update list of locale names with scripts on macOS.
1458         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
1459         match Mac OS X 10.13 and recent glibc.
1461 2018-09-16  Bruno Haible  <bruno@clisp.org>
1463         gettext: Use newer macOS APIs when possible.
1464         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
1465         CFLocaleCopyPreferredLanguages.
1467 2018-09-16  Bruno Haible  <bruno@clisp.org>
1469         localename: Revisit macOS specific code.
1470         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
1471         Fix comments about Mac OS X versions.
1473 2018-09-15  Bruno Haible  <bruno@clisp.org>
1475         setlocale: Improve support for locales not supported by libc.
1476         Reported by Dapeng Gao <peter@dpgao.cc> at
1477         <https://savannah.gnu.org/bugs/?54479>.
1478         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
1479         (libintl_setlocale): Use a more error-tolerant strategy when the locale
1480         to be set is not supported by libc: Emit warnings instead of failing.
1482 2018-09-15  Bruno Haible  <bruno@clisp.org>
1484         strstr, strcasestr: Add workaround against glibc-2.28 bug.
1485         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
1486         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
1487         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
1488         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
1489         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
1490         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
1491         * doc/glibc-functions/strcasestr.texi: Likewise.
1493 2018-09-14  Bruno Haible  <bruno@clisp.org>
1495         doc: Fix bottom of top-level page.
1496         Reported by Akim Demaille <akim.demaille@gmail.com> in
1497         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
1498         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
1499         mode.
1500         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
1501         accordingly.
1503 2018-09-12  Bruno Haible  <bruno@clisp.org>
1505         Add test case from a recent glibc bug.
1506         * tests/test-strstr.c (main): Add test of long needle.
1507         * tests/test-strcasestr.c (main): Likewise.
1508         * tests/test-c-strstr.c (main): Likewise.
1509         * tests/test-c-strcasestr.c (main): Likewise.
1510         * tests/test-memmem.c (main): Likewise.
1512 2018-09-12  Bruno Haible  <bruno@clisp.org>
1514         Apply Eric Blake's improvements from 2011-02-25 to more tests.
1515         * tests/test-c-strstr.c (main): Add the same tests here as well.
1517 2018-09-12  Bruno Haible  <bruno@clisp.org>
1519         Apply Jim Meyering's fix from 2015-01-11 to more tests.
1520         * tests/test-memmem.c (main): Free haystack.
1521         * tests/test-strcasestr.c (main): Likewise.
1522         * tests/test-c-strcasestr.c (main): Likewise.
1524 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
1526         xstrtol: fix missing-TYPE_SIGNED typo
1527         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
1529 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1531         timespec: fix resolution confusion
1532         In normal usage, clock resolution is given in seconds, but the
1533         code was mistakenly using inverse seconds and calling it
1534         “resolution”.  Fix this, partly by renaming two identifiers.
1535         The old names will be kept for a bit, to ease transition.
1536         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
1537         New constants, replacing TIMESPEC_RESOLUTION and
1538         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
1539         All uses changed.
1541 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
1543         mktime: simplify in prep for glibc merge
1544         * lib/mktime.c, lib/timegm.c [_LIBC]:
1545         Include mktime-internal.h (a small file just for glibc)
1546         instead of using a typedef.
1548 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
1550         intprops: minor clarification of code
1551         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
1552         Use _GL_INT_CONVERT rather than reinventing it.
1554 2018-09-07  Bruno Haible  <bruno@clisp.org>
1556         Fix a comment.
1557         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
1559 2018-09-07  Bruno Haible  <bruno@clisp.org>
1561         posix_spawn_file_actions_addchdir: Add tests.
1562         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
1563         * tests/test-posix_spawn4.c: New file.
1564         * modules/posix_spawn_file_actions_addchdir-tests: New file.
1566 2018-09-07  Bruno Haible  <bruno@clisp.org>
1568         posix_spawn_file_actions_addchdir: New module.
1569         Suggested by Eric Blake in
1570         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
1571         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
1572         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
1573         union member 'chdir_action'.
1574         * lib/spawn_faction_addchdir.c: New file.
1575         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
1576         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
1577         HAVE_WORKING_POSIX_SPAWN.
1578         * lib/spawn_faction_adddup2.c: Likewise.
1579         * lib/spawn_faction_addopen.c: Likewise.
1580         * m4/posix_spawn_faction_addchdir.m4: New file.
1581         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
1582         'posix_spawn_file_actions_addchdir' is present and whether
1583         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
1584         instead of HAVE_WORKING_POSIX_SPAWN.
1585         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
1586         posix_spawn_file_actions_addchdir is declared.
1587         (gl_SPAWN_H_DEFAULTS): Initialize
1588         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1589         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1590         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
1591         * modules/spawn (Makefile.am): Substitute
1592         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1593         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
1594         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
1595         * modules/posix_spawn_file_actions_addchdir: New file.
1596         * modules/posix_spawn_file_actions_addclose (Depends-on,
1597         configure.ac): Test also REPLACE_POSIX_SPAWN.
1598         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
1599         configure.ac): Likewise.
1600         * modules/posix_spawn_file_actions_addopen (Depends-on,
1601         configure.ac): Likewise.
1602         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
1603         signature.
1604         * doc/posix-functions/posix_spawn.texi: Mention the new module.
1605         * doc/posix-functions/posix_spawnp.texi: Likewise.
1607 2018-09-06  Bruno Haible  <bruno@clisp.org>
1609         stddef: Override max_align_t on NetBSD 8.0/x86.
1610         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
1611         the value of __alignof__ (max_align_t).
1612         * doc/posix-headers/stddef.texi: Mention the issue.
1614 2018-09-06  Bruno Haible  <bruno@clisp.org>
1616         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
1617         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
1618         system fcntl.
1619         * doc/posix-functions/fcntl.texi: Document the issue.
1621 2018-09-06  Bruno Haible  <bruno@clisp.org>
1623         count-trailing-zeros tests: Rely on limits-h module.
1624         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
1625         definition.
1626         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
1628 2018-09-06  Bruno Haible  <bruno@clisp.org>
1630         count-leading-zeros tests: Rely on limits-h module.
1631         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
1632         definition.
1633         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
1635 2018-09-06  Bruno Haible  <bruno@clisp.org>
1637         count-one-bits tests: Rely on limits-h module.
1638         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
1639         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
1641 2018-09-06  Bruno Haible  <bruno@clisp.org>
1643         xstrtoll: Rely on limits-h module.
1644         * lib/xstrtol.c: Don't include intprops.h.
1645         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
1646         * modules/xstrtol (Depends-on): Remove 'intprops'.
1647         * modules/xstrtoll (Depends-on): Add 'limits-h'.
1649 2018-09-06  Bruno Haible  <bruno@clisp.org>
1651         strtoll, strtoull: Rely on limits-h module.
1652         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
1653         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
1654         * modules/strtoll (Depends-on): Add limits-h.
1655         * modules/strtoull (Depends-on): Likewise.
1657 2018-09-06  Bruno Haible  <bruno@clisp.org>
1659         intprops tests: Fix compilation error with pre-C99 compiler.
1660         * tests/test-intprops.c (verify_stmt): New macro.
1661         (VERIFY, main): Use it.
1663 2018-09-06  Bruno Haible  <bruno@clisp.org>
1665         limits-h: Provide numerical limits macros.
1666         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
1667         IRIX and for GCC.
1668         (WORD_BIT, LONG_BIT): Define.
1669         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
1670         <limits.h> does not define LLONG_MAX or WORD_BIT.
1671         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
1672         TYPE_MAXIMUM): New macros, from intprops.h.
1673         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
1674         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
1675         provides.
1677 2018-09-05  Bruno Haible  <bruno@clisp.org>
1679         fcntl: Don't access nonexistent optional argument.
1680         Reported by Frank Busse <f.busse@imperial.ac.uk> in
1681         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
1682         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
1683         don't consume an argument. For actions that take an 'int' argument,
1684         consume an 'int' argument.
1686 2018-09-05  Eric Blake  <eblake@redhat.com>
1688         doc: mention environ pitfall
1689         * doc/posix-functions/environ.texi (environ): Assigning NULL to
1690         environ is a glibc extension.
1692 2018-09-03  Bruno Haible  <bruno@clisp.org>
1694         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
1695         Reported by Antoine Luong <antoine.luong@c-s.fr> in
1696         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
1697         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
1698         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
1699         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
1701 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1703         mktime: fix unlikely race+overflow bug
1704         Problem reported by Alexandre Oliva in:
1705         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
1706         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
1707         to avoid an unlikely race if the compiler delays a load and
1708         if this cascades into a signed integer overflow.
1710 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
1712         mktime, timegm: simplify glibc time64_t
1713         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
1714         Now long int, not time_t, since long int is the longstanding type
1715         for this in glibc and there is no need to change it even if time_t
1716         becomes 64 bits - even int would do, though this would be a change
1717         to the glibc generated code.  When this change is merged into
1718         glibc, it should simplify the time_t vs time64_t situation.
1720         mktime, timegm: simplify merge to glibc
1721         Move code around to make a merge to glibc easier to audit.
1722         This should not change behavior.
1723         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
1724         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
1725         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
1726         simplify later conditionals; default the others to zero.  In uses
1727         of these conditionals, explicitly spell out how _LIBC affects
1728         things, so it’s easier to review from a glibc viewpoint.
1729         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
1730         compartmentalize tzset issues.  Move system-dependent tzsettish
1731         code here from mktime.
1732         (mktime): Move tzsettish code to my_tzset, and move
1733         localtime_offset to within mktime so that it doesn’t
1734         need a separate ifdef.
1736 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
1738         intprops: avoid evaluation of some expressions
1739         This makes EXPR_SIGNED (e) easier to use, as it no longer
1740         evaluates the expression E.  Formerly, E was required to be free
1741         of side effects.
1742         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
1743         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
1744         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
1746 2018-08-23  Bruno Haible  <bruno@clisp.org>
1748         getcwd: Add cross-compilation guesses.
1749         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
1750         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
1751         Based on a patch by Paul Eggert.
1752         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
1753         guesses for all GNU systems.
1755 2018-08-19  Bruno Haible  <bruno@clisp.org>
1757         glob-h: Formalize side effects from other modules.
1758         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
1759         * m4/glob.m4 (gl_GLOB): Invoke it.
1761         fnmatch-h: Formalize side effects from other modules.
1762         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
1763         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
1765         limits-h: Formalize side effects from other modules.
1766         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
1767         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
1769 2018-08-19  Bruno Haible  <bruno@clisp.org>
1771         getpass: Move declaration to <unistd.h>.
1772         * lib/unistd.in.h (getpass): New declaration.
1773         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
1774         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
1775         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
1776         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
1777         On glibc systems, don't set REPLACE_GETPASS to 1.
1778         * modules/getpass (Depends-on): Add 'unistd'.
1779         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
1780         (Include): Specify <unistd.h> instead of "getpass.h".
1781         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
1782         (configure.ac): Sync with the configure.ac section of modules/getpass.
1783         (Include): Specify <unistd.h> instead of "getpass.h".
1784         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
1785         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
1786         REPLACE_GETPASS.
1787         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
1788         REPLACE_GETPASS.
1789         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
1790         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
1791         and musl.
1792         * NEWS: Mention the change.
1794 2018-08-19  Bruno Haible  <bruno@clisp.org>
1796         glob: Fix over-optimization due to attribute __nonnull__.
1797         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
1799 2018-08-19  Bruno Haible  <bruno@clisp.org>
1801         glob: Fix another compilation error when glob.h is not replaced.
1802         Reported by Reuben Thomas <rrt@sc3d.org> in
1803         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
1804         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
1805         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
1807 2018-08-18  Bruno Haible  <bruno@clisp.org>
1809         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
1810         Reported by Reuben Thomas <rrt@sc3d.org> in
1811         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
1812         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
1813         in config.h.
1815 2018-08-18  Bruno Haible  <bruno@clisp.org>
1817         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
1818         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
1819         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
1820         Solution proposed by Eli Zaretskii.
1821         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
1822         * lib/gettimeofday.c (GetProcAddress): Likewise.
1823         * lib/link.c (GetProcAddress): Likewise.
1824         * lib/physmem.c (GetProcAddress): Likewise.
1825         * lib/poll.c (GetProcAddress): Likewise.
1826         * lib/select.c (GetProcAddress): Likewise.
1827         * lib/stat-w32.c (GetProcAddress): Likewise.
1829 2018-08-18  Bruno Haible  <bruno@clisp.org>
1831         glob: Fix another compilation error when glob.h is not replaced.
1832         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
1833         * lib/globfree.c: Include <libc-config.h>.
1835 2018-08-18  Bruno Haible  <bruno@clisp.org>
1837         glob: Fix compilation error when glob.h is not replaced.
1838         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
1839         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
1840         * lib/glob_pattern_p.c: Include <libc-config.h>.
1841         * modules/glob (Depends-on): Add libc-config.
1843 2018-08-18  Bruno Haible  <bruno@clisp.org>
1845         scratch_buffer: Add tests.
1846         * tests/test-scratch-buffer.c: New file.
1847         * modules/scratch_buffer-tests: New file.
1849 2018-08-18  Bruno Haible  <bruno@clisp.org>
1851         scratch_buffer: Fix include file.
1852         Reported by Reuben Thomas <rrt@sc3d.org> in
1853         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
1854         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
1855         double-inclusion guard.
1857 2018-08-18  Bruno Haible  <bruno@clisp.org>
1859         glob-h: Revert Paul Eggert's revert.
1860         * m4/glob_h.m4: Revert to previous state.
1861         * modules/glob-h: Likewise.
1863 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1865         glob-h: always build glob.h
1866         This works around a problem reported by Reuben Thomas in:
1867         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
1868         This workaround always builds glob.h, even on platforms that
1869         do not need it; perhaps this could be improved someday.
1870         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
1871         is always created now.
1872         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
1874 2018-08-13  Bruno Haible  <bruno@clisp.org>
1876         monetary: Simplify m4 code.
1877         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
1878         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
1880 2018-08-13  Bruno Haible  <bruno@clisp.org>
1882         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
1883         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
1884         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
1885         and by Paul J. Lucas <paul@lucasmail.org> in
1886         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
1887         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
1889 2018-08-11  Bruno Haible  <bruno@clisp.org>
1891         setlocale: Trivial simplification.
1892         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
1894 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1896         verify: port 'assume' to traditional tools
1897         * lib/verify.h (assume): Port better to Oracle Studio 12.6
1898         and other tools that use /*NOTREACHED*/ comments.
1900 2018-08-10  Bruno Haible  <bruno@clisp.org>
1902         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
1903         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
1904         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
1905         'fnmatch-gnu' is in use.
1907 2018-08-07  Bruno Haible  <bruno@clisp.org>
1909         glob-h: Add tests.
1910         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
1911         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
1912         tests/test-glob-h.c.
1913         * modules/glob-h-tests: New file.
1914         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
1915         conditions.
1916         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
1917         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
1919 2018-08-07  Bruno Haible  <bruno@clisp.org>
1921         glob-h: New module.
1922         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
1923         replacements.
1924         * lib/glob.c: Include <config.h>.
1925         * m4/glob_h.m4: New file.
1926         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
1927         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
1928         REPLACE_GLOB_PATTERN_P as appropriate.
1929         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
1930         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
1931         * modules/glob-h: New file.
1932         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
1933         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
1934         lstat, sys_stat. Change conditions.
1935         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
1936         REPLACE_GLOB_PATTERN_P. Set module indicator.
1937         (Makefile.am): Remove code that is moved to glob-h.
1938         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
1939         * modules/posixcheck (Depends-on): Add glob-h.
1941 2018-08-06  Bruno Haible  <bruno@clisp.org>
1943         Force generation of substitute .h file when C++ support is enabled.
1944         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
1945         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
1946         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
1947         FNMATCH_H to non-empty.
1948         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
1949         ICONV_H to non-empty.
1950         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
1951         MONETARY_H to non-empty.
1952         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
1953         non-empty.
1955 2018-08-06  Bruno Haible  <bruno@clisp.org>
1957         fnmatch-h: Fix test compilation error on mingw (regression from today).
1958         * lib/fnmatch.in.h: Fix conditions.
1960 2018-08-06  Bruno Haible  <bruno@clisp.org>
1962         sys_resource: Relicense under LGPLv2+.
1963         John Malmberg's approval is in
1964         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
1965         * modules/sys_resource (License): Change to LGPLv2+.
1967 2018-08-06  Bruno Haible  <bruno@clisp.org>
1969         fnmatch-h: Add tests.
1970         * tests/test-fnmatch-h.c: New file.
1971         * modules/fnmatch-h-tests: New file.
1972         * tests/test-fnmatch-h-c++.cc: New file.
1973         * modules/fnmatch-h-c++-tests: New file.
1975 2018-08-06  Bruno Haible  <bruno@clisp.org>
1977         fnmatch-h: New module.
1978         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
1979         replacements.
1980         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
1981         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
1982         'posixcheck' warning.
1983         * m4/fnmatch_h.m4: New file.
1984         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
1985         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
1986         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
1987         as appropriate.
1988         * modules/fnmatch-h: New file.
1989         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
1990         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
1991         conditions.
1992         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
1993         indicator.
1994         (Makefile.am): Remove code that is moved to fnmatch-h.
1995         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
1996         REPLACE_FNMATCH.
1997         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
1998         * modules/posixcheck (Depends-on): Add fnmatch-h.
2000 2018-08-06  Bruno Haible  <bruno@clisp.org>
2002         Enable more C++ tests.
2003         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
2004         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
2005         * modules/strings-tests (Depends-on): Add strings-c++-tests.
2006         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
2007         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
2009 2018-08-06  Bruno Haible  <bruno@clisp.org>
2011         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
2012         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
2013         getopt.h.
2014         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
2016 2018-08-05  Bruno Haible  <bruno@clisp.org>
2018         utime-h: Generate header file when module 'posixcheck' is in use.
2019         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
2020         UTIME_H to non-empty.
2022 2018-08-05  Bruno Haible  <bruno@clisp.org>
2024         monetary: Generate header file when module 'posixcheck' is in use.
2025         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
2026         use, set MONETARY_H to non-empty.
2028 2018-08-05  Bruno Haible  <bruno@clisp.org>
2030         iconv-h: Generate header file when module 'posixcheck' is in use.
2031         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
2032         set ICONV_H to non-empty.
2034 2018-08-05  Bruno Haible  <bruno@clisp.org>
2036         Optimize the "checking whether ... is declared without a macro" checks.
2037         Suggested by Paul Eggert in
2038         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
2039         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
2040         Gnulib module 'posixcheck' is not in use.
2042 2018-08-05  Bruno Haible  <bruno@clisp.org>
2044         iconv-h: Enable 'posixcheck' warnings.
2045         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
2046         iconv_open.
2047         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
2049 2018-08-05  Bruno Haible  <bruno@clisp.org>
2051         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
2052         * m4/extern-inline.m4: Add more comments.
2053         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
2054         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
2055         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
2057 2018-08-04  Bruno Haible  <bruno@clisp.org>
2059         New module 'posixcheck'.
2060         * modules/posixcheck: New file.
2061         * m4/posixcheck.m4: New file.
2062         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
2063         (Which modules?): Reference it.
2065 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
2067         dfa: fix memory leak
2068         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
2070 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2072         ieee754-h: new module
2073         It looks like Emacs can use this for some NaN processing.
2074         Emacs uses it only on double NaNs so it should be safe.
2075         * MODULES.html.sh (func_all_modules): Add ieee754-h.
2076         * config/srclist.txt: Mention ieee754.h in a comment.
2077         * doc/glibc-headers/ieee754.texi (ieee754.h):
2078         Gnulib now has a substitute that should work
2079         except for long double and for non-IEEE platforms.
2080         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
2081         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
2083 2018-07-27  Bruno Haible  <bruno@clisp.org>
2085         iswcntrl: Mention minor problem on macOS.
2086         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
2088 2018-07-26  Colin Watson  <cjwatson@debian.org>
2090         bootstrap, gnulib-tool: fix translations rsync
2091         Previously, we created files such as $pobase/Makefile.in.in and then the
2092         subsequent rsync would immediately delete them.
2093         * build-aux/bootstrap (po_download_command_format): Avoid deleting
2094         non-.po files in target directory when rsyncing translations.
2095         * gnulib-tool (func_import): Likewise.
2096         * pygnulib/GLImport.py (GLImport.execute): Likewise.
2098 2018-07-25  Jim Meyering  <meyering@fb.com>
2100         bootstrap: reinstate definition fo gnulib_mk.
2101         That variable is used at least by cppi.
2102         * build-aux/bootstrap (gnulib_mk): Restore definition.
2103         This reverts the deletion from v0.1-1844-gc66dba9ba.
2105 2018-07-23  Bruno Haible  <bruno@clisp.org>
2107         doc: For module names, use texinfo markup @code{} or @samp{}.
2108         * doc/alloca.texi: Mark gnulib module names with @code.
2109         * doc/alloca-opt.texi: Likewise.
2110         * doc/quote.texi: Likewise.
2111         * doc/posix-functions/freopen.texi: Likewise.
2112         * doc/posix-functions/open.texi: Likewise.
2113         * doc/posix-functions/readlink.texi: Likewise.
2114         * doc/posix-functions/readlinkat.texi: Likewise.
2115         * doc/posix-functions/stdout.texi: Likewise.
2116         * doc/posix-functions/stderr.texi: Likewise.
2117         * doc/posix-functions/unlink.texi: Likewise.
2118         * doc/posix-functions/unlinkat.texi: Likewise.
2119         * doc/posix-functions/utime.texi: Likewise.
2120         * doc/posix-functions/utimensat.texi: Likewise.
2121         * doc/posix-functions/utimes.texi: Likewise.
2122         * doc/posix-headers/stdint.texi: Likewise.
2123         * doc/glibc-functions/futimesat.texi: Likewise.
2124         * doc/glibc-functions/lutimes.texi: Likewise.
2125         * doc/glibc-functions/memmem.texi: Likewise.
2127 2018-07-23  Werner LEMBERG  <wl@gnu.org>
2129         doc: Avoid some overfull lines in the TeX output.
2130         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
2131         @example.
2132         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
2133         newline before the long URL.
2134         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
2135         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
2136         Add line breaks in code snippets.
2138 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
2140         hard-locale: simplify by removing hard-locale.m4
2141         * m4/hard-locale.m4: Remove.
2142         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
2143         (configure.ac): Do not call gl_HARD_LOCALE.
2145         gnulib-tool: limit line length for git send-email
2146         * gnulib-tool (func_import): Break actioncmd log line
2147         into multiple lines.
2149 2018-07-16  Bruno Haible  <bruno@clisp.org>
2151         ffs: Ensure declaration on mingw.
2152         Reported by Daniel P. Berrangé <berrange@redhat.com>
2153         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
2154         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
2155         also declared.
2157 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2159         regex-tests: add dependency
2160         * modules/regex-tests (Depends-on): Add gettext-h.
2161         This is needed given the recent changes to regex,
2162         which no longer depends on gettext-h.
2164 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2166         regex: now in sync with glibc
2167         * config/srclist.txt: Gnulib and glibc regex code
2168         are synchronized again.
2170 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2172         renameatu: rename from renameat2
2173         It's looking like Glibc will add a renameat2 function
2174         that is incompatible with Gnulib renameat2; see:
2175         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
2176         To help avoid future confusion, rename renameat2 to something else.
2177         Use the name 'renameatu', as the Gnulib function is close to the
2178         Glibc function.  Perhaps someday there will also be a renameat2
2179         Gnulib module, which mimicks the future glibc renameat2, but that
2180         can wait as nobody seems to need such a module now.
2181         * NEWS: Mention this.
2182         * lib/renameatu.c: Rename from lib/renameat2.c.
2183         * lib/renameatu.h: Rename from lib/renameat2.h.
2184         * modules/renameatu: Rename from modules/renameat2.
2185         * modules/renameatu-tests: Rename from modules/renameat2-tests.
2186         All uses of "renameat2" in identifiers or file name
2187         changed to "renameatu", except for two instances in
2188         lib/renameatu.c that deal with the Linux kernel's
2189         renameat2 syscall.
2191 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2193         gnulib-tool: minor tweaks for --gnu-make
2194         * gnulib-tool: Do not allow --gnu-make in test modes,
2195         since they all require automake.
2196         (func_emit_lib_Makefile_am): Don’t emit automake comment
2197         if --gnu-make.
2199         regex: work around conditional-dependencies glitch
2200         * modules/regex (Depends-on): Add langinfo.
2201         Without this change, I had problems building an experimental
2202         version of GNU Emacs.  The symptom of the bug was a message
2203         ‘./configure: line 12726: test: =: unary operator expected’.
2204         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
2205         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
2206         was unset.  Although gl_FUNC_NL_LANGINFO has
2207         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
2208         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
2209         --conditional-dependencies sometimes arranges for the
2210         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
2211         code.  Since the regex code includes <langinfo.h> it should be
2212         depending on the langinfo module anyway, and this happens to work
2213         around the bug, so install that as a workaround for now.  To
2214         reproduce the original problem, run the following shell script on
2215         the version of Gnulib just before this patch was installed.
2216                 rm -fr foo
2217                 mkdir foo
2218                 cat >foo/configure.ac <<'EOF'
2219                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
2220                 gl_EARLY
2221                 gl_INIT
2222                 AC_OUTPUT
2223                 EOF
2224                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
2225                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
2226                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
2227                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
2228                 cd foo
2229                 aclocal -I m4
2230                 autoconf
2231                 ./configure --with-included-regex
2233 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2235         wchar: fix bug when checking for ‘inline’
2236         I discovered this when looking into using the regex module
2237         with Emacs.
2238         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
2239         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
2240         conftest1.c and conftest2.c but these files were not created.
2241         As far as I can see, this check never worked and nobody reported
2242         it until now, which is a bit worrisome.
2244 2018-06-30  Jim Meyering  <meyering@fb.com>
2246         bootstrap: s/--option val/--option=val/
2247         * build-aux/bootstrap (gnulib_tool_options): Change the
2248         spelling of "--option val" pairs to "--option=val", for
2249         aesthetics, and also so that this file no longer triggers
2250         a common help2man syntax-check warning when copied into
2251         projects like grep, gzip, etc.
2253 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2255         manywarnings: omit -Wswitch-default
2256         This should make things more consistent, as we already ignore
2257         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
2258         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
2259         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
2260         Add -Wswitch-default.
2261         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2262         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
2263         Remove -Wswitch-default.
2265         regex: revert most trimming
2266         Problems reported by Bruno Haible in:
2267         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
2268         * modules/regex (Depends-on): Add lock, memcmp, memmove,
2269         and wctype back in.  lock because regex users shouldn’t
2270         need to know that regex needs locking, and the rest because
2271         gnulib-tool should ordinarily ignore them anyway.
2273 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2275         regex: trim module dependencies
2276         * modules/regex (Depends-on): Remove gettext-h and lock,
2277         since the regex code should work OK without these modules,
2278         and Emacs uses it that way.  Also remove memcmp, memmove,
2279         and wctype, as these modules are obsolete and should not be
2280         needed any more.
2282 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
2284         regex: glibc does not use intprops.h
2285         Maybe we can talk glibc into using intprops.h someday, but
2286         now doesn’t seem to be a good time.
2287         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
2288         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
2289         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
2291 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2293         regex: port to recently proposed glibc regex merge
2294         This patch is inspired by Adhemerval Zanella's recent proposal
2295         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
2296         to merge glibc and Gnulib regex.  It aims to simplify the merge on
2297         the glibc side, without keeping Gnulib portable.
2298         * lib/regex.h: Fix a problem with glibc installed-header checking,
2299         as follows:
2300         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
2301         (_Restrict_arr_): Prefer __restrict_arr if defined,
2302         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
2303         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
2304         (build_wcs_upper_buffer, build_upper_buffer)
2305         (re_string_translate_buffer, re_string_context_at):
2306         Move decls here from lib/regex_internal.h, for glibc internal tests.
2307         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
2308         glibc BZ #18496.
2309         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
2310         -Wunused-value.
2311         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
2312         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2313         (bitset_mask): Now static inline, and without any __attribute__
2314         ((unused)) decoration, for glibc internal tests.
2316 2018-06-25  Bruno Haible  <bruno@clisp.org>
2318         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
2319         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
2320         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
2321         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
2322         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
2323         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
2324         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
2325         / -lthread / -lpth does not get optimized away by a preceding
2326         --as-needed option.
2328 2018-06-25  Bruno Haible  <bruno@clisp.org>
2330         Continue to use spaces for indentation, not tabs.
2331         * MODULES.html.sh: Untabify.
2332         * doc/regex.texi: Likewise.
2333         * lib/acl-internal.c: Likewise.
2334         * lib/dfa.c: Likewise.
2335         * lib/exclude.c: Likewise.
2336         * lib/exclude.h: Likewise.
2337         * lib/get-permissions.c: Likewise.
2338         * lib/gettimeofday.c: Likewise.
2339         * lib/parse-datetime.y: Likewise.
2340         * lib/pselect.c: Likewise.
2341         * lib/set-permissions.c: Likewise.
2342         * lib/time.in.h: Likewise.
2343         * m4/canonicalize.m4: Likewise.
2344         * m4/gc.m4: Likewise.
2345         * m4/gnulib-common.m4: Likewise.
2346         * m4/pthread_sigmask.m4: Likewise.
2347         * m4/vararrays.m4: Likewise.
2348         * tests/test-digest.h: Likewise.
2349         * tests/test-fcntl-h.c: Likewise.
2350         * tests/test-timespec.c: Likewise.
2351         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
2353 2018-06-25  Bruno Haible  <bruno@clisp.org>
2355         manywarnings: Don't enable -Wjump-misses-init warnings by default.
2356         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
2357         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
2358         -Wjump-misses-init.
2360 2018-06-25  Jim Meyering  <meyering@fb.com>
2362         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
2363         * lib/acl-internal.h (free_permission_context): Remove that
2364         attribute directive.  Otherwise, it would provoke this from GCC 9:
2365         lib/acl-internal.h:300:3: error: 'const' attribute on function \
2366           returning 'void' [-Werror=attributes]
2368 2018-06-24  Jim Meyering  <meyering@fb.com>
2370         parse-datetime: accommodate gcc-4.8.5
2371         Bruno Haible reported the build failure in
2372         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
2373         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
2374         on declaration of new local.
2376 2018-06-24  Bruno Haible  <bruno@clisp.org>
2378         af_alg: Fail in continuable manner on Linux/powerpc64le.
2379         Reported by Assaf Gordon <assafgordon@gmail.com>
2380         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
2381         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
2382         byte send() as the first round.
2384 2018-06-24  Bruno Haible  <bruno@clisp.org>
2386         af_alg: Fix state of stream after sendfile() succeeds.
2387         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
2388         the stream is correctly positioned afterwards.
2389         * modules/crypto/af_alg (Depends-on): Add fflush.
2390         * tests/test-digest.h (test_digest_on_files): Verify that after the
2391         operation the stream is positioned at end of file.
2393 2018-06-24  Jim Meyering  <meyering@fb.com>
2395         canon-host: take GCC9's advice rather than ignoring warning
2396         Pádraig Brady suggested not to ignore this GCC9 advice.
2397         * lib/canon-host.c: Undo preceding change.
2398         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
2400         parse-datetime.y: avoid spurious GCC 9 warning
2401         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
2402         a function local prior to the first "goto fail".  The prior use would
2403         evoke this:
2404         parse-datetime.y: In function 'parse_datetime2':
2405         parse-datetime.y:1791:19: error: jump skips variable initialization \
2406           [-Werror=jump-misses-init]
2407         parse-datetime.y:2385:2: note: label 'fail' defined here
2408         parse-datetime.y:188:43: note: '({anonymous})' declared here
2409         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
2411         canon-host.c: avoid spurious GCC 9 warning
2412         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
2414         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
2415         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
2416         * m4/manywarnings.m4: Remove them.
2417         Otherwise, building coreutils, I would see this:
2418         cc1: error: deprecated command line option '-Wchkp' [-Werror]
2419         cc1: error: -Wabi won't warn about anything [-Werror=abi]
2420         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
2421           which is also used by default
2422         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
2424 2018-06-24  Bruno Haible  <bruno@clisp.org>
2426         af_alg tests: Add another test.
2427         * tests/test-digest.h (test_digest_on_files): Also check a large file
2428         with a skipped header.
2429         * tests/test-md5.c: Include macros.h.
2430         * tests/test-sha1.c: Likewise.
2431         * tests/test-sha256.c: Likewise.
2432         * tests/test-sha512.c: Likewise.
2433         * modules/crypto/md5-tests (Files): Add tests/macros.h.
2434         * modules/crypto/sha1-tests (Files): Likewise.
2435         * modules/crypto/sha256-tests (Files): Likewise.
2436         * modules/crypto/sha512-tests (Files): Likewise.
2438 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2440         maint: clarify comments about sticky EOF
2441         * lib/af_alg.c: Be more direct that we can't
2442         assume stickiness of EOF for portability reasons.
2443         * lib/md5.c: Clarify that this isn't just a glibc issue.
2444         * lib/sha1.c: Likewise.
2445         * lib/sha256.c: Likewise.
2446         * lib/sha512.c: Likewise.
2448 2018-06-24  Bruno Haible  <bruno@clisp.org>
2450         af_alg: Comment and style improvements.
2451         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
2452         (afalg_buffer, afalg_stream): Improve comments.
2454 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2456         af_alg: disable kernel hash functions by default
2457         All the kernel routines were seen to be significantly slower
2458         with these relatively recent components on an i3-2310M system:
2459           kernel-4.10.6-200.fc25.x86_64
2460           openssl-1.0.2m-1.fc25.x86_64
2461         sha1 was nearly twice as slow in the kernel for example.
2462         Further considerations why this should not be the default, at:
2463         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
2465         * m4/af_alg.m4: Require --with-linux-crypto to enable.
2466         * m4/gl-openssl.m4: Tweak accordingly.
2468 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2470         af_alg: avoid hangs when reading from streams
2471         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
2472         and thus avoid doing a fread() when feof() is set.
2473         * lib/md5.c: Ensure feof() is called before fread().
2474         * lib/sha1.c: Likewise.
2475         * lib/sha256.c: Likewise.
2476         * lib/sha512.c: Likewise.
2478 2018-06-24  Pádraig Brady  <P@draigBrady.com>
2480         af_alg: fix error handling when hash not returned
2481         * lib/af_alg.c (afalg_stream): Handle the case where we've
2482         successfully written data to the kernel in the read/write loop,
2483         but the kernel doesn't respond with the hash.
2485 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2487         libc-config: merge from glibc
2488         * lib/cdefs.h (__inline, __restrict):
2489         Copy from current glibc.  This fixes glibc bug 17721,
2490         which Gnulib had already fixed in a different way.
2491         (__nonnull): Lessen the distance from glibc by using the
2492         glibc definition inside an ‘#ifndef __nonnull’.
2493         (__attribute_nonstring__): New macro, copied from
2494         current glibc.
2495         * lib/libc-config.h (__attribute_nonstring__): New undef.
2496         (__restrict): Remove; workaround no longer needed.
2497         Keep the __inline workaround, though, as it uses HAVE___INLINE to
2498         support more compilers than the glibc __inline can.
2500 2018-06-24  Bruno Haible  <bruno@clisp.org>
2502         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
2503         * lib/mbrtowc.c (enc_t): New enum type.
2504         (locale_enc, locale_enc_cached): New functions.
2505         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
2506         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
2507         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
2508         instead.
2509         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
2510         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
2511         * modules/wcwidth (configure.ac): Invoke it.
2513 2018-06-24  Bruno Haible  <bruno@clisp.org>
2515         wchar-single: Fix test failure in wcwidth tests.
2516         * tests/test-wcwidth.c (main): If the wchar-single module is present,
2517         skip the tests in the C locale.
2519 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2521         crypto: mention --without-linux-crypto in --with-openssl --help
2522         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
2523         routines take precedence in --with-openssl help output.
2525 2018-06-23  Pádraig Brady  <P@draigBrady.com>
2527         wchar-single: a new module to enable optimizations in wchar replacements
2528         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
2529         GNULIB_WCHAR_SINGLE is enabled.
2530         * lib/wcwidth.c (wcwidth): Likewise.
2532 2018-06-23  Bruno Haible  <bruno@clisp.org>
2534         libc-config: Fix conflict with FreeBSD include files.
2535         * lib/cdefs.h (__nonnull): Remove definition.
2536         * lib/libc-config.h (__nonnull): Remove undefinition.
2538 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2540         random_r: do not crash if state is unaligned
2541         Problem reported by Bruce Korb in:
2542         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
2543         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
2544         with 'cc -O2 -xmemalign=8s'.
2545         * lib/random_r.c: Include string.h, for memcpy.
2546         (get_int32, set_int32): New functions.
2547         (__srandom_r, __initstate_r, __setstate_r, __random_r):
2548         Use them to avoid assumption that state pointer is aligned.
2549         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
2550         * tests/test-random_r.c (test_failed): New function.
2551         (main): Use it, to test for alignment bugs.
2553         random_r: omit unnecessary include
2554         * lib/random_r.c: Do not include limits.h.
2556         random, random_r: merge from glibc
2557         * lib/random.c, lib/random_r.c:
2558         Include libc-config.h if !_LIBC, not config.h unilaterally.
2559         * lib/random.c:
2560         Do not include stdint.h or time.h; not needed.
2561         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
2562         (unsafe_state): Rename from generator.  All uses changed.
2563         Use C99-style initializers.
2564         (__random, __srandom, __initstate, __setstate): Rename from
2565         non-underscored version, but define it to non-underscored version
2566         on Gnulib.  Add a lock.
2567         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
2568         Likewise.
2569         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
2570         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
2571         (__srandom_r): Use int32_t instead of long int where int32_t will do.
2572         (__random_r): Use uint32 to fix glibc bug 17343.
2573         * modules/random, modules/random_r (Depends-on): Add libc-config.
2574         Depend on stdint only if $HAVE_RANDOM = 0.
2576 2018-06-19  Jim Meyering  <meyering@fb.com>
2578         README-release: also run any check-very-expensive tests
2579         * top/README-release: Adjust instructions so they run the
2580         check-very-expensive tests when there is such a target.
2582 2018-06-18  Bruno Haible  <bruno@clisp.org>
2584         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
2585         * m4/pthread_rwlock_rdlock.m4: Add comment.
2586         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
2587         are reader-preferring in glibc.
2588         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
2589         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
2591 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2593         crypto: use byteswap
2594         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2595         * lib/sm3.c: Include <byteswap.h>.
2596         (SWAP): Use its macros rather than reinventing the wheel.
2597         * modules/crypto/md4, modules/crypto/md5-buffer:
2598         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
2599         * modules/crypto/sha512-buffer, modules/crypto/sm3:
2600         (Depends-on): Add byteswap.
2602 2018-06-17  Pádraig Brady  <P@draigBrady.com>
2604         gendocs.sh: fix support for legacy --texi2html
2605         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
2606         to the default makeinfo invocation.
2607         Reported by Bruce Korb
2609 2018-06-17  Bruno Haible  <bruno@clisp.org>
2611         gettext po infrastructure: Update from current gettext git.
2612         Reported by Akim Demaille <akim@lrde.epita.fr>.
2613         * build-aux/po/Makefile.in.in: Update from current gettext git.
2614         * build-aux/po/remove-potcdate.sin: Likewise.
2615         * config/srclist.txt: Temporarily disable sync for these files.
2617 2018-06-17  Bruno Haible  <bruno@clisp.org>
2619         getloadavg: Return 0 on Windows without Cygwin.
2620         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
2622 2018-06-17  Paul Smith  <psmith@gnu.org>
2624         getloadavg: Allow building on Windows without Cygwin
2625         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
2626         * m4/getloadavg.m4: Check for unistd.h.
2628 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
2630         Port crypto/af_alg to GCC 4.8.4
2631         Problem reported by Peter Simons in:
2632         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
2633         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
2635 2018-05-27  Colin Watson  <cjwatson@debian.org>
2637         bootstrap: document source fetching in --help
2638         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
2640 2018-04-09  Colin Watson  <cjwatson@debian.org>
2642         bootstrap: allow non-submodule control of gnulib
2643         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
2644         bootstrap.conf when fetching gnulib using "git clone" or via
2645         GNULIB_SRCDIR.
2647 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2649         crypto: omit stream ops Emacs doesn’t need
2650         * lib/md5.c (md5_stream):
2651         * lib/sha1.c (sha1_stream):
2652         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
2653         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
2654         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
2655         defined.  Emacs needs this, as it does not use the stream
2656         operations and doesn’t need all the af_alg stuff we’ve recently
2657         added.  Perhaps a similar change is needed to the other crypto
2658         modules, but this patch changes only those needed for Emacs.
2659         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
2660         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
2661         New modules, used by Emacs.
2662         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2663         * modules/crypto/sha512: Rewrite to depend on the new modules.
2665 2018-05-20  Pádraig Brady  <P@draigBrady.com>
2667         fts: avoid a memory leak edge case
2668         * lib/fts.c (fts_open): Set an appropriate fts_level
2669         so that an immediate fts_close() will free the allocation.
2670         * tests/test-fts.c (fts_dealloc): Add a test case which
2671         will trigger under valgrind or address sanitizer.
2672         Fixes https://bugs.gnu.org/31439
2674 2018-05-20  Bruno Haible  <bruno@clisp.org>
2676         wcwidth tests: Fix link error.
2677         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
2678         $(LIBUNISTRING).
2680 2018-05-20  Bruno Haible  <bruno@clisp.org>
2682         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
2683         * modules/regex (Files): Add m4/glibc21.m4.
2685 2018-05-20  Bruno Haible  <bruno@clisp.org>
2687         localcharset: Optimize.
2688         * lib/localcharset.c (alias_table): Comment out no-op mappings for
2689         platforms where these don't matter. This reduces the table size,
2690         which in turn reduces the lookup time.
2692 2018-05-19  Bruno Haible  <bruno@clisp.org>
2694         localcharset: Map the locale encodings found in newer OSes.
2695         * lib/localcharset.c (alias_table): Add mapping for locale encodings
2696         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
2697         IRIX 6.5, Minix 3.3.
2698         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
2700 2018-05-19  Bruno Haible  <bruno@clisp.org>
2702         localcharset: Move mapping tables into the code. Use a binary search.
2703         * lib/localcharset.h: Document the GNU canonical names for character
2704         encodings here.
2705         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
2706         relocatable.h, configmake.h.
2707         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
2708         macros.
2709         (charset_aliases): Remove variable.
2710         (get_charset_aliases): Remove function.
2711         (struct table_entry): New type.
2712         (alias_table, locale_table): New constants.
2713         (locale_charset): Use the alias_table or locale_table to get the
2714         canonicalized encoding name.
2715         * lib/config.charset: Remove file.
2716         * lib/ref-add.sin: Remove file.
2717         * lib/ref-del.sin: Remove file.
2718         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
2719         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
2720         * modules/localcharset (Notice): Remove.
2721         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
2722         glibc21.m4.
2723         (Depends-on): Remove configmake.
2724         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
2725         (Makefile.am): Simplify.
2726         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
2728 2018-05-19  Bruno Haible  <bruno@clisp.org>
2730         localcharset: Add a manual test.
2731         * tests/test-localcharset.c: New file.
2732         * modules/localcharset-tests: New file.
2734 2018-05-19  Bruno Haible  <bruno@clisp.org>
2736         localcharset: Remove support for obsolete platforms.
2737         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
2738         Mac OS X 10.2. Comment out dubious entry for Solaris.
2740 2018-05-19  Jim Meyering  <meyering@fb.com>
2742         gnupload: adjust comment
2743         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
2744         more likely we'll remove the just-added code in a year or two.
2746 2018-05-19  Bruno Haible  <bruno@clisp.org>
2748         gnupload: Fix "gpg-agent is not available in this session" error.
2749         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
2751 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2753         crypto/af_alg: fix --help
2754         * m4/af_alg.m4: Avoid spurious newline in --help output.
2756 2018-05-13  Bruno Haible  <bruno@clisp.org>
2758         nl_langinfo: Fix compilation error on Android.
2759         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
2760         INT_CURR_SYMBOL, etc. only if these items are defined.
2762 2018-05-13  Bruno Haible  <bruno@clisp.org>
2764         truncate: Fix compilation error on Android.
2765         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
2766         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
2767         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
2768         HAVE_TRUNCATE.
2769         * modules/truncate: Likewise.
2770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
2771         not HAVE_TRUNCATE.
2772         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
2773         HAVE_TRUNCATE.
2774         * doc/posix-functions/truncate.texi: Mention the issue.
2776 2018-05-13  Bruno Haible  <bruno@clisp.org>
2778         pthread: Fix compilation error on Android.
2779         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
2780         recursive inclusion of this file.
2782 2018-05-13  Bruno Haible  <bruno@clisp.org>
2784         posix_spawn: Fix compilation error on Android.
2785         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
2786         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
2787         (posix_spawn_file_actions_t): Consider also the case
2788         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
2790 2018-05-13  Bruno Haible  <bruno@clisp.org>
2792         tsearch: Move from K&R C to ANSI C.
2793         * lib/tsearch.c (tfind): Convert definition to ANSI C.
2795 2018-05-13  Bruno Haible  <bruno@clisp.org>
2797         tsearch: Fix compilation error on Android.
2798         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
2799         is 0.
2800         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
2801         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
2802         GNULIB_defined_tsearch is true.
2803         (twalk): Define only if GNULIB_defined_twalk is true.
2804         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
2805         is 0.
2806         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
2807         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
2808         * modules/search (Makefile.am): Substitute HAVE_TWALK.
2810 2018-05-13  Bruno Haible  <bruno@clisp.org>
2812         imaxdiv: Fix compilation error on Android.
2813         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
2814         is not defined.
2815         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
2816         HAVE_DECL_IMAXDIV, is 0.
2817         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
2818         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
2820 2018-05-13  Bruno Haible  <bruno@clisp.org>
2822         Support selective inclusion mechanism of recent mingw.org header files.
2823         Reported by Eli Zaretskii <eliz@gnu.org>.
2824         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
2825         __need_ssize_t, or __need_time_t is defined, just include the system's
2826         <sys/types.h>.
2827         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
2828         include the system's <locale.h>.
2830 2018-05-13  Bruno Haible  <bruno@clisp.org>
2832         Avoid compilation error due to 'mmap' on Android.
2833         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
2834         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
2835         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
2836         Undefine on Android.
2838 2018-05-13  Bruno Haible  <bruno@clisp.org>
2840         Add cross-compilation guesses for Linux systems without glibc.
2841         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
2842         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
2843         * m4/link.m4 (gl_FUNC_LINK): Likewise.
2844         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
2845         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
2846         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
2847         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2848         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
2849         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
2850         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
2851         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2852         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2853         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
2854         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2855         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
2856         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
2857         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2858         * m4/utimens.m4 (gl_UTIMENS): Likewise.
2860 2018-05-13  Bruno Haible  <bruno@clisp.org>
2862         getpagesize: Fix compilation error on Android.
2863         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
2864         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
2865         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
2866         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
2867         HAVE_GETPAGESIZE accordingly.
2868         * modules/getcwd (Files): Add m4/getpagesize.m4.
2870 2018-05-13  Bruno Haible  <bruno@clisp.org>
2872         tcgetsid: Fix compilation error on Android.
2873         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
2874         AC_CHECK_FUNC.
2876 2018-05-13  Bruno Haible  <bruno@clisp.org>
2878         getpass: Fix configure test for Android.
2879         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
2880         AC_CHECK_FUNC.
2882 2018-05-13  Bruno Haible  <bruno@clisp.org>
2884         ffs: Fix compilation error on Android.
2885         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
2887 2018-05-13  Bruno Haible  <bruno@clisp.org>
2889         mkfifo: Fix compilation error on Android.
2890         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
2891         AC_CHECK_FUNC.
2893 2018-05-13  Bruno Haible  <bruno@clisp.org>
2895         c-strtod: Fix configure test for Android.
2896         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
2897         AC_CHECK_FUNC.
2899 2018-05-13  Bruno Haible  <bruno@clisp.org>
2901         random: Fix compilation error on Android.
2902         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
2903         AC_CHECK_FUNC.
2905 2018-05-13  Bruno Haible  <bruno@clisp.org>
2907         grantpt: Fix compilation error on Android.
2908         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
2909         AC_CHECK_FUNC.
2911 2018-05-13  Bruno Haible  <bruno@clisp.org>
2913         stdioext: Fix compilation errors with newer Android headers.
2914         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
2915         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
2916         fallbacks for Android.
2917         * lib/fpending.c: Update comments.
2918         * lib/fpurge.c: Likewise.
2919         * lib/freadable.h: Likewise.
2920         * lib/freadable.c: Likewise.
2921         * lib/freadahead.c: Likewise.
2922         * lib/freading.h: Likewise.
2923         * lib/freadptr.c: Likewise.
2924         * lib/fseterr.c: Likewise.
2925         * lib/fwritable.h: Likewise.
2926         * lib/fwritable.c: Likewise.
2927         * lib/fwriting.h: Likewise.
2928         * lib/fwriting.c: Likewise.
2930 2018-05-13  Bruno Haible  <bruno@clisp.org>
2932         doc: Add info about Android versions 2.0 to 8.1.
2933         * doc/**/*.texi: Add info about functions in all released versions of
2934         Bionic.
2936 2018-05-12  Bruno Haible  <bruno@clisp.org>
2938         fseeko: On mingw, don't use the hidden function _fseeki64.
2939         Reported by Eli Zaretskii <eliz@gnu.org>.
2940         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
2941         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
2943 2018-05-12  Bruno Haible  <bruno@clisp.org>
2945         glob: Choose 'dirent_type' in a way that works better on mingw.
2946         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
2947         * lib/glob.c (dirent_type): Define as uint_fast32_t.
2949 2018-05-12  Bruno Haible  <bruno@clisp.org>
2951         execute, spawn-pipe: Avoid warning about redefining 'close'.
2952         Reported by Eli Zaretskii <eliz@gnu.org>.
2953         * lib/execute.c: Undefine 'close' before redefining it.
2954         * lib/spawn-pipe.c: Likewise.
2956 2018-05-12  Bruno Haible  <bruno@clisp.org>
2958         nanosleep: Avoid test failure on mingw when it has nanosleep.
2959         Reported by Eli Zaretskii <eliz@gnu.org>.
2960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
2961         If it does not exist, use a simpler test program that does not call
2962         alarm().
2964 2018-05-10  Bruno Haible  <bruno@clisp.org>
2966         lock, cond, thread, tls: Use a different symbol as libpthread witness.
2967         Reported by Devin Hussey <husseydevin@gmail.com>.
2968         Based on a patch by Paul Eggert.
2969         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
2970         as witness of libpthread.
2971         * lib/glthread/cond.h (pthread_in_use): Likewise.
2972         * lib/glthread/thread.h (pthread_in_use): Likewise.
2973         * lib/glthread/tls.h (pthread_in_use): Likewise.
2975 2018-05-10  Bruno Haible  <bruno@clisp.org>
2977         cond tests: Fix compilation error on Solaris.
2978         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
2979         macro.
2981 2018-05-10  Bruno Haible  <bruno@clisp.org>
2983         doc: Add partial info about Android 4.3.
2984         * doc/*-functions/*.texi: Add info about functions that were added
2985         to Bionic between Android 4.3 and Android 9.0.
2987 2018-05-10  Bruno Haible  <bruno@clisp.org>
2989         doc: Add info about Android 9.0.
2990         * doc/**/*.texi: Add info about functions and headers in Bionic from
2991         Android 9.0.
2993 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
2995         af_alg: fix my typo in afalg_buffer
2996         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
2997         (afalg_stream): Simplify and avoid the need for a runtime test
2998         at the end.
3000         af_alg: recover better from crypto failures
3001         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
3002         input stream is seekable, by repositioning the stream back to
3003         where it was, possibly by just calling sendfile with an offset
3004         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
3005         cases, which lets our callers try again with user-mode code.
3006         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
3007         instead of on fflush and lseek.
3009         af_alg: distiguish I/O errors better
3010         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
3011         not -EIO, if it’s OK for the caller to try again with user-mode code.
3012         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
3013         some other error number) if fflush fails, as the caller should not
3014         try again that case.
3016         af_alg: avoid gotos
3017         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
3018         gotos, as they were a source of unreliability and made the code a
3019         bit harder to follow.
3021         af_alg: don’t leak file descriptors into children
3022         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
3023         This code should be compiled only on recent GNU/Linux platforms
3024         so we shouldn’t have to also depend on the accept4 module.
3026         af_alg: coalesce socket creation
3027         * lib/af_alg.c (alg_socket): New function.
3028         (afalg_buffer, afalg_stream): Use it.  This avoids some
3029         code duplication and gotos.
3031         af_alg: fix file descriptor leak
3032         * lib/af_alg.c (afalg_stream): Close leak.
3034         af_alg: Pacify --enable-gcc-warnings on GCC 8
3035         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
3036         and checking to pacify gcc -Wjump-misses-init on GCC 8.
3038 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3040         af_alg: Pacify --enable-gcc-warnings
3041         Problem reported by Assaf Gordon in:
3042         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
3043         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
3044         gcc -Wjump-misses-init.
3045         * lib/sha512.c (shaxxx_stream): Now static.
3047 2018-05-06  Bruno Haible  <bruno@clisp.org>
3049         af_alg: Add ability to use Linux kernel crypto API on data in memory.
3050         * lib/af_alg.h (afalg_buffer): New declaration.
3051         * lib/af_alg.c (afalg_buffer): New function.
3053 2018-05-06  Bruno Haible  <bruno@clisp.org>
3055         af_alg: Avoid warnings.
3056         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
3057         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
3059 2018-05-06  Bruno Haible  <bruno@clisp.org>
3061         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
3062         * tests/bench-digest.h: New file.
3063         * tests/bench-md5.c: New file.
3064         * tests/bench-sha1.c: New file.
3065         * tests/bench-sha224.c: New file.
3066         * tests/bench-sha256.c: New file.
3067         * tests/bench-sha384.c: New file.
3068         * tests/bench-sha512.c: New file.
3069         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
3070         tests/bench-digest.h.
3071         (Depends-on): Add getrusage, gettimeofday.
3072         (Makefile.am): Add variables to build bench-md5.
3073         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
3074         tests/bench-digest.h.
3075         (Depends-on): Add getrusage, gettimeofday.
3076         (Makefile.am): Add variables to build bench-sha1.
3077         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
3078         tests/bench-sha256.c, tests/bench-digest.h.
3079         (Depends-on): Add getrusage, gettimeofday.
3080         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
3081         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
3082         tests/bench-sha512.c, tests/bench-digest.h.
3083         (Depends-on): Add getrusage, gettimeofday.
3084         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
3086 2018-05-06  Bruno Haible  <bruno@clisp.org>
3088         af_alg: Fix a resource leak.
3089         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
3090         New local variable 'result'.
3092 2018-05-06  Bruno Haible  <bruno@clisp.org>
3094         af_alg: Fix bug with streams that are not at position 0.
3095         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
3096         assume that the stream is positioned at position 0.
3097         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
3098         of the stream.
3099         * lib/md5.h (md5_stream): Likewise.
3100         * lib/sha1.h (sha1_stream): Likewise.
3101         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
3102         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
3103         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
3105         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
3106         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
3107         stream that is not positioned at the beginning.
3109 2018-05-06  Bruno Haible  <bruno@clisp.org>
3111         af_alg: Add configure option to enable/disable use of Linux crypto API.
3112         Suggested by Assaf Gordon <assafgordon@gmail.com>.
3113         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
3114         USE_LINUX_CRYPTO_API.
3115         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
3116         * lib/af_alg.c: Likewise.
3118 2018-05-06  Bruno Haible  <bruno@clisp.org>
3120         Followup to 'af_alg: New module.'.
3121         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
3122         * modules/crypto/sha1 (Depends-on): Likewise.
3123         * modules/crypto/sha256 (Depends-on): Likewise.
3124         * modules/crypto/sha512 (Depends-on): Likewise.
3126 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3128         crypto/{md5,sha1,sha256,sha512}: simplify
3129         * lib/md5.c (md5_stream):
3130         * lib/sha1.c (sha1_stream):
3131         * lib/sha256.c (shaxxx_stream):
3132         Simplify, partly by assuming C99.
3133         * lib/sha256.c (shaxxx_stream):
3134         New function, which implements both sha256 and sha224.
3135         Simplify, partly by assuming C99.
3136         (sha256_stream, sha224_stream):
3137         Use it to avoid code duplication, removing a FIXME.
3138         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3139         Likewise.
3141         af_alg: Improve comments.
3142         * lib/af_alg.h: Use imperatives and tighten up wording.
3144 2018-05-05  Bruno Haible  <bruno@clisp.org>
3146         af_alg: Improve comments.
3147         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
3149 2018-05-05  Bruno Haible  <bruno@clisp.org>
3151         af_alg: New module.
3152         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
3153         * lib/af_alg.c: Include "af_alg.h" before the other header files.
3154         * lib/md5.c: Include "af_alg.h" unconditionally.
3155         (md5_stream): Invoke afalg_stream unconditionally.
3156         * lib/sha1.c: Include "af_alg.h" unconditionally.
3157         (sha1_stream): Invoke afalg_stream unconditionally.
3158         * lib/sha256.c: Include "af_alg.h" unconditionally.
3159         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
3160         * lib/sha512.c: Include "af_alg.h" unconditionally.
3161         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
3162         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
3163         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
3164         * modules/crypto/af_alg: New file.
3165         * modules/crypto/md5 (Files): Remove files that are now in the
3166         'crypto/af_alg' module.
3167         (Depends-on): Add crypto/af_alg.
3168         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3169         (Makefile.am): Don't mention af_alg.c here.
3170         * modules/crypto/sha1 (Files): Remove files that are now in the
3171         'crypto/af_alg' module.
3172         (Depends-on): Add crypto/af_alg.
3173         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3174         (Makefile.am): Don't mention af_alg.c here.
3175         * modules/crypto/sha256 (Files): Remove files that are now in the
3176         'crypto/af_alg' module.
3177         (Depends-on): Add crypto/af_alg.
3178         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3179         (Makefile.am): Don't mention af_alg.c here.
3180         * modules/crypto/sha512 (Files): Remove files that are now in the
3181         'crypto/af_alg' module.
3182         (Depends-on): Add crypto/af_alg.
3183         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3184         (Makefile.am): Don't mention af_alg.c here.
3186 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3188         crypto tests: pacify GCC
3189         * tests/test-digest.h (test_digest_on_files):
3190         Don’t assume digest size fits in int (!).
3192         af_alg: minor style improvements
3193         * lib/af_alg.c (afalg_stream): Prefer C99 style
3194         decl-after-statement, since we’re already assuming C99.  Clarify
3195         by strengthening the bind test and omit unnecessary assignment.
3197 2018-05-05  Bruno Haible  <bruno@clisp.org>
3199         af_alg: Fix bug on empty files.
3200         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
3201         stream is empty.
3203 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3205         sys-limits.h: new file for crypto and safe I/O
3206         * lib/af_alg.c: Include sys-limits.h.
3207         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
3208         (afalg_stream): Also reject negative sizes for sendfile; they
3209         should not happen and the code is a bit cleaner and faster this way.
3210         * lib/safe-read.c: Include sys-limits.h.
3211         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
3212         * lib/sys-limits.h: New file, with values and commentary derived
3213         from the old safe-read.c and from GNU Emacs sysdep.c.
3214         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3215         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
3216         Add lib/sys-limits.h to Files section.
3218 2018-05-05  Bruno Haible  <bruno@clisp.org>
3220         af_alg: Improve function signature.
3221         * lib/af_alg.h (afalg_stream): Swap second and third argument.
3222         * lib/af_alg.c (afalg_stream): Likewise.
3223         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
3225 2018-05-05  Bruno Haible  <bruno@clisp.org>
3227         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
3228         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
3229         * modules/crypto/sha1 (Depends-on): Likewise.
3230         * modules/crypto/sha256 (Depends-on): Likewise.
3231         * modules/crypto/sha512 (Depends-on): Likewise.
3233 2018-05-05  Bruno Haible  <bruno@clisp.org>
3235         crypto/{md5,sha1,sha256,sha512}: Fix module description.
3236         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
3237         * modules/crypto/sha1 (Depends-on): Likewise.
3238         * modules/crypto/sha256 (Depends-on): Likewise.
3239         * modules/crypto/sha512 (Depends-on): Likewise.
3241 2018-05-05  Bruno Haible  <bruno@clisp.org>
3243         af_alg: Add documentation.
3244         * lib/af_alg.h: Add comments.
3246 2018-05-05  Bruno Haible  <bruno@clisp.org>
3248         sha512: Add tests.
3249         * tests/test-sha512.c: New file.
3250         * modules/crypto/sha512-tests: New file.
3252 2018-05-05  Bruno Haible  <bruno@clisp.org>
3254         sha256: Add tests.
3255         * tests/test-sha256.c: New file.
3256         * modules/crypto/sha256-tests: New file.
3258 2018-05-05  Bruno Haible  <bruno@clisp.org>
3260         sha1 tests: Add test for sha1_stream.
3261         * tests/test-sha1.c: Include test-digest.h.
3262         (main): Invoke test_digest_on_files on 'sha1_stream'.
3263         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
3265 2018-05-05  Bruno Haible  <bruno@clisp.org>
3267         md5 tests: Add test for md5_stream.
3268         * tests/test-digest.h: New file.
3269         * tests/test-md5.c: Include test-digest.h.
3270         (main): Invoke test_digest_on_files on 'md5_stream'.
3271         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
3273 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3275         md5sum: Use AF_ALG when available.
3276         * lib/md5.c: Include af_alg.h.
3277         (md5_stream): Use afalg_stream when available.
3278         * modules/crypto/md5 (Files): Add the af_alg files.
3279         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3280         (Makefile.am): Add af_alg.c.
3282 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3284         sha512sum: Use AF_ALG when available.
3285         * lib/sha512.c: Include af_alg.h.
3286         (sha512_stream, sha384_stream): Use afalg_stream when available.
3287         * modules/crypto/sha512 (Files): Add the af_alg files.
3288         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3289         (Makefile.am): Add af_alg.c.
3291 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3293         sha256sum: Use AF_ALG when available.
3294         * lib/sha256.c: Include af_alg.h.
3295         (sha256_stream, sha224_stream): Use afalg_stream when available.
3296         * modules/crypto/sha256 (Files): Add the af_alg files.
3297         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3298         (Makefile.am): Add af_alg.c.
3300 2018-04-28  Matteo Croce  <mcroce@redhat.com>
3302         sha1sum: Use AF_ALG when available.
3303         * lib/af_alg.h: New file.
3304         * lib/af_alg.c: New file.
3305         * lib/sha1.c: Include af_alg.h.
3306         (sha1_stream): Use afalg_stream when available.
3307         * m4/linux-if-alg.m4: New file.
3308         * modules/crypto/sha1 (Files): Add the new files.
3309         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
3310         (Makefile.am): Add af_alg.c.
3312 2018-05-05  Bruno Haible  <bruno@clisp.org>
3314         all: Replace more http URLs by https URLs.
3315         * lib/localename.c: Use https: URL.
3316         * lib/timespec.h: Likewise.
3318 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3320         maint: port more modules to GCC 8
3321         * lib/dirname.h (base_name):
3322         * lib/exclude.h (new_exclude):
3323         * lib/xstrndup.h (xstrndup):
3324         Add malloc attribute.
3325         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
3326         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
3327         This pacifies GCC 8.
3328         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3329         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
3331 2018-05-03  Bruno Haible  <bruno@clisp.org>
3333         Simplify code. Drop support for Borland C++ on Windows.
3334         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
3335         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
3336         'defined _WIN32'.
3337         * lib/canonicalize-lgpl.c: Likewise.
3338         * lib/classpath.c: Likewise.
3339         * lib/clean-temp.c: Likewise.
3340         * lib/csharpexec.c: Likewise.
3341         * lib/ctime.c: Likewise.
3342         * lib/dosname.h: Likewise.
3343         * lib/dup2.c: Likewise.
3344         * lib/errno.in.h: Likewise.
3345         * lib/error.c: Likewise.
3346         * lib/euidaccess.c: Likewise.
3347         * lib/execute.c: Likewise.
3348         * lib/fcntl.in.h: Likewise.
3349         * lib/fcntl.c: Likewise.
3350         * lib/filename.h: Likewise.
3351         * lib/findprog.c: Likewise.
3352         * lib/flock.c: Likewise.
3353         * lib/fopen.c: Likewise.
3354         * lib/freopen.c: Likewise.
3355         * lib/fstat.c: Likewise.
3356         * lib/fsync.c: Likewise.
3357         * lib/gc-gnulib.c: Likewise.
3358         * lib/get-rusage-data.c: Likewise.
3359         * lib/getaddrinfo.c: Likewise.
3360         * lib/getdelim.c: Likewise.
3361         * lib/getdtablesize.c: Likewise.
3362         * lib/gethostname.c: Likewise.
3363         * lib/getlogin.c: Likewise.
3364         * lib/getlogin_r.c: Likewise.
3365         * lib/getopt.c: Likewise.
3366         * lib/getpagesize.c: Likewise.
3367         * lib/getpass.c: Likewise.
3368         * lib/getrusage.c: Likewise.
3369         * lib/gettimeofday.c: Likewise.
3370         * lib/glob.c: Likewise.
3371         * lib/inttypes.in.h: Likewise.
3372         * lib/isapipe.c: Likewise.
3373         * lib/javaexec.c: Likewise.
3374         * lib/link.c: Likewise.
3375         * lib/localcharset.c: Likewise.
3376         * lib/localename.h: Likewise.
3377         * lib/localename.c: Likewise.
3378         * lib/localtime.c: Likewise.
3379         * lib/lseek.c: Likewise.
3380         * lib/mbsinit.c: Likewise.
3381         * lib/mkdir.c: Likewise.
3382         * lib/msvc-nothrow.h: Likewise.
3383         * lib/nanosleep.c: Likewise.
3384         * lib/nl_langinfo.c: Likewise.
3385         * lib/nonblocking.c: Likewise.
3386         * lib/nproc.c: Likewise.
3387         * lib/open.c: Likewise.
3388         * lib/openpty.c: Likewise.
3389         * lib/pathmax.h: Likewise.
3390         * lib/pipe-filter-aux.c: Likewise.
3391         * lib/pipe-filter-gi.c: Likewise.
3392         * lib/pipe-filter-ii.c: Likewise.
3393         * lib/pipe.c: Likewise.
3394         * lib/pipe2.c: Likewise.
3395         * lib/poll.c: Likewise.
3396         * lib/popen.c: Likewise.
3397         * lib/posix_openpt.c: Likewise.
3398         * lib/printf-parse.c: Likewise.
3399         * lib/progreloc.c: Likewise.
3400         * lib/putenv.c: Likewise.
3401         * lib/read.c: Likewise.
3402         * lib/relocatable.c: Likewise.
3403         * lib/rename.c: Likewise.
3404         * lib/same-inode.h: Likewise.
3405         * lib/secure_getenv.c: Likewise.
3406         * lib/select.c: Likewise.
3407         * lib/sethostname.c: Likewise.
3408         * lib/setlocale.c: Likewise.
3409         * lib/sigaction.c: Likewise.
3410         * lib/sigprocmask.c: Likewise.
3411         * lib/sleep.c: Likewise.
3412         * lib/spawn-pipe.h: Likewise.
3413         * lib/spawn-pipe.c: Likewise.
3414         * lib/spawni.c: Likewise.
3415         * lib/stat-time.h: Likewise.
3416         * lib/stat-w32.c: Likewise.
3417         * lib/stat.c: Likewise.
3418         * lib/stdio.in.h: Likewise.
3419         * lib/stdio-impl.h: Likewise.
3420         * lib/stdio-read.c: Likewise.
3421         * lib/stdio-write.c: Likewise.
3422         * lib/stdlib.in.h: Likewise.
3423         * lib/strerror_r.c: Likewise.
3424         * lib/strftime-fixes.c: Likewise.
3425         * lib/sys_stat.in.h: Likewise.
3426         * lib/sys_types.in.h: Likewise.
3427         * lib/sys_wait.in.h : Likewise.
3428         * lib/system-quote.h: Likewise.
3429         * lib/system-quote.c: Likewise.
3430         * lib/tmpdir.c: Likewise.
3431         * lib/tzset.c: Likewise.
3432         * lib/uname.c: Likewise.
3433         * lib/unistd.in.h: Likewise.
3434         * lib/utime.in.h: Likewise.
3435         * lib/utime.c: Likewise.
3436         * lib/utimecmp.c: Likewise.
3437         * lib/utimens.c: Likewise.
3438         * lib/vasnprintf.c: Likewise.
3439         * lib/vma-iter.h: Likewise.
3440         * lib/vma-iter.c: Likewise.
3441         * lib/wait-process.c: Likewise.
3442         * lib/wcsftime.c: Likewise.
3443         * lib/wctype.in.h: Likewise.
3444         * lib/write.c: Likewise.
3445         * tests/nap.h: Likewise.
3446         * tests/test-cloexec.c: Likewise.
3447         * tests/test-dup-safer.c: Likewise.
3448         * tests/test-dup2.c: Likewise.
3449         * tests/test-dup3.c: Likewise.
3450         * tests/test-fcntl.c: Likewise.
3451         * tests/test-get-rusage-data.c: Likewise.
3452         * tests/test-getaddrinfo.c: Likewise.
3453         * tests/test-getlogin.h: Likewise.
3454         * tests/test-isatty.c: Likewise.
3455         * tests/test-localename.c: Likewise.
3456         * tests/test-mbrtowc-w32.c: Likewise.
3457         * tests/test-nonblocking.c: Likewise.
3458         * tests/test-nonblocking-pipe-main.c: Likewise.
3459         * tests/test-nonblocking-socket-main.c: Likewise.
3460         * tests/test-nonblocking-socket.h: Likewise.
3461         * tests/test-pipe.c: Likewise.
3462         * tests/test-pipe2.c: Likewise.
3463         * tests/test-poll.c: Likewise.
3464         * tests/test-pthread_sigmask1.c: Likewise.
3465         * tests/test-select.h: Likewise.
3466         * tests/test-sethostname2.c: Likewise.
3467         * tests/test-sigprocmask.c: Likewise.
3468         * tests/test-spawn-pipe-child.c: Likewise.
3469         * tests/test-stat-time.c: Likewise.
3470         * tests/test-system-quote-main.c: Likewise.
3471         * tests/test-utimens-common.h: Likewise.
3472         * tests/test-wcrtomb-w32.c: Likewise.
3473         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3474         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
3475         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
3476         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
3477         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
3478         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3479         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3480         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3481         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3482         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3483         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
3484         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
3485         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3486         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3487         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
3488         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3490 2018-05-02  Bruno Haible  <bruno@clisp.org>
3492         localename: Fix test failures on mingw.
3493         * lib/localename.c (gl_locale_name_thread): Remove code specific to
3494         native Windows.
3495         (gl_locale_name_posix): Move code specific to native Windows here.
3496         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
3497         Accept result without charset suffix, as it appears on mingw.
3499 2018-04-28  Paul Smith  <psmith@gnu.org>
3501         bootstrap: Avoid gnulib operations if not needed
3502         * build-aux/bootstrap: Remove unused variable gnulib_mk.
3503         Set $gnulib_extra_files early so it can be overridden in .conf.
3504         Remove redundant --import flag from $gnulib_tool_options.
3505         Set $use_gnulib to false if no gnulib modules or files are needed.
3506         If $use_gnulib is false, don't do anything related to gnulib.
3507         A lot of this is just whitespace (indentation) changes.
3509 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
3511         manywarnings: port to GCC 8.0
3512         * build-aux/gcc-warning.spec: Add -Wcatch-value,
3513         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
3514         fact that the GCC help message now mentions operands for
3515         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
3516         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
3517         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
3518         and -Wunused-const-variable.
3519         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
3520         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
3521         -Wmissing-attributes, -Wmultistatement-macros,
3522         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
3523         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
3525 2018-04-24  Bruno Haible  <bruno@clisp.org>
3527         sys_socket: Make SO_REUSEPORT available across platforms.
3528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3529         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
3530         * doc/posix-headers/sys_socket.texi: Mention the issue.
3531         * tests/test-poll.c (SO_REUSEPORT): Remove.
3532         * tests/test-select.h: Include <sys/socket.h>.
3533         (SO_REUSEPORT): Remove.
3534         * modules/select-tests (Depends-on): Add 'sys_socket'.
3536 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
3538         localcharset: short-circuit the search for an alias on a Mac
3539         * lib/localcharset.c (get_charset_aliases): Add a tautological
3540         UTF-8 entry to speed up the search for this case.
3541         Most machines default to a UTF-8 locale nowadays, so begin the
3542         list of aliases with a dummy UTF-8 entry so it will be found
3543         immediately and a time-consuming search through the rest of
3544         the list is avoided.
3546 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
3548         fts: add comment
3549         * lib/fts.c (fts_build): Explain why ==, not >.
3550         See remark by Bernhard Voelker in:
3551         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
3553         fts: fix bug in find across filesystems
3554         This fixes a bug I introduced last summer.
3555         Problem reported by Kamil Dudka in:
3556         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
3557         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
3558         (leaf_optimization):
3559         New arg for file descriptor.  All callers changed.
3560         (fts_build): Check for whether inodes should be sorted
3561         before closing the directory.
3563 2018-04-07  Bruno Haible  <bruno@clisp.org>
3565         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
3566         Reported by Genki Sky <sky@genki.is>.
3567         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
3568         version 0.9.10 or newer.
3569         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
3570         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
3571         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
3572         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
3573         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
3575 2018-04-07  Bruno Haible  <bruno@clisp.org>
3577         execute: Update comment.
3578         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
3580 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3582         fts: treat CIFS like NFS
3583         Problem reported by Kamil Dudka in:
3584         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
3585         * lib/fts.c (S_MAGIC_CIFS): New macro.
3586         (dirent_inode_sort_may_be_useful, leaf_optimization):
3587         Treat CIFS like NFS.
3589 2018-03-28  Bruno Haible  <bruno@clisp.org>
3591         c-stack: Fix possible build failure on some platforms.
3592         * lib/c-stack.c (die): Define whenever this function is referenced.
3594 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
3596         time_rz: fix workaround for Mac OS X 10.6 infloop
3597         Problems reported by Charles A. Roelli (Bug#27736#117).
3598         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
3599         Also, discard output, which clutters the 'configure' log.
3601 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
3603         havelib: port to Solaris 10 /bin/sh
3604         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
3605         instead of '! test EXPR'.
3607 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
3609         time_rz: work around Mac OS X 10.6 infloop
3610         * doc/posix-functions/localtime.texi:
3611         * doc/posix-functions/localtime_r.texi: Mention the bug.
3612         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
3613         better to fix localtime and localtime_r instead, but that would be
3614         more work and is not needed to fix the Emacs problem.
3615         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
3617 2018-03-24  Jim Meyering  <meyering@fb.com>
3619         test-version-etc.sh: don't use diff directly: use init.sh's compare
3620         We'd rather not sacrifice readable "diff -u" output even for
3621         "diff -c" output (not supported by busybox) or for even less
3622         readable ed-style "diff" output.  So use init.sh's compare function
3623         * tests/test-version-etc.sh: Source init.sh and add "." to path.
3624         Remove "./" from invocation of test-version-etc, so we use path.
3625         And s/diff/compare/.
3626         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
3627         to get init.sh.
3628         Prompted by Eric Blake's comments in
3629         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
3631 2018-03-24  Bruno Haible  <bruno@clisp.org>
3633         javacomp-script, javacomp: Add support for Java 10.
3634         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
3635         target-version 10.
3636         * lib/javaversion.h: Update comments.
3637         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
3638         source_version_index, get_goodcode_snippet, get_failcode_snippet,
3639         TARGET_VERSION_BOUND, target_version_index,
3640         corresponding_classfile_version): Accept source_version 10 and
3641         target_version 10.
3642         * lib/javacomp.h: Update comments accordingly.
3644 2018-03-24  Bruno Haible  <bruno@clisp.org>
3646         javacomp-script, javacomp: Update comments.
3647         * m4/javacomp.m4: Update comments regarding gcj.
3648         * lib/javacomp.h: Likewise.
3650 2018-03-24  Bruno Haible  <bruno@clisp.org>
3652         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
3653         * lib/javaversion.h: Update comments.
3654         * lib/javacomp.h: Likewise.
3655         * lib/javacomp.c (default_target_version, source_version_index,
3656         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
3657         "1.9".
3658         (TARGET_VERSION_BOUND): Bump to 9.
3659         (target_version_index, corresponding_classfile_version): Recognize "9"
3660         instead of "1.9".
3661         (get_source_version_for_javac): New function.
3662         (is_envjavac_nongcj_usable, is_javac_usable): Add
3663         source_version_for_javac argument.
3664         (compile_java_class): Determine and pass source_version_for_javac.
3665         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
3666         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
3667         appropriate.
3669 2018-03-23  Jim Meyering  <meyering@fb.com>
3671         test-version-etc.sh: port to diff without -c
3672         * tests/test-version-etc.sh: Don't use diff's -c option.
3673         This caused spurious test failure on Alpine Linux, which
3674         uses busybox's diff. Reported by Assaf Gordon in
3675         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
3677 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
3679         c-stack: port to recent GCC build
3680         Problem reported by The Fireplace (Bug#30913).
3681         * lib/c-stack.c (die): Define only if used.
3683 2018-03-20  Bruno Haible  <bruno@clisp.org>
3685         euidaccess: Port to native Windows.
3686         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
3687         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
3689 2018-03-19  Bruno Haible  <bruno@clisp.org>
3691         javacomp: Add support for Java 7, 8, 9.
3692         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
3693         source_version_index, get_goodcode_snippet, get_failcode_snippet,
3694         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
3695         and target_version 1,7, 1.8, 1.9.
3696         * lib/javacomp.h: Update comments accordingly.
3698 2018-03-19  Bruno Haible  <bruno@clisp.org>
3700         javacomp-script: Add support for Java 9.
3701         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
3702         target-version 1.9.
3704 2018-03-16  Bruno Haible  <bruno@clisp.org>
3706         glob: Don't compile replacements on recent glibc systems.
3707         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
3708         REPLACE_GLOB is 0, include the system's <glob.h> and use
3709         _GL_CXXALIAS_SYS.
3710         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
3711         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
3712         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
3713         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
3714         Remove snippet/warn-on-use.
3715         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
3716         (Makefile.am): Create glob.h always. Update list of substitutions in
3717         glob.h. Don't depend on $(WARN_ON_USE_H).
3719 2018-03-16  Bruno Haible  <bruno@clisp.org>
3721         glob: Fix link error on native Windows.
3722         * modules/glob (Depends-on): Add 'lstat'.
3724 2018-03-15  Bruno Haible  <bruno@clisp.org>
3726         glob: Fix compilation error in C++ mode.
3727         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
3729 2018-03-15  Bruno Haible  <bruno@clisp.org>
3731         host-cpu-c-abi: Support for RISC-V CPU.
3732         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
3733         riscv32 and riscv64 ABIs.
3734         References:
3735         https://github.com/riscv/riscv-toolchain-conventions
3736         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
3737         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
3739 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3741         fflush: be more paranoid about libio.h change
3742         Suggested by Eli Zaretskii in:
3743         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
3744         * lib/fbufmode.c (fbufmode):
3745         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
3746         (disable_seek_optimization, rpl_fflush):
3747         * lib/fpending.c (__fpending):
3748         * lib/fpurge.c (fpurge):
3749         * lib/freadable.c (freadable):
3750         * lib/freadahead.c (freadahead):
3751         * lib/freading.c (freading):
3752         * lib/freadptr.c (freadptr):
3753         * lib/freadseek.c (freadptrinc):
3754         * lib/fseeko.c (fseeko):
3755         * lib/fseterr.c (fseterr):
3756         * lib/fwritable.c (fwritable):
3757         * lib/fwriting.c (fwriting):
3758         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
3760 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
3762         maint: write-file-hooks -> before-save-hook
3763         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
3764         it's time to use the recommended replacement.
3765         Problem reported by Glenn Morris in:
3766         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
3767         * build-aux/announce-gen, build-aux/bootstrap:
3768         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
3769         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
3770         * build-aux/gnu-web-doc-update, build-aux/gnupload:
3771         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
3772         * build-aux/update-copyright, build-aux/useless-if-before-free:
3773         * build-aux/vc-list-files:
3774         Update hook usage for files where Gnulib is the canonical source.
3776 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
3778         binary-io: pacify gcc -Wunused-parameter
3779         Problem reported by Reuben Thomas in:
3780         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
3781         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
3782         Use _GL_UNUSED where appropriate.
3784         fflush: adjust to glibc 2.28 libio.h removal
3785         Problem reported by Daniel P. Berrangé in:
3786         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
3787         * lib/fbufmode.c (fbufmode):
3788         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
3789         (disable_seek_optimization, rpl_fflush):
3790         * lib/fpending.c (__fpending):
3791         * lib/fpurge.c (fpurge):
3792         * lib/freadable.c (freadable):
3793         * lib/freadahead.c (freadahead):
3794         * lib/freading.c (freading):
3795         * lib/freadptr.c (freadptr):
3796         * lib/freadseek.c (freadptrinc):
3797         * lib/fseeko.c (fseeko):
3798         * lib/fseterr.c (fseterr):
3799         * lib/fwritable.c (fwritable):
3800         * lib/fwriting.c (fwriting):
3801         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
3802         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
3803         Define if not already defined.
3805 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
3807         environ: fix link error on 32-bit Cygwin
3808         Problem reported for GNU Emacs by Ken Brown in:
3809         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
3810         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
3812 2018-02-24  Bruno Haible  <bruno@clisp.org>
3814         mbrtowc tests: Fix regression on glibc.
3815         Reported by Bernhard Voelker.
3816         * tests/test-mbrtowc.c (main): Fix expected value of wc.
3818 2018-02-24  Bruno Haible  <bruno@clisp.org>
3820         striconveha, uniconv/*: Avoid test failures on musl libc.
3821         * tests/iconvsupport.c: New file.
3822         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
3823         does not support the ISO-2022-JP-2 encoding.
3824         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
3825         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
3826         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
3827         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
3828         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
3829         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
3830         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
3831         (Makefile.am): Link test-striconveha with iconvsupport.o.
3832         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
3833         tests/iconvsupport.c.
3834         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
3835         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
3836         tests/iconvsupport.c.
3837         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
3838         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
3839         tests/iconvsupport.c.
3840         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
3841         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
3842         tests/iconvsupport.c.
3843         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
3844         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
3845         tests/iconvsupport.c.
3846         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
3847         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
3848         tests/iconvsupport.c.
3849         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
3851 2018-02-24  Bruno Haible  <bruno@clisp.org>
3853         localename: Add support for musl libc.
3854         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
3855         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
3856         on Linux platforms which define NL_LOCALE_NAME.
3858 2018-02-24  Bruno Haible  <bruno@clisp.org>
3860         mbrtowc tests: Don't make assumptions about the charset the C locale.
3861         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
3862         particular mapping in the C locale.
3864 2018-02-24  Bruno Haible  <bruno@clisp.org>
3866         ptsname_r: Don't expect that this function sets errno.
3867         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
3868         from ptsname_r().
3869         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
3871 2018-02-23  Bruno Haible  <bruno@clisp.org>
3873         xmalloca: pacify gcc -Wbad-function-cast
3874         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
3876 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
3878         nl_langinfo: pacify gcc -Wunused-function
3879         * lib/nl_langinfo.c (ctype_codeset): Do not define if
3880         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
3881         this case.  Without this change, I got a diagnostic when building
3882         coreutils on Fedora 27 with gcc 7.3.1 20180130.
3884         same: pacify gcc -Wunused-variable
3885         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
3886         Omit unused variable.
3888         malloca: pacify gcc -Wbad-function-cast
3889         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
3890         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
3891         To pacify GCC, I had to cast alloca’s result to some type other
3892         than void * before casting that to uintptr_t.
3894 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3896         utimecmp: new function utimecmpat
3897         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
3898         Do not include utimens.h.
3899         (utimecmpat): New function, generalizing utimecmp.
3900         (utimecmp): Now a thin layer around utimecmpat.
3901         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
3902         utimensat instead of on lstat and utimens.
3904         same: new function same_nameat
3905         * lib/same.c: Include fcntl.h.
3906         * lib/same.c (same_nameat): New function, generalizing same_name.
3907         (same_name): Now a thin layer around same_nameat.
3908         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
3909         * modules/same (Depends-on): Depend on fstatat, openat.
3911 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
3913         warnings: Add support for Objective C.
3914         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
3915         macro.
3917 2018-02-17  Bruno Haible  <bruno@clisp.org>
3919         lock: Fix test-once1 crash on FreeBSD11.
3920         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
3921         'pthread_create', not 'pthread_cancel'.
3923 2018-02-17  Bruno Haible  <bruno@clisp.org>
3925         lock: Add test of gl_once.
3926         * tests/test-once.c: New file.
3927         * modules/lock-tests (Files): Add it.
3928         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
3930 2018-02-17  Bruno Haible  <bruno@clisp.org>
3932         thread: Fix compilation error on IRIX.
3933         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
3934         needed; include it outside the C++ extern "C" {} block.
3935         * doc/posix-headers/pthread.texi: Mention the problem with
3936         pthread_atfork on IRIX.
3938 2018-02-04  Bruno Haible  <bruno@clisp.org>
3940         nl_langinfo: Override the system's nl_langinfo() when needed.
3941         Reported by Jim Meyering.
3942         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
3943         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
3945 2018-02-04  Bruno Haible  <bruno@clisp.org>
3947         signal-h, monetary, strings: Fix build failure in some cases.
3948         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
3949         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
3950         as delimiter in sed command, not '|'.
3951         * modules/monetary (Makefile.am): Likewise.
3952         * modules/strings (Makefile.am): Likewise.
3954 2018-02-03  Jim Meyering  <meyering@fb.com>
3956         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
3957         * top/maint.mk (sc_file_system): Don't complain about
3958         "/proc/filesystems".
3960 2018-02-03  Bruno Haible  <bruno@clisp.org>
3962         stdlib: Fix compilation error on OpenIndiana.
3963         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
3964         <sys/time.h>.
3965         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3966         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3968 2018-02-03  Bruno Haible  <bruno@clisp.org>
3970         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
3971         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
3972         and use $EGREP instead of 'grep -E'.
3973         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
3974         'grep -E'.
3976 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
3978         malloca: Add a compile-time verification.
3979         * lib/malloca.c (small_t): Verify that it is wide enough.
3980         * modules/malloca (Depends-on): Add verify.
3982 2018-02-02  Bruno Haible  <bruno@clisp.org>
3984         malloca: Add an argument check.
3985         Suggested by Paul Eggert.
3986         * lib/malloca.c (freea): Check against an invalid argument.
3988 2018-02-02  Bruno Haible  <bruno@clisp.org>
3990         localename: Add support for OpenIndiana.
3991         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
3992         Solaris 11 variants with uselocale() but without getlocalename_l().
3994 2018-02-02  Bruno Haible  <bruno@clisp.org>
3996         malloca, xmalloca: Make multithread-safe.
3997         Reported by Florian Weimer <fweimer@redhat.com>.
3998         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
3999         * lib/malloca.h (malloca): In the stack allocation case, return a
4000         pointer that is a multiple of 2 * sa_alignment_max.
4001         (sa_increment): Remove enum item.
4002         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
4003         a pointer that is a multiple of 2 * sa_alignment_max.
4004         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
4005         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
4006         HASH_TABLE_SIZE, mmalloca_results): Remove.
4007         (small_t): New type.
4008         (mmalloca, free): Rewritten.
4009         * lib/malloca.valgrind: Remove file.
4010         * modules/malloca (Files): Remove it.
4011         (Depends-on): Remove verify.
4013 2018-01-31  Bruno Haible  <bruno@clisp.org>
4015         environ: Fix link error on 64-bit Cygwin.
4016         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
4017         __declspec(dllimport) attribute.
4018         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
4020 2018-01-30  Bruno Haible  <bruno@clisp.org>
4022         get-rusage-data: Add support for Minix 3.
4023         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
4025 2018-01-30  Bruno Haible  <bruno@clisp.org>
4027         vma-iter: Add support for Minix 3.
4028         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
4029         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
4031 2018-01-27  Bruno Haible  <bruno@clisp.org>
4033         Fix malfunction of socket functions on HP-UX in 64-bit mode.
4034         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
4035         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
4036         _HPUX_ALT_XOPEN_SOCKET_API.
4037         * modules/accept (Depends-on): Add 'extensions'.
4038         * modules/getpeername (Depends-on): Likewise.
4039         * modules/getsockname (Depends-on): Likewise.
4040         * modules/getsockopt (Depends-on): Likewise.
4041         * modules/recvfrom (Depends-on): Likewise.
4042         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
4043         * doc/posix-functions/getpeername.texi: Likewise.
4044         * doc/posix-functions/getsockname.texi: Likewise.
4045         * doc/posix-functions/getsockopt.texi: Likewise.
4046         * doc/posix-functions/recvfrom.texi: Likewise.
4048 2018-01-27  Bruno Haible  <bruno@clisp.org>
4050         getsockname tests: More tests.
4051         * tests/test-getsockname.c (open_server_socket): New function, mostly
4052         copied from test-poll.c.
4053         (main): Check that getsockname fills in addr.
4054         * modules/getsockname-tests (Depends-on): Add the necessary
4055         dependencies.
4056         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
4058 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
4060         manywarnings: fix maintainer comment
4061         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
4062         it does not mistakenly think that ‘-1)’ is an option.
4064 2018-01-26  Bruno Haible  <bruno@clisp.org>
4066         langinfo: Fix last commit.
4067         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4068         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
4070 2018-01-24  Bruno Haible  <bruno@clisp.org>
4072         langinfo, nl_langinfo: Add support for alternative month names.
4073         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
4074         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
4075         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
4076         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
4077         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
4078         * doc/posix-functions/nl_langinfo.texi: Likewise.
4080 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4082         Merge strftime.c changes from glibc
4083         This incorporates:
4084         2017-11-14 [BZ #10871] Implement alternative month names
4085         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
4086         2017-06-20 Use locale_t, not __locale_t, throughout glibc
4087         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
4088         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
4089         Use locale_t, not __locale_t.
4090         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
4091         (__strftime_internal): Add support for alternate months.
4093 2018-01-23  Bruno Haible  <bruno@clisp.org>
4095         doc: Mention another prerequisite for using Gnulib.
4096         Reported at <https://stackoverflow.com/questions/48378214/>.
4097         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
4098         AC_CONFIG_HEADERS.
4100 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
4102         build: GuixSD doesn't have /bin/bash
4103         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
4105 2018-01-21  Bruno Haible  <bruno@clisp.org>
4107         Avoid test failures on Microsoft Windows Subsystem for Linux.
4108         * tests/test-fcntl.c (main): Allow a different errno.
4109         * tests/test-rename.h (test_rename): Likewise.
4110         * tests/test-renameat.c (main): Likewise.
4111         * tests/test-renameat2.c (main): Likewise.
4113 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
4115         filenamecat: make base a suffix of result
4116         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
4117         (mfile_name_concat): Always make BASE a suffix of the result, as
4118         cp expects this.  To implement this, separate with '.' instead of
4119         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
4120         * tests/test-filenamecat.c (main): Adjust tests to match
4121         current behavior.  Check that BASE_IN_RESULT points to
4122         a copy of BASE and is a suffix of the resultk, and that DIR
4123         is a prefix of the result that is no longer than the prefix
4124         indicated by BASE_IN_RESULT.
4126 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
4128         update-copyright: Handle use of ©
4129         * build-aux/update-copyright ($circle_c_re): Update regex to
4130         handle use of © in headers.
4132 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
4134         Fix -Wundef warning in user-included header lib/cdefs.h.
4135         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
4137 2018-01-04  Bruno Haible  <bruno@clisp.org>
4139         pthread_sigmask: Avoid compilation error on mingw.
4140         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4141         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
4142         macro.
4144 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
4146         test-framework-sh: ‘ps -ef’, not ‘ps ef’
4147         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
4148         Suggested by Bob Proulx (Bug#29968).
4149         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
4151 2018-01-02  Eric Blake  <eblake@redhat.com>
4153         stat-time: silence -Wunused-parameter regression
4154         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4155         Prefer attribute over cast-to-void.
4156         (stat_time_normalize): Mark st as potentially unused.
4158 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4160         test-framework-sh: avoid netstat
4161         Problem reported by Kristýna Streitová (Bug#29947).
4162         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
4163         deprecated on SuSE and it's not that important anyway.
4165 2018-01-01  Jim Meyering  <meyering@fb.com>
4167         update-copyright: add code to handle more special cases
4168         After running "make update-copyright" this year, five files
4169         required additional manual changes.  Automate those adjustments
4170         for next year.
4171         * Makefile (_year_and_prev): Define.
4172         (update-copyright): Add perl commands to induce this year's post-
4173         update-copyright adjustments.
4175 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4177         version-etc: new year
4178         * build-aux/gendocs.sh (version):
4179         * doc/gendocs_template:
4180         * doc/gendocs_template_min:
4181         * doc/gnulib.texi:
4182         * lib/version-etc.c (COPYRIGHT_YEAR):
4183         Update copyright dates by hand in templates and the like.
4185         maint: fix 'make update-copyright'
4186         * Makefile (update-copyright): Adjust to 2016-11-23 change
4187         to config/srclist-update, which changed the format of srclist.txt.
4189 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4191         chdir-safer: remove this module
4192         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
4193         * NEWS: Document removal.
4194         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
4195         * modules/chdir-safer: Remove these files.
4197 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
4199         Add cross-compilation results for GNU/Hurd.
4200         * m4/calloc.m4: Add GNU/Hurd guess.
4201         * m4/cbrtl.m4: Likewise.
4202         * m4/ceil.m4: Likewise.
4203         * m4/ceilf.m4: Likewise.
4204         * m4/ceill.m4: Likewise.
4205         * m4/chown.m4: Likewise.
4206         * m4/duplocale.m4: Likewise.
4207         * m4/exp2l.m4: Likewise.
4208         * m4/expm1.m4: Likewise.
4209         * m4/fchdir.m4: Likewise.
4210         * m4/floor.m4: Likewise.
4211         * m4/floorf.m4: Likewise.
4212         * m4/fmod.m4: Likewise.
4213         * m4/fmodf.m4: Likewise.
4214         * m4/fmodl.m4: Likewise.
4215         * m4/getcwd.m4: Likewise.
4216         * m4/getgroups.m4: Likewise.
4217         * m4/gettimeofday.m4: Likewise.
4218         * m4/hypot.m4: Likewise.
4219         * m4/hypotf.m4: Likewise.
4220         * m4/hypotl.m4: Likewise.
4221         * m4/link-follow.m4: Likewise.
4222         * m4/link.m4: Likewise.
4223         * m4/linkat.m4: Likewise.
4224         * m4/log.m4: Likewise.
4225         * m4/log10.m4: Likewise.
4226         * m4/log10f.m4: Likewise.
4227         * m4/log1p.m4: Likewise.
4228         * m4/log1pf.m4: Likewise.
4229         * m4/log1pl.m4: Likewise.
4230         * m4/log2.m4: Likewise.
4231         * m4/log2f.m4: Likewise.
4232         * m4/logf.m4: Likewise.
4233         * m4/lstat.m4: Likewise.
4234         * m4/malloc.m4: Likewise.
4235         * m4/mbrlen.m4: Likewise.
4236         * m4/mbrtowc.m4: Likewise.
4237         * m4/mkdir.m4: Likewise.
4238         * m4/mkfifo.m4: Likewise.
4239         * m4/mknod.m4: Likewise.
4240         * m4/mkstemp.m4: Likewise.
4241         * m4/modf.m4: Likewise.
4242         * m4/modff.m4: Likewise.
4243         * m4/modfl.m4: Likewise.
4244         * m4/printf.m4: Likewise.
4245         * m4/pselect.m4: Likewise.
4246         * m4/ptsname.m4: Likewise.
4247         * m4/putenv.m4: Likewise.
4248         * m4/readlink.m4: Likewise.
4249         * m4/realloc.m4: Likewise.
4250         * m4/remainder.m4: Likewise.
4251         * m4/remainderf.m4: Likewise.
4252         * m4/remainderl.m4: Likewise.
4253         * m4/rmdir.m4: Likewise.
4254         * m4/round.m4: Likewise.
4255         * m4/roundf.m4: Likewise.
4256         * m4/roundl.m4: Likewise.
4257         * m4/select.m4: Likewise.
4258         * m4/setenv.m4: Likewise.
4259         * m4/signbit.m4: Likewise.
4260         * m4/sleep.m4: Likewise.
4261         * m4/stat.m4: Likewise.
4262         * m4/strerror.m4: Likewise.
4263         * m4/strtok_r.m4: Likewise.
4264         * m4/symlink.m4: Likewise.
4265         * m4/symlinkat.m4: Likewise.
4266         * m4/trunc.m4: Likewise.
4267         * m4/truncf.m4: Likewise.
4268         * m4/truncl.m4: Likewise.
4269         * m4/tzset.m4: Likewise.
4270         * m4/ungetc.m4: Likewise.
4271         * m4/usleep.m4: Likewise.
4272         * m4/wcwidth.m4: Likewise.
4274 2017-12-28  Bruno Haible  <bruno@clisp.org>
4276         gnulib-tool: Make --conditional-dependencies work better.
4277         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
4278         * gnulib-tool (Options): Don't reject the combination of
4279         --conditional-dependencies with --with-tests.
4280         (func_emit_autoconf_snippets): Add argument referenceable_modules.
4281         Don't reference $modules.
4282         (func_import, func_create_testdir): Pass it.
4284 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4286         regex: use re_malloc etc. consistently
4287         Problem and original patch reported by Arnold Robbins in:
4288         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
4289         * lib/regcomp.c (re_comp):
4290         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
4291         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
4293 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
4294             Paul Eggert  <eggert@cs.ucla.edu>
4296         glob: Silence warning about void pointer arithmetic.
4297         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
4298         arithmetic.
4300 2017-12-15  Bruno Haible  <bruno@clisp.org>
4302         spawn-pipe: Silence a clang warning.
4303         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4304         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
4305         in this file.
4307 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4309         explicit_bzero: port to macOS + Clang 9.0.0
4310         Problem reported by Marcus Johnson (Bug#29658).
4311         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
4312         Don’t use asm.
4314 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4316         doc: Improve explanation of supporting relocatable libraries.
4317         * doc/relocatable-maint.texi (Supporting Relocation): Explain
4318         properly how to build the relocatable module for
4319         libraries. (Method and example code from Bruno Haible.)
4321 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
4323         doc: Use better texinfo tags in a few cases.
4324         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
4325         instead of @samp in a few places.
4327 2017-12-11  Bruno Haible  <bruno@clisp.org>
4329         unistr/base: Update comment.
4330         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
4332 2017-12-10  Pádraig Brady  <P@draigBrady.com>
4334         test-faccessat.c: unlink temp file to avoid subsequent test failure
4335         * tests/test-faccessat.c: Remove the file to avoid failure
4336         to open the file on subsequent runs due to being created
4337         with no permissions.
4339 2017-12-10  Bruno Haible  <bruno@clisp.org>
4341         doc: New sect. "Modifying the build rules of a Gnulib import directory".
4342         * doc/gnulib-tool.texi (Modified build rules): New node.
4344 2017-12-10  Bruno Haible  <bruno@clisp.org>
4346         doc: Tweak wording.
4347         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
4348         "binaries".
4350 2017-12-05  Sam Steingold  <sds@gnu.org>
4351             Bruno Haible  <bruno@clisp.org>
4353         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
4354         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
4355         AC_EGREP_CPP pattern.
4357 2017-12-03  Bruno Haible  <bruno@clisp.org>
4359         all: Replace more http URLs by https URLs.
4360         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
4361         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
4362         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
4363         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
4365 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
4367         Port better to CentOS 5
4368         Problems reported by Tom G. Christensen in:
4369         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
4370         * doc/glibc-functions/strverscmp.texi (strverscmp):
4371         Document strverscmp bug with glibc 2.9 and earlier.
4372         * doc/posix-functions/tzset.texi (tzset):
4373         Document that TZ with angle brackets is POSIX-2001 and later.
4374         * tests/test-nstrftime.c: Include unistd.h.
4375         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
4376         (TZ): Use it to skip tests with angle brackets in TZ,
4377         for older systems.
4379         stat: add missing module dependencies
4380         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
4381         Add stat-time.
4383 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
4385         stat: fix compilation failure on macOS Sierra
4386         Reported by Marius Schamschula <mschamschula@gmail.com> in:
4387         https://savannah.gnu.org/bugs/?52546
4388         * lib/stat.c: Add missing include of stat-time.h.
4390 2017-11-28  Jim Meyering  <meyering@fb.com>
4392         test-faccessat.c: correct BASE definition to avoid parallel test failure
4393         * tests/test-faccessat.c (BASE): Define using this file's name, not
4394         that of test-lstat.c.  Using the latter caused this test to fail
4395         sometimes when run concurrently with test-lstat.
4397 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4399         unicase: fix VPATH build
4400         * modules/unicase/special-casing (Makefile.am): Ensure that the
4401         base directory is created when generating
4402         unicase/special-casing.h.
4404 2017-11-27  Daiki Ueno  <ueno@gnu.org>
4406         libunistring: update to Unicode 9.0.0
4407         * lib/gen-uni-tables.c (fill_properties): Recognize
4408         Sentence_Terminal and Prepended_Concatenation_Mark.
4409         (is_property_default_ignorable_code_point): Exclude U+08E2.
4410         (fill_arabicshaping): Allow missing whitespace when parsing;
4411         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
4412         (output_blocks): Increase the element size of the level1 table to
4413         accommodate more blocks.
4414         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
4415         Update each class according to the standard.
4416         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
4417         E_Base_GAZ characters.
4418         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
4419         Glue_After_Zwj, and E_Base_GAZ characters.
4420         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
4421         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
4422         enum value.
4423         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
4424         value.
4425         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
4426         LBP_ZWJ, LBP_EB, and LBP_EM.
4427         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
4428         enum value.
4429         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
4430         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
4431         declaration.
4432         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
4433         (uniwbrk_table): Implement WB14.
4434         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
4435         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
4436         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
4437         uc-is-grapheme-break.
4438         * modules/unigbrk/uc-grapheme-breaks: New module.
4439         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
4440         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
4441         enum value.
4442         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
4443         * lib/unigbrk/u-grapheme-breaks.h: New file.
4444         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
4445         u-grapheme-breaks.h instead of uc_is_grapheme_break.
4446         * lib/unigbrk/uc-grapheme-breaks.c: New file.
4447         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
4448         29.
4449         * tests/unigbrk/test-uc-gbrk-prop.c
4450         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4451         GBP_GAZ, and GBP_EBG.
4452         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
4453         * tests/unigbrk/test-uc-is-grapheme-break.c
4454         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
4455         GBP_GAZ, and GBP_EBG.
4456         (main): Skip unsupported rules involving 3 or more characters,
4457         namely GB10, GB12, and GB13.
4458         * lib/uniwidth/width.c (nonspacing_table_data): Update.
4459         * all generated files under lib/uni* and tests/uni*: Regenerate.
4460         * all the affected modules: Bump version.
4462 2017-11-26  Bruno Haible  <bruno@clisp.org>
4464         strfmon_l: Fix compilation error with glibc 2.5.
4465         Reported by Tom G. Christensen <tgc@jupiterrise.com>
4466         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
4467         * lib/monetary.in.h: Include also <locale.h>.
4469 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
4471         posixtm: remove PDS_LEADING_YEAR
4472         This changes the API slightly, in a hopefully-innocuous way.
4473         Without this change the code had undefined behavior when a
4474         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
4475         Problem reported by Pádraig Brady in:
4476         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
4477         * NEWS: Mention this.
4478         * lib/posixtm.c (posix_time_parse): Treat the absence of
4479         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
4480         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
4481         present, but define it as zero, for compatibility with existing
4482         source code).  All other PDS_* values moved up.
4483         * tests/test-posixtm.c (LY): New macro.
4484         (T): Use it.  Do not expect a particular numeric encoding
4485         for PDS_CENTURY etc.
4487 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
4489         stat: work around Solaris bug with tv_nsec < 0
4490         * doc/posix-functions/fstat.texi (fstat):
4491         * doc/posix-functions/fstatat.texi (fstatat):
4492         * doc/posix-functions/lstat.texi (lstat):
4493         * doc/posix-functions/stat.texi (stat):
4494         Mention Solaris 11 bug.
4495         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
4496         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
4497         * lib/lstat.c (rpl_lstat):
4498         * lib/stat.c (rpl_stat):
4499         Normalize resulting timestamps.
4500         * lib/fstatat.c (normal_fstatat): New function.
4501         (rpl_fstatat): Use it.
4502         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
4503         (stat_time_normalize): New function.
4504         * m4/fstat.m4 (gl_FUNC_FSTAT):
4505         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
4506         * m4/lstat.m4 (gl_FUNC_LSTAT):
4507         * m4/stat.m4 (gl_FUNC_STAT):
4508         Replace on Solaris.
4509         * modules/fstat (Depends-on):
4510         * modules/fstatat (Depends-on):
4511         Add stat-time.
4512         * modules/stat-time (Depends-on): Add errno, intprops.
4514 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
4516         regex: merge from glibc
4517         * lib/regcomp.c (init_word_char): Add comments.
4519 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
4521         regex: merge from glibc
4522         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
4523         * lib/regex_internal.h (internal_function): Remove.
4524         All uses removed.
4526 2017-11-20  Bruno Haible  <bruno@clisp.org>
4528         crypto/gc-sm3: Fix buffer overrun.
4529         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
4530         Reported by Coverity.
4532 2017-11-12  Jim Meyering  <meyering@fb.com>
4534         maint: shorten https://lists.gnu.org/archive/html/... links
4535         Each /archive/html/ part can be replace with /r/.
4536         Run this to induce the change:
4537         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
4538         * ChangeLog: Perform that substitution.
4539         * Makefile: Likewise.
4540         * STATUS-libposix: Likewise.
4541         * build-aux/bootstrap: Likewise.
4542         * doc/maintain.texi: Likewise.
4543         * gnulib-tool: Likewise.
4544         * lib/allocator.h: Likewise.
4545         * lib/argp-ba.c: Likewise.
4546         * lib/argp-pv.c: Likewise.
4547         * lib/canon-host.c: Likewise.
4548         * lib/canonicalize-lgpl.c: Likewise.
4549         * lib/float.in.h: Likewise.
4550         * lib/fstat.c: Likewise.
4551         * lib/getdelim.c: Likewise.
4552         * lib/getprogname.c: Likewise.
4553         * lib/glthread/thread.h: Likewise.
4554         * lib/intprops.h: Likewise.
4555         * lib/mbsrtowcs-state.c: Likewise.
4556         * lib/safe-read.c: Likewise.
4557         * lib/signal.in.h: Likewise.
4558         * lib/stat.c: Likewise.
4559         * lib/stdbool.in.h: Likewise.
4560         * lib/stdio-impl.h: Likewise.
4561         * lib/stdio.in.h: Likewise.
4562         * lib/sysexits.in.h: Likewise.
4563         * lib/timespec.h: Likewise.
4564         * lib/wcsrtombs-state.c: Likewise.
4565         * m4/alloca.m4: Likewise.
4566         * m4/extern-inline.m4: Likewise.
4567         * m4/fstatat.m4: Likewise.
4568         * m4/gnulib-common.m4: Likewise.
4569         * m4/lib-ignore.m4: Likewise.
4570         * m4/printf.m4: Likewise.
4571         * m4/regex.m4: Likewise.
4572         * m4/stat-size.m4: Likewise.
4573         * m4/std-gnu11.m4: Likewise.
4574         * m4/stdbool.m4: Likewise.
4575         * m4/sys_types_h.m4: Likewise.
4576         * m4/threadlib.m4: Likewise.
4577         * m4/vararrays.m4: Likewise.
4578         * pygnulib/GLImport.py: Likewise.
4579         * tests/test-exp.h: Likewise.
4580         * tests/test-exp2.h: Likewise.
4581         * tests/test-expm1.h: Likewise.
4582         * tests/test-fflush2.c: Likewise.
4583         * tests/test-getopt_long.h: Likewise.
4584         * tests/test-intprops.c: Likewise.
4585         * tests/test-log.h: Likewise.
4586         * tests/test-log10.h: Likewise.
4587         * tests/test-log1p.h: Likewise.
4588         * tests/test-log2.h: Likewise.
4589         * tests/test-printf-posix.h: Likewise.
4590         * tests/test-regex.c: Likewise.
4591         * tests/test-snprintf-posix.h: Likewise.
4592         * tests/test-sprintf-posix.h: Likewise.
4593         * tests/test-stdalign.c: Likewise.
4594         * tests/test-stdbool.c: Likewise.
4595         * tests/test-vasnprintf-posix.c: Likewise.
4596         * tests/test-vasprintf-posix.c: Likewise.
4597         * top/maint.mk: Likewise.
4599 2017-11-12  Bruno Haible  <bruno@clisp.org>
4601         faccessat: Make the last change more robust.
4602         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
4603         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
4605 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
4607         faccessat: port to macOS (Bug#29231)
4608         macOS faccessat has the same bug that lstat does: if the file
4609         name ends in '/' it ignores the trailing slash.
4610         Problem reported for Emacs by Vincent Zhang.
4611         * doc/posix-functions/faccessat.texi (faccessat): Document this.
4612         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
4613         around the initial includes.  Include errno.h, string.h, sys/stat.h.
4614         (orig_faccessat) [HAVE_FACCESSAT]: New function.
4615         Include "unistd.h" after defining it.
4616         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
4617         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
4618         Handle in the usual way.
4619         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
4620         lstat dereferences symlinks, since faccessat is likely to
4621         have the same problem.
4622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
4623         * modules/faccessat (Depends-on): Add fstatat.
4624         Depend if REPLACE_FACCESSAT is 1, too.
4625         (configure.ac): Link if REPLACE_FACCESSAT is 1.
4626         * modules/faccessat-tests (Depends-on): Add symlink.
4627         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
4628         * tests/test-faccessat.c (main): Test for the bug.
4630 2017-11-11  Bruno Haible  <bruno@clisp.org>
4632         getprogname: Fix compilation error on IRIX.
4633         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
4634         'namesize'.
4636 2017-11-11  Bruno Haible  <bruno@clisp.org>
4638         year2038: Tweak last patch.
4639         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
4641 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
4643         year2038: be more insistent about 64-bit time_t
4644         Applications requiring access to arbitrary files should not be
4645         built with 32-bit time_t on hosts that have 64-bit timestamps,
4646         as this can lead to real trouble at runtime.
4647         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
4648         Check on all systems, not just MinGW.  Use a heuristic involving
4649         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
4650         output a failure or just a warning, to make it more likely that
4651         builders will select 64-bit time_t.
4653 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
4655         havelib: fix typo in previous change
4656         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
4658         Don’t use AC_EGREP_CPP if affected by CFLAGS
4659         * m4/float_h.m4 (gl_FLOAT_H):
4660         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
4661         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
4662         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
4663         * m4/year2038.m4 (gl_YEAR2038):
4664         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
4665         likely to be affected by the choice of CFLAGS, since CFLAGS are
4666         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
4667         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
4669         fstatat: pacify GCC on unusual platform
4670         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
4671         Omit, as it’s unused in this case.
4673 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
4675         timespec: prefer ‘assume’ to ‘assure’
4676         This avoids some runtime tests.  The rest of the module makes
4677         similar assumptions and there is little point to testing here.
4678         * lib/timespec.h: Include verify.h instead of assure.h.
4679         (timespec_cmp): Use ‘assume’, not ‘assure’.
4680         Also, remove an unnecessary cast to ‘int’, as lots of other
4681         code in this module now causes -Wconversion to complain, and
4682         this is a problem with -Wconversion not with the code.
4684         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
4686         Port recent gnulib-tool change to Dash
4687         * gnulib-tool (func_create_testdir): Don't assume that the shell
4688         retokenizes after expanding "$@" inside the call to
4689         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
4691 2017-10-27  Jim Meyering  <meyering@fb.com>
4693         timespec.h: use "assure" to avoid a spurious warning
4694         * lib/timespec.h: Include "assure.h" and use it to help
4695         gcc7's -Wstrict-overflow avoid a false positive warning
4696         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
4697         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
4698         * modules/timespec (Depends-on): Add assure.
4700 2017-10-29  Bruno Haible  <bruno@clisp.org>
4702         Avoid several test failures with traditional locales on Haiku.
4703         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
4704         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
4705         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
4706         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
4707         LOCALE_ZH_CN=none.
4709 2017-10-29  Bruno Haible  <bruno@clisp.org>
4711         strerror_r-posix: Fix behaviour and test failure on Haiku.
4712         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
4713         are positive. Work around return value 0 instead of ERANGE on Haiku.
4714         For unknown error numbers, use a format string consistent with perror().
4715         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
4716         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
4717         are positive.
4719 2017-10-29  Bruno Haible  <bruno@clisp.org>
4721         get-rusage-data: Avoid crash on Haiku.
4722         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
4724 2017-10-29  Bruno Haible  <bruno@clisp.org>
4726         get-rusage-as: Avoid crash on Haiku.
4727         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
4729 2017-10-29  Bruno Haible  <bruno@clisp.org>
4731         ilogbl: Ensure replacement on Haiku.
4732         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
4733         REPLACE_ILOGBL if ilogbl does not work.
4734         (gl_FUNC_ILOGBL_WORKS): New macro.
4735         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
4736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
4737         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
4738         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
4739         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
4741 2017-10-29  Bruno Haible  <bruno@clisp.org>
4743         expl: Ensure replacement on Haiku.
4744         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
4745         zero.
4746         * doc/posix-functions/expl.texi: Mention the Haiku problem.
4748 2017-10-29  Bruno Haible  <bruno@clisp.org>
4750         math: Fix test failure on Haiku.
4751         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
4752         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
4753         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
4754         * doc/posix-headers/math.texi: Mention the Haiku problem.
4756 2017-10-29  Bruno Haible  <bruno@clisp.org>
4758         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
4759         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
4760         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
4762 2017-10-29  Bruno Haible  <bruno@clisp.org>
4764         crypto/*: Verify that the header file is self-contained.
4765         * tests/test-gc-*.c: Include the module's header file immediately after
4766         <config.h>.
4767         * tests/test-hmac-*.c: Likewise.
4768         * tests/test-arcfour.c: Likewise.
4769         * tests/test-arctwo.c: Likewise.
4770         * tests/test-des.c: Likewise.
4771         * tests/test-md2.c: Likewise.
4772         * tests/test-md4.c: Likewise.
4773         * tests/test-md5.c: Likewise.
4774         * tests/test-rijndael.c: Likewise.
4775         * tests/test-sha1.c: Likewise.
4776         * tests/test-sm3.c: Likewise.
4778 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4779             Bruno Haible  <bruno@clisp.org>
4781         crypto/gc: fix build failure with -Werror=suggest-attribute=const
4782         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
4784 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4786         New module: crypto/gc-sm3
4787         * lib/gc.h: Declare SM3-related stuffs.
4788         * lib/gc-gnulib.c: Support sm3 in internal functions.
4789         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
4790         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
4791         * modules/crypto/gc-sm3: Define gc-sm3 module.
4792         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
4793         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
4794         * MODULES.html.sh: List gc-sm3 module.
4796 2017-10-29  Bruno Haible  <bruno@clisp.org>
4798         random, random_r: Mention different prototypes on Haiku.
4799         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
4800         * doc/glibc-functions/random_r.texi: Likewise.
4801         * doc/glibc-functions/initstate_r.texi: Likewise.
4802         * doc/glibc-functions/setstate_r.texi: Likewise.
4804 2017-10-28  Bruno Haible  <bruno@clisp.org>
4806         posix_spawn: Avoid spurious message in configure output.
4807         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
4808         'cmp' command.
4810 2017-10-28  Bruno Haible  <bruno@clisp.org>
4812         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
4813         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
4814         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4816 2017-10-28  Bruno Haible  <bruno@clisp.org>
4818         ioctl: Override non-POSIX declaration on Haiku.
4819         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
4820         * lib/sys_ioctl.in.h: Add comment about Haiku.
4821         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
4822         * doc/glibc-headers/sys_ioctl.texi: Likewise.
4824 2017-10-28  Bruno Haible  <bruno@clisp.org>
4826         crypto/sm3: Add overview documentation to the .h file.
4827         * lib/sm3.h: Add comments.
4829 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4831         New module: crypto/sm3
4832         This new module can be used to compute SM3 message digest of files or
4833         memory blocks according to the specification GM/T 004-2012
4834         Cryptographic Hash Algorithm SM3, published by State Cryptography
4835         Administration, China.
4836         The official SM3 cryptographic hash algorithm specification is
4837         available at
4838         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
4839         * lib/sm3.h: Declare the APIs of sm3 module.
4840         * lib/sm3.c: Implement SM3 hash algorithm.
4841         * m4/sm3.m4: m4 file for sm3 module.
4842         * modules/crypto/sm3: Define sm3 module.
4843         * tests/test-sm3.c: Implement SM3 test case.
4844         * modules/crypto/sm3-tests: Define sm3 test module.
4845         * MODULES.html.sh: List sm3 module.
4847 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4849         gc-libgcrypt: fix undefined enum type in switch statement
4850         Resolve the following build failure:
4851         lib/gc-libgcrypt.c: In function 'gc_hash_open':
4852         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
4853         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
4854              case 0:
4855              ^~~~
4856         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
4857         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
4859 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
4861         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
4862         Resolve the following build failure:
4863         lib/gc-libgcrypt.c: In function 'gc_hash_read':
4864         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
4865         in signedness [-Werror=pointer-sign]
4866             digest = gcry_md_read (ctx->gch, 0);
4867                    ^
4868         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
4870 2017-10-26  Bruno Haible  <bruno@clisp.org>
4872         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
4873         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
4874         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
4876 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
4878         glob: fix another heap buffer overflow
4879         Problem reported by Tim Rühsen in:
4880         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
4881         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
4883 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
4885         quotearg: pacify compiler re unsigned
4886         * lib/quotearg.c (quotearg_n_options):
4887         Rewrite to avoid diagnostic from overly-picky compiler.
4888         Problem reported by Sami Kerola in:
4889         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
4891         glob: fix heap buffer overflow
4892         * lib/glob.c (glob): Fix off-by-one error introduced into
4893         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
4894         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
4895         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
4896         Fix suggested by Bruno Haible.
4898 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
4900         glob: pacify fuzzer for mempcpy
4901         Problem reported by Tim Rühsen in:
4902         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
4903         * lib/glob.c (glob): Do not pass NULL to mempcpy.
4905 2017-10-12  Bruno Haible  <bruno@clisp.org>
4907         doc: Fix syntax error (regression from 2017-10-03).
4908         * doc/posix-functions/strncpy.texi: Fix syntax error.
4910 2017-10-12  Bruno Haible  <bruno@clisp.org>
4912         doc: Update for Solaris 11.3.
4913         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
4914         mention Solaris 11.3.
4915         * m4/log2.m4: Fix comments.
4916         * m4/log2f.m4: Likewise.
4917         * m4/printf.m4: Update comments.
4918         * m4/rename.m4: Likewise.
4919         * m4/strncat.m4: Likewise.
4921         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
4923 2017-10-10  Bruno Haible  <bruno@clisp.org>
4925         doc: Improve doc about ioctl.
4926         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
4927         prototype.
4929 2017-10-09  Bruno Haible  <bruno@clisp.org>
4931         wcwidth: Don't use obsolete syntax of 'test'.
4932         Reported by Eric Blake.
4933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
4934         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
4936 2017-10-09  Bruno Haible  <bruno@clisp.org>
4938         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
4939         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
4940         and Daniel P. Berrange <berrange@redhat.com>.
4941         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
4942         on glibc systems. The getopt-pfx-core.h file declares exactly what
4943         unistd.h needs, nothing more.
4945 2017-10-08  Bruno Haible  <bruno@clisp.org>
4947         vma-iter: Improve support for FreeBSD.
4948         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
4949         vma_iterate.
4950         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
4952 2017-10-08  Bruno Haible  <bruno@clisp.org>
4954         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
4955         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
4957 2017-10-07  KO Myung-Hun  <komh@chollian.net>
4959         test-framework-sh: Fix 'invalid path dir' error.
4960         On OS/2, a path separator is ';' not ':'. And ':' is used as a
4961         separator between a drive letter and directory parts.
4962         As a result, an absolute path such as x:/path/to/dir on OS/2 is
4963         treated as an invalid path dir.
4964         * tests/init.sh (PATH_SEPARATOR): Set at startup.
4965         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
4966         instead of hard coded ':'.
4968 2017-10-07  Bruno Haible  <bruno@clisp.org>
4970         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
4971         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
4972         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
4973         (rof_open): On Linux, do multiple read() calls and make sure
4974         MIN_LEFTOVER bytes are left when read() returns.
4976 2017-10-07  Bruno Haible  <bruno@clisp.org>
4978         vma-iter: Improve support for GNU/Hurd.
4979         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
4980         API, not the /proc file system.
4982 2017-10-07  Bruno Haible  <bruno@clisp.org>
4984         test-framework-sh: Don't require bash on Windows and OS/2.
4985         Reported by KO Myung-Hun.
4986         * tests/test-init.sh: Use 'shopt' only when running in bash.
4988 2017-10-06  KO Myung-Hun  <komh@chollian.net>
4990         wcwidth: check a macro version of wcwidth () as well
4991         * lib/wchar.in.h: Revert commit from 2016-01-14.
4992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
4994 2017-10-06  Bruno Haible  <bruno@clisp.org>
4996         getopt-posix: Clarify copyright header.
4997         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
4998         * lib/getopt-pfx-core.h: Likewise.
4999         * lib/getopt-pfx-ext.h: Likewise.
5000         * lib/getopt-cdefs.in.h: Likewise.
5002 2017-10-03  Bruno Haible  <bruno@clisp.org>
5004         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
5005         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
5006         gl_HOST_CPU_C_ABI.
5008 2017-10-03  Bruno Haible  <bruno@clisp.org>
5010         doc: warn about misuse of strncpy and wcsncpy.
5011         * doc/posix-functions/strcpy.texi: Describe requirements on prior
5012         memory allocation.
5013         * doc/posix-functions/wcscpy.texi: Likewise.
5014         * doc/posix-functions/strncpy.texi: Describe what this function is not
5015         useful for.
5016         * doc/posix-functions/wcsncpy.texi: Likewise.
5018 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
5020         fsuage: fix typo in previous change
5021         * lib/fsusage.c: Remove stray include of full-read.h.
5022         Problem reported by Sam Steingold for macOS (Bug#28669).
5024 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
5026         fsusage: remove SVR2 support
5027         SVR2 was obsolete by 1986 and is no longer supported by anybody,
5028         and its code was getting in the way of use of this module by
5029         Emacs, which has its own ‘read’ function anyway.
5030         * lib/fsusage.c: Do not include sys/filsys.h.
5031         (get_fs_usage): Remove SVR2-specific code.
5032         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
5033         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
5034         * modules/fsusage (Depends-on): Do not depend on full-read.
5036         Simplify autoupdate of licenses
5037         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
5038         place.
5040 2017-10-01  Bruno Haible  <bruno@clisp.org>
5042         vma-iter: Add support for GNU/Hurd.
5043         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
5044         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5046 2017-09-30  Bruno Haible  <bruno@clisp.org>
5048         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
5049         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
5050         fail when module 'largefile' is in use.
5051         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
5052         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
5053         Don't test HAVE_SYS_PROCFS_H.
5055 2017-09-30  Bruno Haible  <bruno@clisp.org>
5057         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
5058         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
5059         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
5060         * modules/havelib (Depends-on): Add host-cpu-c-abi.
5062 2017-09-30  Bruno Haible  <bruno@clisp.org>
5064         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
5065         * lib/uniname/uniname.c (unicode_name_character): Add braces around
5066         scope of local variables.
5068 2017-09-28  Bruno Haible  <bruno@clisp.org>
5070         string: code style
5071         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
5072         substitutable variables.
5073         * modules/string (Makefile.am): Likewise.
5075 2017-09-26  Bruno Haible  <bruno@clisp.org>
5077         uniname/uniname-tests: Tighten code.
5078         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
5079         local variables into one.
5081 2017-09-26  Bruno Haible  <bruno@clisp.org>
5083         vma-iter: Improvements for Linux and BSD platforms.
5084         - Add support for DragonFly BSD.
5085         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
5086         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
5087         Read the entire file into memory in a single system call.
5088         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
5089         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
5091 2017-09-26  Bruno Haible  <bruno@clisp.org>
5093         vma-iter: Provide the protection flags on FreeBSD.
5094         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
5095         skip three fields between the addresses and the protection flags.
5097 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5099         glob: remove bogus extern decl
5100         * lib/glob.c (__glob_pattern_type): Remove now-spurious
5101         extern declaration.  Problem reported by Adhemerval Zanella in:
5102         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
5104 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5106         uniname/uniname-tests: integer overflow fix
5107         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
5108         Check for integer overflow.
5110         duplocale-tests: fix unlikely crash
5111         * tests/test-duplocale.c (get_locale_dependent_values):
5112         Don’t crash with absurdly long month names.
5114         maint: fix overflow checking in nap.h
5115         * modules/chown-tests:
5116         * modules/fchownat-tests, modules/fdutimensat-tests:
5117         * modules/futimens-tests, modules/lchown-tests:
5118         * modules/stat-time-tests, modules/utime-tests:
5119         * modules/utimens-tests, modules/utimensat-tests:
5120         Depend on intprops.
5121         * tests/nap.h: Include intprops.h.
5122         (diff_timespec): Handle overflow properly.
5124         sys_types: update URL
5125         * m4/sys_types_h.m4: Use https: URL.
5127         parse-datetime: fix dependency
5128         * modules/parse-datetime (Depends-on): Depend
5129         on nstrftime, not strftime.
5131         parse-datetime, posixtm: avoid uninit access
5132         * lib/parse-datetime.y (parse_datetime2):
5133         * lib/posixtm.c (posixtime):
5134         Do not access uninitialized storage, even though the resulting
5135         value is never used.
5137 2017-09-25  Bruno Haible  <bruno@clisp.org>
5139         vma-iter: Improvements for BSD platforms.
5140         - Add support for GNU/kFreeBSD.
5141         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
5142         - Speed up on OpenBSD.
5143         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
5144         (vma_iterate_bsd): New function.
5145         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
5146         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
5147         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5148         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
5150 2017-09-23  Bruno Haible  <bruno@clisp.org>
5152         strfmon_l: New module.
5153         * modules/strfmon_l: New file.
5154         * lib/strfmon_l.c: New file.
5155         * m4/strfmon_l.m4: New file.
5156         * doc/posix-functions/strfmon_l.texi: Mention the new module.
5157         * modules/strfmon_l-tests: New file.
5158         * tests/test-strfmon_l.c: New file.
5160         monetary: New module.
5161         * modules/monetary: New file.
5162         * lib/monetary.in.h: New file.
5163         * m4/monetary_h.m4: New file.
5164         * doc/posix-headers/monetary.texi: Mention the new module.
5165         * modules/monetary-tests: New file.
5166         * tests/test-monetary.c: New file.
5167         * modules/monetary-c++-tests: New file.
5168         * tests/test-monetary-c++.cc: New file.
5169         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
5171 2017-09-23  Bruno Haible  <bruno@clisp.org>
5173         duplocale tests: Fix test crash on Linux/x86.
5174         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
5175         locale from the current thread before freeing it.
5177 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
5179         mktime: port to OpenVMS
5180         Problem reported by John E. Malmberg in:
5181         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
5182         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
5184 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
5186         manywarnings: port to GCC on 64-bit MS-Windows
5187         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
5188         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
5189         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
5191 2017-09-13  Bruno Haible  <bruno@clisp.org>
5193         all: Replace many more http URLs by https URLs. Update stale URLs.
5194         * users.txt: Remove mention of 'newts'.
5195         * lib/localename.c: Update comment about LANG_SOTHO.
5197 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5199         all: Replace many http URLs by https URLs.
5201 2017-09-12  Bruno Haible  <bruno@clisp.org>
5203         doc: Prefer https URLs where possible.
5204         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
5205         * doc/ld-output-def.texi: Remove unavailable URL.
5207 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5209         maintainer-makefile: FTP -> HTTPS
5210         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
5211         of FTP, which is planned to be decommissioned on 2017-11-01.
5213 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5215         libc-config: Fix __GNUC_PREREQ macro.
5216         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
5217         __GNUC_MINOR.
5219 2017-09-09  Bruno Haible  <bruno@clisp.org>
5221         gnulib-tool: Simplify commit from 2015-08-20.
5222         * gnulib-tool (func_add_or_update): Remove local variable
5223         is_binary_file.
5225 2017-09-08  Bruno Haible  <bruno@clisp.org>
5227         stddef: Avoid conflict with system-defined max_align_t.
5228         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
5229         Reported by Werner Lemberg <wl@gnu.org> in
5230         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
5231         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
5232         (max_align_t): Define as a macro.
5233         (GNULIB_defined_max_align_t): New macro. Guards against multiple
5234         definitions of rpl_max_align_t in different copies of gnulib-generated
5235         <stddef.h>.
5237 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5239         libc-config: port to MSVC
5240         Problems reported by Gisle Vanem in:
5241         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
5242         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
5243         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
5244         * m4/__inline.m4: New file.
5245         * modules/libc-config (Files): Add it.
5246         (Depends-on): Use it.
5248         glob: Use enum for __glob_pattern_type result
5249         From a patch proposed by Adhemerval Zanella in:
5250         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
5251         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
5252         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
5253         * lib/glob_internal.h (__glob_pattern_type):
5254         * lib/glob.c (glob):
5255         * lib/glob_pattern_p.c (__glob_pattern_p):
5256         Use them.
5258         glob: fix for use in glibc
5259         Problem reported by Adhemerval Zanella in:
5260         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
5261         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
5262         Do not redefine if _LIBC.
5264 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5266         glob: fix bugs with long login names
5267         Problem reported by Adhemerval Zanella in:
5268         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
5269         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
5270         (glob): Use the same scratch buffer for both getlogin_r and
5271         getpwnam_r.  Don’t require preallocation of the login name.  This
5272         simplifies storage allocation, and corrects the handling of
5273         long login names.
5275 2017-09-02  Bruno Haible  <bruno@clisp.org>
5277         dirent: Update doc.
5278         * doc/posix-headers/dirent.texi: More concrete list of platforms.
5280 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5282         glob: fix getpwnam_r errno typo
5283         * lib/glob.c (glob): Fix longstanding misuse of errno after
5284         getpwnam_r, which returns an error number rather than setting
5285         errno.
5287         glob: fix typo in recent change
5288         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
5289         Fix recently-introduced typo.
5291 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
5293         glob: don't save and restore errno unnecessarily
5294         * lib/glob.c (glob): Don't save and restore errno
5295         merely because we have getpwnam_r.
5297         glob: don't assume getpwnam_r
5298         * lib/glob.c (glob): Port recent patches to platforms
5299         lacking getpwnam_r.
5301         scratch_buffer: don’t use private glibc API
5302         Suggested by Florian Weimer in:
5303         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
5304         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
5305         * lib/scratch_buffer_grow.c: Rename to
5306         lib/malloc/scratch_buffer_grow.c.
5307         * lib/scratch_buffer_grow_preserve.c: Rename to
5308         lib/malloc/scratch_buffer_grow_preserve.c.
5309         * lib/scratch_buffer_set_array_size.c: Rename to
5310         lib/malloc/scratch_buffer_set_array_size.c.
5311         * lib/scratch_buffer.h: New file.
5312         * modules/scratch_buffer (Files, Makefile.am):
5313         Adjust to source-file renaming.
5315 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5317         glob: use scratch_buffer instead of extend_alloca
5318         Much of the lib/glob.c part of this patch comes from a glibc patch
5319         proposed by Adhemerval Zanella in:
5320         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
5321         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
5322         included via glob.h, does this for us now.
5323         (__set_errno): Remove, as libc-config does this for us now.
5324         Include <scratch_buffer.h>.
5325         (GETPW_R_SIZE_MAX): Remove.
5326         (glob): Use struct scratch_buffer instead of extend_alloca.
5327         * lib/glob.in.h: Include libc-config.h rather than
5328         including <sys/cdefs.h> conditionally.
5329         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
5330         (__glibc_unlikely, __restrict, weak_alias):
5331         Remove, as libc-config does this for us now.
5332         * m4/glob.m4 (gl_PREREQ_GLOB):
5333         Remove sys/cdefs.h tests; no longer needed.
5334         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
5335         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
5337         scratch_buffer: new module
5338         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
5339         * lib/scratch_buffer_grow_preserve.c:
5340         * lib/scratch_buffer_set_array_size.c:
5341         New files, copied from glibc with very minor changes that can be
5342         copied back.
5343         * modules/scratch_buffer: New file.
5345         libc-config: new module
5346         * MODULES.html.sh: Add libc-config.
5347         * lib/cdefs.h: New file, copied from the GNU C Library with very
5348         minor changes that can be copied back.
5349         * lib/libc-config.h, modules/libc-config: New files.
5351 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5353         glob: match dangling symlinks
5354         This fixes a bug I inadvertently introduced to Gnulib when I
5355         merged glibc glob back into gnulib on 2007-10-16.  This fix is
5356         inspired by a patch proposed for glibc by Adhemerval Zanella in:
5357         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
5358         * doc/posix-functions/glob.texi: Update list of affected platforms.
5359         * lib/glob.c (__lstat64): New macro.
5360         (is_dir): New function.
5361         (glob, glob_in_dir): Match symlinks even if they are dangling.
5362         (link_stat, link_exists_p): Remove.  All uses removed.
5363         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
5364         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
5365         * modules/glob-tests (Depends-on): Add symlink.
5366         * tests/test-glob.c: Include errno.h, unistd.h.
5367         (BASE): New macro.
5368         (main): Test dangling symlinks, if symlinks are supported.
5370         glob, backupfile: inode 0 is a valid inode number
5371         * doc/posix-functions/readdir.texi (readdir):
5372         * doc/posix-headers/dirent.texi (dirent.h):
5373         Document more readdir portability issues.
5374         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
5375         (numbered_backup): Don’t treat inode 0 any differently from
5376         other inode values.
5377         * lib/glob.c (struct readdir_result): Remove skip_entry member.
5378         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
5379         All uses removed.
5380         * modules/glob (Depends-on): Remove d-ino.
5382         glob: simplify symlink detection
5383         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
5384         uint8_t, as C99 does not require uint8_t.
5385         (struct readdir_result): Use it.  Do not define skip_entry unless
5386         it is needed; this saves a byte on platforms lacking d_ino.
5387         (readdir_result_type, readdir_result_skip_entry):
5388         New functions, replacing ...
5389         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
5390         ... these functions, which were removed.  This makes the callers
5391         easier to read.  All callers changed.
5392         (D_INO_TO_RESULT): Now empty if there is no d_ino.
5394 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5396         fts-tests: tag as a longrunning-test so not included by default
5397         * modules/fts-tests: This test takes about 20s on current systems,
5398         and uses about 285M of space on ext4.
5400 2017-08-30  Pádraig Brady  <P@draigBrady.com>
5402         renameat2: fix compilation on alpine linux
5403         * m4/renameat.m4: Check for <linux/fs.h> presence.
5404         * lib/renameat2.h: Only include <linux/fs.h> if present.
5405         Reported by Assaf Gordon on Alpine Linux.
5407 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5409         glob: try to port recent changes to MS-Windows
5410         Problem reported by Bruno Haible in:
5411         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
5412         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
5413         * lib/glob.in.h (__glob_pattern_p): ... to here.
5415 2017-08-24  Eric Blake  <eblake@redhat.com>
5417         warnings: fix compilation with old autoconf
5418         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
5419         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
5420         AC_DEFUN.
5421         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
5422         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
5424 2017-08-24  Bruno Haible  <bruno@clisp.org>
5426         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
5427         * modules/glob (Depends-on): Add c99.
5429 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5431         glob: fix typo that broke platforms lacking d_ino
5432         This typo also hurt performance on GNU/Linux and similar hosts.
5433         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
5434         in previous change.
5436 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5438         glob: merge from glibc with Zanella glob changes
5439         Merge glob from glibc, with changes for glob proposed
5440         by Adhemerval Zanella in the thread starting here:
5441         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
5442         plus some fixes for this merge.
5443         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
5444         New files, ported from glibc.
5445         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
5446         with __restrict.
5447         (__size_t): Remove.  All uses replaced by size_t.
5448         (size_t): Define by defining __need_size_t and including <stddef.h>.
5449         This should work even in non-glibc platforms, where any name
5450         pollution is OK.
5451         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
5452         (struct stat64): Don’t worry about __GLOB_GNULIB.
5453         (glob, globfree, glob_pattern_p): Remove macros for
5454         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
5455         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
5456         but set errno.
5457         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
5458         removed since the glibc behavior works on null pointers.
5459         Do not include stdio.h; old SunOS is irrelevant now.
5460         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
5461         Include glob_internal.h.
5462         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
5463         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
5464         worked only coincidentally.
5465         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
5466         Remove macros; now done in glob.in.h.
5467         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
5468         (glob): Properly initialize glob structure with
5469         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
5470         Remove old code using SHELL since Bash no longer
5471         uses this.
5472         (glob, prefix_array): Separate MS code better.
5473         (glob, glob_in_dir): Use C99 decls before statements when glibc
5474         does.
5475         (glob_in_dir): Remove old Amiga and VMS code.
5476         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
5477         separate files.
5478         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
5479         (__glibc_unlikely):
5480         Move here from glob.c.
5481         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
5482         (weak_alias): New macro.
5483         (__size_t): Remove.  All uses replaced by size_t.
5484         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
5485         * modules/glob (Files): Add +lib/glob_internal.h,
5486         lib/glob_pattern_p.c, lib/globfree.c.
5487         (Depends-on): Remove snippet/arg-nonnull.
5489 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5491         glob: port to clang's Undefined Sanitizer
5492         Problem reported by Tim Rühsen in:
5493         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
5494         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
5495         (glob_in_dir): Do not rely on undefined behavior in accessing
5496         struct members beyond their bounds.  Use a flexible array member
5497         instead.
5499 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5501         vc-list-files: port to Solaris 10
5502         * build-aux/vc-list-files: Don't assume test -e works.
5504 2017-08-21  Karl Berry  <karl@freefriends.org>
5506         * doc/posix-functions/srandom.texi (srandom): typo }.
5508 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5510         git-version-gen: port to Solaris 10
5511         Problem reported by Dagobert Michelsen in:
5512         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
5513         * build-aux/git-version-gen (v_from_git):
5514         Use expr instead of shell substitution.
5516 2017-08-19  Bruno Haible  <bruno@clisp.org>
5518         host-cpu-c-abi: Improve detection of MIPS ABI.
5519         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
5520         _MIPS_SIM.
5522 2017-08-17  Bruno Haible  <bruno@clisp.org>
5524         hypot tests: Fix test failure on FreeBSD 11.0/x86.
5525         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
5527 2017-08-17  Bruno Haible  <bruno@clisp.org>
5529         float: Fix LDBL_MIN value on FreeBSD/x86.
5530         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
5532 2017-08-17  Bruno Haible  <bruno@clisp.org>
5534         random: Fix test compilation failure on Cygwin 1.5.25.
5535         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
5536         HAVE_DECL_SETSTATE.
5537         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
5538         declared.
5539         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
5540         HAVE_DECL_SETSTATE.
5541         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
5542         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
5543         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
5544         * doc/posix-functions/random.texi: Likewise.
5545         * doc/posix-functions/setstate.texi: Likewise.
5546         * doc/posix-functions/srandom.texi: Likewise.
5548 2017-08-16  Bruno Haible  <bruno@clisp.org>
5550         stdnoreturn: Fix test compilation failure on Cygwin.
5551         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
5552         <stdnoreturn.h> replacement.
5553         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
5554         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
5556 2017-08-16  Bruno Haible  <bruno@clisp.org>
5558         thread: Fix conflict with pthread_sigmask module.
5559         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
5560         it's defined as a macro.
5561         * modules/thread (Depends-on): Add pthread_sigmask.
5563 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5565         rename: port better to NetBSD
5566         * doc/posix-functions/rename.texi (rename): NetBSD 7
5567         does not have the link-count bug.
5568         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
5569         broken merely because rename ("a", "b") removes "a" when the two
5570         names are hard links to the same file.
5572 2017-08-16  Bruno Haible  <bruno@clisp.org>
5574         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
5575         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
5576         the target file names with '$(srcdir)/'.
5577         * modules/unicase/locale-language (Makefile.am): Likewise.
5578         * modules/unicase/special-casing (Makefile.am): Likewise.
5579         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
5580         * modules/unictype/category-byname (Makefile.am): Likewise.
5581         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
5582         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
5583         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
5584         * modules/unictype/property-byname (Makefile.am): Likewise.
5585         * modules/unictype/scripts (Makefile.am): Likewise.
5586         * modules/uninorm/composition (Makefile.am): Likewise.
5588 2017-08-16  Bruno Haible  <bruno@clisp.org>
5590         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
5591         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
5592         value for OpenBSD.
5594 2017-08-16  Bruno Haible  <bruno@clisp.org>
5596         rename, renameat: Update doc regarding NetBSD.
5597         * doc/posix-functions/rename.texi: Clarify that when using
5598         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
5599         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
5600         version.
5602 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5604         renameat2: port better to macOS
5605         * lib/renameat2.c (renameat2): Use renameatx_np if available.
5607         futimens: don’t assume struct timespec layout
5608         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
5609         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
5610         * tests/test-fdutimensat.c (main):
5611         * tests/test-futimens.h (test_futimens):
5612         * tests/test-lutimens.h (test_lutimens):
5613         * tests/test-utimens.h (test_utimens):
5614         * tests/test-utimensat.c (main):
5615         Don’t assume that struct timespec is a two-member structure in
5616         tv_sec, tv_nsec order.  Although this is true on all platforms we
5617         know about, POSIX does not guarantee it.
5619         rename: document+test NetBSD rename
5620         Test failure reported by Bruno Haible in:
5621         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
5622         This is an area where NetBSD is better-behaved than POSIX,
5623         so allow the NetBSD behavior in tests.
5624         * doc/posix-functions/rename.texi:
5625         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
5626         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
5628 2017-08-15  Bruno Haible  <bruno@clisp.org>
5630         renameat: Ensure declaration in <stdio.h> on NetBSD.
5631         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
5632         * doc/posix-functions/renameat.texi: Mention this problem.
5634 2017-08-15  Bruno Haible  <bruno@clisp.org>
5636         duplocale: Work around NetBSD 7.0 bug.
5637         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
5638         * lib/duplocale.c: Add comment about NetBSD problem.
5639         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
5641 2017-08-15  Bruno Haible  <bruno@clisp.org>
5643         duplocale tests: Verify use with *_l functions.
5644         * modules/duplocale-tests (configure.ac): Test for uselocale and
5645         some *_l functions.
5646         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
5647         from main.
5648         (get_locale_dependent_values_from, test_with_locale_parameter): New
5649         functions.
5650         (main): Test both test_with_uselocale and test_with_locale_parameter.
5652 2017-08-15  Bruno Haible  <bruno@clisp.org>
5654         extensions: Enable NetBSD specific extensions.
5655         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
5657 2017-08-14  Bruno Haible  <bruno@clisp.org>
5659         open, openat: Update doc about O_CLOEXEC.
5660         * doc/posix-functions/open.texi: More concrete list of platforms.
5661         * doc/posix-functions/openat.texi: Likewise.
5663 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5665         open: support O_CLOEXEC
5666         * NEWS, doc/posix-functions/open.texi:
5667         * doc/posix-functions/openat.texi: Document this.
5668         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
5669         (GNULIB_defined_O_CLOEXEC): New symbol.
5670         * lib/open.c: Include cloexec.h.
5671         (open): Support O_CLOEXEC.
5672         * lib/openat.c: Include cloexec.h.
5673         (rpl_openat): Support O_CLOEXEC.
5674         * lib/popen-safer.c: Do not include cloexec.h.
5675         (open_noinherit): Remove.
5676         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
5677         * lib/save-cwd.c: Do not include cloexec.h.
5678         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
5679         * m4/open-cloexec.m4: New file.
5680         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
5681         Replace 'open' if O_CLOEXEC is not present.
5682         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
5683         Replace 'openat' if O_CLOEXEC is not present.
5684         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
5685         * modules/open (Files): Add m4/open-cloexec.m4.
5686         (Depends-on): Depend on cloexec if replacing 'open'.
5687         * modules/openat (Files): Add m4/open-cloexec.m4.
5688         (Depends-on): Depend on cloexec if replacing openat.
5689         * modules/popen-safer (Depends-on): Remove cloexec.
5690         * modules/save-cwd (Depends-on): Remove cloexec, and add
5691         fd-safer-flag and 'open'.
5693 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
5695         reallocarray: minor fixes
5696         * doc/glibc-functions/reallocarray.texi: Update version numbers.
5697         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
5698         * modules/reallocarray (License): Change from GPL to LGPL.
5699         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
5700         Indent properly and don't use tabs.
5702 2017-08-13  Darshit Shah  <darnir@gnu.org>
5704         reallocarray: New module
5705         reallocarray is a new function in glibc 2.26 to safely allocate an array
5706         of memory locations with integer overflow protection.
5707         * MODULES.html.sh: Add reallocarray.
5708         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
5709         * lib/reallocarray.c: New file to implement module reallocarray.
5710         * lib/stdlib.in.h: Add function declarations for reallocarray.
5711         * m4/reallocarray.m4: New file.
5712         * m4/stdlib_h.m4: Declare reallocarray.
5713         * modules/reallocarray: New file.
5714         * modules/reallocarray-test: New file.
5715         * modules/stdlib: Coerce stdlib.h to export reallocarray.
5716         * tests/test-reallocarray.c: New test.
5718 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5720         dirent-safer: fix cloexec race
5721         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
5722         (opendir_safer): Use F_DUPFD_CLOEXEC.
5723         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
5724         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
5725         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
5726         instead of dup_safer.
5728         fts: fix cloexec races
5729         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
5730         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
5731         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
5732         (fd_ring_check): Set cloexec flag on new file descriptors.
5733         (fts_build, fd_ring_check): While we’re at it, make sure the
5734         resulting file descriptor is not 0, 1, or 2, since that is easy.
5736 2017-08-11  Bruno Haible  <bruno@clisp.org>
5738         fts tests: Fix link error.
5739         Reported by Tom G. Christensen in
5740         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
5741         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
5743 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5745         fts: port recent changes to CentOS 6
5746         Problem reported by Tom G. Christensen in:
5747         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
5748         * lib/fts.c (fsword): New type.
5749         (struct dev_type, filesystem_type): Use it.
5750         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
5751         Also, check for f_type only if fstatfs and sys/vfs.h work.
5753 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
5755         tempname: do not depend on secure_getenv
5756         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
5757         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
5758         * modules/tempname (Depends-on): Remove secure_getenv.
5760 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
5762         extensions: add _OPENBSD_SOURCE
5763         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
5765 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
5766             Bruno Haible  <bruno@clisp.org>
5768         manywarnings: Add support for C++.
5769         * build-aux/g++-warning.spec: New file.
5770         * m4/manywarnings-c++.m4: New file.
5771         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
5772         redirects to manywarnings-c++.m4.
5773         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
5775 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5777         git-version-gen: another fix for tags with "-"
5778         * build-aux/git-version-gen: Improve fix for tags containing "-".
5779         Suggested by Markus Armbruster in:
5780         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
5782 2017-08-06  Bruno Haible  <bruno@clisp.org>
5784         warnings, manywarnings: Add support for multiple languages, not just C.
5785         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
5786         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
5787         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
5788         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
5789         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
5790         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
5791         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
5792         of the current language. If C++ is the current language, modify
5793         WARN_CXXFLAGS instead of WARN_CFLAGS.
5794         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
5795         gl_MANYWARN_ALL_GCC.
5796         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
5798 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
5800         git-version-gen: Fix for tags containing '-'
5802         Really old versions of git-describe (before v1.5.0, Feb 2007)
5803         don't have the number of commits in their long format output,
5804         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
5805         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
5806         recognizes both patterns, and normalizes the old format to the new one.
5808         Unfortunately, this normalization code gets confused when the tag
5809         contains '-'.  Reproducer:
5811             $ git-tag -m test v0.2-rc1
5812             $ build-aux/git-version-gen .tarball-version; echo
5813             build-aux/git-version-gen: WARNING: git rev-list failed
5814             UNKNOWN
5816         We take exact tag "v0.2-rc1" for the old format, extract the presumed
5817         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
5818         commits since tha tag.  Fails, because tag "v0.2" does not exist.
5820         * git-version-gen: We could perhaps drop support for versions from
5821         more than a decade ago.  But tightening the pattern match is easy
5822         enough, so do that.  Still breaks when you use version tags ending in
5823         something matching -g????, but you arguably get what you deserve then.
5825 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
5827         valgrind-tests: use ls, and cache
5828         * m4/valgrind-tests.m4: Test ls, not bash.
5829         Problem reported by Reuben Thomas.
5830         Also, cache the result so that it can be overridden.
5832 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
5834         manywarnings: port to 64-bit GCC builds of Emacs
5835         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
5836         object size rather than hardwiring 2147483647.  This is needed to
5837         build GNU Emacs, which has one conditional (and used
5838         only-in-theory) call to malloc with a literal greater than
5839         2147483647.
5841 2017-08-04  Bruno Haible  <bruno@clisp.org>
5843         Relax the license of some modules with no runtime code.
5844         * modules/std-gnu11 (License): Set to 'unlimited'.
5845         * modules/c99 (License): Likewise.
5846         Reported by Reuben Thomas <rrt@sc3d.org>.
5847         * modules/d-ino (License): Set to 'LGPL'.
5848         * modules/host-os (License): Likewise.
5849         * modules/longlong (License): Likewise.
5851 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
5853         renameat2: port to RHEL 7 + NFS
5854         * lib/renameat2.c (renameat2) [SYS_renameat2]:
5855         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
5856         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
5858 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
5860         renameat2: port to non-renameat platforms
5861         Problem reported for MSVC-2015 by Gisle Vanem in:
5862         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
5863         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
5864         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
5866 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
5868         manywarnings: port to 32-bit GCC bug
5869         Problem reported by Pino Toscano in:
5870         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
5871         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
5872         not 2**63 - 1, to work around the following GCC bug:
5873         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
5875 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5877         backupfile: new function to validate backup suffix
5878         * lib/backupfile.c (set_simple_backup_suffix): New function.
5879         (backupfile_internal): Use it.
5881         canonicalize: fix EOVERFLOW commentary
5882         Problem reported by Bruno Haible in:
5883         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
5884         * lib/canonicalize.c (canonicalize_filename_mode):
5885         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
5887         Don't interpret EOVERFLOW to mean nonexistence
5888         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
5889         may be EOVERFLOW; this is likely more useful than reporting the
5890         stat errno.
5891         * lib/glob.c (link_stat): Rename from link_exists2_p and
5892         return -1/0 instead of 0/1.  Caller changed.
5893         * lib/glob.c (link_exists_p):
5894         * lib/renameat2.c (rename_noreplace, renameat2):
5895         * lib/tempname.c (try_nocreate):
5896         If errno == EOVERFLOW then the directory entry exists, so do not
5897         act as if it does not exist.
5899         backup-rename: new module
5900         It is like backupfile, except it avoids some race conditions,
5901         and it does not output to stderr or exit.
5902         * MODULES.html.sh: Add backup-rename.
5903         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
5904         * modules/backup-rename: New files.
5905         * lib/backupfile.c: Turn this into an internals file, which
5906         contains code common to backupfile and backup_rename.  Include
5907         backupfile-internal.h instead of backupfile.h.  Do not include
5908         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
5909         renameat2.h and fcntl.h.
5910         (BACKUP_NOMEM): New constant.
5911         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
5912         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
5913         (backupfile_internal): Rename from find_backup_file_name.
5914         Support new arg RENAME.
5915         (backup_args, backup_types, get_version, xget_version):
5916         Move to lib/backup-find.c.
5917         * lib/backupfile.h (backup_file_rename): New decl.
5918         * modules/backupfile (Files): Add lib/backup-internal.h,
5919         lib/backup-find.c.
5920         (Depends-on): Add dirfd, fcntl, renameat2.
5921         (lib_SOURCES): Add backup-find.c.
5923         renameat2: port better to older Solaris
5924         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
5925         Add goto to use a label, to silence picky compilers.
5927         fts-tests: port to gcc -Wwrite-strings
5928         * tests/test-fts.c (base, base_d): New static vars.
5929         (argv, remove_tree, main): Use them.
5931 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
5933         relocatable-lib{,-lgpl}: improve documentation
5934         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
5935         Various other updates.
5937 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
5938             Bruno Haible  <bruno@clisp.org>
5940         relocatable-lib{,-lgpl}: add Valgrind suppressions
5941         * lib/relocatable.valgrind: New file.
5942         * modules/relocatable-lib (Files): Add relocatable.valgrind.
5943         * modules/relocatable-lib-lgpl: Likewise.
5945 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
5947         relocatable: Make the license on the sources the GPL.
5948         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
5949         LGPL, which was a special case so that the relocatable source files
5950         could be used without gnulib-tool, to GPL. They can still be used under
5951         the LGPL, using the --lgpl option to gnulib-tool.
5953 2017-07-30  Bruno Haible  <bruno@clisp.org>
5955         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
5956         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
5957         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
5958         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
5959         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
5961 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
5963         faccessat: document AT_SYMLINK_NOFOLLOW issue
5964         * doc/posix-functions/faccessat.texi: Modernize platform list.
5965         Document AT_SYMLINK_NOFOLLOW limitation.
5967         renameat2: port to Solaris 10
5968         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
5969         with AT_SYMLINK_NOFOLLOW (which is not portable).
5970         (renameat): Undef before using, to avoid endless recursion when
5971         the replacement renameat calls renameat2 which calls the
5972         replacement renameat.
5973         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
5974         * modules/renameat2 (Depends-on): Remove faccessat.
5975         * modules/renameat-tests (test_renameat_LDADD):
5976         * modules/renameat2-tests (test_renameat2_LDADD):
5977         Remove $(LIB_EACCESS).
5979         renameat2: new module
5980         Although the Linux syscall renameat2 is not in glibc (yet?), it is
5981         useful to have access to its RENAME_NOREPLACE flag.
5982         * MODULES.html.sh (func_all_modules): Add renameat2.
5983         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
5984         * modules/renameat2-tests, tests/test-renameat2.c: New files.
5985         * lib/renameat.c (renameat): Move most of the implementation
5986         to renameat2, and just call renameat2.
5987         * modules/renameat (Files): Remove lib/at-func2.c.
5988         (Depends-on): Depend only on renameat2.
5989         (Include): Remove <fcntl.h>.
5990         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
5991         since renameat (via renameat2) might use faccessat.
5993 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
5995         vc-list-files: Adjust the script to support git worktrees
5996         * build-aux/vc-list-files: Require existence, not directory.
5998 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6000         doc: bring MODULES.html.sh up to date
6001         Somehow a few months ago we stopped updating MODULES.html.sh.
6002         I don’t recall explicitly deciding this, so I updated it now.
6003         Alternatively I suppose we could remove it.
6004         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
6005         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
6006         truncate, utime, utime-h, windows-stat-inodes,
6007         windows-stat-override, windows-stat-timespec, year2038.  Sort.
6009 2017-07-26  Jim Meyering  <meyering@fb.com>
6011         fprintftime: fix build-break caused by recent renaming
6012         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
6013         "strftime.c".
6014         * modules/fprintftime: Depend directly on nstrftime.
6016 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6018         regex: work with GCC7's -Werror=implicit-fallthrough=
6019         * lib/regex_internal.h (FALLTHROUGH): New macro.
6020         * lib/regcomp.c (peek_token_bracket, parse_expression):
6021         * lib/regexec.c (check_node_accept): Use it.
6023 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6025         fts: simplify fts_build
6026         * lib/fts.c (fts_build): Simplify, and be lazier about
6027         calling leaf_optimization.
6029         fts: three levels of leaf optimization
6030         * lib/fts.c (enum leaf_optimization): New type with three values.
6031         (S_MAGIC_AFS): New macro.  Sort them.
6032         (leaf_optimization): Rename from leaf_optimization_applies, and
6033         return enum leaf_optimization instead of bool.  All uses changed.
6034         Add cases for unknown type and for AFS.
6035         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
6037         fts: cache dirent_inode_sort_may_be_useful too
6038         * lib/fts.c (struct dev_type): New struct.
6039         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
6040         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
6041         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
6042         Now takes FTSENT const *, not int.  All uses changed.  Use
6043         filesystem_type to cache.
6044         (link_count_optimize_ok): Remove.  Caller changed to use
6045         leaf_optimization_applies, which now uses shared cache.
6047         fts: introduce MIN_DIR_NLINK
6048         * lib/fts.c (MIN_DIR_NLINK): New constant.
6049         Use it instead of 2, whenever we are talking about link counts.
6051         fts: nlink_t signedness fixups
6052         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
6053         so that root need not be a special case later.
6054         (fts_read): Remove now-redundant test for fts_level.
6055         Do not assume that nlink_t is signed.
6056         (fts_build): Remove useless decrement of nlinks.
6057         (fts_stat): Avoid unlikely signed integer overflow later, if
6058         nlink_t is signed.
6060         fts-tests: new module
6061         * modules/fts-tests, tests/test-fts.c: New files.
6063 2017-07-23  Bruno Haible  <bruno@clisp.org>
6065         Rename module 'strftime' to 'nstrftime'.
6066         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
6067         * lib/nstrftime.c: Renamed from lib/strftime.c.
6068         * modules/nstrftime: Renamed from modules/strftime.
6069         (Files, Makefile.am): Update.
6070         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
6071         Fix comment.
6072         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
6073         (Files, Makefile.am): Update.
6074         * modules/strftime: New file, an obsolete indirection.
6075         * doc/posix-functions/strftime.texi: Update reference.
6076         * config/srclist.txt: Update info.
6077         * NEWS: Mention the change.
6079 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
6081         malloca: Silence a warning from clang's memory sanitizer.
6082         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
6083         (freea): Use it.
6085 2017-07-18  Bruno Haible  <bruno@clisp.org>
6087         host-cpu-c-abi: Fix detection of MIPS ABI.
6088         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
6089         ABI, not the CPU instruction set.
6091 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6093         explicit_bzero: new module
6094         The explicit_bzero function has been added to glibc.
6095         This module is intended to supports its use in GNU programs.
6096         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
6097         * m4/explicit_bzero.m4, modules/explicit_bzero:
6098         New files.
6099         * doc/gnulib.texi (Glibc string.h): Link to new doc.
6100         * lib/string.in.h (explicit_bzero): Declare.
6101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
6102         * modules/string (string.h): Substitute its vars.
6104 2017-07-16  Bruno Haible  <bruno@clisp.org>
6106         threadlib: Support static linking.
6107         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
6108         set gl_cv_have_weak to 'no'.
6110 2017-07-16  Bruno Haible  <bruno@clisp.org>
6112         unicase/locale-language: Fix link dependencies.
6113         * modules/unicase/locale-language (Link): New section.
6114         * modules/unicase/locale-language-tests (Makefile.am): Link
6115         test-locale-language program with $(LIBTHREAD).
6117 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6119         sys_socket: Add support for OpenVMS.
6120         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
6121         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
6123 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6125         sys_resource: Add support for OpenVMS.
6126         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
6127         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
6129 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6130             Bruno Haible  <bruno@clisp.org>
6132         math: Add support for OpenVMS.
6133         * lib/math.in.h [__VMS]: Include <fp.h>.
6134         * doc/posix-headers/math.texi: Mention OpenVMS issues.
6136 2017-07-15  Bruno Haible  <bruno@clisp.org>
6138         getdtablesize: Add minimal support for OpenVMS.
6139         Reported by John E. Malmberg <wb8tyw@qsl.net>.
6140         * modules/getdtablesize (Description): Fix.
6141         * lib/getdtablesize.c: Fix comment.
6142         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
6143         getdtablesize() function, even though the test fails.
6144         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
6145         limitation on OpenVMS.
6147 2017-07-13  Bruno Haible  <bruno@clisp.org>
6149         Revisit cross-compilation guesses.
6150         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
6152 2017-07-13  Bruno Haible  <bruno@clisp.org>
6154         Improve cross-compilation guesses for native Windows.
6155         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
6156         Windows.
6157         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
6158         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
6159         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6160         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
6161         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
6162         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6163         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6164         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6165         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6166         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
6167         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6168         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
6169         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6170         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6171         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
6172         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6173         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
6174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6175         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6176         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6177         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6178         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6179         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
6180         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
6181         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
6182         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6183         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6184         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6185         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6186         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
6187         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6188         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
6189         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6190         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
6191         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
6192         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
6193         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
6194         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6195         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6196         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6197         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6198         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6199         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
6200         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
6201         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
6202         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
6203         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
6204         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
6205         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6206         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
6207         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6208         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
6209         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
6210         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
6211         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
6212         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
6213         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
6214         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6215         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
6216         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
6217         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6218         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
6219         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6220         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6221         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6222         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6223         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
6224         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6225         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
6226         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
6227         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
6228         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
6229         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6230         * m4/regex.m4 (gl_REGEX): Likewise.
6231         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6232         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
6233         gl_FUNC_REMAINDERF_WORKS): Likewise.
6234         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
6235         gl_FUNC_REMAINDERL_WORKS): Likewise.
6236         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6237         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6238         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6239         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6240         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6241         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6242         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6243         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6244         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
6245         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6246         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
6247         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
6248         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6249         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6250         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6251         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6252         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6253         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6254         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6255         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6256         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6257         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6258         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6259         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6260         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6261         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6262         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6263         Likewise.
6264         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6265         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
6266         Windows. Enable also on Autoconf 2.70.
6267         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6268         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6269         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
6270         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
6271         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6272         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
6273         for native Windows.
6274         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
6275         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
6277 2017-07-13  Bruno Haible  <bruno@clisp.org>
6279         Improve cross-compilation guesses for native Windows.
6280         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
6281         Windows.
6282         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
6283         memchr.m4.
6284         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6286 2017-07-13  Bruno Haible  <bruno@clisp.org>
6288         Improve cross-compilation guesses for native Windows.
6289         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
6290         native Windows.
6291         (gl_FUNC_FFLUSH): Update accordingly.
6292         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
6293         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6295 2017-07-11  Bruno Haible  <bruno@clisp.org>
6297         More systematic m4 quoting and indentation.
6298         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
6299         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6300         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
6301         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6302         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6303         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
6304         gl_WINSIZE_IN_PTEM): Likewise.
6305         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
6306         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6307         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6308         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
6309         Correct indentation.
6310         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6311         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6312         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
6313         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6314         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
6315         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6317 2017-07-10  Bruno Haible  <bruno@clisp.org>
6319         round, roundf: Avoid compiler warning in configure test.
6320         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
6321         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6323 2017-07-10  Bruno Haible  <bruno@clisp.org>
6325         getlogin tests: Avoid #ifdefs when sharing code between modules.
6326         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
6327         * modules/getlogin-tests (Files): Likewise. Remove
6328         tests/test-getlogin_r.c.
6329         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
6330         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
6331         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
6332         getlogin().
6334 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6336         getlogin: don’t assume one name per uid
6337         Problem reported by Wolfgang F. Muthmann (Bug#27640).
6338         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
6339         (ttyname): Remove test.
6340         * modules/getlogin_r-tests (ttyname): Remove test.
6341         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
6342         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
6343         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
6344         getlogin rather than getlogin_r.  This avoids code duplication.
6345         (main): Use isatty and fstat rather than ttyname and stat.
6346         Use getpwnam instead of getpwuid, to be portable to test platforms
6347         that have multiple login names for the same uid.
6349 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
6350             Bruno Haible  <bruno@clisp.org>
6352         glob: Fix more memory leaks.
6353         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
6354         returning.
6355         Reported by Tim Rühsen.
6357 2017-07-10  Bruno Haible  <bruno@clisp.org>
6359         Make sure $host and $host_os are defined when used.
6360         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
6361         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
6362         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
6363         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6364         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6365         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
6366         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6367         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
6368         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6369         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
6370         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
6371         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
6372         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
6373         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
6374         m4_ifdef block.
6376 2017-07-09  Bruno Haible  <bruno@clisp.org>
6378         *printf: Fix cross-compilation guess for Solaris.
6379         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
6380         2010-12-21.
6382 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
6383             Bruno Haible  <bruno@clisp.org>
6385         vasnprintf: port to macOS 10.13
6386         Problem reported by comex in:
6387         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
6388         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
6390 2017-07-06  Bruno Haible  <bruno@clisp.org>
6392         imaxdiv tests: Fix logic.
6393         * tests/test-imaxdiv.c (main): Use == instead of =.
6394         Reported by Coverity.
6396 2017-07-06  Bruno Haible  <bruno@clisp.org>
6398         uninorm/filter: Fix use-after-free bug.
6399         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
6400         sortbuf == filter->sortbuf invariant.
6401         Reported by Coverity.
6403 2017-07-06  Bruno Haible  <bruno@clisp.org>
6405         glob: Fix more memory leaks.
6406         * lib/glob.c (glob): Free dirname before returning.
6407         Reported by Coverity and Tim Rühsen.
6409 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6411         parse-datetime: fix uninit var bug
6412         Reported by Bruno Haible in:
6413         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
6414         * lib/parse-datetime.y (parse_datetime2): Do not use
6415         uninitialized.
6417 2017-07-05  Bruno Haible  <bruno@clisp.org>
6419         doc: Update for MSVC 14.
6420         * doc/posix-headers/*.texi: Add info about MSVC 14.
6421         * doc/posix-functions/*.texi: Likewise.
6422         * doc/pastposix-functions/*.texi: Likewise.
6423         * doc/glibc-headers/*.texi: Likewise.
6424         * doc/glibc-functions/*.texi: Likewise.
6426 2017-07-05  Bruno Haible  <bruno@clisp.org>
6428         sched: Fix build failure on native Windows (regression from 2017-06-19).
6429         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
6431 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
6433         stdioext: Port to OpenVMS.
6434         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
6435         * lib/fpending.c (fpending): Remove non-working VMS specific code.
6436         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
6437         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
6438         * lib/fpurge.c (fpurge): Likewise.
6439         * lib/freadable.c (freadable): Likewise.
6440         * lib/freadahead.c (freadahead): Likewise.
6441         * lib/freading.c (freading): Likewise.
6442         * lib/freadptr.c (freadptr): Likewise.
6443         * lib/freadseek.c (freadseek): Likewise.
6444         * lib/fseeko.c (fseeko): Likewise.
6445         * lib/fseterr.c (fseterr): Likewise.
6446         * lib/fwritable.c (fwriteable): Likewise.
6447         * lib/fwriting.c (fwriting): Likewise.
6449 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
6451         glob: Declare variables at the very start of their scope.
6452         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
6453         its separate scope, so the functions will compile on Haiku.
6455 2017-07-01  Bruno Haible  <bruno@clisp.org>
6457         logbl: Work around a glibc bug on PowerPC64LE.
6458         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
6459         numbers.
6460         * doc/posix-functions/logbl.texi: Update.
6462 2017-06-29  Bruno Haible  <bruno@clisp.org>
6464         stat, fstat: Compile stat-w32.c only on platforms that need it.
6465         Suggested by Paul Eggert.
6466         * modules/stat (configure.ac): Request stat-w32.o only on native
6467         Windows.
6468         * modules/fstat (configure.ac): Likewise.
6470 2017-06-25  Bruno Haible  <bruno@clisp.org>
6472         stat: Improve last change.
6473         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
6475 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6477         stat: port to xlc 12.01
6478         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
6479         12.01 complains "Compilation unit is empty."
6481 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
6483         xalloc-oversized: port to icc
6484         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
6485         __builtin_mul_overflow if ICC is defined, as this results in
6486         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
6487         20170213.
6489 2017-06-19  Bruno Haible  <bruno@clisp.org>
6491         classpath: Avoid including config.h twice, as it produces warnings.
6492         Reported by John E. Malmberg <wb8tyw@gmail.com>.
6493         * lib/classpath.h: Conditionalize the include of config.h.
6495 2017-06-19  Bruno Haible  <bruno@clisp.org>
6496             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
6498         sched: Fix compilation failure on OpenVMS.
6499         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
6500         test whether <pthread.h> exists and defines struct sched_param.
6501         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
6503 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
6505         diffseq: port to GCC 7 with --enable-gcc-warnings
6506         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
6507         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
6508         not complain about big_snake being defined but not used.
6510 2017-06-15  Bruno Haible  <bruno@clisp.org>
6512         gettext-h: Update theoretical condition for use of variable size arrays.
6513         Reported by Paul Eggert.
6514         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
6515         to include the theoretical condition for availability of variable size
6516         arrays, if we could trust the value of __STDC_VERSION__.
6518 2017-06-12  Bruno Haible  <bruno@clisp.org>
6520         Relicense some modules under LGPLv2+.
6521         Daiki Ueno's approval is in
6522         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
6523         * modules/uniwidth/base (License): Change to LGPLv2+.
6524         * modules/uniwidth/width (License): Likewise.
6526 2017-06-11  Bruno Haible  <bruno@clisp.org>
6528         localename: Fix test failure on DragonFly BSD.
6529         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
6530         like FreeBSD.
6532 2017-06-11  Bruno Haible  <bruno@clisp.org>
6534         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
6535         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
6536         * lib/float.in.h: Likewise.
6537         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
6539 2017-06-11  Bruno Haible  <bruno@clisp.org>
6541         gnulib-tool: Clean up after autotools.
6542         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
6543         useless directory left over by the Autotools.
6545 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
6547         getopt-posix: port to glibc 2.25.90
6548         Problem reported by Daniel P. Berrange in:
6549         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
6550         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
6551         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
6552         #undef if __GETOPT_PREFIX is defined.
6554 2017-06-11  Bruno Haible  <bruno@clisp.org>
6556         strtod-obsolete: Fix license.
6557         * modules/strtod-obsolete (License): Change to LGPL.
6559 2017-06-10  Jim Meyering  <meyering@fb.com>
6561         maint: update to work with GCC7's -Werror=implicit-fallthrough=
6562         * lib/savewd.c (FALLTHROUGH): Define.
6563         (savewd_save, savewd_restore): Use this, rather than a comment,
6564         whenever one switch case falls through into the next.
6566 2017-06-08  Bruno Haible  <bruno@clisp.org>
6568         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
6569         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
6570         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
6571         case.
6573 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
6575         doc: remove robots, add prereqs
6576         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
6577         builds.  Simon's robot site does not seem to be up, so remove
6578         mentions of it for now.
6580 2017-06-08  Bruno Haible  <bruno@clisp.org>
6582         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
6583         * gnulib-tool (func_symlink_target): New function, extracted from
6584         func_symlink.
6585         (func_symlink, func_symlink_if_changed): Use it.
6587 2017-06-08  Bruno Haible  <bruno@clisp.org>
6589         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
6590         * gnulib-tool (func_ln_s): Determine cp_src correctly.
6592 2017-06-07  Bruno Haible  <bruno@clisp.org>
6594         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
6595         Reported by John E. Malmberg <wb8tyw@gmail.com> in
6596         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
6597         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
6598         override, pass 2 arguments to getcwd, not 3.
6600 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
6602         same-inode: port better to VMS 8.2 and later
6603         Problem reported by John E. Malmberg in:
6604         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
6605         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
6606         Use the usual POSIX definition.
6607         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
6609 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6611         error: fix POSIX violation for va_end
6612         Problem reported by Bruno Haible in:
6613         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
6614         * lib/error.c (error_tail): Do not call va_end here.
6615         (error, error_at_line): Call it here instead.
6617 2017-05-28  Bruno Haible  <bruno@clisp.org>
6619         c-strtod: Make it usable in C++ mode.
6620         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
6622 2017-05-25  Jim Meyering  <meyering@fb.com>
6624         quotearg: fix compilation failure due to FALLTHROUGH misuse
6625         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
6626         macro back to /* fall through */ comment.  The macro can apply only
6627         to a following case statement.  Reported by Assaf Gordon.
6629 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6631         intprops: port to recent icc
6632         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
6633         but does not support __builtin_add_overflow etc.
6634         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
6635         Define to 0.
6637 2017-05-23  Karl Berry  <karl@freefriends.org>
6639         * config/srclist.txt (iconv.m4): sync broken, comment out
6640         until (hopefully) the next gettext release.
6642 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
6644         Remove repeated words in comments.
6646 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
6648         fallthrough: reinstate a FALLTHROUGH instance in quotearg
6649         quotearg.c: Reinstate this instance which is significant
6650         when the if branch is not taken.
6652 2017-05-21  Bruno Haible  <bruno@clisp.org>
6654         gnulib-tool: Add options to create hard links.
6655         * gnulib-tool (func_usage): Document options --hardlink,
6656         --local-hardlink, --more-hardlinks.
6657         (func_symlink): Renamed from func_ln.
6658         (func_symlink_if_changed): Renamed from func_ln_if_changed.
6659         (func_hardlink): New function.
6660         (copymode, lcopymode): New variables.
6661         (symbolic, lsymbolic): Remove variables.
6662         (Options): Implement options --hardlink, --local-hardlink,
6663         --more-hardlinks.
6664         (func_should_link): Renamed from func_should_symlink. Set copyaction.
6665         (func_add_file, func_update_file): Update invocation of
6666         func_should_link. Invoke func_hardlink when appropriate.
6667         (func_import): Update comments.
6668         (func_create_testdir): Update invocation of func_should_link. Invoke
6669         func_hardlink when appropriate.
6670         Finally, invoke 'git update-index --refresh' to mitigate the effects of
6671         the hard links on git.
6673 2017-05-20  Bruno Haible  <bruno@clisp.org>
6675         argp: Simplify bit manipulation.
6676         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
6677         on a signed integer type.
6679 2017-05-20  Bruno Haible  <bruno@clisp.org>
6681         Avoid wrong configure results with gcc -fsanitize=address.
6682         This completes the work done on 2016-02-06 on this topic.
6683         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
6684         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6685         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6686         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6687         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
6688         returning.
6689         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
6690         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
6691         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6692         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6693         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
6694         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
6695         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
6696         free allocated memory before returning.
6697         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6698         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
6699         objects before returning.
6700         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
6701         returning.
6703 2017-05-20  Bruno Haible  <bruno@clisp.org>
6705         gnulib-tool: Don't create hard links between gnulib and its testdirs.
6706         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
6708 2017-05-20  Bruno Haible  <bruno@clisp.org>
6710         argp, tsearch tests: Fix file list.
6711         * modules/argp-tests (Files): Add tests/macros.h.
6712         * modules/tsearch-tests (Files): Likewise.
6714 2017-05-20  Bruno Haible  <bruno@clisp.org>
6716         getopt-posix tests: Remove redundant include.
6717         * tests/test-getopt.h: Don't include "macros.h". It's already included
6718         by tests/test-getopt-main.h.
6720 2017-05-19  Jim Meyering  <meyering@fb.com>
6722         dfa: two small simplifications
6723         * lib/dfa.c (build_state): Avoid repeating longer expressions.
6725 2017-05-18  Jim Meyering  <meyering@fb.com>
6727         fallthrough: update for GCC 7/8
6728         * lib/quotearg.c (FALLTHROUGH): New macro.
6729         Use it whenever one switch case falls through into the next,
6730         replacing "/* Fall through */" comments.  This exposed one
6731         instance of an unwarranted "fall through" comment: unwarranted
6732         because it preceded a "goto" label not a case statement.
6733         * lib/freopen-safer.c (freopen_safer): Likewise.
6734         * lib/fts.c (leaf_optimization_applies): Likewise.
6735         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
6736         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
6737         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
6738         tests/macros.h for the definition.
6739         * tests/test-argp.c (group1_parser): Likewise.
6740         * tests/test-getopt.h (getopt_loop): Likewise.
6742 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6744         argp: fix shift bug
6745         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
6746         behavior on shift overflow, caught by gcc -fsanitize=undefined.
6748         argp: fix pointer-subtraction bug
6749         * lib/argp-help.c (hol_append): Don’t subtract pointers to
6750         different arrays, as this can run afoul of -fcheck-pointer-bounds.
6751         See the thread containing Bruno Haible’s report in:
6752         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
6754 2017-05-19  Bruno Haible  <bruno@clisp.org>
6756         printf-posix tests: Avoid test failure with "gcc --coverage".
6757         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
6758         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
6759         than 5000000.
6760         * tests/test-fprintf-posix2.c (main): Likewise.
6762 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6764         closeout: don’t close stderr when sanitizing
6765         * NEWS: Document this.
6766         * lib/closeout.c (__has_feature): New macro, if not already defined.
6767         (SANITIZE_ADDRESS): New constant.
6768         (close_stdout): Don’t close stderr if sanitizing addresses.
6770 2017-05-19  Bruno Haible  <bruno@clisp.org>
6772         get-rusage-data tests: Avoid failure on Linux/glibc.
6773         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
6774         on glibc systems.
6776 2017-05-18  Bruno Haible  <bruno@clisp.org>
6778         localename: Include necessary header files on Cygwin.
6779         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
6780         where NL_LOCALE_NAME is defined.
6782 2017-05-18  Bruno Haible  <bruno@clisp.org>
6784         gettext: Update macros from gettext git.
6785         * m4/intldir.m4: Require Autoconf >= 2.60.
6786         * m4/progtest.m4: Fix typos in copyright notice.
6788 2017-05-18  Bruno Haible  <bruno@clisp.org>
6790         copy-file tests: Fix link error (regression from 2017-05-01).
6791         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6792         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
6793         $(LIB_CLOCK_GETTIME).
6795 2017-05-18  Bruno Haible  <bruno@clisp.org>
6797         unicase/special-casing: Fix incompatibility with gperf-3.0.4
6798         (regression from 2017-02-13).
6799         * lib/unicase/special-casing.in.h: Renamed from
6800         lib/unicase/special-casing.h.
6801         * modules/unicase/special-casing (Files): Add
6802         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
6803         (Makefile.am): Add rule for generating unicase/special-casing.h.
6804         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
6805         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
6806         not "special-casing.h".
6807         * lib/unicase/u*.c: Likewise.
6809 2017-05-17  Bruno Haible  <bruno@clisp.org>
6811         README: Don't ask people to read a TeXinfo file.
6812         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
6813         * README: Tell people how to read the HTML formatted manual.
6815 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
6817         parse-datetime: Fix memleak
6818         * lib/parse-datetime.y (parse_datetime2): Cleanup on
6819         localtime_rz() failure.
6821 2017-05-16  Bruno Haible  <bruno@clisp.org>
6823         javacomp: Fix handle leak.
6824         Found by Coverity.
6825         * lib/javacomp.c (get_classfile_version): Close fd before returning.
6827 2017-05-16  Bruno Haible  <bruno@clisp.org>
6829         relocate: Make it easier to reclaim allocated memory.
6830         * lib/relocatable.h (relocate2): New declaration/macro.
6831         * lib/relocatable.c (relocate2): New function.
6832         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
6833         relocate2 function.
6834         * lib/localcharset.c (relocate2): Define fallback.
6835         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
6836         allocated memory.
6837         * lib/javaversion.c (relocate2): Define fallback.
6838         (javaexec_version): Invoke relocate2 instead of relocate. Free the
6839         allocated memory.
6841 2017-05-16  Bruno Haible  <bruno@clisp.org>
6843         relocate: Simplify EMX specific code.
6844         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
6845         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
6847 2017-05-16  Bruno Haible  <bruno@clisp.org>
6849         sigpipe tests: Fix file list.
6850         * modules/sigpipe-tests (Files): Add tests/macros.h.
6852 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6854         manywarnings: update for GCC 7
6855         * build-aux/gcc-warning.spec:
6856         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
6857         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
6858         requires a non-comment fallthrough attribute.  This is a bit
6859         cleaner than the comment versions.
6860         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
6861         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
6862         Use it whenever one switch case falls through into the next.
6863         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
6864         Use FALLTHROUGH macro.
6866 2017-05-15  Bruno Haible  <bruno@clisp.org>
6868         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
6869         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
6870         @ALLOCA@, not @LTALLOCA@.
6872 2017-05-15  Bruno Haible  <bruno@clisp.org>
6874         sys_select: Avoid "was expanded before it was required" warning.
6875         * modules/sys_select (configure.ac): Require, not invoke,
6876         gl_HEADER_SYS_SELECT.
6878 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
6880         gnulib-tool: improve GNU Make debugging
6881         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
6882         Report autoconf diagnostics when it fails, in the output makefile.
6884 2017-05-14  Bruno Haible  <bruno@clisp.org>
6886         stat-time tests: Improve comment.
6887         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
6889 2017-05-14  Bruno Haible  <bruno@clisp.org>
6891         same-inode: Adapt for windows-stat-inodes.
6892         * lib/same-inode.h: Include <sys/types.h>.
6893         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
6894         * modules/same-inode (Depends-on): Add sys_types.
6896 2017-05-14  Bruno Haible  <bruno@clisp.org>
6898         windows-stat-inodes: New module.
6899         * m4/windows-stat-inodes.m4: New file.
6900         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
6901         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
6902         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
6903         (_GL_WINDOWS_STAT_INODES): New macro.
6904         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
6905         (GetFileInformationByHandleExFunc): New variable.
6906         (initialize): Initialize it.
6907         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
6908         st_ino appropriately.
6909         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
6910         a fallback, because it does not provide st_dev and st_ino values.
6911         * modules/fstat (Depends-on): Add 'verify'.
6912         * modules/windows-stat-inodes: New file.
6913         * doc/windows-stat-inodes.texi: New file.
6914         * doc/gnulib.texi: Include it.
6915         * doc/posix-headers/sys_stat.texi: Mention the new module.
6917 2017-05-14  Bruno Haible  <bruno@clisp.org>
6919         stat-time tests: Workaround for native Windows.
6920         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
6921         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
6922         New variables.
6923         (initialize_filenames): New function.
6924         (main): Invoke it.
6925         (cleanup, prepare_test): Update.
6927 2017-05-14  Bruno Haible  <bruno@clisp.org>
6929         stat-time: Adapt for windows-stat-timespec.
6930         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
6931         entire st_ctim field.
6933 2017-05-13  Jim Meyering  <meyering@fb.com>
6935         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
6936         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
6937         file that uses the assume macro, claiming that verify.h is unused.
6939 2017-05-13  Bruno Haible  <bruno@clisp.org>
6941         Use symbolic values for _WIN32_WINNT.
6942         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
6943         * lib/sethostname.c (_WIN32_WINNT): Likewise.
6945 2017-05-13  Bruno Haible  <bruno@clisp.org>
6947         year2038: New module.
6948         * m4/year2038.m4: New file.
6949         * modules/year2038: New file.
6950         * doc/year2038.texi: New file.
6951         * doc/gnulib.texi: Include it.
6953 2017-05-13  Bruno Haible  <bruno@clisp.org>
6955         largefile: Simplify.
6956         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
6957         of _GL_WINDOWS_64_BIT_ST_SIZE.
6959 2017-05-13  Bruno Haible  <bruno@clisp.org>
6961         largefile: Improve and document.
6962         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
6963         the mingw headers already define 'stat' appropriately.
6964         * modules/largefile (Description): Clarify.
6965         * doc/largefile.texi: New file.
6966         * doc/gnulib.texi: Include it.
6967         * doc/posix-headers/sys_types.texi: Update.
6969 2017-05-13  Bruno Haible  <bruno@clisp.org>
6971         truncate: New module.
6972         * lib/unistd.in.h (truncate): New declaration.
6973         * lib/truncate.c: New file.
6974         * m4/truncate.m4: New file.
6975         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
6976         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
6977         REPLACE_TRUNCATE.
6978         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
6979         HAVE_TRUNCATE, REPLACE_TRUNCATE.
6980         * modules/truncate: New file.
6981         * tests/test-unistd-c++.cc (truncate): Test signature.
6982         * doc/posix-functions/truncate.texi: Mention the new module.
6984         * tests/test-truncate.c: New file.
6985         * modules/truncate-tests: New file.
6987 2017-05-13  Bruno Haible  <bruno@clisp.org>
6989         windows-stat-timespec: New module.
6990         * modules/windows-stat-timespec: New file.
6991         * m4/windows-stat-timespec.m4: New file.
6992         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
6993         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
6994         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
6995         fields st_atim, st_mtim, st_ctim.
6996         (st_atime, st_mtime, st_ctime): Define as macros.
6997         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
6998         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
6999         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
7000         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
7001         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
7002         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
7003         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7004         FILETIME to 'struct timespec', not 'time_t'.
7005         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7006         FILETIME to 'struct timespec', not 'time_t'.
7007         * lib/stat-time.h (STAT_TIMESPEC): Define also if
7008         _GL_WINDOWS_STAT_TIMESPEC.
7009         * doc/windows-stat-timespec.texi: New file.
7010         * doc/gnulib.texi: Include it.
7012 2017-05-13  Bruno Haible  <bruno@clisp.org>
7014         windows-stat-override: New module.
7015         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
7016         definition. Define GNULIB_defined_struct_stat.
7017         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
7018         link error if this symbol is used and the corresponding module is not
7019         in use.
7020         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
7021         GNULIB_OVERRIDES_STRUCT_STAT.
7022         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7023         GNULIB_OVERRIDES_STRUCT_STAT.
7024         * modules/sys_stat (Makefile.am): Substitute
7025         GNULIB_OVERRIDES_STRUCT_STAT.
7026         * modules/windows-stat-override: New file.
7028 2017-05-13  Bruno Haible  <bruno@clisp.org>
7030         fstat: Fix module dependency conditions.
7031         * modules/fstat (Depends-on): Fix typo.
7033 2017-05-13  Bruno Haible  <bruno@clisp.org>
7035         stat, fstat: Complete removal of old native Windows code.
7036         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
7037         * lib/fstat.c: Likewise.
7038         * lib/stat-w32.c: Likewise.
7040 2017-05-13  Bruno Haible  <bruno@clisp.org>
7042         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
7043         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
7045 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7047         getopt-posix: port to mingw
7048         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
7049         Problem reported by Daniel P. Berrage in:
7050         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
7052 2017-05-11  Bruno Haible  <bruno@clisp.org>
7054         gettimeofday: Increase precision on mingw.
7055         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
7056         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
7057         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
7058         GetSystemTimePreciseAsFileTime based implementation always.
7059         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
7060         mingw.
7062 2017-05-11  Bruno Haible  <bruno@clisp.org>
7064         poll: Fix confusion between SOCKETs and FDs on native Windows.
7065         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
7066         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
7068 2017-05-11  Bruno Haible  <bruno@clisp.org>
7070         doc: Clarify doc about socket functions on native Windows.
7071         This reworks doc that was added on 2008-09-29.
7072         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
7073         clearer wording.
7074         * doc/posix-functions/accept.texi: Use clearer wording.
7075         * doc/posix-functions/bind.texi: Likewise.
7076         * doc/posix-functions/connect.texi: Likewise.
7077         * doc/posix-functions/getpeername.texi: Likewise.
7078         * doc/posix-functions/getsockname.texi: Likewise.
7079         * doc/posix-functions/getsockopt.texi: Likewise.
7080         * doc/posix-functions/ioctl.texi: Likewise.
7081         * doc/posix-functions/listen.texi: Likewise.
7082         * doc/posix-functions/recv.texi: Likewise.
7083         * doc/posix-functions/recvfrom.texi: Likewise.
7084         * doc/posix-functions/send.texi: Likewise.
7085         * doc/posix-functions/sendto.texi: Likewise.
7086         * doc/posix-functions/setsockopt.texi: Likewise.
7087         * doc/posix-functions/shutdown.texi: Likewise.
7088         * doc/posix-functions/socket.texi: Likewise.
7090 2017-05-10  Bruno Haible  <bruno@clisp.org>
7092         poll: Fix link error on native Windows.
7093         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
7095 2017-05-10  Bruno Haible  <bruno@clisp.org>
7097         time: Fix missing initialization of HAVE_TIMEZONE_T.
7098         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
7099         here...
7100         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
7101         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
7102         gl_HEADER_SYS_TIME_H_DEFAULTS.
7103         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
7104         (configure.ac): Remove useless quoting.
7106 2017-05-10  Bruno Haible  <bruno@clisp.org>
7108         Implement a way to opt out from MSVC support, part 2.
7109         * modules/msvc-inval (Include): Document recommended idiom.
7110         * modules/msvc-nothrow (Include): Likewise.
7112         Implement a way to opt out from MSVC support.
7113         This is useful for Emacs.
7114         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
7115         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
7116         * lib/error.c: Likewise.
7117         * lib/fcntl.c: Likewise.
7118         * lib/flock.c: Likewise.
7119         * lib/fstat.c: Likewise.
7120         * lib/fsync.c: Likewise.
7121         * lib/ioctl.c: Likewise.
7122         * lib/isapipe.c: Likewise.
7123         * lib/lseek.c: Likewise.
7124         * lib/nonblocking.c: Likewise.
7125         * lib/poll.c: Likewise.
7126         * lib/select.c: Likewise.
7127         * lib/sockets.h: Likewise.
7128         * lib/sockets.c: Likewise.
7129         * lib/stdio-read.c: Likewise.
7130         * lib/stdio-write.c: Likewise.
7131         * lib/utimens.c: Likewise.
7132         * lib/w32sock.h: Likewise.
7133         * lib/w32spawn.h: Likewise.
7134         * tests/test-cloexec.c: Likewise.
7135         * tests/test-dup-safer.c: Likewise.
7136         * tests/test-dup2.c: Likewise.
7137         * tests/test-dup3.c: Likewise.
7138         * tests/test-fcntl.c: Likewise.
7139         * tests/test-pipe.c: Likewise.
7140         * tests/test-pipe2.c: Likewise.
7141         * lib/ftruncate.c: Likewise.
7142         (chsize_nothrow): Renamed from chsize.
7143         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
7144         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7145         * lib/close.c: Likewise.
7146         * lib/dup.c: Likewise.
7147         * lib/fclose.c: Likewise.
7148         * lib/raise.c: Likewise.
7149         * tests/test-fgetc.c: Likewise.
7150         * tests/test-fputc.c: Likewise.
7151         * tests/test-fread.c: Likewise.
7152         * tests/test-fwrite.c: Likewise.
7153         * lib/getdtablesize.c: Likewise.
7154         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
7155         * lib/isatty.c: Don't include msvc-inval.h if
7156         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7157         Include <io.h> as an alternative to msvc-nothrow.h.
7158         * lib/read.c: Likewise.
7159         * lib/write.c: Likewise.
7160         * lib/dup2.c: Likewise.
7161         (dup2_nothrow): New function.
7162         (ms_windows_dup2): Use it.
7163         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
7164         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
7165         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
7166         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
7167         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
7168         * m4/read.m4 (gl_FUNC_READ): Likewise.
7169         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
7170         * doc/windows-without-msvc.texi: New file.
7171         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
7172         section.
7174 2017-05-10  Bruno Haible  <bruno@clisp.org>
7176         wait-process: Adjust native Windows support.
7177         * lib/wait-process.c: Use the usual condition for recognizing a native
7178         Windows platform.
7180 2017-05-10  Bruno Haible  <bruno@clisp.org>
7182         doc: New chapter "Native Windows Support".
7183         * doc/gnulib.texi (Native Windows Support): New chapter.
7184         * doc/windows-libtool.texi: Small wording changes.
7185         * doc/windows-sockets.texi: Small wording and formatting changes.
7187 2017-05-10  Bruno Haible  <bruno@clisp.org>
7189         doc: Move section "Library version handling".
7190         * doc/gnulib.texi: Move section "Library version handling"
7191         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
7193 2017-05-10  Bruno Haible  <bruno@clisp.org>
7195         doc: Move section "Running self-tests under valgrind".
7196         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
7197         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
7199 2017-05-10  Bruno Haible  <bruno@clisp.org>
7201         doc: New chapter "Build Infrastructure Modules".
7202         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
7204 2017-05-10  Bruno Haible  <bruno@clisp.org>
7206         Prepare for reordering sections in the manual.
7207         * doc/gnulib.texi: Move several sections to separate files. Include
7208         these files.
7209         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
7210         * doc/obsolete.texi: Likewise.
7211         * doc/extra-tests.texi: Likewise.
7212         * doc/transversal.texi: Likewise.
7213         * doc/namespace.texi: Likewise.
7214         * doc/check-version.texi: Likewise.
7215         * doc/windows-sockets.texi: Likewise.
7216         * doc/windows-libtool.texi: Likewise.
7217         * doc/licenses-texi.texi: Likewise.
7218         * doc/build-automation.texi: Likewise.
7219         * doc/c-locale.texi: Likewise.
7221 2017-05-10  Bruno Haible  <bruno@clisp.org>
7223         Fix instructions how to update manual on www.gnu.org.
7224         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
7226 2017-05-09  Bruno Haible  <bruno@clisp.org>
7228         tzset: Expand comment about TZ problem on native Windows.
7229         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
7230         Paul Eggert.
7231         * lib/ctime.c (rpl_ctime): Likewise.
7232         * lib/localtime.c (rpl_localtime): Likewise.
7233         * lib/mktime.c (mktime): Likewise.
7234         * lib/strftime-fixes.c (rpl_strftime): Likewise.
7235         * lib/wcsftime.c (rpl_wcsftime): Likewise.
7237 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7239         intprops: don’t depend on ‘verify’
7240         Problem reported by Ævar Arnfjörð Bjarmason in:
7241         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
7242         * lib/intprops.h: Do not include verify.h, and move compile-time
7243         checks from here ...
7244         * tests/test-intprops.c (main): ... to here, if they’re not here
7245         already.  Check widths of other standard integer types.
7246         * modules/intprops (Depends-on): Remove ‘verify’.
7248 2017-05-07  Bruno Haible  <bruno@clisp.org>
7250         utimens: On native Windows, support 100ns resolution also if fd < 0.
7251         * lib/utime.in.h: Include <time.h>.
7252         (_gl_utimens_windows): New declaration.
7253         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
7254         (utime): Invoke it.
7255         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
7256         instead of utime.
7257         * modules/utime (Depends-on): Add 'time'.
7259 2017-05-07  Bruno Haible  <bruno@clisp.org>
7261         utimens: Improve error code on native Windows.
7262         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
7263         error code EACCES, not EINVAL.
7265 2017-05-07  Bruno Haible  <bruno@clisp.org>
7267         utime: Handle more Windows error codes.
7268         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
7269         Based on explanations by Billy O'Neal.
7271 2017-05-05  Bruno Haible  <bruno@clisp.org>
7273         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
7274         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
7275         union.
7276         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
7277         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
7278         value of cipher->IV.
7280 2017-05-05  Bruno Haible  <bruno@clisp.org>
7282         wctype-h-c++-tests: Update.
7283         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
7285 2017-05-05  Bruno Haible  <bruno@clisp.org>
7287         wchar-c++-tests: Update.
7288         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
7290 2017-05-05  Bruno Haible  <bruno@clisp.org>
7292         utime-h-c++-tests: New module.
7293         * tests/test-utime-h-c++.cc: New file.
7294         (utime): Declare, missing since 2017-04-30.
7295         * modules/utime-h-c++-tests: New file.
7297 2017-05-05  Bruno Haible  <bruno@clisp.org>
7299         unistd-c++-tests: Update.
7300         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
7301         (read): Declare, missing since 2011-04-15.
7302         (sethostname): Declare, missing since 2011-12-03.
7304 2017-05-05  Bruno Haible  <bruno@clisp.org>
7306         time-c++-tests: Update.
7307         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
7308         (localtime, gmtime): Declare, missing since 2017-04-30.
7309         (ctime): Declare, missing since 2017-04-30.
7310         (strftime): Declare, missing since 2017-04-30.
7311         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
7312         2015-07-24.
7314 2017-05-05  Bruno Haible  <bruno@clisp.org>
7316         sys_resource-c++-tests: New module.
7317         * tests/test-sys_resource-c++.cc: New file.
7318         (getrusage): Declare, missing since 2012-04-13.
7319         * modules/sys_resource-c++-tests: New file.
7321 2017-05-05  Bruno Haible  <bruno@clisp.org>
7323         strings-c++-tests: New module.
7324         * tests/test-strings-c++.cc: New file.
7325         (ffs): Declare, missing since 2011-07-12.
7326         * modules/strings-c++-tests: New file.
7328 2017-05-05  Bruno Haible  <bruno@clisp.org>
7330         string-c++-tests: Update.
7331         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
7332         (ffsll): Declare, missing since 2011-07-15.
7334 2017-05-05  Bruno Haible  <bruno@clisp.org>
7336         stdlib-c++-tests: Update.
7337         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
7338         2011-10-18.
7339         (ptsname_r): Declare, missing since 2011-11-07.
7340         (qsort_r): Declare, missing since 2014-08-29.
7341         (random, srandom, initstate, setstate): Declare, missing since
7342         2012-01-14.
7343         (secure_getenv): Declare, missing since 2013-02-05.
7345 2017-05-05  Bruno Haible  <bruno@clisp.org>
7347         stdio-c++-tests: Update.
7348         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
7350 2017-05-05  Bruno Haible  <bruno@clisp.org>
7352         signal-h-c++-tests: Update.
7353         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
7355 2017-05-05  Bruno Haible  <bruno@clisp.org>
7357         math-c++-tests: Update.
7358         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
7359         (fma): Declare, missing since 2011-10-17.
7360         (fmal): Declare, missing since 2011-10-17.
7362 2017-05-05  Bruno Haible  <bruno@clisp.org>
7364         locale-c++-tests: Update.
7365         * tests/test-locale-c++.cc (localeconv): Declare, missing since
7366         2012-03-25.
7368 2017-05-05  Bruno Haible  <bruno@clisp.org>
7370         inttypes-c++-tests: New module.
7371         * tests/test-inttypes-c++.cc: New file.
7372         (strtoimax): Declare, missing since 2012-01-05.
7373         (strtoumax): Declare, missing since 2012-01-05.
7374         * modules/inttypes-c++-tests: New file.
7376 2017-05-05  Bruno Haible  <bruno@clisp.org>
7378         dirent-c++-tests: Update.
7379         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
7380         (rewinddir): Declare, missing since 2011-09-13.
7381         (dirfd): Declare, missing since 2010-03-08.
7383 2017-05-04  Bruno Haible  <bruno@clisp.org>
7385         argp: Fix mistake in 2017-04-23 commit.
7386         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
7387         assume that strerror_r returns 'int', not 'char *'.
7389 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
7391         argp: Fix typo.
7392         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
7394 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
7396         utimens: port to Emacs + MS-Windows
7397         Skip the new MS-Windows-specific code if Emacs.
7398         * lib/utimens.c [EMACS_CONFIGUATION]:
7399         Avoid new MS-Windows-specific code.
7400         (USE_SETFILETIME): New macro.
7401         (fdutimens): Use it.
7403 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
7405         tzset: update doc for TZ problems on MS-Windows
7406         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
7407         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
7408         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
7409         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
7410         * doc/posix-functions/wcsftime.texi:
7411         Mention some issues with TZ under MS-Windows.
7413 2017-05-01  Bruno Haible  <bruno@clisp.org>
7415         copy-file: Fix build error on mingw.
7416         * modules/copy-file (Depends-on): Add 'close'.
7418 2017-05-01  Bruno Haible  <bruno@clisp.org>
7420         tzset: Work around TZ problem on native Windows.
7421         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
7422         Windows, set REPLACE_TZSET to 1.
7423         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
7424         invoke '_tzset' instead of 'tzset'.
7425         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
7427         * modules/time_rz (Depends-on): Add tzset.
7428         * lib/time_rz.c (tzset): Remove fallback definition.
7429         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
7431 2017-05-01  Bruno Haible  <bruno@clisp.org>
7433         mktime: Fix dependencies.
7434         * modules/mktime (Depends-on): Add 'time'.
7436 2017-05-01  Bruno Haible  <bruno@clisp.org>
7438         New module 'localtime-buffer', split off from module 'gettimeofday'.
7439         * lib/localtime-buffer.h: New file.
7440         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
7441         * lib/time.in.h (tzset): New declaration.
7442         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
7443         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
7444         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
7445         moved to lib/localtime-buffer.c or lib/tzset.c.
7446         * m4/localtime-buffer.m4: New file.
7447         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
7448         HAVE_TZSET, REPLACE_TZSET.
7449         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
7450         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
7451         gl_LOCALTIME_BUFFER_NEEDED.
7452         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
7453         since 2007-01-18.
7454         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
7455         tzset.
7456         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
7457         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
7458         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
7459         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
7460         * modules/localtime-buffer: New file.
7461         * modules/time (Depends-on): Remove 'gettimeofday'.
7462         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
7463         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
7464         * modules/tzset (Description): Enable hyperlink to POSIX spec.
7465         (Files): Add lib/tzset.c.
7466         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
7467         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
7468         gl_TIME_MODULE_INDICATOR.
7469         * modules/gettimeofday (Depends-on): Add localtime-buffer.
7471 2017-05-01  Bruno Haible  <bruno@clisp.org>
7473         copy-file: Preserve sub-second time stamps.
7474         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
7475         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
7476         transport the time stamps from the original file to the destination
7477         file.
7478         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
7479         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
7480         utime-h.
7482 2017-05-01  Bruno Haible  <bruno@clisp.org>
7484         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
7485         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
7486         also on MSVC.
7487         Reported by Eli Zaretskii <eliz@gnu.org>.
7489 2017-05-01  Bruno Haible  <bruno@clisp.org>
7491         wchar: Fix compilation error with the original mingw.org mingw.
7492         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
7493         <stddef.h> instead.
7494         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
7495         gl_WCTYPE_H.
7496         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
7497         gl_TYPE_WINT_T_PREREQ instead.
7498         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
7499         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
7500         Reported by Eli Zaretskii <eliz@gnu.org>.
7502 2017-04-30  Bruno Haible  <bruno@clisp.org>
7504         utimecmp: Add support for native Windows.
7505         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
7507 2017-04-30  Bruno Haible  <bruno@clisp.org>
7509         utimens: Add support for native Windows.
7510         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
7511         (fdutimens): Provide a native Windows implementation, like utime.c with
7512         added tv_nsec support.
7513         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
7514         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
7516 2017-04-30  Bruno Haible  <bruno@clisp.org>
7518         wcsftime: New module.
7519         * lib/wchar.in.h (wcsftime): New declaration.
7520         * lib/wcsftime.c: New file.
7521         * m4/wcsftime.m4: New file.
7522         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
7523         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
7524         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7525         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
7526         HAVE_WCSFTIME, REPLACE_WCSFTIME.
7527         * modules/wcsftime: New file.
7528         * doc/posix-functions/wcsftime.texi: Mention the new module.
7530 2017-04-30  Bruno Haible  <bruno@clisp.org>
7532         strftime-fixes: New module.
7533         * lib/time.in.h (strftime): New declaration.
7534         * lib/strftime-fixes.c: New file.
7535         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
7536         (gl_FUNC_STRFTIME): Remove macro.
7537         * m4/strftime-fixes.m4: New file.
7538         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
7539         REPLACE_STRFTIME.
7540         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
7541         REPLACE_STRFTIME.
7542         * modules/strftime-fixes: New file.
7543         * doc/posix-functions/strftime.texi: Mention the new module.
7545 2017-04-30  Bruno Haible  <bruno@clisp.org>
7547         mktime: Work around TZ problem on native Windows.
7548         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
7549         from the native Windows workaround.
7550         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
7551         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
7552         'guessing no'.
7553         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
7554         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
7555         NEED_MKTIME_WINDOWS.
7556         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
7557         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
7558         NEED_MKTIME_INTERNAL.
7559         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
7560         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
7561         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
7562         not REPLACE_MKTIME.
7563         * doc/posix-functions/mktime.texi: Mention the native Windows
7564         workaround.
7566 2017-04-30  Bruno Haible  <bruno@clisp.org>
7568         localtime: New module.
7569         * lib/time.in.h (localtime): Declare also if requested by module
7570         'localtime'.
7571         * lib/localtime.c: New file.
7572         * m4/localtime.m4: New file.
7573         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
7574         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
7575         * modules/localtime: New file.
7576         * doc/posix-functions/localtime.texi: Mention the new module.
7578 2017-04-30  Bruno Haible  <bruno@clisp.org>
7580         ctime: New module.
7581         * lib/time.in.h (ctime): New declaration.
7582         * lib/ctime.c: New file.
7583         * m4/ctime.m4: New file.
7584         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
7585         REPLACE_CTIME.
7586         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
7587         * modules/ctime: New file.
7588         * doc/posix-functions/ctime.texi: Mention the new module.
7590 2017-04-30  Bruno Haible  <bruno@clisp.org>
7592         gettimeofday: Provide higher resolution on native Windows.
7593         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
7594         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
7595         (initialize): Initialize it.
7596         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
7597         'struct timeval'. Don't use _ftime().
7598         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
7599         <sys/timeb.h> and _ftime.
7601 2017-04-30  Bruno Haible  <bruno@clisp.org>
7603         Document the problem with the Cygwin environment variable TZ.
7604         * doc/posix-functions/tzset.texi: Add note about TZ.
7605         * doc/posix-functions/ctime.texi: Likewise.
7606         * doc/posix-functions/localtime.texi: Likewise.
7607         * doc/posix-functions/mktime.texi: Likewise.
7608         * doc/posix-functions/strftime.texi: Likewise.
7609         * doc/posix-functions/wcsftime.texi: Likewise.
7610         * doc/pastposix-functions/ftime.texi: Likewise.
7612 2017-04-30  Bruno Haible  <bruno@clisp.org>
7614         utime-tests: New module.
7615         * tests/test-utime.c: New file, based on tests/test-utimens.h.
7616         * tests/test-utimens-common.h: Include <sys/stat.h>.
7617         * modules/utime-tests: New file.
7619 2017-04-29  Bruno Haible  <bruno@clisp.org>
7621         utime: New module.
7622         * lib/utime.in.h: Add comment for snippets.
7623         (utime): New declaration.
7624         * lib/utime.c: New file.
7625         * m4/utime.m4: New file.
7626         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
7627         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
7628         REPLACE_UTIME.
7629         * modules/utime-h (Depends-on): Add snippets.
7630         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
7631         Insert snippets.
7632         * modules/utime: New file.
7633         * doc/posix-functions/utime.texi: Mention the new module.
7635 2017-04-29  Bruno Haible  <bruno@clisp.org>
7637         utime-h: Modernize handling of 'struct utimbuf'.
7638         * lib/utime.in.h: Include next <utime.h> if it exists.
7639         (utimbuf): Define to _utimbuf on native Windows.
7640         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
7641         Set UTIME_H on native Windows.
7642         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
7643         * modules/utime-h (Depends-on): Add include_next.
7644         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
7645         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
7647         * lib/utimens.c (utimbuf): Remove fallback definition.
7648         * m4/utimens.m4 (gl_UTIMENS): Don't require
7649         gl_CHECK_TYPE_STRUCT_UTIMBUF.
7650         * m4/utimbuf.m4: Remove file.
7651         * modules/utimens (Files): Remove m4/utimbuf.m4.
7653 2017-04-29  Bruno Haible  <bruno@clisp.org>
7655         Make use of module 'utime-h'.
7656         * modules/copy-file (Depends-on): Add utime-h.
7657         * lib/copy-file.c: Assume that <utime.h> exists.
7658         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
7660         * modules/utimens (Depends-on): Add utime-h.
7661         * lib/utimens.c: Assume that <utime.h> exists.
7663 2017-04-29  Bruno Haible  <bruno@clisp.org>
7665         utime-h: New module.
7666         * m4/utime_h.m4: New file.
7667         * lib/utime.in.h: New file.
7668         * modules/utime-h: New file.
7669         * doc/posix-headers/utime.texi: Mention the new module.
7671         * tests/test-utime-h.c: New file.
7672         * modules/utime-h-tests: New file.
7674 2017-04-30  Bruno Haible  <bruno@clisp.org>
7676         Fix a few typos.
7677         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
7678         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
7679         * doc/posix-functions/fstat.texi: Fix a plural typo.
7680         * doc/posix-functions/stat.texi: Likewise.
7681         * m4/include_next.m4: Update comments.
7683 2017-04-29  Bruno Haible  <bruno@clisp.org>
7685         error: Fix mistake in 2017-04-23 commit.
7686         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
7687         assume that strerror_r returns 'int', not 'char *'.
7689 2017-04-29  Bruno Haible  <bruno@clisp.org>
7691         stat: Fix time_t values and other problems on native Windows platforms.
7692         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
7693         implementations of stat().
7694         * lib/stat.c: Include filename.h instead of dosname.h. Include
7695         malloca.h, stat-w32.h.
7696         (is_unc_root): New function.
7697         (rpl_stat): New implementation for native Windows. Remove
7698         REPLACE_FUNC_STAT_DIR code.
7699         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
7700         Don't define REPLACE_FUNC_STAT_DIR.
7701         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
7702         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
7703         (Depends-on): Remove dosname. Add filename, malloca.
7704         (configure.ac): Also compile lib/stat-w32.c.
7706 2017-04-29  Bruno Haible  <bruno@clisp.org>
7708         fstat: Fix time_t values on native Windows platforms.
7709         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
7710         * lib/stat-w32.h: New file.
7711         * lib/stat-w32.c: New file.
7712         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
7713         stat-w32.h instead.
7714         (fstat_nothrow): Remove function.
7715         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
7716         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
7717         always.
7718         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
7719         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
7720         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
7721         (configure.ac): Also compile lib/stat-w32.c.
7723 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
7725         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
7726         Problem reported by Assaf Gordon and Gavin Smith in:
7727         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
7728         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
7729         #define this, too.
7731 2017-04-29  Bruno Haible  <bruno@clisp.org>
7733         strerror_r-posix: Fixes for MSVC 14.
7734         * lib/strerror_r.c: Include <stdarg.h>.
7735         (strerror_r): Provide error messages for errno values 100...140.
7736         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
7738 2017-04-28  Bruno Haible  <bruno@clisp.org>
7740         noreturn: New module.
7741         * lib/noreturn.h: New file.
7742         * modules/noreturn: New file.
7743         * tests/test-noreturn.c: New file.
7744         * modules/noreturn-tests: New file.
7745         * tests/test-noreturn-c++.cc: New file.
7746         * modules/noreturn-c++-tests: New file.
7748 2017-04-27  Bruno Haible  <bruno@clisp.org>
7750         wctype-h: Fix compilation error with the original mingw.org mingw.
7751         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
7752         HAVE_CRTDEFS_H.
7753         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
7754         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
7755         <stddef.h> instead.
7756         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
7758 2017-04-26  Pádraig Brady  <P@draigBrady.com>
7760         nap.h: Fix compilation on non windows platforms
7761         * tests/nap.h: Move misplaced endif.
7763 2017-04-26  Pádraig Brady  <P@draigBrady.com>
7764         and Paul Eggert  <eggert@cs.ucla.edu>
7766         time_rz: fix heap buffer overflow vulnerability
7767         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
7768         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
7769         whether there is enough buffer space available, thus avoiding
7770         the problematic promotion of signed to unsigned causing an invalid
7771         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
7772         the start of the buffer.
7773         * tests/test-parse-datetime.c (main): Add a test case written by
7774         Paul Eggert, which overwrites enough of the heap so that
7775         standard glibc will fail with "free(): invalid pointer"
7776         without the patch applied.
7778 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7780         xalloc: add missing integer overflow check
7781         * lib/xalloc.h (x2nrealloc): Also check for multiplication
7782         overflow when P is null.
7784 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7786         parse-datetime: make it standalone
7787         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
7788         (_GL_ATTRIBUTE_FORMAT): New macro.
7789         These are needed to get './gnulib-tool --test parse-datetime' to work.
7791 2017-04-23  Bruno Haible  <bruno@clisp.org>
7793         nap.h: Port to native Windows.
7794         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
7795         use nap_fd instead. On native Windows, close and reopen nap_fd.
7796         (nap_works): Don't compare the ctimes, because on native Windows, these
7797         are the creation times.
7798         (nap): Update.
7800 2017-04-23  Bruno Haible  <bruno@clisp.org>
7802         nap.h: Fix logic.
7803         * tests/nap.h (nap): Avoid signed integer overflow in loop.
7805 2017-04-23  Bruno Haible  <bruno@clisp.org>
7807         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
7808         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
7809         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
7810         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
7811         * lib/argp-help.c (__argp_failure): Likewise.
7813 2017-04-23  Bruno Haible  <bruno@clisp.org>
7815         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
7816         * m4/strerror_r.m4: Revert changes since 2016-10-16.
7817         * lib/strerror_r.c: Likewise.
7819 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7821         Target a C99 subset, not a C89 subset
7822         For many years Gnulib has targeted C89 and has resisted using C99
7823         features, as some Gnulib-using programs still wanted to target
7824         C89.  As this no longer seems to be the case, relax the porting
7825         requirements to allow some C99 features.  This is merely a change
7826         to the documentation, to give other Gnulib developers a chance to
7827         weigh in on the topic.
7828         * doc/extern-inline.texi (extern inline):
7829         * doc/gnulib-readme.texi (Portability guidelines):
7830         * doc/gnulib-tool.texi (Initial import):
7831         * doc/gnulib.texi (Header files):
7832         Modernize to talk about C99 and C11 instead of C89 and C99.
7833         * doc/gnulib-readme.texi (Portability guidelines):
7834         Now a section, not merely a subsection, so that it
7835         can be split up.  Modernize a bit.
7836         (C language versions, C99 features assumed)
7837         (C99 features avoided):
7838         New sections.
7840 2017-04-23  Bruno Haible  <bruno@clisp.org>
7842         doc: New section "Modules that modify the way other modules work".
7843         * doc/gnulib.texi (Modules that modify the way other modules work): New
7844         section.
7846 2017-04-23  Bruno Haible  <bruno@clisp.org>
7848         stat-time: Update comments.
7849         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
7850         * tests/test-utimens-common.h: Add reference regarding st_ctime on
7851         Windows.
7853 2017-04-01  Bruno Haible  <bruno@clisp.org>
7855         glob: Fix more memory leaks.
7856         * lib/glob.c (glob): Free allocated memory before returning.
7857         Reported by Coverity via Tim Rühsen.
7859 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7861         poll: improve fast check for out-of-range NFD
7862         * lib/poll.c: Do not include intprops.h.
7863         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
7864         * modules/poll (Depends-on): Remove intprops.
7866         ftoastr: cite a newer paper
7867         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
7868         instead of Loitsch 2010.
7870 2017-04-22  Bruno Haible  <bruno@clisp.org>
7872         poll: Enable argument check also in the Windows implementation.
7873         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
7874         Reported by Paul Eggert.
7876 2017-04-22  Bruno Haible  <bruno@clisp.org>
7878         getlogin_r: Work around bug in Mac OS X 10.12.
7879         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
7880         bug.
7881         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
7882         given size minus 1, call getlogin_r a second time, on a larger buffer.
7883         * modules/getlogin_r (Depends-on): Add malloca.
7884         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
7886 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7888         parse-datetime: fix %z and prefer signed int
7889         %z problem reported by Pádraig Brady in:
7890         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
7891         While fixing it, I decided to prefer signed ints to size_t, as
7892         they are less error-prone (e.g., ubsan catches overflow).
7893         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
7894         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
7895         counts, since signed integers make for better debugging.
7896         (date): Don’t assume %z works in printf formats.
7897         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
7898         sizes of buffers known to be small, e.g., because we’re using snprintf.
7899         (parse_datetime2): Simplify call to debug_mktime_not_ok.
7901 2017-04-22  Bruno Haible  <bruno@clisp.org>
7903         *printf: Work around rounding bug on Mac OS X.
7904         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
7905         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
7906         Mac OS X and FreeBSD.
7907         * doc/glibc-functions/*printf.texi: Likewise.
7909 2017-04-22  Bruno Haible  <bruno@clisp.org>
7911         vasnprintf tests: Avoid warnings.
7912         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
7913         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
7914         test.
7916 2017-04-22  Bruno Haible  <bruno@clisp.org>
7918         sys_file tests: Avoid warning.
7919         * tests/test-sys_file.c (main): Add a default clause to the switch
7920         statement.
7922 2017-04-22  Bruno Haible  <bruno@clisp.org>
7924         sethostname: Update doc.
7925         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
7926         Mac OS X.
7928 2017-04-22  Bruno Haible  <bruno@clisp.org>
7930         quotearg tests: Avoid warnings.
7931         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
7932         false.
7934 2017-04-22  Bruno Haible  <bruno@clisp.org>
7936         poll: Enable argument check.
7937         * lib/poll.c: Include intprops.h.
7938         (poll): Check value of nfd correctly.
7939         * modules/poll (Depends-on): Add intprops.
7941 2017-04-22  Bruno Haible  <bruno@clisp.org>
7943         get-rusage-data: Avoid warnings on Mac OS X.
7944         * lib/get-rusage-data.c: On Mac OS X, don't define
7945         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
7946         (get_rusage_data) [Mac OS X]: Just return 0.
7948 2017-04-22  Bruno Haible  <bruno@clisp.org>
7950         xbinary-io: Fix build error.
7951         * modules/xbinary-io (Depends-on): Add gettext-h.
7952         * lib/xbinary-io.c: Include gettext.h and define _().
7953         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7954         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
7956 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7958         parse-datetime: overflow and debug cleanups
7959         This long patch was triggered by this bug report from Ruediger Meier:
7960         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
7961         I fixed the bug he noted, then found some others nearby, and then
7962         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
7963         up some of the code to follow GNU standards while I was at it.
7964         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
7965         use c_isdigit.
7966         (EPOCH_YEAR): Remove; unused.
7967         (TM_YEAR_BASE): Now an enum rather than a macro.
7968         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
7969         time zone offset, since timezones now are in terms of seconds and
7970         not minutes.
7971         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
7972         appropriate.  Verify that intmax_t is wide enough.
7973         (time_overflow, time_zone_str): New functions, used to deal
7974         more reliably with overflow.
7975         (dbg_printf): Add printf attribute, to help catch integer width errors.
7976         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
7977         (%union, to_hour, yylex, parse_datetime2):
7978         Use intmax_t instead of long int and/or long_time_t.
7979         All uses changed.
7980         (DBGBUFSIZE): Move earlier.
7981         (relative_time, set_hhmmss, parser_control):
7982         Just use int for nanoseconds and for time zones; that’s wide enough.
7983         (parser_control): Use bool for members like year_seen that can
7984         be booleans instead of counters.  All uses changed.
7985         Remove debug_default_input_timezone; no longer needed.
7986         All uses removed.
7987         (apply_relative_time): Return a bool overflow flag.
7988         All uses changed to check for overflow.
7989         (apply_relative_time, zone, date, relunit, relunit_snumber)
7990         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
7991         Check for integer overflow portably.
7992         (str_days): Use just int for N, as it’s wide enough.
7993         Prefer 2D char arrays to arrays of char * when it looks like
7994         2D is a win on typical platforms.
7995         Prefer snprintf to strncpy/strncat, for simplicity;
7996         all buffers are smaller than INT_MAX so this is safe.
7997         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
7998         (debug_print_current_time): Don’t assume tv_nsec is of type long,
7999         as this is not true on x32.  Output "." before any nanoseconds.
8000         (debug_print_current_time, parse_datetime2):
8001         Output local zones using a more-consistent format.
8002         (debug_print_current_time, date, parse_datetime2):
8003         (main) [TEST]:
8004         Don’t assume time_t is the same width as long.
8005         (print_rel_part): New function, replacing ...
8006         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
8007         (debug_print_relative_time): Use bool for boolean.
8008         (local_zone): dsts_seen now counts only tDST instances.
8009         (date): Fix printf of size_t to use %z.  Do not assume numeric
8010         tokens have negative values merely because the context suggests
8011         a syntax with "-" separating tokens.
8012         (time_zone_hhmm): Return bool success indicator, which checks for
8013         overflow.  Store result into PC->time_zone instead.  All callers
8014         changed.
8015         (tm_year_str): New function.  Return a bool success indicator and
8016         store the result into a buffer.  All callers changed.  Output the
8017         numerically correct string even if adding 1900 to the year would
8018         overflow.
8019         (to_tm_year): New function, replacing the old to_year.  All
8020         callers changed.
8021         (tm_diff): Sync with glibc.
8022         (lookup_word): Use to_uchar instead of doing it by hand.
8023         (TZBUFSIZE): Now local to the only function that needs it.
8024         (debug_strfdatetime): Simplify now that time zones are int seconds.
8025         (debug_strfdate): Work even if tm_year + 1900 would overflow.
8026         (get_effective_timezone): Remove.  All uses removed.
8027         (parse_datetime2): Use fprintf in pieces instead of snprintfing
8028         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
8029         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
8030         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
8031         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
8032         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
8033         * modules/parse-datetime (Depends-on): Add inttypes.
8035 2017-04-21  Bruno Haible  <bruno@clisp.org>
8037         gettext-h: Avoid -Wundef warning.
8038         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
8039         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8040         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
8042 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
8044         error: Avoid "function declaration isn't a prototype" warning.
8045         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
8047 2017-04-21  Bruno Haible  <bruno@clisp.org>
8049         vasnprintf: Fix for MSVC 14.
8050         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
8051         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
8052         of !HAVE_SNPRINTF_RETVAL_C99.
8054 2017-04-21  Bruno Haible  <bruno@clisp.org>
8056         mbrtowc tests: Fix test failures on MSVC 14.
8057         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
8058         behaviour for invalid input.
8060 2017-04-21  Bruno Haible  <bruno@clisp.org>
8062         mbsinit: Fix for MSVC 14.
8063         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
8064         implementation that is in sync with mbrtowc.c. On other platforms, use
8065         an adequate ad-hoc implementation.
8067 2017-04-21  Bruno Haible  <bruno@clisp.org>
8069         Fix test-mbrtowc5.sh failure on native Windows.
8070         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
8071         "C".
8073 2017-04-21  Bruno Haible  <bruno@clisp.org>
8075         Avoid accidental use of native Windows APIs on Cygwin.
8076         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
8077         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
8078         * lib/localename.c (WINDOWS_NATIVE): Likewise.
8080 2017-04-20  Bruno Haible  <bruno@clisp.org>
8082         Remove red warnings from the generated MODULES.html.
8083         * modules/fcntl (Description): Disambiguate function references.
8084         * modules/getcwd-lgpl (Description): Likewise.
8085         * modules/hostent (Description): Likewise.
8086         * modules/servent (Description): Likewise.
8087         * modules/tempname (Description): Likewise.
8089 2017-04-20  Bruno Haible  <bruno@clisp.org>
8091         verify tests: Fix spurious failure with parallel make.
8092         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
8093         EXTRA_PROGRAMS.
8094         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
8095         * tests/test-verify-try.c: New file.
8096         * modules/verify-tests (Files): Add it.
8097         (EXTRA_PROGRAMS): Add test-verify-try.
8098         (MOSTLYCLEANFILES): Update accordingly.
8099         Reported by Adam James Stewart <ajstewart@anl.gov>.
8101 2017-04-18  Bruno Haible  <bruno@clisp.org>
8103         vma-iter: Fix compilation error on Solaris 7.
8104         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
8105         like on IRIX, OSF/1.
8106         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8108 2017-04-18  Bruno Haible  <bruno@clisp.org>
8110         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
8111         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
8112         included.
8113         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
8114         <sys/procfs.h>.
8115         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
8116         <sys/procfs.h> cannot be included.
8117         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8119 2017-04-18  Bruno Haible  <bruno@clisp.org>
8121         getopt-gnu: Add comments.
8122         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
8123         * modules/getopt-gnu (configure.ac): Likewise.
8125 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
8127         regex: port better to Solaris 10
8128         Solaris 10 <locale.h> includes <libintl.h>, which #defines
8129         gettext, and this causes a double #define.
8130         Problem reported by Gavin Smith in:
8131         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
8132         * lib/regex_internal.h (gettext): #undef before #defining.
8134 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8136         intprops: improve comments
8137         * lib/intprops.h: Improve and shorten commentary.
8138         For the record, if we ever run into a pedantic compiler that
8139         behaves differently from GCC when converting an out-of-range value
8140         to a signed integer, we can work around the problem with something
8141         like the following code, where UCT is the signed counterpart of T
8142         (UCT is sometimes narrower than UT) and all callers are changed
8143         accordingly:
8144         #if __SUNPRO_C <= 0x5120
8145         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8146            ((t) ((ut) (a) op (ut) (b)))
8147         #else
8148         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8149            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
8150             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
8151                + TYPE_MINIMUM (t)) \
8152             : (t) (uct) ((ut) (a) op (ut) (b)))
8153         #endif
8155 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8157         intprops: try to avoid tickling similar bugs
8158         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
8159         needs to be the same width as T; it can be wider.
8160         Change callers so that UT is at least as wide as unsigned int,
8161         as I suspect that this is less likely to run into compiler bugs.
8163         intprops: port to Oracle Studio 12.3 x86
8164         Problem reported by Gavin Smith in:
8165         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
8166         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
8167         Convert unsigned to signed via the usual rather than the standard way,
8168         to avoid a compiler bug in Oracle Studio 12.3 x86.
8170 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8172         getopt: prefer - to _ in new file names
8173         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
8174         * lib/getopt-core.h: Rename from lib/getopt_core.h.
8175         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
8176         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
8177         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
8178         All uses changed.
8180         getopt: port recent getopt changes to macOS
8181         Problem reported by Harald Maier (Bug#26398).
8182         The macOS C compiler uses __nonnull for its own purposes and that
8183         clashes with glibc's __nonnull.
8184         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
8185         * lib/getopt_cdefs.in.h (__nonnull): Remove.
8186         * lib/getopt_core.h (getopt):
8187         * lib/getopt_ext.h (getopt_long, getopt_long_only):
8188         Use _GL_ARG_NONNULL, not __nonnull.
8189         * lib/unistd.in.h: Move snippet hooks to before where the getopt
8190         .h files are included, so that _GL_ARG_NONNULL is defined in time.
8191         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
8192         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
8194 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8196         getopt-gnu: omit some duplicate code
8197         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
8198         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
8199         gnulib-tool already does this.
8200         * modules/getopt-gnu (configure.ac): Omit code duplicated from
8201         getopt-posix, which we depend on.
8203         getopt-posix: use angle-bracket include
8204         * lib/getopt1.c: Include <config.h>, not "config.h".
8206 2017-04-06  Zack Weinberg  <zackw@panix.com>
8208         getopt: annotate files with relationship to glibc
8210         As the final act in this patchset, adjust the message at the top of
8211         each file to indicate which files are synced with glibc.  (This has
8212         already been done for most of the headers.)
8214         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
8215         Mention in top-of-file boilerplate that these files are shared
8216         between glibc and gnulib.
8219         getopt: split up getopt.in.h and eliminate __need_getopt
8221         Over in glibc, all of the __need macros are being phased out in favor
8222         of small headers that declare only the necessary components, as this
8223         is much simpler and less prone to bugs.  As getopt is shared with
8224         glibc, gnulib needs to do the same for __need_getopt.
8226         __need_getopt is misnamed; what it really means is "we want only the
8227         getopt features specified in POSIX, not the GNU extensions".  glibc
8228         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
8229         these files can be shared verbatim with gnulib.  The portability
8230         wrapper, on the other hand, they have renounced altogether; glibc's
8231         getopt.h will no longer be shared with gnulib at all.  In exchange,
8232         certain glibc-specific quirks (having to do with __posix_getopt) no
8233         longer need appear in gnulib's headers at all.
8235         This patch merges getopt_core.h and getopt_ext.h from glibc, and
8236         splits up the current gnulib-side portability wrapper into three
8237         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
8238         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
8239         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
8240         unistd.in.h just use them.  All new files are clearly marked with
8241         whether they are shared with glibc.
8243         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
8244         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
8245         with glibc, and ...
8246         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
8247         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
8248         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
8249         instead of defining __need_getopt and including the full getopt.h.
8251         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
8252         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
8253         * modules/getopt-posix (Files): Add new headers and sort list.
8254         (Depends-on): No longer need snippet/arg-nonnull.
8255         (Makefile.am): Generate getopt_cdefs.h.
8258         getopt: better handling of ambiguous options
8260         glibc's getopt uses alloca to construct a linked list of possibilities
8261         for an "ambiguous" long option.  In gnulib, malloc should be used
8262         instead.  Providing for both cases complicates things a fair bit.
8264         This patch rewrites ambiguous-option handling to use a boolean vector
8265         instead of a linked list.  There is then only one allocation that
8266         might need freeing; in glibc it can honor __libc_use_alloca as usual,
8267         and in gnulib we define __libc_use_alloca to always be false, so we
8268         don't need ifdefs in the middle of the function.  This should also be
8269         slightly more efficient in the normal case of long options being fully
8270         spelled out -- I think most people aren't even aware they _can_
8271         sometimes abbreviate long options.
8273         One interesting consequence is that the list of possibilities is now
8274         printed in exactly the order they appear in the list of long options,
8275         instead of the first possibility being shuffled to the end.
8277         (The patch looks bigger than it really is because there's a fair bit
8278         of reindentation and code rearrangement.)
8280         * lib/getopt.c: When used standalone, define __libc_use_alloca
8281         as always false and alloca to abort if called.
8282         (process_long_option): Rewrite handling of ambiguous long options
8283         to use a single boolean vector, not a linked list; use
8284         __libc_use_alloca to decide whether to allocate this using alloca.
8287         getopt: refactor long-option handling
8289         There were two copies of the bulk of the code to handle long options.
8290         Now there is only one.
8292         This change temporarily removes the logic to avoid using alloca when
8293         standalone; the next patch in the series will restore it.
8295         * lib/getopt.c (process_long_option): New function split out
8296         from _getopt_internal_r.
8297         (_getopt_internal_r): Replace both copies of the long-option
8298         processing code with calls to process_long_option.
8301         getopt: tidy up _getopt_initialize a bit
8303         _getopt_data.__posixly_correct is completely redundant to
8304         _getopt_data.__ordering, and some work that logically belongs in
8305         _getopt_initialize was being done by _getopt_internal_r, making the
8306         code harder to understand.
8308         As a side effect, getenv will no longer be called if the first
8309         character of the options string is '+' or '-', which is probably a
8310         Good Thing.  (Perhaps we should have a flag character that
8311         specifically asks for the permutation behavior?)
8313         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
8314         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
8315         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
8318         getopt: merge from glibc: repetition reduction
8320         The definitions of the entry point functions 'getopt' and
8321         '__posix_getopt' can be made substantially less repetitive with a
8322         helper macro.
8324         While I was merging the const-correctness changes from gnulib into
8325         glibc I noticed there are still some unnecessary casts in
8326         _getopt_internal_r.
8328         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
8329         a macro.  Consistently cast 'argv' to 'char **' when calling
8330         _getopt_internal.
8331         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
8334         getopt: clean up error reporting
8336         getopt can print a whole bunch of error messages, and when used
8337         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
8338         cancellation point and getopt isn't, and also applying fprintf to a
8339         stream in wide-character mode is not allowed.  So every single error
8340         reporting case has an #ifdef _LIBC block in which it calls internal
8341         libc functions instead.  The counterpart patch series in glibc makes
8342         it possible to simplify all of that down to a set of #defines at the
8343         top of the file; core code is written as if it is safe to just call
8344         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
8345         call any *other* stdio functions.)
8347         * lib/getopt.c: When _LIBC is defined, define fprintf to
8348         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
8349         to _IO_funlockfile.  When neither _LIBC nor
8350         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
8351         funlockfile as no-ops.
8352         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
8353         standalone error-printing code can now be used for libc as well.
8354         Add an flockfile/funlockfile pair around one case where the error
8355         message is printed in several chunks.  Don't use fputc.
8358         getopt: fix fencepost error in ambiguous-W-option handling
8360         getopt_long contains an undocumented (AFAICT) feature in which, if you
8361         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
8362         treated as equivalent to '--foo'.  This is implemented with a partial
8363         second copy of the code for handling long options, and that code
8364         increments optind one too many times when recovering from an ambiguous
8365         abbreviated option, which can cause the main loop to walk past the end
8366         of argv and crash.
8368         I discovered this while writing a test case that tries to exercise all
8369         of getopt's error reporting paths; I wouldn't be surprised to learn
8370         that this feature is never used by real applications.
8372         * lib/getopt.c (_getopt_internal_r): Don't increment
8373         d->optind a second time when reporting ambiguous -W options.
8376         getopt: clean up getopt.c and getopt1.c file headers
8378         In getopt.c, there is no need to include wchar.h at all, and it is
8379         safe nowadays to assume that stdlib.h does declare getenv (several
8380         other gnulib modules make this assumption).
8382         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
8383         by using "" inclusions consistently, and there is no actual need to
8384         include stdlib.h (except in the #ifdef TEST block, where it should be
8385         unconditional), nor to provide a backup definition of NULL at all.
8387         * lib/getopt1.c: Simplify #ifdeffage at top of file.
8388         Move inclusion of stdlib.h to #ifdef TEST block and make
8389         unconditional.  Do not define NULL.
8390         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
8391         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
8392         * modules/getopt-gnu, modules/getopt-posix: Don't call
8393         gl_PREREQ_GETENV.
8396         getopt: harmonize comments with glibc
8398         The comments explaining how the behavior of 'getopt' varies depending
8399         on whether it's the standalone version and whether there are special
8400         characters at the beginning of the options string were inconsistent
8401         between gnulib and glibc, and also out of sync with the code.
8403         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
8406         getopt: remove USE_NONOPTION_FLAGS
8408         getopt includes code to parse an environment variable named
8409         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
8410         in decimal); but all of it has been #ifdefed out since 2001, with no
8411         official way to turn it back on.
8413         According to commentary in glibc's config.h.in, bash version 2.0
8414         set this environment variable to indicate argv elements that were
8415         the result of glob expansion and therefore should not be treated
8416         as options, but the feature was "disabled later" because "it
8417         caused problems".  According to bash's CHANGES file, "later" was
8418         release 2.01; it gives no more detail about what the problems
8419         were.
8421         Version 2.0 of bash was released on the last day of 1996, and version
8422         2.01 in June of 1997.  Twenty years later, I think it is safe to
8423         assume that this environment variable isn't coming back.
8425         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
8426         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
8427         __libc_argc and __libc_argv externs, which were only used by
8428         #ifdef USE_NONOPTION_FLAGS blocks.
8431         getopt: tabify, in preparation for merge with glibc
8433         glibc sticks to the GNU default of indenting with a mix of
8434         8-column tabs and spaces; make the gnulib copy match.
8436         getopt.h is not included because it is *not* going to be merged in its
8437         present form.
8439         * getopt.c, getopt1.c, getopt_int.h: Tabify.
8441 2017-04-02  Bruno Haible  <bruno@clisp.org>
8443         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
8444         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
8445         like it was done in modules/relocatable-lib on 2011-05-21 and in
8446         modules/relocatable-prog on 2011-08-15.
8447         Reported by Reuben Thomas <rrt@sc3d.org>.
8449 2017-03-31  Bruno Haible  <bruno@clisp.org>
8451         glob: Fix invalid free() call.
8452         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
8453         static storage to home_dir.
8454         Reported by Coverity via Tim Rühsen.
8456 2017-03-31  Bruno Haible  <bruno@clisp.org>
8458         glob: Fix memory leaks.
8459         * lib/glob.c (glob): Free allocated memory before returning.
8460         Reported by Coverity via Tim Rühsen.
8462 2017-03-31  Bruno Haible  <bruno@clisp.org>
8464         md5, sha1, sha256, sha512: Add comments regarding correctness.
8465         * lib/md5.h (buflen): Add comments regarding range.
8466         * lib/sha1.h (buflen): Likewise.
8467         * lib/sha256.h (buflen): Likewise.
8468         * lib/sha512.h (buflen): Likewise.
8469         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
8470         * lib/sha1.c (sha1_process_bytes): Likewise.
8471         * lib/sha256.c (sha256_process_bytes): Likewise.
8472         * lib/sha512.c (sha512_process_bytes): Likewise.
8473         Reported by Coverity via Tim Rühsen.
8475 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8477         getopt: merge from glibc
8478         This does not change anything substantial; it merely simplifies
8479         hypothetical merges back to glibc.
8480         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
8481         Change copyright notice to match what is in glibc.
8482         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
8483         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
8484         __open_memstream rather than open_memstream and __glibc_likely
8485         instead of __builtin_expect.
8486         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
8488 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8490         dfa: make [0-9] faster in non-C locales
8491         Problem reported by John P. Linderman (Bug#26193).
8492         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
8493         If both ends of the range are ASCII digits, do not worry about
8494         multi-character collating sequences and the like.  Be consistent
8495         about using isalpha as a precondition for setbit_case_fold_c.
8497 2017-03-19  Bruno Haible  <bruno@clisp.org>
8499         lock: Fix compilation error with HP-UX IA64 cc.
8500         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
8501         weak on non-glibc platforms.
8503 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
8505         stdalign: tweak version# and test for HP-UX IA64
8506         Problems reported by Bruno Haible in:
8507         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
8508         * lib/stdalign.in.h (_Alignas):
8509         * m4/stdalign.m4 (gl_STDALIGN_H):
8510         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
8511         used octal (as that is how they document it), but it is decimal in
8512         practice now and the ancient implementations no longer matter.
8513         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
8515 2017-03-19  Bruno Haible  <bruno@clisp.org>
8517         vma-iter: Add support for Solaris.
8518         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
8519         approach.
8520         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
8521         * lib/get-rusage-as.c: Update comment about Solaris.
8522         * lib/get-rusage-data.c: Likewise.
8524 2017-03-19  Bruno Haible  <bruno@clisp.org>
8526         vma-iter: Prefer HP-UX specific API on HP-UX.
8527         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
8528         * lib/vma-iter.h: Update.
8529         Just in case HP-UX ever implements mquery().
8531 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
8533         stdalign: restore previous behavior for HP-UX IA64
8534         See Bruno Haible's email in:
8535         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8536         which cites p 150 of a manual saying that 'aligned' works on Itanium.
8537         * lib/stdalign.in.h (_Alignas):
8538         Assume the '061200' applies to Itanium, not to PA-RISC.
8539         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
8541 2017-03-17  Bruno Haible  <bruno@clisp.org>
8543         stat-time, timespec: Support use of the header files in C++ mode.
8544         * lib/stat-time.h: Add "C" linkage declaration.
8545         * lib/timespec.h: Likewise.
8547 2017-03-17  Bruno Haible  <bruno@clisp.org>
8549         stdalign: Make it work with HP-UX cc.
8550         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
8551         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
8552         for HP-UX cc.
8554 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
8556         flexmember: try to detect HP-UX 11.31 cc bug
8557         Problem reported by Bruno Haible in:
8558         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
8559         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8560         Attempt to detect bug in HP-UX 11.31 cc.
8562 2017-03-16  Bruno Haible  <bruno@clisp.org>
8564         stdint: Fix test compilation failure with HP-UX 11 cc.
8565         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
8566         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
8567         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
8568         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
8570 2017-03-14  Bruno Haible  <bruno@clisp.org>
8572         gnulib-tool: Don't produce a tests directory with only snippet .h files.
8573         * gnulib-tool (func_modules_transitive_closure_separately): If
8574         testsrelated_modules ends up with no "real" modules, aside from
8575         modules with applicability 'all', set it to empty.
8577 2017-03-14  Bruno Haible  <bruno@clisp.org>
8579         vma-iter: Add support for HP-UX.
8580         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
8581         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
8582         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
8583         * lib/get-rusage-as.c: Update comment about HP-UX.
8584         * lib/get-rusage-data.c: Likewise.
8585         (get_rusage_data): Use get_rusage_data_via_setrlimit.
8587 2017-03-14  Bruno Haible  <bruno@clisp.org>
8589         limits-h: Make it work with HP-UX cc.
8590         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
8591         defined.
8593 2017-03-14  Bruno Haible  <bruno@clisp.org>
8595         Fix test failures on DragonFlyBSD.
8596         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
8597         * tests/test-select.h (test_bad_fd): Likewise.
8598         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
8600 2017-03-14  Bruno Haible  <bruno@clisp.org>
8602         freadahead: Silence warning on DragonFlyBSD.
8603         * lib/freadahead.c (__sreadahead): Declare ourselves.
8605 2017-03-14  Bruno Haible  <bruno@clisp.org>
8607         vma-iter: Add comment about AIX.
8608         * lib/vma-iter.c: Add comment about why this module is not implemented
8609         on AIX.
8611 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
8613         snippets: move unadjusted snippet sources to lib
8614         Problem reported by Michal Privoznik in:
8615         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
8616         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
8617         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
8618         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
8619         * lib/unused-parameter.h: Rename from
8620         build-aux/snippet/unused-parameter.h.
8621         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
8622         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
8623         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
8624         * modules/snippet/c++defs (Files:, CXXDEFS_H):
8625         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
8626         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
8627         Adjust to file renamings.
8629 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
8631         gnulib-tool: don't automatically distribute files from top/
8632         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
8633         not distribute top/README-release by default, don't distribute files
8634         from top/ unconditionally.
8635         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
8636         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
8638 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
8640         gnulib-tool: fix typo in comment output
8641         * gnulib-tool (func_import): Fix typo with previous change.
8643         snippets: work around GNU Make 3.82 VPATH
8644         When using 'gnulib-tool --gnu-make' on Emacs, and building
8645         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
8646         an out-of-source (VPATH) build failed because the sans-copyright
8647         snippet file was not built before the file that used it.
8648         Presumably this is some sort of VPATH thing.  Work around the
8649         problem by using the original snippet, i.e., don’t bother to
8650         remove its copyright notice.
8651         * modules/snippet/_Noreturn, modules/snippet/link-warning:
8652         Don’t assume Automake in comments.  Omit long-incorrect comment.
8653         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
8654         (MOSTLYCLEANFILES):
8655         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
8656         (MOSTLYCLEANFILES):
8657         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
8658         (MOSTLYCLEANFILES):
8659         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
8660         (MOSTLYCLEANFILES):
8661         Remove.
8662         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
8663         * modules/snippet/c++defs (CXXDEFS_H):
8664         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
8665         * modules/snippet/warn-on-use (WARN_ON_USE_H):
8666         Don’t bother to remove the copyright notice; just use the
8667         original snippet as-is.
8669 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
8671         gnulib-tool: minor --gnu-make fixups
8672         * gnulib-tool (func_emit_lib_Makefile_am):
8673         Remove useless code that was a blind alley during implementation.
8674         Problem reported by Thien-Thi Nguyen in:
8675         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
8676         (func_import): Note the "--gnu-make" option in the output comment.
8678 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
8680         gnulib-tool: new option --gnu-make
8681         This is for applications like GNU Emacs that use GNU Make
8682         features instead of Automake.
8683         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
8684         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
8685         Do not assume Automake.
8686         * gnulib-tool (func_determine_path_separator)
8687         (func_modules_transitive_closure, func_update_file)
8688         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
8689         (func_import): Add support for --gnu-make.
8691 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
8693         gnulib-common.m4: avoid aclocal.m4 bloat
8694         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
8695         Hide AM_PROG_AR from aclocal, so that aclocal does not
8696         install irrelevant macro definitions into aclocal.m4.
8698 2017-03-10  Bruno Haible  <bruno@clisp.org>
8700         vma-iter: Let callers know about error.
8701         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
8702         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
8704 2017-03-05  Bruno Haible  <bruno@clisp.org>
8706         Fix value of LD for 64-bit compilers on AIX.
8707         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
8708         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
8710 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
8712         dtotimespec: simplify
8713         * lib/dtotimespec.c (dtotimespec): Simplify.
8715 2017-03-04  Bruno Haible  <bruno@clisp.org>
8717         test-calloc-gnu: Reenable test also for GCC 7.
8718         * tests/test-calloc-gnu.c (eight): New function.
8719         (main): Don't skip test; use eight() instead.
8721 2017-03-04  Jim Meyering  <meyering@fb.com>
8723         test-calloc-gnu: port to GCC7
8724         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
8725         that attempts to calloc more than SIZE_MAX bytes, because GCC7
8726         and newer would detect that at compilation time.
8728 2017-03-04  Bruno Haible  <bruno@clisp.org>
8730         tests: Avoid compiler warning about uses of null_ptr.
8731         * tests/null-ptr.h: New file.
8732         * tests/test-canonicalize.c: Include null-ptr.h.
8733         (null_ptr): Remove function.
8734         * tests/test-canonicalize-lgpl.c: Likewise.
8735         * tests/test-memmem.c: Likewise.
8736         * tests/test-ptsname_r.c: Likewise.
8737         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
8738         * modules/canonicalize-lgpl-tests: Likewise.
8739         * modules/memmem-tests: Likewise.
8740         * modules/ptsname_r-tests: Likewise.
8741         Reported by Jim Meyering.
8743 2017-03-03  Bruno Haible  <bruno@clisp.org>
8745         doc: Mention Mac OS X deficiencies regarding semaphores.
8746         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
8747         * doc/posix-functions/sem_destroy.texi: Likewise.
8748         * doc/posix-functions/sem_getvalue.texi: Likewise.
8750 2017-03-03  Bruno Haible  <bruno@clisp.org>
8752         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
8753         Reported by Assaf Gordon <assafgordon@gmail.com> via
8754         Pádraig Brady <P@draigBrady.com>.
8755         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
8756         semaphores.
8757         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
8758         (atomic_int_semaphore): New macro.
8760 2017-02-28  Bruno Haible  <bruno@clisp.org>
8762         perror tests: Tweak for z/OS.
8763         Reported by Daniel Richard G. <skunk@iskunk.org>.
8764         * tests/test-perror.sh: Don't fail z/OS style perror output.
8766 2017-02-26  Bruno Haible  <bruno@clisp.org>
8768         nproc: Refactor large function.
8769         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
8770         from num_processors.
8771         (num_processors): In this function, only deal with OMP.
8773 2017-02-26  Pádraig Brady  <P@draigBrady.com>
8775         nproc: adjust handling of OpenMP environment variables
8776         to match the return value from omp_get_num_threads(), i.e.:
8777          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
8778          - Treat 0 as an invalid value and ignore
8779         Also remove the call to omp_get_num_threads() because
8780         it's ineffective without the omp pragmas in place.
8781         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
8782         so that it can be ignored.
8783         (num_processors): Honor OMP_THREAD_LIMIT even without
8784         OMP_NUM_THREADS being set.  Also fix a typo in the environment
8785         variable being checked, from the previous recent commit.
8787 2017-02-26  Pádraig Brady  <P@draigBrady.com>
8789         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
8790         * lib/nproc.c (parse_omp_threads): A new function refactored
8791         from num_processors() to support parsing both of the
8792         above environment variables.
8793         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
8794         to accurately reflect the current OpenMP nesting level.
8795         Also support the OMP_THREAD_LIMIT environment variable
8796         to limit the max value determined from OMP_NUM_THREADS.
8797         * modules/nproc: Depend on minmax header.
8798         Suggested by Oliver Heimlich.
8800 2017-02-25  Bruno Haible  <bruno@clisp.org>
8802         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
8803         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
8805 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8807         ftoastr: port to -Wdouble-promotion
8808         Work around -Wdouble-promotion false alarm in recent GCCs.
8809         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
8810         (ftoastr_snprintf, FTOASTR): Use it.
8812 2017-02-21  Bruno Haible  <bruno@clisp.org>
8814         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
8815         Reported by Rene Saavedra <rennes@openmailbox.org> in
8816         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
8817         * lib/glthread/lock.h: On glibc systems without
8818         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
8819         implementation of rwlocks.
8820         * lib/glthread/lock.c: Likewise.
8822 2017-02-20  Bruno Haible  <bruno@clisp.org>
8824         lock tests: Fix build failure on z/OS.
8825         Reported by Daniel Richard G. <skunk@iskunk.org>.
8826         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
8827         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
8828         exist.
8830 2017-02-19  Bruno Haible  <bruno@clisp.org>
8832         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
8833         This helps when CC=clang.
8834         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
8835         of /usr/bin/gcc.
8837         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
8838         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
8840 2017-02-19  Bruno Haible  <bruno@clisp.org>
8842         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
8843         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
8844         --with-tests --single-configure is specified.
8846 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
8848         users.txt: Update links, use HTTPS where possible
8849         * users.txt: Updated to HTTPS where possible,
8850         fixed some links to new locations.
8852 2017-02-16  Bruno Haible  <bruno@clisp.org>
8854         xbinary-io: Fix inlining.
8855         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
8857 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8859         xbinary-io: rename from xsetmode
8860         This patch is taken from suggestions by Bruno Haible in:
8861         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
8862         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
8863         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
8864         not ENOTTY, when it is an inappropriate device.
8865         * lib/binary-io.h (SET_BINARY): Resurrect.
8866         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
8867         (xset_binary_mode_error): Rename from xsetmode_error.
8868         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
8869         (xset_binary_mode): Rename from xsetmode.
8870         All uses changed.
8871         * modules/xbinary-io: Rename from modules/xsetmode.
8872         Update file names.
8873         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
8874         * NEWS: Update to match revised behavior.
8876 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
8878         tests: Adjust to recent SET_BINARY change
8879         * tests/test-binary-io.c (main):
8880         * tests/test-binary-io.sh: Remove test for SET_BINARY.
8881         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
8882         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
8883         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
8885         xsetmode: new module
8886         This is to fix a problem noted by Eric Blake.
8887         Code was using xfreopen to change files to binary mode, but this
8888         fails for stdout when in append mode.  Such code should use
8889         xsetmode instead.
8890         * NEWS: Document incompatible changes to binary-io module.
8891         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
8892         New function.
8893         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
8894         (set_binary_mode): New function, which also checks for tty.
8895         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
8897 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
8899         headers: fix begin-end typos
8900         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
8901         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
8903         selinux-h: port to PGI 16.10
8904         * lib/se-selinux.in.h: Don't assume that include_next skips over
8905         duplicate -I DIR options.
8907         argp: port to PGI 16.10
8908         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
8910 2017-02-13  Darshit Shah  <darnir@gnu.org>
8912         unicase: Update function protoype to match definition.
8913         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
8914         uses 'size_t' as the datatype for the 'len' parameter in the functions
8915         it generates. Update the prototype specified here to match the newly
8916         generated function.
8918 2017-02-12  Bruno Haible  <bruno@clisp.org>
8920         times test: Avoid gcc warnings on Linux/x32.
8921         * tests/test-times.c (main): Really cast printf arguments from clock_t
8922         to 'long int'.
8924 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8926         glob: port better to emscripten
8927         Problem reported by Bruno Haible in:
8928         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
8929         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
8931 2017-02-11  Bruno Haible  <bruno@clisp.org>
8933         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
8934         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
8935         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
8936         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
8937         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
8938         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
8939         Distinguish hppa64 from hppa.
8941 2017-02-10  Bruno Haible  <bruno@clisp.org>
8943         search: Don't assume that tsearch() exists if 'VISIT' is defined.
8944         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
8945         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
8946         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
8948 2017-02-09  Bruno Haible  <bruno@clisp.org>
8950         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
8951         * doc/gnulib.texi (Libtool and Windows): Recommend
8952         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
8953         Reported by Reuben Thomas <rrt@sc3d.org>.
8955 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8957         stddef-tests: port to SIZE_MAX <= INT_MAX
8958         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
8959         Do not assume that INT_MAX < SIZE_MAX.
8961 2017-02-01  Bruno Haible  <bruno@clisp.org>
8963         lock tests: Fix link error.
8964         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
8965         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8967 2017-01-31  Bruno Haible  <bruno@clisp.org>
8969         lock: Fix link error (regression from 2017-01-05).
8970         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
8971         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
8972         pthread_rwlockattr_destroy weak.
8973         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8975 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
8977         Port to PGI 16.10 x86-64
8978         This patch fixes one real bug in gl_anylinked_list2.h, along with
8979         some minor glitches that are not bugs.  It does not silence PGI’s
8980         thousands of bogus warnings when compiling test-intprops.c.
8981         Fortunately, the warnings do not cause a failure.
8982         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
8983         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
8984         My goodness, PGI goes back a long ways - this predates C89!
8985         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
8986         For example, ASYNCSAFE (const void *) should expand to
8987         ‘const void *volatile’, not to ‘volatile const void *’.
8988         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
8989         * lib/verify.h (verify) [!__GNUC__]:
8990         Use shorter albeit meaningless string to bypass silly compiler limits.
8991         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
8992         * tests/nan.h (NaNf, NaNd, NaNl):
8993         Use static functions to avoid misguided compiler diagnostics.
8994         Is there some reason we don’t use static functions on all platforms?
8996 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
8998         parse-datetime: handle timezones reentrantly
8999         This API change was prompted by a report by Pádraig Brady in:
9000         https://bug.debian.org/851934#10
9001         To help fix the bug, make parse_datetime2 more reentrant.
9002         * NEWS: Document this incompatible change.
9003         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
9004         Add two arguments, the timezone and the timezone name.
9005         All callers changed.  If TZ="..." is specified, use it for
9006         calculating defaults.
9007         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
9008         this code should be usable in a library.
9009         (mktime_ok, get_effective_timezone):
9010         Accept timezone arg too.  All callers changed.
9011         (get_tz): Remove.
9012         (get_effective_timezone): Check for failures.
9014 2017-01-20  Eric Blake  <eblake@redhat.com>
9016         localename: port to cygwin 2.6
9017         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
9018         Cygwin.
9019         * modules/localename (Depends-on): Add extensions, since
9020         NL_LOCALE_NAME() is not visible without it.
9022 2017-01-17  Pádraig Brady  <P@draigBrady.com>
9024         parse-datetime: fix dependence on AC_PROG_SED
9025         * modules/parse-datetime: Use `sed` directly like all other modules.
9026         Reported by J William Piggott
9028 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9030         intprops: update doc URLs
9031         * doc/intprops.texi (Integer Range Overflow): Update URLs.
9033 2017-01-16  Bruno Haible  <bruno@clisp.org>
9035         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
9036         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
9037         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
9038         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
9039         distinguish s390 and s390x.
9040         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
9041         * NEWS: Mention the change regarding 'armel'.
9043 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9045         localeinfo: case_folded_counterparts and WEOF
9046         * NEWS: Document this.
9047         * lib/localeinfo.c (case_folded_counterparts):
9048         First arg is now wint_t, not wchar_t.  This generalizes the
9049         function to also work on WEOF, where it returns 0.
9051         dfa: port to gcc -fsanitize=undefined
9052         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
9053         as this runs afoul of gcc -fsanitize=undefined.
9055 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
9057         strftime: %z is -00 if unknown
9058         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
9059         the caller's responsibility to set 'negative_number'.  All uses changed.
9060         (__strftime_internal): Put '-' before a zero UTC offset if the time
9061         zone abbreviation starts with "-", which is the recently-introduced
9062         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
9063         * tests/test-strftime.c: Test for this.
9065 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9067         dfa: port to older GCC
9068         Problem reported by Assaf Gordon in:
9069         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
9070         * modules/c99: New module.  This merely attempts to use the latest
9071         C version, which should be enough to solve this particular problem.
9072         The idea is to document which Gnulib modules assume C99 or later.
9073         * modules/dfa (Depends-on): Add it.
9075 2017-01-10  Bruno Haible  <bruno@clisp.org>
9077         Update DEPENDENCIES.
9078         * DEPENDENCIES: List only https URLs. Update recommended version for
9079         autoconf, automake, gperf.
9081 2017-01-10  Jim Meyering  <meyering@fb.com>
9083         maint.mk: enforce spelling of "timestamp" (i.e., no space)
9084         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
9085         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
9087 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9089         dfa: minor simplification with emptyset
9090         * lib/dfa.c (build_state): Simplify by using emptyset.
9092 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9094         dfa: shrink constraints from 4 bits to 3
9095         * lib/dfa.c (newline_constraint, letter_constraint)
9096         (other_constraint, prev_newline_dependent)
9097         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
9098         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
9099         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
9100         Constraints need only 3 bits, not 4.  Using smaller integers
9101         shrinks the code a bit and makes grep a tad faster on x86-64.
9103         dfa: omit unnecessary ptrdiff_t check
9104         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
9105         overflow, since xnmalloc does that now.
9107         dfa: omit unnecessary allocation
9108         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
9109         an all-zero follow set works just fine.
9111         dfa: omit unused local
9112         * lib/dfa.c (build_state): Fix up recent change.
9114         maint: remove stray .texi files
9115         Although these were superseded by other files like
9116         doc/posix-functions/ctime.texi, the old files were not removed.
9117         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
9119 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
9121         getprogname: fix port to IRIX
9122         * lib/getprogname.c (getprogname) [__sgi]:
9123         Don't dump core if malloc returns NULL.
9125         dfa: fix reallocation bug when matching newlines
9126         Problem reported for sed by S. Gilles (Bug#25390).
9127         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
9128         (dfastate): Reallocate before moving any newline transition ...
9129         (build_state): ... instead of reallocating here, where it is too late.
9131 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9133         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
9134         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
9136 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9138         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
9139         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
9141 2017-01-07  Bruno Haible  <bruno@clisp.org>
9143         stdioext: Port to Minix 3.2 and newer.
9144         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
9145         * lib/fseeko.c (fseeko): Likewise.
9146         Reported by Nelson Beebe via Paul Eggert.
9148 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9150         getprogname: port to IRIX
9151         * lib/getprogname.c (getprogname): Port to IRIX.
9152         Based on an idea by Bastien Roucariès at:
9153         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
9154         via code from Bruno Haible at:
9155         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
9157         localename-tests: port to NetBSD 7
9158         Problem reported by Nelson H. F. Beebe.
9159         * tests/test-localename.c:
9160         Test newlocale and uselocale only if both exist.
9162         glob, intprops, xalloc: work around Clang bug
9163         Work around LLVM bug 16404, which is still not fixed.
9164         https://llvm.org/bugs/show_bug.cgi?id=16404
9165         Problem reported by Nelson H. F. Beebe.
9166         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
9167         Remove.
9168         * lib/glob.c (size_add_wrapv):
9169         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
9170         * lib/xalloc-oversized.h (xalloc_oversized):
9171         Do not use overflow builtins if Clang.
9173         dfa: fix 'return' typo
9174         Problem reported by Nelson H. F. Beebe.
9175         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
9177 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9179         parse-datetime: fix generated paths for coverage files
9180         * modules/parse-datetime: Adjust the paths for parse-datetime.y
9181         within parse-datetime.c, so that gcc generates appropriate .gcno
9182         files, allowing lcov to proceed without error.  Previously it
9183         would error trying to find "lib/lib/parse-datetime.y".
9185 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9187         maint.mk: support parallel execution of coverage
9188         * top/maint.mk (coverage): Run dependencies serially,
9189         thus supporting parallel processing of each one,
9190         particularly build-coverage, which builds and runs tests.
9192 2017-01-05  Bruno Haible  <bruno@clisp.org>
9194         lock tests: Prefer semaphore over mutex.
9195         * tests/test-lock.c (USE_SEMAPHORE): New constant.
9196         (struct atomic_int, init_atomic_int, get_atomic_int_value,
9197         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
9198         Suggested by Torvald Riegel <triegel@redhat.com>.
9200 2017-01-05  Bruno Haible  <bruno@clisp.org>
9202         lock: Provide guarantee to avoid writer starvation for rwlocks.
9203         The rationale is: 1) Read-preferring read-write locks are prone to
9204         writer starvation if the number of reader threads multiplied by the
9205         percentage of time they have the lock held is too high. 2) Write-
9206         preferring read-write locks are the only reliable way to avoid this.
9207         3) There have been reports of 'test-lock' hanging on glibc systems
9208         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
9209         and glibc indeed implements read-preferring rwlocks by default, see
9210         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
9211         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
9212         * m4/pthread_rwlock_rdlock.m4: New file.
9213         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9214         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
9215         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9216         of rwlock initialization on glibc systems without
9217         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9218         of rwlocks altogether on non-glibc systems without
9219         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9220         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
9221         * lib/glthread/lock.c [USE_POSIX_THREADS]
9222         (glthread_rwlock_init_for_glibc): New function.
9223         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
9224         comment.
9225         [USE_PTH_THREADS]: New implementation of rwlocks.
9226         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
9227         readers.
9228         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
9229         (Depends-on): Add 'extensions'.
9230         * tests/test-rwlock1.c: New file.
9231         * lock-tests (Files): Add it.
9232         (Depends-on): Add usleep.
9233         (Makefile.am): Add test-rwlock1 to the tests.
9235 2017-01-05  Bruno Haible  <bruno@clisp.org>
9237         thread: Fix pth port.
9238         * lib/glthread/thread.h (pth_init): Declare weak.
9239         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
9240         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
9241         function.
9243 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
9245         parse-datetime: fix debug message on lone year number
9246         Input dates such as
9247           date -d "Apr 11 22:59:00 2011"
9248         are parsed as date (Apr 11, with default year 2016), then time, then a
9249         number (2011). Based on the combination of previously seen tokens,
9250         'digits_to_date_time' determines 2011 to be a year value.
9251         This fixes the debug messages to correctly show the updated year.
9252         Before:
9253             $ date --debug -d 'Apr 11 22:59:00 2011'
9254             date: parsed date part: (Y-M-D) 2016-04-11
9255             date: parsed time part: 22:59:00
9256             date: parsed number part: today/this/now
9257         After:
9258             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
9259             date: parsed date part: (Y-M-D) 2016-04-11
9260             date: parsed time part: 22:59:00
9261             date: parsed number part: year: 2011
9262         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
9263         'debug_year_seen' member fields.
9264         (digits_to_date_time): Update 'year_seen' as needed.
9265         (debug_print_current_time): Inform about year updates.
9266         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
9268         parse-datetime: fix local timezone debug messages
9269         "Local timezones" are strings that affect only DST relative to the
9270         default timezone. The debug messages in parse-datetime.y printed
9271         wrong information when encountering local timezones.
9272         Examples:
9273         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
9274              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
9275              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
9276         When the default timezone relates to the zone strings, EET/EEST are
9277         parsed as local timezones (tLOCAL_ZONE), and only change the DST
9278         value (0/1, respectively):
9279              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
9280              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
9281         * lib/parse-datetime.y (debug_print_current_time): If local timezone
9282         was seen, inform about DST change, don't print actual timezone.
9283         (debug_strfdatetime): If local timezone was seen, use default timezone
9284         (and adjust as needed) instead of using incorrect timezone.
9285         (parse_datetime2): Use correct time-zone source string, and adjust
9286         default timezone as needed.
9288         parse-datetime: add debug warning about DST changes
9289         Incorrect date arithmetic due to daylight saving time (DST) are a
9290         common (false) bug report in coreutils.
9291         Detect two such cases and print a warning:
9292         1. year/month/day adjustments (performed on 'struct tm'),
9293            where 'mktime' returns a different isdst value.
9294         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
9295            where the result of 'localtime(3)' on the value will return a
9296            different isdst value.
9297         Note: DST changes could be harmless or unnoticeable.
9298         Examples (with 'TZ=America/New_York'):
9299         Unnoticeable: result is 2016-Dec-14
9300            $ date -d '2016-06-15 EDT + 6 months' +%b
9301            Dec
9302         Unnoticeable: result is 2016-Dec-15 11:00:00
9303            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
9304            2016-12-15
9305         This is unexpected:
9306            $ date -d '2016-06-01 EDT + 6 months' +%F
9307            2016-11-30
9308         The new debug warnings will show:
9309            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
9310            ...
9311            date: warning: daylight saving time changed after date adjustment
9312            ...
9313         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
9314         print an appropriate warning message.
9316         parse-datetime: add debug warning about date arithmetic
9317         Date arithmetic are done directly on the fields of 'struct tm',
9318         which can result in invalid dates. Normalization with 'mktime(3)'
9319         will then produce a different date - which might cause unexpected
9320         results.
9321         Examples:
9322           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
9323           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
9324         Note that date normalization is not inherently wrong and not rejected,
9325         as it has legitimate uses:
9326           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
9327         If the user asked to adjust months but 'mday' changed,
9328         or user asked to adjust years but 'month' changed - warn about it.
9329             $ ./src/date --debug -d '2016-10-31 - 1 month'
9330             ...
9331             date: warning: when adding relative months/years, \
9332                            it is recommended to specify the 15th of the month
9333             ...
9334             date: warning: month/year adjustment resulted in shifted dates:
9335             date:      adjusted Y M D: 2016 09 31
9336             date:    normalized Y M D: 2010 10 01
9337             ...
9338         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
9339         a warning message. Improve recommendation of when to use 15 of the
9340         month or noon for date arithmetic.
9342         parse-datetime: fix debug message of relative part after timezone
9343         Relative part (e.g '+8 days') after a timezone string was not
9344         reported (was only reported after a timezone number). Due to the
9345         parser's structure, timezone strings with numbers were handled
9346         separately.
9347         before:
9348              # Timezone number + relative part: OK
9349              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
9350              ...
9351              date: parsed relative part: -8 day(s)
9352              # Timezone string + relative part: missing
9353              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
9354              [ missing message ]
9355         After: messages are printed in both cases.
9356         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
9358         parse-datetime: fix incorrect debug message on lone number
9359         A lone number is an absolute value, not a relative time part.
9360         before:
9361            $ date --debug -d '20130101'
9362            date: parsed number part: today/this/now
9363         After:
9364            $ ./src/date --debug -d '20130101'
9365            date: parsed number part: (Y-M-D) 2013-01-01
9366         * lib/parse-datetime.y ('item'/'number' tokens): Call
9367         'debug_print_current_time' instead of 'debug_print_relative_time'.
9369 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9371         doc: modernize for C11 etc.
9372         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
9373         for C11, MinGW, etc.  This responds to Paul Smith's question in:
9374         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
9376         dfa: prefer functions to FETCH_WC macro
9377         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
9378         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
9379         wint_t result into DFA->lex.wctok instead of to a separate arg.
9380         All callers changed.  Move more local decls closer to where
9381         they're used.
9383         dfa: narrow more local var scopes
9384         * lib/dfa.c: Move more local decls to be more local.
9386         dfa: remove duplicate assignment
9387         Problem reported by Bruno Haible in:
9388         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
9389         * lib/dfa.c (parse_bracket_exp): Simplify.
9391 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9393         dfa: simplify constraint-dependency checking
9394         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
9395         (prev_other_constraint): Remove.
9396         (prev_newline_dependent, prev_letter_dependent):
9397         Simplify, to avoid an unnecessary bitwise AND operation.
9399         dfa: prefer functions and constants to macros
9400         * lib/dfa.c: Prefer constants to macros where either will do.
9401         (streq, isasciidigit, newline_constraint)
9402         (letter_constraint, other_constraint, succeeds_in_context)
9403         (prev_newline_constraint, prev_letter_constraint)
9404         (prev_other_constraint, prev_newline_dependent)
9405         (prev_letter_dependent, accepting, accepts_in_context):
9406         Now static functions instead of function-like macros.
9407         Use lower-case names accordingly.  All uses changed.
9409         dfa: narrow more local var scopes
9410         * lib/dfa.c: Move some more local decls down to nearer where
9411         they're needed.
9413 2016-12-31  Jim Meyering  <meyering@fb.com>
9415         dfa: narrow the scope of many local variables
9416         * lib/dfa.c: Now that we are no longer constrained to c89, move
9417         declarations of many variables (often indices) "down" into the
9418         scope(s) where used or to the point of definition.  This is a
9419         no-semantic-change diff.
9421 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9423         version-etc: new year
9424         * build-aux/gendocs.sh (version):
9425         * doc/gendocs_template:
9426         * doc/gendocs_template_min:
9427         * doc/gnulib.texi:
9428         * lib/version-etc.c (COPYRIGHT_YEAR):
9429         Update copyright dates by hand in templates and the like.
9430         * all files: Run 'make update-copyright'.
9432 2016-12-31  Eric Blake  <eblake@redhat.com>
9434         do-release-commit-and-tag: avoid shell syntax error
9435         * build-aux/do-release-commit-and-tag (curr_br): $branch can
9436         contain spaces when rebasing.
9438         maint.mk: hoist gnulib_dir definition earlier
9439         * top/maint.mk (gnulib_dir): Move near top of file.
9441 2016-12-31  Jim Meyering  <meyering@fb.com>
9443         maint.mk: do not always evaluate intprops-related shell
9444         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
9445         using gnulib_dir undefined (gnulib_dir is defined later in the
9446         file, which will be fixed separately), and besides, there is no
9447         need to incur the cost of this shell invocation for every single
9448         use of this .mk file.  Reported by Eric Blake in
9449         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
9451 2016-12-30  Jim Meyering  <meyering@fb.com>
9453         maint.mk: improve sc_prohibit_intprops_without_use
9454         * top/maint.mk (_intprops_names): Don't hard-code the list of
9455         symbol names.  Instead, derive it on the fly.
9457 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9459         dfa: shorten sbit, success
9460         * lib/dfa.c (struct regex_syntax.sbit):
9461         (struct dfa.success): Use char, not int, for array elements, since
9462         they are all in the range 0..7.
9464         dfa: simplify multibyte_prop etc.
9465         This follows up on a change made when dfa.c was in grep, namely grep
9466         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
9467         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
9468         That earlier simplification allows for some more simplification
9469         and trimming down here.
9470         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
9471         (struct lexer_state): New mamber brack.
9472         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
9473         since they must be in the range 0..3 now.
9474         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
9475         the brack member now supersedes them.
9476         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
9477         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
9478         (dfaparse): Remove unnecessary initializations of already-0 storage.
9479         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
9480         (dfassbuild): No need to clear sup->mbcsets.
9482         dfa: minor performance tweak
9483         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
9485         dfa: wrap charclass inside a struct
9486         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
9487         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
9488         about 5% faster, where list.txt is generated by 'aspell dump
9489         master | head -n 100000 >list.txt'.  See Bug#22239.
9490         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
9491         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
9492         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
9493         Adjust to this, e.g., by using charclass * rather than charclass.
9494         All callers changed as needed.
9495         (copyset): Remove.  All uses changed to simple assignment.
9496         (parse_bracket_exp): Use zeroset instead of memset.
9498 2016-12-30  Jim Meyering  <meyering@fb.com>
9500         maint.mk: update list of intprops.h symbol names
9501         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
9502         This avoids a false failure of the sc_prohibit_intprops_without_use
9503         rule in grep.
9505 2016-12-29  Eric Blake  <eblake@redhat.com>
9507         getopt: fix parallel test failure
9508         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
9509         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
9510         * tests/test-getopt-main.h (main): Use different file names
9511         in case test-getopt-gnu and test-getopt-posix run in parallel.
9513 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9515         xalloc: x2nrealloc check for ptrdiff_t overflow
9516         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
9517         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
9519 2016-12-24  Bruno Haible  <bruno@clisp.org>
9521         lock test: Fix performance problem on multi-core machines.
9522         * tests/test-lock.c (USE_VOLATILE): New macro.
9523         (struct atomic_int): New type.
9524         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
9525         functions.
9526         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
9527         as 'struct atomic_int'.
9528         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
9529         reclock_checker_thread, test_recursive_lock): Use the new functions.
9530         Reported by Eric Blake in
9531         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
9532         and by Pádraig Brady in
9533         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
9535 2016-12-19  Bruno Haible  <bruno@clisp.org>
9537         vma-iter: Fix endless loop on 64-bit Windows.
9538         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
9539         'unsigned long'.
9541 2016-12-19  Bruno Haible  <bruno@clisp.org>
9543         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
9544         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
9545         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
9546         Invoke gt_TYPE_WINT_T instead.
9547         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
9548         * modules/stdint (Files): Add m4/wint_t.m4.
9549         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
9550         * modules/wctype-h (Makefile.am): Likewise.
9551         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
9552         not only on MSVC.
9553         * lib/wctype.in.h (wint_t): Likewise.
9555 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9557         getopt-posix-tests: fix Makefile typo
9558         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
9559         Fix typo: the last ‘_’ was missing in the name.
9560         I suspect that the typo explains this build failure:
9561         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
9562         although I can’t reproduce the problem on Solaris 10 sparc.
9564 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9566         dfa: improve worst-case 'replace' performance
9567         See my note in Bug#22357#71.
9568         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
9569         (merge_constrained): New function, which is like
9570         the old 'merge' function, except with a new argument C2.
9571         Simplify the body by avoiding the need for different sections
9572         of code depending on whether one input is exhausted.
9573         (merge): Use the new function.
9574         (delete): Return the constraint of the deleted position,
9575         not the entire position.  Caller changed.
9576         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
9578 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9580         dfa: performance improvement for removal of epsilon closure
9581         See Bug#22357#32.
9582         * lib/dfa.c (delete): Use binary search to find deleted index.
9583         (replace): New function.  It replaces a position with the followed set.
9584         (epsclosure): Replace it with a new algorithm.  Update caller.
9586 2016-12-18  Bruno Haible  <bruno@clisp.org>
9588         Split tests for getopt-posix and getopt-gnu.
9589         * tests/test-getopt-posix.c: New file.
9590         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
9591         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
9592         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
9593         GNULIB_TEST_GETOPT_GNU.
9594         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
9595         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
9596         (Makefile.am): Test test-getopt-posix instead of test-getopt.
9597         * modules/getopt-gnu-tests: New file.
9598         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
9600 2016-12-18  Bruno Haible  <bruno@clisp.org>
9602         posix-modules: Add options for specific platforms.
9603         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
9604         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
9605         Invoke func_tmpdir. Filter out the excludes.
9607 2016-12-18  Bruno Haible  <bruno@clisp.org>
9609         getopt: Fix link error for users of getopt() in <unistd.h>.
9610         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
9611         __need_getopt is defined. Undefine all macros before defining them.
9612         * modules/getopt (Include): Clarify that including <unistd.h> is also
9613         OK.
9614         * tests/test-getopt.c: Add comment.
9616 2016-12-17  Bruno Haible  <bruno@clisp.org>
9618         getaddrinfo tests: Avoid compilation error on MSVC.
9619         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
9620         getaddrinfo on native Windows.
9622 2016-12-17  Bruno Haible  <bruno@clisp.org>
9624         getlogin, getlogin_r: Fix link errors on MSVC.
9625         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
9626         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
9627         (Link): New section.
9628         * modules/getlogin_r (Files): Add m4/getlogin.m4.
9629         (configure.ac): Require gl_LIB_GETLOGIN.
9630         (Link): New section.
9631         * NEWS: Mention the new link requirements.
9632         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
9633         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
9635 2016-12-17  Bruno Haible  <bruno@clisp.org>
9637         Un-deprecate the 'progname' module.
9638         * NEWS: Describe the appropriate use-cases of 'progname' versus
9639         'getprogname'. Based on discussion summary at
9640         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
9642 2016-12-17  Bruno Haible  <bruno@clisp.org>
9644         Reorganize NEWS a bit.
9645         * NEWS: Move some not so important changes away from section
9646         "Important Notes".
9648 2016-12-17  Bruno Haible  <bruno@clisp.org>
9650         tanhf: Avoid redefinition error on MSVC.
9651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
9652         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
9653         may be defined as an inline function.
9654         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
9655         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
9657 2016-12-17  Bruno Haible  <bruno@clisp.org>
9659         tanf: Avoid redefinition error on MSVC.
9660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
9661         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
9662         may be defined as an inline function.
9663         * modules/math (Makefile.am): Substitute REPLACE_TANF.
9664         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
9666 2016-12-17  Bruno Haible  <bruno@clisp.org>
9668         sqrtf: Avoid redefinition error on MSVC.
9669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
9670         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
9671         may be defined as an inline function.
9672         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
9673         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
9675 2016-12-17  Bruno Haible  <bruno@clisp.org>
9677         sinhf: Avoid redefinition error on MSVC.
9678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
9679         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
9680         may be defined as an inline function.
9681         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
9682         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
9684 2016-12-17  Bruno Haible  <bruno@clisp.org>
9686         sinf: Avoid redefinition error on MSVC.
9687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
9688         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
9689         may be defined as an inline function.
9690         * modules/math (Makefile.am): Substitute REPLACE_SINF.
9691         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
9693 2016-12-17  Bruno Haible  <bruno@clisp.org>
9695         logf: Avoid redefinition error on MSVC.
9696         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
9697         may be defined as an inline function.
9699 2016-12-17  Bruno Haible  <bruno@clisp.org>
9701         log10l: Avoid redefinition error on MSVC.
9702         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
9703         may be defined as an inline function.
9705 2016-12-17  Bruno Haible  <bruno@clisp.org>
9707         log10f: Avoid redefinition error on MSVC.
9708         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
9709         may be defined as an inline function.
9711 2016-12-17  Bruno Haible  <bruno@clisp.org>
9713         hypotl: Avoid redefinition error on MSVC.
9714         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
9715         may be defined as an inline function.
9717 2016-12-17  Bruno Haible  <bruno@clisp.org>
9719         hypotf: Avoid redefinition error on MSVC.
9720         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
9721         may be defined as an inline function.
9723 2016-12-17  Bruno Haible  <bruno@clisp.org>
9725         fmodl: Avoid redefinition error on MSVC.
9726         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
9727         may be defined as an inline function.
9729 2016-12-17  Bruno Haible  <bruno@clisp.org>
9731         fmodf: Avoid redefinition error on MSVC.
9732         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
9733         may be defined as an inline function.
9735 2016-12-17  Bruno Haible  <bruno@clisp.org>
9737         expf: Avoid redefinition error on MSVC.
9738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
9739         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
9740         may be defined as an inline function.
9741         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
9742         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
9744 2016-12-17  Bruno Haible  <bruno@clisp.org>
9746         coshf: Avoid redefinition error on MSVC.
9747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
9748         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
9749         may be defined as an inline function.
9750         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
9751         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
9753 2016-12-17  Bruno Haible  <bruno@clisp.org>
9755         cosf: Avoid redefinition error on MSVC.
9756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
9757         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
9758         may be defined as an inline function.
9759         * modules/math (Makefile.am): Substitute REPLACE_COSF.
9760         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
9762 2016-12-17  Bruno Haible  <bruno@clisp.org>
9764         atan2f: Avoid redefinition error on MSVC.
9765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
9766         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
9767         may be defined as an inline function.
9768         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
9769         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
9771 2016-12-17  Bruno Haible  <bruno@clisp.org>
9773         atanf: Avoid redefinition error on MSVC.
9774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
9775         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
9776         may be defined as an inline function.
9777         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
9778         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
9780 2016-12-17  Bruno Haible  <bruno@clisp.org>
9782         asinf: Avoid redefinition error on MSVC.
9783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
9784         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
9785         may be defined as an inline function.
9786         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
9787         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
9789 2016-12-17  Bruno Haible  <bruno@clisp.org>
9791         acosf: Avoid redefinition error on MSVC.
9792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
9793         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
9794         may be defined as an inline function.
9795         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
9796         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
9798 2016-12-17  Bruno Haible  <bruno@clisp.org>
9800         Avoid redefinition errors on MSVC.
9801         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
9802         the function may be defined as an inline function.
9803         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
9804         the function may be defined as an inline function.
9806 2016-12-17  Bruno Haible  <bruno@clisp.org>
9808         Avoid redefinition errors on MSVC.
9809         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
9810         * lib/unistd.in.h: Include <stdio.h> when necessary.
9812 2016-12-17  Bruno Haible  <bruno@clisp.org>
9814         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
9815         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
9816         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
9817         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
9818         WINT_MAX.
9820 2016-12-17  Bruno Haible  <bruno@clisp.org>
9822         Avoid autoconf warning.
9823         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
9824         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
9826 2016-12-17  Bruno Haible  <bruno@clisp.org>
9828         fpending: Revert workaround against Emacs bug.
9829         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
9830         The Emacs bug is fixed by Eli Zaretskii in
9831         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
9833 2016-12-17  Bruno Haible  <bruno@clisp.org>
9835         getlogin_r tests: Port to mingw.
9836         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
9837         regression introduced on 2014-05-19.
9839 2016-12-17  Bruno Haible  <bruno@clisp.org>
9841         getlogin: Port to newer mingw.
9842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
9843         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
9844         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
9845         HAVE_GETLOGIN.
9846         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
9847         HAVE_GETLOGIN.
9848         * doc/posix-functions/getlogin.texi: Mention the issue.
9849         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
9850         regression introduced on 2014-05-14.
9852 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9854         builtin-expect: improve port to IBM XL C
9855         Problem reported for z/OS by Daniel Richard G. in:
9856         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
9857         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
9858         Test for <builtins.h> directly.
9860         builtin-expect: port to IBM XL C
9861         Problem reported for z/OS by Daniel Richard G. in:
9862         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
9863         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
9864         Also allow __builtin_expect defined via a standard include file.
9866         regex: fix dependency
9867         Problem reported by Bruno Haible in:
9868         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
9869         * modules/regex: Depend on builtin-expect.
9871         builtin-expect: new module
9872         Fix fnmatch to use it.
9873         Problem reported for z/OS by Daniel Richard G.
9874         * lib/fnmatch.c (__builtin_expect):
9875         * lib/glob.c (__builtin_expect):
9876         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
9877         * lib/memmem.c (__builtin_expect) [!_LIBC]:
9878         * lib/scandir.c (__builtin_expect):
9879         * lib/strstr.c (__builtin_expect) [!_LIBC]:
9880         Remove macro; config.h now does this.
9881         * lib/gl_anytreehash_list1.h (add_to_bucket):
9882         * lib/regex_internal.h (BE):
9883         Assume __builtin_expect.
9884         * m4/builtin-expect.m4, modules/builtin-expect: New files.
9885         * modules/avltreehash-list, modules/fnmatch, modules/glob:
9886         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
9887         * modules/scandir, modules/strstr-simple:
9888         Depend on builtin-expect.
9890 2016-12-15  Bruno Haible  <bruno@clisp.org>
9892         init.sh: Add possibility to not delete temporary files.
9893         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
9894         to yes, don't erase the temporary directory.
9896 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9898         regex: fix integer-overflow bug in never-used code
9899         Problem reported by Clément Pit–Claudel in:
9900         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
9901         * lib/regex_internal.h: Include intprops.h.
9902         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
9903         behavior on integer overflow.
9904         * modules/regex (Depends-on): Add intprops.
9906         fpending: fix port to MinGW on Emacs
9907         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
9908         Problem reported by Eli Zaretskii in:
9909         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
9910         Is Plan 9 still a valid porting target, anyway?
9912 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9914         safe-alloc: use xalloc-oversized
9915         * lib/safe-alloc.c: Include xalloc-oversized.h.
9916         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
9917         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
9919         xalloc: do not exceed PTRDIFF_MAX
9920         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
9921         xalloc_oversized check, since objects larger than PTRDIFF_MAX
9922         bytes have pointer-subtraction problems.
9924         malloca: do not exceed PTRDIFF_MAX
9925         * lib/malloca.h: Include xalloc-oversized.
9926         (nmalloca): Use xalloc_oversized instead of rolling our own.
9927         * modules/malloca (Depends-on):
9928         * modules/relocatable-prog-wrapper (Depends-on):
9929         Add xalloc-oversized.
9931         quotearg: pacify GCC better
9932         * modules/quotearg (Depends-on): Add minmax, stdint.
9933         * lib/quotearg.c: Include minmax.h, stdint.h.
9934         (nslots): Now int, as there seems little point to going to extra
9935         work merely to support the INT_MAX slot, which nobody ever uses.
9936         (quotearg_n_options): Redo size-overflow checks to pacify GCC
9937         and to catch (mostly-theoretical) ptrdiff_t problems too.
9938         This can be done via one comparison.
9940 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
9942         xalloc-oversized: check for PTRDIFF_MAX too
9943         This avoids undefined behavior when subtracting pointers to
9944         objects containing more than PTRDIFF_MAX bytes.
9945         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
9946         Also return 1 if the result would exceed PTRDIFF_MAX>
9947         * modules/xalloc-oversized (Depends-on):
9948         Add stdint.
9950         dfa: fix glitches in previous commit
9951         Sorry, I don't know how I managed to commit the wrong version.
9952         * lib/dfa.c (MIN): Move up.
9953         (xpalloc): Now static.
9955         dfa: fix some unlikely integer overflows
9956         I found these while reviewing the recent Coverity-related fix.
9957         This patch changes part of dfa.c to prefer ptrdiff_t instead of
9958         size_t for object counts.  Using ptrdiff_t is the style typically
9959         used in Emacs; although it wastes a sign bit as sizes can never be
9960         negative, it makes -fsanitize=undefined more likely to catch
9961         integer overflows in index calculation, and nowadays the upside is
9962         typically more important than the downside.  Although perhaps the
9963         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
9964         of dfa.c already does, since it uses state_num which is signed),
9965         that is a bigger change and is not needed to fix the bugs I found.
9966         * lib/dfa.c: Include stdint.h and intprops.h.
9967         (TOKEN_MAX): New macro.
9968         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
9969         (charclass_index, parse_bracket_exp, addtok, insert, merge)
9970         (realloc_trans_if_necessary, free_mbdata):
9971         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
9972         This is safe because xpalloc checks that the sizes do not exceed
9973         either SIZE_MAX or PTRDIFF_MAX.
9974         (xpalloc): New function, mostly taken from Emacs.
9975         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
9976         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
9977         (charclass_index): Check for integer overflow in computing
9978         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
9979         added to it later.
9980         (alloc_position_set): Check for integer overflow.  On typical
9981         platforms this check has zero overhead, since the constant
9982         expression is false.
9983         (realloc_trans_if_necessary):
9984         Remove assertion, which I hope Coverity no longer needs.
9986         * modules/dfa (Depends-on): Add intprops, stdint.
9988 2016-12-12  Jim Meyering  <meyering@fb.com>
9990         dfa: add an assertion to avoid coverity false positive
9991         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
9992         warned that "newalloc1 - 2" could overflow.
9994 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
9996         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
9997         * dfa.h (DFA_CASE_FOLD): Remove.
9998         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
10000 2016-12-13  John W. Eaton  <gnu@jweaton.org>
10002         link: fix test to declare use of rename()
10003         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
10004         -Werror=implicit-function-declaration
10006 2016-12-12  Bruno Haible  <bruno@clisp.org>
10008         fpending: Port to native Windows with MSVC.
10009         * lib/fpending.c: Include stdio-impl.h.
10010         (__fpending): Include all known implementations. Err out if it's not
10011         ported.
10012         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
10013         * modules/fpending (Files): Add lib/stdio-impl.h.
10014         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
10016 2016-12-12  Bruno Haible  <bruno@clisp.org>
10018         stdioext: Port to native Windows with MSVC.
10019         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
10020         (struct _gl_real_FILE): New type.
10021         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
10022         Windows.
10023         * lib/fbufmode.c (fbufmode): Add code for native Windows.
10024         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
10025         other SystemV derived implementations.
10026         * lib/fpurge.c (fpurge): Likewise.
10027         * lib/freadable.c (freadable): Likewise.
10028         * lib/freadahead.c (freadahead): Likewise.
10029         * lib/freading.c (freading): Likewise.
10030         * lib/freadptr.c (freadptr): Likewise.
10031         * lib/freadseek.c (freadptrinc): Likewise.
10032         * lib/fseeko.c (fseeko): Likewise.
10033         * lib/fseterr.c (fseterr): Likewise.
10034         * lib/fwritable.c (fwritable): Likewise.
10035         * lib/fwriting.c (fwriting): Likewise.
10036         Reported by Gisle Vanem <gvanem@yahoo.no>.
10038 2016-12-11  Jim Meyering  <meyering@fb.com>
10040         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
10041         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
10042         to work with most shells, but not with the one provided by many
10043         Solaris 10 systems, so running configure with such a /bin/sh evokes
10044         e.g., "./configure: syntax error at line 33602: `(' unexpected".
10045         Reported by Assaf Gordon in
10046         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
10048 2016-12-10  Bruno Haible  <bruno@clisp.org>
10050         threadlib: Optimize out runtime test on Solaris >= 10.
10051         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
10052         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
10053         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
10055 2016-12-10  Bruno Haible  <bruno@clisp.org>
10057         stdint: Update doc about Solaris 9.
10058         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
10060 2016-12-09  Bruno Haible  <bruno@clisp.org>
10062         c-ctype tests: Fix link error on Solaris 9.
10063         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
10064         Reported at <https://savannah.gnu.org/bugs/?46827>.
10066 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10068         dfa: fix performance bug that recomputes trans
10069         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
10070         25 on-demand changes.  The bug caused build_state to reset all
10071         d->trans elements to -2 even when d->trans was already non-null.
10072         Use C99 style decls after statements in this function.
10074         same-inode: port to MinGW
10075         Here st_ino is always 0, so change the definition of SAME_INODE so
10076         that 1 means the two files are the same, 0 with st_ino != 0 means
10077         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
10078         reported by Bruno Haible (Bug#25146).
10079         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
10080         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
10082 2016-12-04  Bruno Haible  <bruno@clisp.org>
10084         javacomp-script: Support Java 7 and 8.
10085         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
10086         target-version 1.7, 1.8.
10088 2016-12-02  Daiki Ueno  <ueno@gnu.org>
10090         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
10091         GPLv2" rewriting.
10093 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
10095         * gnulib-tool (func_import): Adhere to the license guideline when
10096         rewriting the license text to "LGPLv3+ or GPLv2":
10097         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
10099 2016-12-02  Bruno Haible  <bruno@clisp.org>
10101         localcharset: Avoid theoretical buffer overrun.
10102         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
10103         return value from setlocale if it would lead to a buffer overrun.
10105 2016-12-01  Bruno Haible  <bruno@clisp.org>
10107         Relicense some modules under LGPLv2+.
10108         Kevin Cernekee's approval is in
10109         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
10110         * modules/fseterr (License): Change to LGPLv2+.
10111         * modules/mbchar (License): Likewise.
10112         * modules/mbiter (License): Likewise.
10113         * modules/mbsnlen (License): Likewise.
10114         * modules/wcwidth (License): Likewise.
10116 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10118         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
10119         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
10120         OS/2 kLIBC.
10122 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10124         alphasort, scandir: Port to OS/2 kLIBC
10125         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
10126         declaration.
10127         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
10129 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10131         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
10132         * lib/relocatable.c (relocate): Do not touch pathname if it is started
10133         with '/@unixroot'.
10135 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10137         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
10138         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
10139         OS/2 kLIBC unless TCPV40HDRS is defined.
10141 2016-11-29  Jim Meyering  <meyering@fb.com>
10143         dfa: avoid new infinite loop
10144         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
10145         * lib/dfa.c (dfastate): When constructing a new state table, we could
10146         initially declare that we had found a match, and later find that
10147         constraints eliminate that possibility, yet continue to use the
10148         now stale "matched" indicator.  That would lead to an infinite loop.
10149         The solution is to update "matched" when necessary.
10150         Introduced by commit v0.1-983-g403adf1.
10152 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10154         dfa: avoid match middle in multibyte character
10155         * lib/dfa.c (transit_state): If fails in matching single byte characters
10156         on a state including period expression in non-UTF8 multibyte locales,
10157         skip trailing bytes.
10158         (dfa_supported): Revert previous change.
10160 2016-11-27  Jim Meyering  <meyering@fb.com>
10162         dfa: avoid false match in non-UTF8 multibyte locales
10163         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
10164         as "not supported" so that callers will resort to using regex-based
10165         matcher.  This will surely hurt performance, but correctness trumps
10166         performance here, and the affected locales are less and less relevant,
10167         these days.  See grep's bug report https://bugs.gnu.org/24975.
10169 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
10171         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
10172         * lib/ptsname_r.c: Include the appropriate headers.
10173         [__sun]: Delete sys/sysmacros.h include.
10174         [_AIX || __osf__]: Likewise.
10175         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
10177 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10179         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
10180         * lib/md4.c (md4_process_bytes): The existing define is made internal
10181         in recent versions of glibc, so also use this new public define.
10182         * lib/md5.c (md5_process_bytes): Likewise.
10183         * lib/sha1.c (sha1_process_bytes): Likewise.
10184         * lib/sha256.c (sha256_process_bytes): Likewise.
10185         * lib/sha512.c (sha512_process_bytes): Likewise.
10187 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10189         maint: use a more standard return from mbrtowc test
10190         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
10191         from the test program as this often indicates an
10192         unhandled case in the test program.
10193         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
10194         (gl_MBRTOWC_SANITYCHECK): Likewise.
10195         (gl_MBRTOWC_NULL_ARG2): Likewise.
10196         (gl_MBRTOWC_NUL_RETVAL): Likewise.
10198 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
10200         freopen: work around glibc bug with closed fd
10201         Work around glibc bug#15589, where freopen mishandles the case
10202         where stdin etc. are already closed.
10203         * doc/posix-functions/freopen.texi (freopen): Document the bug.
10204         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
10205         instead of __need_FILE, as the latter does not work with glibc.
10206         Include <fcntl.h>, for open flags.
10207         (rpl_freopen): Work around glibc bug.
10208         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
10209         * modules/freopen (Depends-on): Add fcntl-h.
10210         * tests/test-freopen.c (main): Test for bug.
10212 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10214         fnmatch: fix typo introduced on 2016-08-17
10215         This fixes the port to non-GCC compilers that lack __builtin_expect.
10216         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
10218         dfa: simplify with new function fillset
10219         * lib/dfa.c (fillset): New function.
10220         Use it for clarity when applicable.
10222         dfa: fix glitches with on-demand states
10223         Also, adjust commentary to better match new code.
10224         Some of these glitches predate the recent change.
10225         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
10226         only non-initial states.
10227         (dfastate): Rename locals to better match new roles.
10228         Move them into nested scopes if this is easy.
10229         Omit unnecessary calls to zeroset.
10230         Simplify test for whether to throw in the positions of state 0.
10231         Omit C99-ism (decl after statement) since Gawk still wants C89.
10232         (build_state): Omit unnecessary test and assignment.
10233         Fix some confusion that counted transition tables inaccurately
10234         and could cause a memory leak.
10235         (dfaexec_main): Redo to make it clearer to the compiler that
10236         -1 and -2 are the only negative state numbers here.
10238 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10240         dfa: addition of new state on demand
10241         * src/dfa.c (dfastate): Add argument UC, the current input character.
10242         Fill only a group including the character in transition table.
10243         (realloc_trans_if_necessary): Add the dummy state which means that a
10244         transition table is assigned but the next state is not assigned.
10245         (build_state): Return the next state.  All callers updated.
10246         (transit_state_singlebyte): If we get the dummy state,
10247         fill the transition table.
10248         (dfaexec_main): Handle the dummy state.
10249         (free_mbdata, dfafree): Consider the dummy state.
10251 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10253         srclist: sync with released gettext
10254         * config/srclist.txt: Set "release" option to the files under
10255         $GETTEXT.
10257 2016-11-24  Daiki Ueno  <ueno@gnu.org>
10259         srclist: add "release" option
10260         * config/srclist.txt: Change the format so that the first column
10261         of each line points to the top-level directory of the source
10262         archive.
10263         * config/srclist-update: Accept "release" option that checks files
10264         from the most recently tagged revision in the source archive.
10266 2016-11-21  Bruno Haible  <bruno@clisp.org>
10268         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
10269         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10270         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
10271         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
10272         Inline and remove member function 'rpl ()' of the wrapper struct.
10274 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10276         dfa: fix logic typo
10277         Problem reported by Stephane Chazelas (Bug#24973).
10278         * lib/dfa.c (using_simple_locale): Fix typo that caused some
10279         non-simple locales like fr_FR to be treated as simple.
10281 2016-11-20  Jim Meyering  <meyering@fb.com>
10283         fix test driver leaks: exclude, malloc, realloc
10284         * tests/test-exclude.c (main): Fix trivial leak.
10285         * tests/test-malloc-gnu.c (main): Likewise.
10286         * tests/test-realloc-gnu.c (main): Likewise.
10287         With these changes, grep's tests are now leak free.
10288         I.e., running them with ASAN elicits no failure:
10289           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
10290             AM_LDFLAGS='-fsanitize=address -static-libasan' check
10292 2016-11-11  Bruno Haible  <bruno@clisp.org>
10294         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
10295         * modules/libunistring: (License): Change from LGPL to
10296         "LGPLv3+ or GPLv2".
10297         * modules/libunistring-optional: Likewise.
10298         * modules/unicase/*: Likewise.
10299         * modules/uniconv/*: Likewise.
10300         * modules/unictype/*: Likewise.
10301         * modules/unigbrk/*: Likewise.
10302         * modules/unilbrk/*: Likewise.
10303         * modules/uniname/*: Likewise.
10304         * modules/uninorm/*: Likewise.
10305         * modules/unistdio/*: Likewise.
10306         * modules/unistr/*: Likewise.
10307         * modules/uniwbrk/*: Likewise.
10308         * modules/uniwidth/*: Likewise.
10310 2016-11-12  Bruno Haible  <bruno@clisp.org>
10312         Relicense some modules under LGPLv2+.
10313         Paul Eggert's approval is in
10314         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
10315         Eric Blake's approval is in
10316         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
10317         Ludovic Courtès's approval is in
10318         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
10319         * modules/isnand-nolibm (License): Change to LGPLv2+.
10320         * modules/isnanf-nolibm (License): Likewise.
10321         * modules/isnanl-nolibm (License): Likewise.
10323 2016-11-19  Bruno Haible  <bruno@clisp.org>
10325         Relicense some modules under LGPLv2+.
10326         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
10327         modules/vasnprintf.
10328         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
10329         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
10330         All other significant changes to the files in lib/ of these modules
10331         are from me.
10332         * modules/memcmp2 (License): Change to LGPLv2+.
10333         * modules/amemxfrm (License): Likewise.
10334         * modules/fpieee (License): Likewise.
10335         * modules/fpucw (License): Likewise.
10336         * modules/frexp-nolibm (License): Likewise.
10337         * modules/frexpl-nolibm (License): Likewise.
10338         * modules/printf-frexp (License): Likewise.
10339         * modules/printf-frexpl (License): Likewise.
10340         * modules/printf-safe (License): Likewise.
10341         * modules/signbit (License): Likewise.
10343 2016-11-17  Bruno Haible  <bruno@clisp.org>
10345         Enable Unicode decoder safety unconditionally.
10346         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
10347         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
10348         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
10349         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
10350         * lib/unistr/u8-prev.c (u8_prev): Likewise.
10351         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
10352         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
10353         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
10354         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
10355         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
10356         * lib/unistr/u16-prev.c (u16_prev): Likewise.
10357         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
10358         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
10359         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
10360         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
10361         * lib/unistr/u32-prev.c (u32_prev): Likewise.
10362         * lib/unistr/u32-next.c (u32_next): Likewise.
10363         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
10364         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
10365         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10366         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10367         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
10368         CONFIG_UNICODE_SAFETY tests unconditionally.
10369         * tests/unistr/test-u32-mblen.c (main): Likewise.
10370         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
10371         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
10372         * tests/unistr/test-u32-next.c (main): Likewise.
10373         * tests/unistr/test-u32-strmblen.c (main): Likewise.
10374         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
10375         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
10376         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
10377         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
10378         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
10379         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
10380         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
10381         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
10382         * lib/unistr/u16-check.c (u16_check): Update comment.
10383         * NEWS: Mention the changes that callers should be aware of.
10385 2016-11-19  Bruno Haible  <bruno@clisp.org>
10387         relocatable-prog-wrapper: Fix breakage on Cygwin.
10388         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
10389         (Depends-on): Remove intprops.
10390         * lib/relocwrapper.c: Update dependency tree.
10391         (strerror): Undefine.
10392         * build-aux/install-reloc (func_create_wrapper): Do not compile
10393         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
10395 2016-11-19  Bruno Haible  <bruno@clisp.org>
10397         strerror: Make it compile in C++ mode.
10398         * lib/strerror.c (strerror): Ignore the return value of memcpy().
10400 2016-11-15  Pedro Alves  <palves@redhat.com>
10402         sys_time: add gnulib::timeval for C++
10403         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
10404         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
10405         timeval macro.
10407 2016-11-14  Pedro Alves  <palves@redhat.com>
10409         snippet/c++defs: fix real-floating arg functions in C++ mode
10410         Also, define isfinite, isinf, isnan, signbit in the gnulib
10411         namespace instead of in the global namespace.
10412         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
10413         (_GL_END_NAMESPACE): New.
10414         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
10415         (isfinite, isinf, isnan, signbit) [__cplusplus &&
10416         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
10417         instead of in the global namespace.
10418         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
10419         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
10420         of in the global namespace.
10422 2016-11-13  Jim Meyering  <meyering@fb.com>
10424         strftime: don't use __THROW
10425         Each use of __THROW would provoke this from gcc-7-to-be:
10427           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
10428             on unit local functions [-Wattributes]
10429           static int iso_week_days (int, int) __THROW;
10430           ^~~~~~
10431         * lib/strftime.c (__THROW): Don't define.
10432         Remove each use of __THROW.
10433         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
10434         (tm_diff, iso_week_days, __strftime_internal): Likewise.
10436 2016-11-14  Paul Eggert  <eggert@union>
10438         obstack: port to gcc -fcheck-pointer-bounds
10439         Problem found by 'make check' failure on bleeding-edge coreutils
10440         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
10441         6.2.0-5ubuntu12), configured via "./configure
10442         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
10443         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
10444         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
10445         New macro, copied from fts_.h.
10446         (struct _obstack_chunk.contents): Use it.
10448 2016-11-14  Eric Blake  <eblake@redhat.com>
10450         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
10451         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
10452         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
10454 2016-11-14  Pádraig Brady  <P@draigBrady.com>
10456         strptime: fix compile error in recent change
10457         * lib/strptime.c (__strptime_internal): Fix ported code.
10459 2016-11-11  Bruno Haible  <bruno@clisp.org>
10461         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
10462         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
10463         (func_import): Extend determination of license_incompatibilities.
10464         (func_create_testdir): Extend table of license compatibility. Handle
10465         also the licenses GPLv3+, GPL, LGPLv3+.
10467 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
10469         strftime: tune %q
10470         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
10472         Merge strftime.c changes from glibc
10473         This incorporates:
10474         2007-10-16 [BZ #5184] Add tzset_called argument
10475         2008-06-13 [BZ #6612] pass reference to tzset_called around
10476         2009-10-30 Implement Burmese language locale for Myanmar
10477         2010-01-09 Add support for XPG7 testing
10478         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
10479         2015-10-20 Convert miscellaneous function definitions to prototype style
10480         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
10481         it anyway and this lessens the difference between gnulib and glibc.
10482         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
10483         (__THROW): Define if standard headers do not.
10484         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
10485         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
10486         Declare with __THROW.
10487         (__strftime_internal): Rename from strftime_case_. Add arg for
10488         whether tzset is called.  All uses changed.  Call tzset at most
10489         once.  Allow %OC, for Burmese.
10490         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
10491         Don't assume values are in range.
10493 2016-11-12  Eric Blake  <eblake@redhat.com>
10495         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
10496         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
10497         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
10498         different value.
10500 2006-11-12  Pedro Alves  <palves@redhat.com>
10502         Fix gnulib C++ namespace support and std::frexp
10503         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
10504         _GL_CXXALIASWARN.
10506 2006-11-12  Pedro Alves  <palves@redhat.com>
10508         GNULIB_NAMESPACE::func need not pull in rpl_func
10509         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
10510         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
10511         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
10512         struct instead of a function pointer.
10514 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
10516         manywarnings: fix -Wno-missing-field-initializers detection
10517         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
10518         to be independent of -Wunused-variable.  I.E. ensure the latter
10519         warning doesn't occur so that detection of the former is accurate.
10521 2016-11-05  Pádraig Brady  <pbrady@fb.com>
10523         strftime,strptime: support %q to represent the quarter
10524         * lib/strftime.c (strftime_case_): Add %q case.
10525         * lib/strptime.c (__strptime_internal): Likewise.
10526         * tests/test-strftime.c (quarter_test): A new test case.
10528 2016-11-03  Eric Blake  <eblake@redhat.com>
10530         bootstrap: Fix get_version() for AIX 5.3
10531         * build-aux/bootstrap (get_version): Factor out sed script, since
10532         indented comments choke AIX 5.3 sed.
10533         Reported-by: Michael Felt <aixtools@gmail.com>
10535 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10537         intprops: port to older XL C
10538         Problem reported by Alexander Samoilov in:
10539         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
10540         http://savannah.nongnu.org/bugs/?49448
10541         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
10542         Define to 1 only for XL C 12.1 or later, since this bug
10543         occurs in XL C for AIX 6.0 but not in 12.1.
10545 2016-11-02  Pádraig Brady  <P@draigBrady.com>
10547         backupfile: initialize default suffix within the implementation
10548         * lib/backupfile.c (find_backup_file_name): Initialize the
10549         global variable here, to simplify usage, and to only call
10550         getenv() when needed.
10552 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10554         futimens: remove FIXME for old Linux kernels
10555         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
10556         this in 2012" FIXME, like that for utimensat.
10558         utimensat: remove FIXME for old Linux kernels
10559         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
10560         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
10561         this in 2012" FIXME, by assuming the file system bug is absent
10562         unless demonstrated to be present.  We no longer need to worry
10563         about Linux kernel 2.6.32 when building with newer kernels.
10565 2016-10-16  Bruno Haible  <bruno@clisp.org>
10567         qsort_r: Fix macrology for platforms that lack the function.
10568         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
10569         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
10570         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
10571         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
10572         not exist.
10573         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
10574         the function exists.
10575         * modules/qsort_r: Add comments.
10577 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10579         sys_types: fix Texinfo typos
10580         * doc/glibc-functions/gnu_dev_major.texi:
10581         * doc/glibc-functions/gnu_dev_makedev.texi:
10582         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
10584 2016-10-26  John David Anglin  <dave.anglin@bell.net>
10586         getprogname: port to HP-UX
10587         See Bug#24805.
10588         * lib/getprogname.c (getprogname) [__hpux]: Port.
10589         * tests/test-getprogname.c (STREQ) [__hpux]:
10590         Special-case for HP-UX limitations on program name length.
10592 2016-10-20  Bruno Haible  <bruno@clisp.org>
10594         Update doc about target platforms.
10595         * doc/gnulib-intro.texi (Target Platforms): Update list.
10597 2016-10-15  Bruno Haible  <bruno@clisp.org>
10599         opendir, readdir, closedir: Relicense under LGPLv2+.
10600         * modules/opendir (License): Change to LGPLv2+.
10601         * modules/readdir (License): Likewise.
10602         * modules/closedir (License): Likewise.
10604 2016-10-16  Bruno Haible  <bruno@clisp.org>
10606         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
10607         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
10608         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
10609         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
10610         HAVE_DECL_STRERROR_R.
10612 2016-10-16  Bruno Haible  <bruno@clisp.org>
10614         Make the 'argp' module work without the 'error' module.
10615         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
10617 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
10619         diffseq: restore TOO_EXPENSIVE heuristic
10620         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
10621         (Bug#24715).  The simplest solution is to restore the
10622         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
10623         using a higher threshold to avoid Bug#16848 on smaller files.
10624         * lib/diffseq.h (struct context): Restore member too_expensive.
10625         (struct partition): Restore members lo_minimal, hi_minimal.
10626         (diag, compareseq): Restore arg find_minimal.  All uses changed.
10627         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
10628         1993 to make 'diff' run faster (but not as well) on large inputs,
10629         but use a threshold of 4096 instead of the old 256.
10630         * lib/fstrcmp.c (strcmp_bounded):
10631         * lib/git-merge-changelog.c (compute_differences):
10632         Adjust to diffseq.h changes.
10634 2016-10-22  Bruno Haible  <bruno@clisp.org>
10636         iconv: Avoid compilation error when bootstrapping GNU libiconv.
10637         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
10638         declaration yet, define ICONV_CONST to empty.
10640 2016-10-15  Bruno Haible  <bruno@clisp.org>
10642         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
10643         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
10644         module.
10646 2016-10-16  Bruno Haible  <bruno@clisp.org>
10648         system-quote tests: Avoid compiler warning on AIX.
10649         * tests/test-system-quote-child.c (fopen): Redefine like the system's
10650         <stdio.h> does.
10652 2016-10-16  Bruno Haible  <bruno@clisp.org>
10654         Fix some "gcc -Wall" warnings.
10655         * tests/test-ffsl.c (main): Use variable x, not i.
10656         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
10657         freopen.
10658         * tests/test-sethostname1.c (main): Explicitly ignore the return value
10659         of sethostname.
10661 2016-10-16  Bruno Haible  <bruno@clisp.org>
10663         gnulib-tool: Make --create-testdir on all modules work again.
10664         * gnulib-tool (func_create_testdir): Don't include the
10665         non-recursive-gnulib-prefix-hack module.
10667 2016-10-21  Daiki Ueno  <ueno@gnu.org>
10669         libunistring: change the maintainer to 'all'
10670         * modules/gen-uni-tables, modules/libunistring:
10671         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
10672         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
10673         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
10674         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
10675         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
10676         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
10677         * modules/uniwidth/*: Change the maintainer to 'all'.
10679 2016-10-16  Bruno Haible  <bruno@clisp.org>
10681         Simplify "configure: checking ..." messages.
10682         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
10683         AC_MSG_NOTICE.
10684         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
10686 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
10688         quotearg-tests: pacify gcc -Wall
10689         Problem reported by Bruno Haible in:
10690         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
10691         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
10692         * tests/test-quotearg.h: ... from here.
10694 2016-10-20  Pádraig Brady  <P@draigBrady.com>
10696         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
10697         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
10698         Needed on Centos <= 4.
10700 2016-10-20  Jim Meyering  <meyering@fb.com>
10702         printf.m4: fix a bug in detecting printf %j support
10703         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
10704         uintmax_t is defined in neither stdint.h nor inttypes.h.
10705         Before, this macro might have mistakenly set
10706         gl_cv_func_printf_sizes_c99=yes on such a system.
10707         Spotted by Zev Weiss.
10709 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
10711         sched: substitute HAVE_SYS_CDEFS_H too
10712         Problem reported by Tom G. Christensen in:
10713         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
10714         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
10715         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
10717 2016-10-19  Pádraig Brady  <P@draigBrady.com>
10719         quotearg: never write beyond the returned length
10720         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
10721         scan of the string when we initially encounter a single quote when
10722         shell quoting, so that if we then switch to a more concise quoting method
10723         we will not have written beyond that returned length.
10724         This is significant for sh-quote, which has separate routines
10725         to determine the length and do the actual quoting.
10726         * tests/test-quotearg.h: Reinstate the buffer bounds checking
10727         now that we never write more than the returned length.
10729 2016-10-18  Bruno Haible  <bruno@clisp.org>
10731         getprogname tests: Avoid failure in packages that use libtool.
10732         * tests/test-getprogname.c (main): Strip "lt-" prefix.
10733         Based on a patch by Jim Meyering.
10735 2016-10-16  Bruno Haible  <bruno@clisp.org>
10737         getprogname: Fix test failure on Cygwin. Comments.
10738         * lib/getprogname.h: Add comments.
10739         * lib/getprogname.c: Add comments. Fix #elif indentation.
10740         * tests/test-getprogname.c (main): On Cygwin, expect a result without
10741         ".exe" suffix.
10743 2016-10-16  Bruno Haible  <bruno@clisp.org>
10745         Make sure the libunistring detection rejects older versions with a
10746         known bug.
10747         * modules/unistr/u8-strtok (configure.ac): Bump required version.
10748         * modules/unistr/u16-strtok (configure.ac): Likewise.
10749         * modules/unistr/u32-strtok (configure.ac): Likewise.
10751 2016-10-18  Bruno Haible  <bruno@clisp.org>
10753         sh-quote, system-quote: revert regression of unit test.
10754         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
10755         * tests/test-system-quote-main.c (check_one): Likewise.
10757 2016-10-16  Pádraig Brady  <P@draigBrady.com>
10759         quotearg: fix stale tests
10760         * tests/test-quotearg.c [locale_results]: Add the missing str7
10761         entries to the expected results.
10762         * tests/test-system-quote-main.c (check_one): Don't enforce that we
10763         don't write beyond the returned length, since that's no longer the
10764         case if we switch to a more concise quoting style.
10765         * tests/test-sh-quote.c (check_one): Likewise.
10766         (main): Adjust for the new more concise quoting style.
10767         Reported by Bruno Haible.
10769 2016-10-16  Jim Meyering  <meyering@fb.com>
10771         non-recursive-gnulib-prefix-hack: fix inconsequential typo
10772         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
10773         to "$1".  This macro is always invoked with $1 == lib.
10774         Spotted by Bruno Haible
10776 2016-10-16  Bruno Haible  <bruno@clisp.org>
10778         Fix a test crash.
10779         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
10780         fails.
10782 2016-10-16  Pádraig Brady  <P@draigBrady.com>
10784         test-limits-h: suppress -Woverlength-strings
10785         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
10787 2016-10-15  Bruno Haible  <bruno@clisp.org>
10789         gettime, timespec, utimens: Relicense under LGPL.
10790         * modules/gettime (License): Change to LGPL.
10791         * modules/timespec (License): Likewise.
10792         * modules/utimens (License): Likewise.
10794 2016-10-14  Bruno Haible  <bruno@clisp.org>
10795             Pádraig Brady  <P@draigBrady.com>
10797         canonicalize-lgpl: Support the case path_max > INT_MAX.
10798         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
10799         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
10801 2016-10-13  Jim Meyering  <meyering@fb.com>
10803         getprogname: IBM z/OS: avoid NULL-dereference
10804         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
10805         upon strdup failure.
10807 2016-10-12  Jim Meyering  <meyering@fb.com>
10809         test-stdint: use _GL_VERIFY rather than "verify" for some tests
10810         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
10811         and an abbreviated diagnostic rather than verify with the full one,
10812         because the full-length strings would evoke warnings from gcc with
10813         -Woverlength-strings.
10815 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10817         stdint: port SIZE_MAX to glibc s390
10818         Problem reported by Eric Blake in:
10819         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
10820         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
10821         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
10822         correct type, if possible.
10824 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
10826         getprogname: port to IBM z/OS
10827         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
10829 2016-10-11  Jim Meyering  <meyering@fb.com>
10831         maint: remove stray space after "." in AC_DEFINE comment.
10832         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
10833         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10835 2016-10-05  Jim Meyering  <meyering@fb.com>
10837         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
10838         * lib/long-options.c (parse_long_options): Add a break statement
10839         to avoid this new warning/failure:
10840         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
10841           --create-testdir --dir=/t/x --with-tests --test long-options
10842         ../../gllib/long-options.c: In function 'parse_long_options':
10843         ../../gllib/long-options.c:66:12: error: this statement may \
10844           fall through [-Werror=implicit-fallthrough]
10845                    (*usage_func) (EXIT_SUCCESS);
10846                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
10848 2016-10-05  Jim Meyering  <meyering@fb.com>
10850         utimecmp: avoid new GCC 7 warning from -Wbool-operation
10851         Testing this module would fail when using GCC 7 like this:
10852         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
10853           --dir=/tmp/x --with-tests --test utimecmp
10854         ../../gllib/utimecmp.c: In function ‘utimecmp’:
10855         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
10856           [-Werror=bool-operation]
10857                          time_t s = src_s & ~ (res == 2 * BILLION);
10858                                             ^
10859         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
10860           [-Werror=bool-operation]
10861                src_s &= ~ (res == 2 * BILLION);
10862                         ^
10863         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
10864         Instead, make it explicit that we intend to apply it to 0 or 1.
10866 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10868         dfa: save memory for states
10869         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
10870         states if dfa has a lot of caches.
10872 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
10874         wchar, wctype-h: fix for MinGW 3.22.2
10875         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
10876         special invocation, to fix issues with MinGW 3.22.2 wchar.h
10877         when included from <string.h>.
10878         * lib/wctype.in.h [__MINGW32__]: Add special invocation
10879         convention for MinGW 3.22.2, to solve issues with their
10880         wctype.h when included from <ctype.h>.
10882 2016-10-05  Jim Meyering  <meyering@fb.com>
10884         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
10885         * lib/long-options.c (parse_long_options): Add a break statement
10886         to avoid this new warning/failure:
10887         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
10888           --create-testdir --dir=/t/x --with-tests --test long-options
10889         ../../gllib/long-options.c: In function ‘parse_long_options’:
10890         ../../gllib/long-options.c:66:12: error: this statement may \
10891           fall through [-Werror=implicit-fallthrough]
10892                    (*usage_func) (EXIT_SUCCESS);
10893                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
10895         utimecmp: avoid new GCC 7 warning from -Wbool-operation
10896         Testing this module would fail when using GCC 7 like this:
10897         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
10898           --dir=/tmp/x --with-tests --test utimecmp
10899         ../../gllib/utimecmp.c: In function ‘utimecmp’:
10900         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
10901           [-Werror=bool-operation]
10902                          time_t s = src_s & ~ (res == 2 * BILLION);
10903                                             ^
10904         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
10905           [-Werror=bool-operation]
10906                src_s &= ~ (res == 2 * BILLION);
10907                         ^
10908         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
10909         Instead, make it explicit that we intend to apply it to 0 or 1.
10911 2016-10-03  Pádraig Brady  <P@draigBrady.com>
10913         quotearg: minimize shell quoting using double quotes
10914         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
10915         quote in encountered then use double quotes (c style quoting)
10916         when possible, as it simplifies the quoting.
10917         * tests/test-quotearg-simple.c: Add test cases.
10918         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
10919         for the fact we now may write beyond the returned length.
10921 2016-10-02  Jim Meyering  <meyering@fb.com>
10923         vasnprintf.c: avoid spurious warning from GCC 7
10924         The presence of cpp directives renders this "FALLTHROUGH" comment
10925         ineffective, so does not suppress the -Wimplicit-fallthrough warning
10926         from GCC 7 built from git on 2016-10-02.
10927         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
10928         directives, so that it takes effect once again.  This is clearly
10929         not a proper change, and I will revert it once this bug is fixed:
10930         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
10932 2016-10-01  Jim Meyering  <meyering@fb.com>
10934         getprogname: correct the test for a __progname variable
10935         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
10936         and AC_LINK_IFELSE to check for a global __progname.  If found,
10937         define HAVE_VAR___PROGNAME.
10938         * lib/getprogname.c (getprogname): Reflect the new name of the
10939         feature- checked preprocessor symbol:
10940         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
10942 2016-09-28  Jim Meyering  <meyering@fb.com>
10944         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
10945         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
10946         fall-through case with a /* fallthrough */ comment.
10948         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
10949         * lib/dfa.c (dfassbuild): Mark the end of this case with a
10950         /* fallthrough */ comment.
10952         getprogname: avoid __progname vs program_invocation_short_name pitfall
10953         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
10954         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
10955         not with Fedora 24's glibc-2.23.1-10.
10956         * lib/getprogname.c (__progname): Move this declaration down...
10957         (getprogname): ... into the #elif block where used, and make it
10958         explicitly "extern".
10960         getprogname: port to OpenBSD 5.1
10961         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
10962         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
10963         * modules/getprogname (configure.ac): Move most of this code...
10964         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
10965         increment serial number, and add a test for __progname.
10966         https://bugs.gnu.org/24562
10967         Reported by Nelson H. F. Beebe.
10969 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10971         sched: port to GCC 6.2.1 on macOS Sierra
10972         Problem reported by Denis Davydov in:
10973         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
10974         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
10975         Include <sys/cdefs.h> before <sched.h>.
10976         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
10977         so that we needn’t worry about the sched.h include bug here.
10978         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
10979         and include it before <sched.h> if it exists, when
10980         checking for <sched.h>.
10982         tests/init.sh: port Alpine fix to AIX 7.1
10983         * tests/init.sh (compare_): When attempting to use diff -U3,
10984         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
10985         diff -u not outputting a space after leading '+', as the users
10986         of 'compare' should not be that picky about its output format.
10987         In the AIX 7.1 case, return with diff exit status (or with 2 if
10988         trouble), instead of some random nonzero exit status.
10989         * tests/test-init.sh (test_compare): Remove space after leading
10990         '+', so that AIX 7.1 'diff' passes the test.
10992 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10994         nl_langinfo: pacify GCC
10995         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
10996         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
10998         stdint: also set GL_GENERATE_LIMITS_H
10999         Problem reported by Jim Meyering in:
11000         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
11001         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
11003         limits-h, stdint: Don't assume extensions, fix typo
11004         * m4/limits-h.m4 (gl_LIMITS_H):
11005         * m4/stdint.m4 (gl_STDINT_H):
11006         Don't assume AC_USE_SYSTEM_EXTENSIONS.
11007         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
11008         reported by Jim Meyering in:
11009         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
11011 2016-09-21  Jim Meyering  <meyering@fb.com>
11013         getprogname: port to AIX
11014         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
11015         and strdup to obtain a short program name string.  Using code from
11016         Bruno Haible and an idea from Bastien ROUCARIÈS, in
11017         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
11018         Assaf Gordon reported that this new file would fail to compile on
11019         AIX-7.1 32bit.
11021 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11023         extensions: fix typo in comment
11024         * m4/extensions.m4: Sync from Autoconf master.
11026         stdint: support new _WIDTH macros
11027         * doc/posix-headers/stdint.texi: Document this.
11028         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
11029         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
11030         support for INTMAX_WIDTH, etc. as well as for support for just C99.
11031         * modules/stdint (Depends-on): Add limits-h.
11032         (Makefile.am): Substitute HAVE_C99_STDINT_H.
11033         * modules/stdint-tests (Depends-on): Add extensions, so that
11034         INTMAX_MAX etc. are defined.
11035         * tests/test-stdint.c: Verify the new macros.
11037         limits-h: new module
11038         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
11039         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
11040         * doc/posix-headers/limits.texi: Document new module.
11041         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
11042         * modules/limit-h-tests, tests/test-limits-h.c: New files.
11044         stdio: don't redefine __USE_MINGW_ANSI_STDIO
11045         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
11046         if it is already defined.  Apparently GNU Emacs relies on this.  See:
11047         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
11049 2016-09-15  Eric Blake  <eblake@redhat.com>
11051         sys_types: avoid glibc 2.25 warnings about major()
11052         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
11053         older autoconf.
11054         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
11055         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
11056         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
11057         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
11059         mountlist: include sysmacros.h for glibc
11060         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
11061         AC_HEADER_MAJOR.
11062         * lib/mountlist.c (includes): Use correct headers.
11064 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11066         extensions: port to more ISO C TSes
11067         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
11068         master, to add support for more recent ISO C TRs and TSes.
11070 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11072         intprops: new macro TYPE_WIDTH
11073         * lib/intprops.h (TYPE_WIDTH): New macro.
11074         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
11075         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
11076         * lib/parse-datetime.y (parse_datetime2):
11077         Use it.
11079         extensions: port to recent ISO C TRs
11080         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
11081         Sync from Autoconf master, to add support for recent ISO C TRs.
11082         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
11083         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
11084         the MinGW option is not an extension.
11086 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
11088         dfa: port to Solaris 9
11089         Problems reported by Tom G. Christensen in:
11090         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
11091         * modules/dfa (Depends-on): Add isblank.
11092         * modules/dfa-tests (dfa_match_aux_LDADD):
11093         Rename from test_stat_LDADD, to fix typo.
11094         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
11096 2016-09-10  Jim Meyering  <meyering@fb.com>
11098         strverscmp: avoid link failure on OS X
11099         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
11100         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
11102 2016-08-16  Jim Meyering  <meyering@fb.com>
11104         dfa: new module, importing grep's DFA matcher
11105         Since grep's DFA matcher is now being used by two gnulib-enabled
11106         projects, grep and sed, it makes sense to version-control its
11107         sources and unit tests in one place: here.
11108         * modules/dfa: New module.
11109         * modules/dfa-tests: New file.
11110         * lib/dfa.c: New file, from grep.
11111         * lib/dfa.h: Likewise.
11112         * lib/localeinfo.c: Likewise.
11113         * lib/localeinfo.h: Likewise.
11114         * tests/dfa-match-aux.c: Likewise.
11115         * tests/dfa-invalid-char-class.sh: Likewise.
11116         * tests/dfa-match.sh: Likewise, with minor changes.
11117         * MODULES.html.sh (Misc): Add "dfa" to this list.
11119 2016-09-09  Jim Meyering  <meyering@fb.com>
11121         getprogname-tests: don't depend on assert-h
11122         * modules/getprogname-tests (Depends-on): Remove assert-h.
11123         It was not needed, and in fact would cause build failure for
11124         coreutils on some systems.  Reported by Assaf Gordon in https:
11125         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
11127 2016-09-07  Jim Meyering  <meyering@fb.com>
11129         getprogname-tests: work also when EXEEXT is nonempty
11130         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
11131         * tests/test-getprogname.c (main): Use it.
11132         Suggested by Gisle Vanem.
11134 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
11136         getprogname: fix errors in previous change
11137         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
11138         s/program_invocation_name/base/
11139         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
11141 2016-09-08  Pádraig Brady  <P@draigBrady.com>
11143         parse-datetime: restrict debug output to input string
11144         * lib/parse-datetime.y (parse_datetime2): If we parse
11145         all of the input but determine it's invalid, ensure
11146         we don't output the now invalid input pointer.
11147         This issue was seen with `date -d 'now +1'`.
11149 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11151         flexmember: new macro FLEXALIGNOF
11152         * lib/flexmember.h: Include <stddef.h>, for offsetof.
11153         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
11154         this macro.  Update comments.
11156 2016-09-07  Jim Meyering  <meyering@fb.com>
11158         getprogname: port to systems with __argv (mingw, msvc)
11159         * lib/getprogname.c (getprogname): Include "dirname.h" and use
11160         last_component: more general than open coding it with hard-coded "/".
11161         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
11162         * modules/getprogname (Depends-on): Add dirname-lgpl.
11163         (configure.ac): Check for __argv in <stdlib.h>.
11164         * modules/getprogname-tests: New file.
11165         * tests/test-getprogname.c: New file.
11166         Suggested by Gisle Vanem in
11167         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
11169 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11171         flexmember: port better to GCC + valgrind
11172         With a char[] flexible array member in a struct with nontrivial
11173         alignment, GCC-generated code can access past the end of the
11174         array, because GCC assumes there are padding bytes to get the
11175         struct aligned.  So the common idiom of malloc (offsetof (struct
11176         s, m), n) does not properly allocate an n-byte trailing member, as
11177         malloc’s argument should be the next multiple of alignof (struct s).
11178         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11179         Although C11 apparently permits this GCC optimization (i.e., there
11180         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
11181         See the thread containing:
11182         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
11183         * lib/flexmember.h: New file.
11184         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
11185         * lib/localename.c, lib/time_rz.c:
11186         Include flexmember.h.
11187         * lib/fnmatch_loop.c (struct patternlist):
11188         * lib/localename.c (struct hash_node):
11189         Use FLEXIBLE_ARRAY_MEMBER.
11190         * lib/fnmatch_loop.c (EXT):
11191         * lib/fts.c (fts_alloc):
11192         * lib/glob.c (glob_in_dir):
11193         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11194         * lib/localename.c (gl_lock_define_initialized):
11195         * lib/time_rz.c (tzalloc):
11196         Use FLEXSIZEOF instead of offsetof.
11197         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
11198         Check that the size of the struct can be taken.
11199         * modules/flexmember (Files): Add lib/flexmember.h.
11200         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
11201         Add flexmember.
11203 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11205         getprogname: port to Solaris 10
11206         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
11207         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
11208         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
11210         stdalign: correct mistake in alignof doc
11211         Problem reported by Joseph Myers in:
11212         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
11213         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
11214         alignof(S) where S is a structure containing a flexible array
11215         member.  The Gnulib substitute does not support this, but C11 does.
11217 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11219         main.mk: remove sc_program_name, since there is no more need to
11220         use set_program_name in tools (getprogname is enough for most
11221         of the cases).
11222         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
11223         * top/maint.mk (sc_program_name): Remove.
11225 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11227         Port tests away from progname, since modules that need the
11228         program name already depend on getprogname.
11229         * modules/acl-tests (Depends-on): Remove progname.
11230         * modules/argmatch (Depends-on): Likewise.
11231         * modules/argmatch-tests (Depends-on): Likewise.
11232         * modules/argp-tests (Depends-on): Likewise.
11233         * modules/argp-version-etc-tests (Depends-on): Likewise.
11234         * modules/array-list-tests (Depends-on): Likewise.
11235         * modules/array-oset-tests (Depends-on): Likewise.
11236         * modules/avltree-list-tests (Depends-on): Likewise.
11237         * modules/avltree-oset-tests (Depends-on): Likewise.
11238         * modules/avltreehash-list-tests (Depends-on): Likewise.
11239         * modules/carray-list-tests (Depends-on): Likewise.
11240         * modules/copy-file-tests (Depends-on): Likewise.
11241         * modules/exclude-tests (Depends-on): Likewise.
11242         * modules/fchownat-tests (Depends-on): Likewise.
11243         * modules/fdopendir-tests (Depends-on): Likewise.
11244         * modules/filenamecat-tests (Depends-on): Likewise.
11245         * modules/fstatat-tests (Depends-on): Likewise.
11246         * modules/fstrcmp-tests (Depends-on): Likewise.
11247         * modules/linked-list-tests (Depends-on): Likewise.
11248         * modules/linkedhash-list-tests (Depends-on): Likewise.
11249         * modules/mkdirat-tests (Depends-on): Likewise.
11250         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
11251         * modules/nonblocking-socket-tests (Depends-on): Likewise.
11252         * modules/obstack-printf-tests (Depends-on): Likewise.
11253         * modules/openat-tests (Depends-on): Likewise.
11254         * modules/parse-datetime-tests (Depends-on): Likewise.
11255         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
11256         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
11257         * modules/quotearg-simple-tests (Depends-on): Likewise.
11258         * modules/quotearg-tests (Depends-on): Likewise.
11259         * modules/rbtree-list-tests (Depends-on): Likewise.
11260         * modules/rbtree-oset-tests (Depends-on): Likewise.
11261         * modules/rbtreehash-list-tests (Depends-on): Likewise.
11262         * modules/spawn-pipe-tests (Depends-on): Likewise.
11263         * modules/system-quote-tests (Depends-on): Likewise.
11264         * modules/uniname/uniname-tests (Depends-on): Likewise.
11265         * modules/uninorm/nfc-tests (Depends-on): Likewise.
11266         * modules/uninorm/nfd-tests (Depends-on): Likewise.
11267         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
11268         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
11269         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
11270         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
11271         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
11272         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
11273         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
11274         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
11275         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
11276         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
11277         * modules/unlinkat-tests (Depends-on): Likewise.
11278         * modules/version-etc-tests (Depends-on): Likewise.
11279         * modules/xalloc-die-tests (Depends-on): Likewise.
11280         * modules/xmemdup0-tests (Depends-on): Likewise.
11281         * modules/xprintf-posix-tests (Depends-on): Likewise.
11282         * modules/xvasprintf-tests (Depends-on): Likewise.
11283         * tests/test-argmatch.c: Do not include progname.h.
11284         (main) Stop calling set_program_name.
11285         * tests/test-argp-version-etc.c: Likewise.
11286         * tests/test-argp.c: Likewise.
11287         * tests/test-argv-iter.c: Likewise.
11288         * tests/test-array_list.c: Likewise.
11289         * tests/test-array_oset.c: Likewise.
11290         * tests/test-avltree_list.c: Likewise.
11291         * tests/test-avltree_oset.c: Likewise.
11292         * tests/test-avltreehash_list.c: Likewise.
11293         * tests/test-carray_list.c: Likewise.
11294         * tests/test-copy-acl.c: Likewise.
11295         * tests/test-copy-file.c: Likewise.
11296         * tests/test-exclude.c: Likewise.
11297         * tests/test-fchownat.c: Likewise.
11298         * tests/test-fdopendir.c: Likewise.
11299         * tests/test-filenamecat.c: Likewise.
11300         * tests/test-fstatat.c: Likewise.
11301         * tests/test-fstrcmp.c: Likewise.
11302         * tests/test-linked_list.c: Likewise.
11303         * tests/test-linkedhash_list.c: Likewise.
11304         * tests/test-mkdirat.c: Likewise.
11305         * tests/test-nonblocking-pipe-main.c: Likewise.
11306         * tests/test-nonblocking-socket-main.c: Likewise.
11307         * tests/test-obstack-printf.c: Likewise.
11308         * tests/test-openat.c: Likewise.
11309         * tests/test-parse-datetime.c: Likewise.
11310         * tests/test-pipe-filter-gi1.c: Likewise.
11311         * tests/test-pipe-filter-gi2-main.c: Likewise.
11312         * tests/test-pipe-filter-ii1.c: Likewise.
11313         * tests/test-pipe-filter-ii2-main.c: Likewise.
11314         * tests/test-quotearg-simple.c: Likewise.
11315         * tests/test-quotearg.c: Likewise.
11316         * tests/test-rbtree_list.c: Likewise.
11317         * tests/test-rbtree_oset.c: Likewise.
11318         * tests/test-rbtreehash_list.c: Likewise.
11319         * tests/test-sameacls.c: Likewise.
11320         * tests/test-set-mode-acl.c: Likewise.
11321         * tests/test-spawn-pipe-main.c: Likewise.
11322         * tests/test-system-quote-main.c: Likewise.
11323         * tests/test-unlinkat.c: Likewise.
11324         * tests/test-version-etc.c: Likewise.
11325         * tests/test-xalloc-die.c: Likewise.
11326         * tests/test-xfprintf-posix.c: Likewise.
11327         * tests/test-xmemdup0.c: Likewise.
11328         * tests/test-xprintf-posix.c: Likewise.
11329         * tests/test-xvasprintf.c: Likewise.
11330         * tests/uniname/test-uninames.c: Likewise.
11331         * tests/uninorm/test-u32-nfc-big.c: Likewise.
11332         * tests/uninorm/test-u32-nfd-big.c: Likewise.
11333         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
11334         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
11335         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11336         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11337         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11338         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11339         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11340         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11341         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11342         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11343         * tests/test-c-stack.c: (program_name): Do not define.
11344         (main): Do not set program_name.
11345         * tests/test-closein.c: Likewise.
11346         * tests/test-xstrtol.c: Likewise.
11347         * tests/test-yesno.c: Likewise.
11349 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11351         Port modules to use getprogname explicitly, instead of requiring
11352         progname to be used (or program_name to be provided).
11353         * lib/argmatch.c: Do not include progname.h.
11354         [TEST] (program_name): Do not define.
11355         [TEST] (main): Call getprogname instead of using program_name.
11356         * lib/c-stack.c: Do not include progname.h.
11357         (program_name): Do not define.
11358         (die): Call getprogname instead of using program_name.
11359         * lib/chdir-long.c: Do not include progname.h.
11360         [TEST_CHDIR] (main): Do not set program_name.
11361         * lib/error.c [!_LIBC]: Include progname.h.
11362         [!_LIBC] (program_name): Define using getprogname.
11363         * lib/euidaccess.c: Do not include progname.h.
11364         [TEST] (main): Do not set program_name.
11365         * lib/git-merge-changelog.c: Include getprogname.h instead of
11366         progname.h.
11367         (usage): Call getprogname instead of using program_name.
11368         (main): Likewise.  Stop calling set_program_name.
11369         * lib/group-member.c: Do not include progname.h.
11370         [TEST] (main): Do not set program_name.
11371         * modules/argmatch (Depends-on): Add getprogname.
11372         * modules/c-stack (Depends-on): Likewise.
11373         * modules/error (Depends-on): Likewise.
11374         * modules/git-merge-changelog (Depends-on): Likewise.
11375         Also remove progname.
11377 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
11379         * NEWS: Document the deprecation of the 'progname' module.
11381 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11383         getprogname: new module
11384         This provides a LGPL module for getting the name of the current
11385         program, using the same API found on *BSD systems.
11386         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
11387         * modules/getprogname: New files.
11388         * MODULES.html.sh (Misc): Add getprogname.
11390 2016-09-02  Jim Meyering  <meyering@fb.com>
11392         manywarnings: add -fno-common
11393         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
11394         to the list.  Quoting the manual, "Compiling with -fno-common is
11395         useful on targets for which it provides better performance, or if
11396         you wish to verify that the program will work on other systems that
11397         always treat uninitialized variable declarations this way [putting
11398         it in the data section]."  If diffutils had been using this sooner,
11399         it would have prevented this duplicate declaration issue:
11400         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
11402 2016-08-31  Simon Josefsson  <simon@josefsson.org>
11404         parse-datetime: Fix typo.
11405         * lib/parse-datetime.y (parse_datetime2): Fix typo.
11407 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11409         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
11410         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
11411         GCC 5 and 6 that have __builtin_sub_overflow but not
11412         __builtin_sub_overflow_p.  With the recent changes, these
11413         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
11414         implementation than with INT_SUBTRACT_OVERFLOW implementation,
11415         since the former needs just one runtime comparison whereas the
11416         latter needs two.
11418         strverscmp: sync with glibc
11419         Although this doesn't exactly synchronize with glibc
11420         byte-for-byte, it makes the code behave the same as glibc.
11421         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
11422         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
11423         difference shouldn't matter in practical use.  All uses changed
11424         back to isdigit.
11425         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
11426         (next_state): Now unsigned char array; redo elements.
11427         (result_type): Now signed char array; redo elements.
11428         (__strverscmp): Fix glibc bug 9913 by using new states.
11429         * tests/test-strverscmp.c (main): Test glibc bug 9913.
11431 2016-08-29  Jim Meyering  <meyering@fb.com>
11433         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
11434         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
11435         similarly to how it was done to intprops.h.
11437 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11439         intprops.h: port recent changes to GCC 6.2.0
11440         * lib/intprops.h (__has_builtin): Move earlier.
11441         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
11442         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
11443         the last argument can be null.  All uses changed.
11444         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
11445         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11446         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
11447         and it's not clear which GCC versions it works for.
11448         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
11449         its definiens.
11451         intprops.h: use __typeof__ with GCC 7
11452         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
11453         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
11454         This avoids computing the expression's value (which might overflow!).
11456 2016-08-29  Jim Meyering  <meyering@fb.com>
11458         intprops.h, xalloc-oversized.h: work with gcc 7
11459         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
11460         __builtin_mul_overflow each accept a NULL pointer as the third
11461         argument.  However in gcc 7, that is no longer accepted.
11462         Instead, one must use the "_p"-suffixed names, with which, the
11463         third parameter is no longer a pointer.
11464         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
11465         the definition: not true for gcc 7 and subsequent.
11466         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
11467         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11468         Provide new definitions for gcc 7 and subsequent.
11469         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
11470         that works with gcc-7.
11472         intprops.h: fix missing-backslash problems
11473         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
11474         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
11476 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11478         intprops: fix paren typo on old platforms
11479         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
11480         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
11481         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
11482         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
11483         && !defined LLONG_MAX]:
11484         Remove stray paren.
11486         intprops: port to OpenVMS
11487         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
11488         * doc/posix-headers/limits.texi: Document the problem.
11489         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
11490         Define if not already defined.
11492 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
11494         parse-datetime: improve debug implementation
11495         Follow-up to commit 12ad79069 ("add optional debug printing").
11496         Improve parse-datetime's debug implementation: remove macros,
11497         replace global debug flag variable with a function parameter,
11498         use nstrftime for formatting.
11499         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
11500         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
11501         (parse_datetime2): New function, accepts 'flags' parameter, supporting
11502         debug flag. Existing interface 'parse_datetime' left unmodified.
11503         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
11504         (struct parser_control): add 'parse_datetime_debug' member variable.
11505         (parse_datetime): Call new function 'parse_datetime2' without debug.
11506         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
11507         pc.parse_datetime_debug variable as needed.
11508         (to_year): Accept new flags parameter, instead of using global variable.
11509         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
11510         use struct 'debug' variable instead of global variable.
11511         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
11512         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
11513         correspnding functions directly instead of using macros.
11514         * modules/parse-datetime: Add gnulib's strftime module.
11516 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
11518         c-strcase-tests: port to EBCDIC
11519         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
11520         which assume ASCII encoding semantics to run only in ASCII
11521         mode, as they fail in EBCDIC.
11523         sigpipe-tests: fix typo
11524         * tests/test-sigpipe.sh: C, not B.
11526 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11528         canonicalize-lgpl: fix errno after malloca fails
11529         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
11530         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
11531         * lib/canonicalize-lgpl.c (__realpath):
11532         Don't assume malloca sets errno on failure.
11534 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11536         strtod: port errno handling to z/OS
11537         * lib/strtod.c (strtod): Save and restore errno more reliably.
11539 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11541         strtod: port to z/OS
11542         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11543         implementation.
11545 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11547         strtod: port to z/OS
11548         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
11549         implementation.
11551         regex, string: rename to avoid '__string'
11552         * lib/regex.h, lib/string.in.h: Do not use the identifier
11553         '__string', as it is effectively reserved by string.h on z/OS.
11555         c-strcase-tests, wcwidth-tests: depend on c-ctype
11556         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
11557         Add c-ctype.
11559 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
11561         thread: port to z/OS
11562         * lib/glthread/thread.c, lib/glthread/thread.h:
11563         Rudimentary gl_thread support for z/OS.
11565         maint: port tests to z/OS errno behavior
11566         * tests/test-nonblocking-reader.h:
11567         * tests/test-nonblocking-writer.h:
11568         Accommodate z/OS errno code preferences. (I believe this should
11569         still be within spec; IBM is good at following the letter if not
11570         the spirit of such things.)
11572         maint: preprocessor changes to support z/OS
11573         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
11574         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
11575         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
11576         * tests/test-nonblocking-pipe.h:
11578         fclose, strstr-simple, wchar: port to z/OS
11579         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
11580         Changes to the Autoconf M4 code to support z/OS.  Note that
11581         fclose() is broken in a different way on z/OS than it is on other
11582         systems, thus the special-case in fclose.m4.
11584         iconv_open-utf-tests, iconv-tests: port to EBCDIC
11585         * tests/test-iconv-utf.c, tests/test-iconv.c:
11586         Added appropriately conditional #pragmas so that the test strings
11587         in test-iconv-utf.c are correctly interpreted in ASCII instead of
11588         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
11589         addressed in a more portable way by simply rewriting all the ASCII
11590         literal characters as octal escapes, but then you would lose the
11591         partial readability that the strings have now. Also, iconv_open()
11592         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
11594         c-strcase-tests, wcwidth-tests: port to EBCDIC
11595         * tests/test-c-strcasecmp.c: Include c-ctype.h.
11596         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
11597         * tests/test-wcwidth.c: Likewise.
11599 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11601         stdbool: don't require _Bool for C++
11602         Problem reported by David Seifert in:
11603         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
11604         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
11605         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
11606         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
11607         stricter about checking that bool and _Bool are compatible in C.
11609 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
11611         getdelim: remove dependency on realloc-posix
11612         * lib/canonicalize-lgpl.c (alloc_failed)
11613         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
11614         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
11615         Use __set_errno where needed, for consistency.
11616         * lib/getdelim.c (alloc_failed): New function.
11617         (getdelim): Use it.
11619 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
11621         parse-datetime: add optional debug printing
11622         Print parsing information, warnings, and errors to stderr.
11623         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
11624         * lib/parse-datetime.y:
11625         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
11626         (PROGRESS*): Same as DEBUG, for progress reporting.
11627         (dbg_printf): Print message to stderr, with 'date' prefix.
11628         (struct parser_control): Add 'debug_*_seen' variables.
11629         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
11630         (debug_print_current_time, debug_print_relateive_time): Prints the
11631         current/relative date/time value of parser_control.
11632         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
11633         (to_year): Warn about 2-digit year parsing.
11634         (yylex):   Warn about unrecognized words.
11635         (get_effective_timezone): Returns current timezone in minutes.
11636         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
11637         clearly and unambigiously as possible.
11638         (debug_mktime_not_ok): Print detailed information about failed
11639         date/time values.
11640         (parse_datetime): Add DEBUG messages for failures, warnings. Add
11641         PROGRESS messages for status messages.
11642         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
11644 2016-08-06  Jim Meyering  <meyering@fb.com>
11646         tests/init.sh: exclude dash with bad "local" semantics
11647         * tests/init.sh (gl_shell_test_script_): Add a function to
11648         eliminate a shell like "dash" (unlike bash, zsh) that has
11649         surprising/risky "local var='...'" semantics.  Inspired by
11650         the problem and discussion in https://bugs.gnu.org/24116#11.
11652 2016-08-02  Ján Tomko  <jtomko@redhat.com>
11654         maint.mk: expand the prohibit_doubled_word regex
11655         This check has a static list of words that are checked for
11656         repetitions.  Expand it before running the perl script to
11657         avoid using expensive captures.  This decreases the cost
11658         for libvirt from 1.66s to 0.66s.
11659         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
11660         (sc_prohibit_doubled_word): Use it.
11662 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11664         useless-if-before-free: skip non-matching lines early
11665         * build-aux/useless-if-before-free: First match each line with the
11666         simple/quick /\bif\b/ and reject if there is no match. This often
11667         saves the cost of the much more involved regular expression.
11668         For libvirt, this decreases the cost from 1.44s to 1.02s.
11670 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11672         maint.mk: speed up sc_po_check
11673         sc_po_check would skip files based on their names, or on the
11674         existence of files with derived names. Rewrite it to use perl
11675         instead of shell to make the check faster.
11676         * top/maint.mk (perl_translatable_files_list_): Define.
11677         (sc_po_check): Use it.
11679 2016-07-30  Ján Tomko  <jtomko@redhat.com>
11681         maint.mk: speed up require_config_h_first
11682         Instead of spawning three processes per file,
11683         rewrite the check in perl and run it once for all the files.
11684         * top/maint.mk (perl_config_h_first_): Define.
11685         (sc_require_config_h_first): Use it in place of shell code.
11687 2016-07-26  Ján Tomko  <jtomko@redhat.com>
11689         maint.mk: speed up sc_po_check
11690         sc_po_check would skip files based on their names, or on the
11691         existence of files with derived names. Rewrite it to use perl
11692         instead of shell to make the check faster.
11693         * top/maint.mk (perl_translatable_files_list_): Define.
11694         (sc_po_check): Use it.
11696 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11698         obstack: pacify GCC 6 with -Wnull-dereference
11699         Problem reported by Assaf Gordon in:
11700         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
11701         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
11702         Declare with __attribute_noreturn__.
11703         * lib/obstack.h (__attribute_noreturn__): New macro.
11705 2016-07-13  Eric Blake  <eblake@redhat.com>
11707         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
11708         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
11709         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
11711 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
11713         doc: mention glibc SSIZE_MAX buglet
11714         * doc/posix-headers/limits.texi (limits.h): Document the bug.
11716 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
11718         printf-posix: Fix mingw build
11719         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
11720         expression for detecting C symbol prefixes but forgot to qoute square
11721         brackets in the command line arguments for grep.  That way when
11722         building with mingw the condition was false although it ought to be
11723         true instead.  In particular scenarios this led to the following
11724         compile error:
11726             Cannot export rpl_printf: symbol not found
11727             Cannot export rpl_scanf: symbol not found
11728             collect2: error: ld returned 1 exit status
11730         Fix this by properly quoting square brackets.
11732 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11734         mktime: call tzset as per POSIX
11735         Problem reported by Ludovic Courtès in:
11736         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
11737         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
11738         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
11740 2016-06-26  Pádraig Brady  <P@draigBrady.com>
11742         fts: handle readdir() errors
11743         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
11744         but also upon error when it will also set errno.  Therefore
11745         flag the error case from readdir().  We treat the case where
11746         no items are read the same as if the dir can't be accessed,
11747         i.e. by setting fts_errno to FTS_DNR.
11749 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
11751         intprops: port better to GCC 7
11752         GCC 7 __builtin_add_overflow supports a new usage form, where the
11753         last argument is a null pointer, and which merely returns 1 if an
11754         overflow would occur.  This is a constant expression if all
11755         arguments are constants, and should generate faster code when code
11756         needs to be generated.
11757         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
11758         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
11759         Use builtin operations if available.
11760         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
11761         operations are available, as it's almost surely faster.
11763 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
11765         intprops-test: port to GCC 6
11766         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
11767         since the bug is not fixed in GCC 6.1.
11769 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11771         xalloc-oversized: port to GCC 7; fewer warnings
11772         GCC 7 will have a better way to deal with integer overflow.
11773         Plus, fix a warnings problem reported by Tim Ruehsen in:
11774         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
11775         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
11776         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
11777         For GCC 5, use __xalloc_oversized if both args are constants,
11778         or if pedantic.
11780 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
11782         regex: port to Sun C
11783         Reported by Daiki Ueno.
11784         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
11785         __restrict, in prototype.  This fixes a problem I introduced in
11786         the 2016-02-19 merge from glibc.
11788 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
11790         stdbool: Restore __bool_true_false_are_defined check
11791         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
11792         __bool_true_false_are_defined is still defined, even with C++11.
11794 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
11796         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
11797         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
11799 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
11801         Use GCC_LINT, not lint
11802         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
11803         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
11804         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
11805         Document problem with lint and _Noreturn.
11806         * lib/diffseq.h (IF_LINT, IF_LINT2):
11807         * lib/fts.c (sccsid):
11808         * lib/getndelim2.c (IF_LINT):
11809         * lib/gl_anylinked_list2.h (gl_linked_iterator)
11810         (gl_linked_iterator_from_to):
11811         * lib/gl_anytree_list2.h (gl_tree_iterator)
11812         (gl_tree_iterator_from_to):
11813         * lib/gl_anytree_oset.h (gl_tree_iterator):
11814         * lib/gl_array_list.c (gl_array_iterator)
11815         (gl_array_iterator_from_to):
11816         * lib/gl_array_oset.c (gl_array_iterator):
11817         * lib/gl_carray_list.c (gl_carray_iterator)
11818         (gl_carray_iterator_from_to):
11819         * lib/idcache.c:
11820         * lib/inet_ntop.c (IF_LINT):
11821         * lib/regcomp.c (build_charclass_op, create_tree):
11822         * lib/regex_internal.c (re_acquire_state)
11823         (re_acquire_state_context):
11824         * lib/trigl.c (rcsid):
11825         * lib/trim.c (IF_LINT):
11826         * lib/vasnprintf.c (IF_LINT):
11827         * lib/verify.h (assume):
11828         Treat GCC_LINT like lint.
11830 2016-05-29  Bruno Haible  <bruno@clisp.org>
11832         secure_getenv: Port to many more platforms.
11833         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
11834         functions.
11835         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
11836         for non-BSD Unix platforms and for native Windows.
11837         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
11838         Prompted by a request from Nikos Mavrogiannopoulos.
11840 2016-05-27  Eric Blake  <eblake@redhat.com>
11842         canonicalize: Fix broken probe for realpath.
11843         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
11844         in logic introduced in 54615b95.
11846 2016-05-26  Eric Blake  <eblake@redhat.com>
11848         unsetenv: relax to LGPLv2+
11849         * modules/unsetenv (License): Match setenv license.
11851 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
11853         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
11854         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
11855         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
11856         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
11857         (commonarg, dirargs, dirs, infoarg, generate_ascii)
11858         (generate_html, generate_info, generate_tex, outdir)
11859         (source_extra, split, srcfile, texarg): Move above 'version'.
11860         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
11862 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11864         manywarnings: update for GCC 6.1
11865         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
11866         Add GCC 6.1 options that apply to C.
11867         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
11868         do not apply to C, are obsolescent, etc.
11870 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
11872         glob: size_t overflow checks
11873         * lib/glob.c (__has_builtin): New macro.
11874         (size_add_wrapv, glob_use_alloca): New static functions.
11875         (glob, glob_in_dir): Check for size_t overflow in several places,
11876         and fix some size_t checks that were not quite right.
11878         glob: don't assume INT_MAX < SIZE_MAX
11879         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
11880         latter is not portable to (probably theoretical) hosts where
11881         SIZE_MAX <= INT_MAX.
11883 2016-05-09  Bruno Haible  <bruno@clisp.org>
11885         Fix undefined behaviour in gettext.h.
11886         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
11887         pointer's value after the storage it points to has been freed.
11888         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
11889         Spotted by Coverity.
11891 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11893         git-version-gen: avoid undefined shift
11894         Problem reported by Mosè Giordano in:
11895         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
11896         * build-aux/git-version-gen: Avoid undefined behavior if invoked
11897         with --prefix or --fallback but without a later argument.  While
11898         we're at it, omit unnecessary quotes.
11900 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
11902         glob: merge glibc changes into lib/glob.c
11903         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
11904         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
11905         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
11906           struct dirent [BZ #19779]
11907         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
11908           callback gl_readdir
11909         2015-10-20 Convert miscellaneous function definitions to prototype style
11910         2015-10-20 Convert 113 more function definitions to prototype style
11911           (files with assertions)
11912         2015-06-12 Fix getlogin_r namespace (bug 18527).
11913         2014-02-10 Use glibc_likely instead __builtin_expect.
11914         2013-10-20 When glob pattern contains a trailing slash match only
11915           directories. Fixes bug 10278.
11916         2013-09-04 glob: silence -Wattribute warnings
11917         2013-06-07 Avoid use of "register" as optimization hint.
11918         2012-09-25 Use size_t instead of int for internal variables in glob
11919           (bug 14621)
11920         2011-07-20 Check for overflows in expressions
11921         2011-05-28 Remove unused variable
11922         2011-05-22 Add a few more alloca size checks
11923         2010-03-27 Whitespace fixes
11924         2010-03-27 Fix one more issue with the glob patch
11925         2010-03-24 Fix glob with empty pattern
11926         2008-05-27 Remove useless more "if" tests before "free"
11927         * modules/glob (Depends-on): Add stdint.
11929 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
11931         mktime: port to stricter signed overflow checking
11932         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
11933         (long_int): Require width for INT_MAX * 3 * (seconds per year),
11934         instead of merely for INT_MAX * 2.  In practice platforms that
11935         do the latter also do the former.
11936         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
11937         (shr): New static function, replacing SHR.  All uses changed.
11938         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
11939         and TIME_T_MAX.  All uses changed.
11940         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
11941         Use long_int, not time_t.
11942         (long_int_avg): New static function, replacing time_t_avg.
11943         All uses changed.  Round toward positive infinity, as that
11944         generates slightly better code.
11945         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
11946         by INT_ADD_WRAPV.
11947         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
11948         (convert_time): New static function.
11949         (ranged_convert): Use it
11950         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
11951         Use simpler test for loop exit.
11952         (__mktime_internal): Store negative of guessed offset, to simplify
11953         overflow checking.  Remove no-longer-needed test for small time_t
11954         overflows.
11956         mktime: speed up DEBUG_MKTIME benchmarks
11957         Call tzset just once, at the start, rather than for every test
11958         case.  This lets us measure the CPU cost of mktime as opposed to
11959         that of tzset.  This is relevant when TZ is not set and glibc is
11960         being used.  This speeds up tests by a factor of 40 on my Fedora
11961         23 x86-64 platform.
11962         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
11963         to call tzset and as a sanity check.  Later on, use localtime_r
11964         instead of localtime.
11966         mktime: resurrect DEBUG_MKTIME testing
11967         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
11968         Include <string.h>, for strcmp.
11970         mktime: simplify DEBUG_MKTIME
11971         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
11972         Simplify later usage accordingly.
11974         Port mktime_internal offset to unsigned time_t
11975         This avoids some assumptions about wraparound arithmetic on
11976         signed integer overflow.
11977         * lib/mktime-internal.h (mktime_offset_t): New type.
11978         (mktime_internal): Use it in decl.
11979         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
11981         * lib/mktime.c (__mktime_internal, localtime_offset):
11982         * lib/timegm.c (timegm): Use it.
11983         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
11984         (gl_FUNC_MKTIME): Require it.
11986 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
11988         xstrtol: prohibit monstrosities like "1bB"
11989         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
11990         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
11991         "B" only if the first suffix needs a base.
11992         * tests/test-xstrtol.sh: Test this.
11994 2016-04-21  Pádraig Brady  <P@draigBrady.com>
11996         xstrtod: reinstate setting of *result upon ERANGE
11997         * lib/xstrtod.c (XSTRTOD): The user may decide to use
11998         the returned limits upon ERANGE, so allow and document that.
12000 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
12002         xstrtod: modify *result only if no errors
12003         * lib/xstrtod.c (XSTRTOD).
12005 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
12007         btowc: document problems in C locale
12008         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
12009         with mbrtowc.  See: http://bugs.gnu.org/23269#32
12011 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12013         mktime: improve integer overflow checking
12014         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
12015         (WRAPV): Remove; no longer needed.
12016         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
12017         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
12018         Remove.  Use intprops.h defns instead.
12019         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
12020         Use bool for Boolean, for clarity.
12021         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
12022         detect integer overflow.
12023         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
12025         intprops: check two's complement assumption
12026         Suggested by Eric Blake in:
12027         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
12028         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
12029         short, int, long, and (if available) long long are two's complement.
12030         * modules/intprops (Depends-on): Add 'verify'.
12032         intprops, mktime, strtol: assume two's complement
12033         These macros were not portable to every conforming C11 ones'
12034         complement platform.  It's not worth the hassle of porting to some
12035         platforms that use ones' complement or signed magnitude, as such
12036         platforms are almost purely theoretical nowadays and porting even
12037         to some of them makes the code harder to review for little
12038         practical benefit.  Problem reported by Florian Weimer in:
12039         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
12040         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12041         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
12042         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
12043         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12044         (TYPE_SIGNED_MAGNITUDE):
12045         Remove.  All uses rewritten to assume two's complement, which is
12046         all we can reasonably test nowadays anyway.
12047         * top/maint.mk (_intprops_names): Remove the removed macros.
12049 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
12051         stdint: port to strict C11 left shift
12052         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
12053         Pacify clang -Wshift-negative-value, which should be an issue only
12054         on clang setups where stdint.h does not conform to C11 or to C++11.
12055         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
12057 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12059         mbrtowc: work around glibc bug#19932
12060         Fix mbrtowc so that it never returns -1 in the C locale,
12061         as this conflicts with a future version of POSIX
12062         http://austingroupbugs.net/view.php?id=663#c2738
12063         and causes problems with GNU grep: http://bugs.gnu.org/23234
12064         See glibc bug 19932:
12065         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
12066         * doc/posix-functions/mbrlen.texi (mbrlen):
12067         * doc/posix-functions/mbrtowc.texi (mbrtowc):
12068         Document the glibc bug.
12069         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
12070         Include hard-locale.h, locale.h.
12071         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
12072         if the bug is possible.
12073         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
12074         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
12075         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
12076         * modules/mbrtowc (Depends-on): Add hard-locale.
12077         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
12078         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
12079         * tests/test-mbrtowc5.sh: New file.
12081 2016-04-03  Pedro Alves  <palves@redhat.com>
12083         stdint: detect good enough pre-C++11 stdint.h in C++ mode
12084         When gnulib is configured in C++ mode for a system with a working C99
12085         implementation of stdint.h that predates C++11, gnulib ends up
12086         substituting stdint.h anyway.  This works on most targets, but on e.g.,
12087         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
12088         MinGW is LLP64.  Instead of trying to detect the right types, detect
12089         good-enough-pre-C++11 stdint.h and in such case define
12090         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
12091         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
12092         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
12093         conforms to C99.  If it does, check whether it hides symbols
12094         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
12095         does, define those macros in config.h.
12097 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12099         argp: merge changes from glibc
12100         Among other things, this should fix problems found by a Coverity
12101         scan and reported by Andrei Borzenkov:
12102         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
12103         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
12104         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
12105         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
12106         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
12107         * lib/argp.h:
12108         Merge changes from glibc.
12109         * tests/test-argp-2.sh: Adjust to match new behavior.
12111 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
12113         stddef: support configuring with g++
12114         Problem reported by Ángel González in:
12115         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
12116         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
12117         Do not define if _GCC_MAX_ALIGN_T is defined.
12119 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12121         test-framework-sh: minor cleanups
12122         * tests/init.sh (testdir_prefix_): Output a trailing newline,
12123         since strictly speaking POSIX requires this.
12124         (setup_): Do not use the variable 'fail', as that makes the
12125         trace output harder to read ('fail' is typically used by
12126         tests to mean the test failed).  Treat // portably.
12127         Check that new directory is not merely a sibling of the tmp dir.
12128         Avoid unnecessary invocation of tr.
12130         test-framework-sh: revert port to NetBSD 7.0
12131         It was a false alarm; I misinterpreted Assaf Gordon's report.
12132         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12133         Restore.
12134         (test_dir_): Adjust to mktempd_ change.
12135         (mktempd_): Restore 2nd arg.  Use -t again.
12136         (base_template_, template_, nx_): Resurrect old code.
12138         Port better to Alpine Linux
12139         Its diff implementation does not support -c, but does support -U3.
12140         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12141         * tests/init.sh (diff_opt_): New var.
12142         (compare_): Prefer diff -U3 to diff -c to plain diff.
12144 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12146         test-framework-sh: port to NetBSD 7.0
12147         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12148         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12149         Remove.  All uses removed.
12150         (test_dir_): Adjust to mktempd_ change.
12151         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
12152         (base_template_, template_, nx_): Simplify by hardcoding.
12154 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12156         gitlog-to-changelog: suppress ignored chatter
12157         * build-aux/gitlog-to-changelog: Do not warn about skipping
12158         an SHA if it would have been ignored anyway.
12160 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
12162         setlocale: add "sv" to Windows language table
12163         * lib/setlocale.c (language_table) [W32]: Add "sv".
12164         Reported in <https://savannah.gnu.org/bugs/?44588>.
12166 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12168         sys_select: port to new Cygwin
12169         Problem reported by Ken Brown in:
12170         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
12171         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
12172         diagnostics.
12174 2016-03-17  Jim Meyering  <meyering@fb.com>
12176         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
12177         * tests/test-userspec.c (main): Remove unnecessary braces and fix
12178         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
12179           test-userspec.c:176:9: error: statement is indented as if it were \
12180             guarded by... [-Werror=misleading-indentation]
12181                    {
12182                    ^
12183           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
12184                  if (!diag && !T[i].result)
12185                  ^~
12187 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12189         time_rz: port to clang -Wunused-const-variable
12190         * lib/time_rz.c (TZ): Remove.  All uses removed.
12192         std-gnu11: improve clang support
12193         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
12194         2016-03-15 Also try clang
12195         2016-03-15 Port C11 and C++11 testing to clang
12197         select: port more to Intel 2016.1.150 compiler
12198         Problem reported by Balázs Hajgató in:
12199         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
12200         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
12202 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
12204         select: try to port to 2016.1.150 compiler
12205         Problem reported by Balázs Hajgató in:
12206         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
12207         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
12208         POSIX specifies 'restrict'.
12210 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
12212         localename-tests: memory allocation fixes
12213         * tests/test-localename.c (test_locale_name)
12214         (test_locale_name_thread): Don't call freelocale on a locale
12215         that was the base of a successful newlocale, as that
12216         results in a double free.  Problem reported by Assaf Gordon.
12217         (test_locale_name_thread): Free saved names after use, to pacify
12218         gcc -fsanitize=address.
12220 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12222         intprops: make .h file license match module
12223         * lib/intprops.h: Change the license wording to match glibc format.
12224         This is what is in modules/intprops anyway.  See:
12225         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
12227 2016-03-08  Eric Blake  <eblake@redhat.com>
12229         acl: fix missing return on Cygwin
12230         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
12231         fall off end of function. Fixes http://bugs.gnu.org/22949
12233 2016-03-05  Bruno Haible  <bruno@clisp.org>
12235         extern-inline: port to PGI CC
12236         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
12237         keyword 'inline'.
12238         Reported by Adam James Stewart in:
12239         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
12241 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12243         signbit: port back to pre-C++11 GCC
12244         * lib/math.in.h (signbit): Do previous change only if
12245         __cplusplus < 201103.  See Jonathan Wakely in:
12246         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
12248 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
12250         mountlist: recognize autofs-mounted remote file systems, too
12251         Originally reported at: https://bugzilla.redhat.com/1309247
12252         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
12253         "-hosts" because it is used by autofs to mount remote file systems.
12255 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
12257         signbit: port to C++ with GCC 6
12258         * lib/math.in.h (signbit) [__cplusplus]:
12259         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
12260         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
12262         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
12264         regex: make it closer to libc
12265         Make Idx a signed type, rather than possibly unsigned.
12266         The unsignedness was not really buying us anything, since the code
12267         overflows for other reasons before getting to PTRDIFF_MAX.  Making
12268         it signed allows us to use -1 and -2 with abandon, like libc does,
12269         thus lessening the number of differences between gnulib and libc.
12270         Also, it should help avoid gratuitous warnings like the one
12271         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
12272         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
12275         regex: merge patches from libc
12277         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
12278         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
12279         Convert miscellaneous function definitions to prototype style.
12280         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
12281         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
12282         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
12283         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
12284         (re_search_internal):
12285         Convert to prototype-style function definition.
12286         Use internal_function for internal functions.
12288 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
12290         stdalign: port to older HP and IBM cc
12291         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
12292         C compilers, by checking their version numbers.  These version
12293         numbers appear in MariaDB and in Qt code that dates way back and
12294         that conditiionally uses the 'aligned' attribute.
12296 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12298         stdalign: port to clang 3.7.0
12299         Problem reported by Herbert J. Skuhra in:
12300         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
12301         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
12302         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
12303         https://llvm.org/bugs/show_bug.cgi?id=26547
12305 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12307         readdir_r: now obsolescent
12308         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
12309         * lib/mountlist.c (read_file_system_list): Add a FIXME.
12311 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12313         misc: port better to gcc -fsanitize=address
12314         Without these patches, ./configure CFLAGS='-fsanitize=address'
12315         would compute incorrect values.  This patch fixes some (but not all)
12316         test failures with recent glibc, with this configuration.
12317         * m4/acl.m4 (gl_ACL_GET_FILE):
12318         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
12319         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
12320         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
12321         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
12322         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12323         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12324         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
12325         * m4/getline.m4 (gl_FUNC_GETLINE):
12326         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
12327         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
12328         * m4/regex.m4 (gl_REGEX):
12329         * m4/strndup.m4 (gl_FUNC_STRNDUP):
12330         * tests/test-calloc-gnu.c (main):
12331         * tests/test-duplocale.c (main):
12332         * tests/test-getgroups.c (main):
12333         * tests/test-getline.c (main):
12334         * tests/test-inttostr.c (main):
12335         * tests/test-localename.c (test_locale_name)
12336         (test_locale_name_thread, test_locale_name_environ)
12337         (test_locale_name_default):
12338         * tests/test-regex.c (main):
12339         * tests/test-setlocale1.c (main):
12340         * tests/test-stat.h (test_stat_func):
12341         Free heap-allocated storage before exiting.
12342         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
12343         Don't match *_foo symbols inserted by AddressSanitizer.
12344         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
12346 2016-02-02  Jim Meyering  <meyering@fb.com>
12348         verify-tests: also remove stray test-verify.Tpo
12349         * modules/verify-tests (Makefile.am): Arrange for "make clean"
12350         to remove the test-verify.Tpo file that is left behind by
12351         the automake-generated rule upon compilation failure.
12352         Otherwise, that .Tpo file would cause a failed "make distcheck"
12353         at least for grep.
12355 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12357         std-gnu11: new module
12358         This makes it easier for applications to prefer C11 and C++11
12359         to older variants, when compiling C and C++ code.
12360         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
12361         a nontrivial chunk of GPLed Autoconf source code.
12362         * COPYING: Mention the m4/*.m4 copyright situation.
12363         * MODULES.html.sh (std-gnu11): New module.
12364         * m4/std-gnu11.m4, modules/std-gnu11: New files.
12366 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12368         get-permissions, strftime: fix grammar in comments
12369         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
12370         some grammar fixes Alan Mackenzie made to GNU Emacs.
12372 2016-01-25  Daiki Ueno  <ueno@gnu.org>
12374         gettext: mark as obsolete
12375         Suggested by Paul Eggert in:
12376         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
12377         * modules/gettext (Status): Mark as obsolete.
12378         (Notice): Suggest to use 'gettext-h' instead.
12379         * modules/gettext-h (Description): Suggest GNU gettext, instead of
12380         the 'gettext' module.
12382 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12384         gnulib-tool: don't give up on ln -s so easily
12385         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
12386         because an earlier one failed.  The targets could be on different
12387         file systems.  Problem reported by KO Myung-Hun in:
12388         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
12390         closedir: fix OS/2-related typos
12391         Problem reported by KO Myung-Hun in:
12392         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
12393         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
12394         in the last couple of changes.
12396 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
12398         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
12399         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
12400         copying a directory.
12402 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
12404         regex: treat [x] as x if x is a unibyte encoding error
12405         Problem reported by Aharon Robbins in:
12406         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
12407         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
12408         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
12410         closedir, dirfd, opendir: port to OpenSolaris 5.10
12411         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
12412         * m4/dirfd.m4 (gl_FUNC_DIRFD):
12413         * m4/opendir.m4 (gl_FUNC_OPENDIR):
12414         Don't use ${word##pat} substitution, as it doesn't work in
12415         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
12416         http://bugs.gnu.org/22443#11
12418 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
12420         bootstrap: use American spelling
12421         * build-aux/bootstrap: Honor American spelling.
12423 2016-01-22  Karl Berry  <karl@freefriends.org>
12425         * doc/posix-functions/localtime.texi,
12426         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
12428 2016-01-21  Bruno Haible  <bruno@clisp.org>
12430         hash-pjw-bare: fix comment
12431         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
12433         wcwidth: Replace also on OpenBSD 5.8
12434         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
12435         * doc/posix-functions/wcwidth.texi: Update.
12437 2016-01-20  Pádraig Brady  <P@draigBrady.com>
12439         gnu-web-doc-update: fix addition of new files
12440         If there were already added (emnpty) dirs,
12441         then cvs aborts the add with the message:
12442           cvs [add aborted]: there is a version in <./dirname> already
12443         * build-aux/gnu-web-doc-update: Add directories separately
12444         to the addition of files, to avoid the above issue
12445         impacting the addition of files.
12447 2016-01-19  Daiki Ueno  <ueno@gnu.org>
12449         utimens-tests: avoid pulling gettext .m4 files
12450         Although this is not the right fix to the original problem:
12451         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
12452         it makes it possible again for consumer projects to use arbitrary
12453         version of gettext, through the steps described at:
12454         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
12455         See here for details:
12456         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
12457         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
12458         'gettext'.
12459         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
12460         'gettext'.
12462 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12464         regex: pacify static checkers
12465         Problem and draft fix reported by Aharon Robbins in:
12466         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12467         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
12468         Clear memory to pacify static checkers.
12470         regex: fix [ diagnostic
12471         Problem and fix reported by Aharon Robbins in:
12472         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12473         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
12475         regex: fix memory leaks
12476         Problem and draft fix reported by Aharon Robbins in:
12477         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
12478         * lib/regcomp.c (build_range_exp, build_charclass_op)
12479         * lib/regex_internal.c (re_dfa_add_node):
12480         Fix memory leak on failure.
12482 2016-01-18  Pádraig Brady  <P@draigBrady.com>
12484         fts: don't unconditionally use leaf optimization for NFS
12485         NFS st_nlink are not accurate on all implementations,
12486         leading to aborts() if that assumption is made.
12487         See <https://bugzilla.redhat.com/1299169>
12488         * lib/fts.c (leaf_optimization_applies): Remove NFS from
12489         the white list, and document the issue.
12491 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12492             KO Myung-Hun  <komh@chollian.net>
12494         gnulib-tool: don't assume ln -s works
12495         * gnulib-tool (func_ln_s): New function.
12496         (func_ln): Use it.
12498 2016-01-15  KO Myung-Hun  <komh@chollian.net>
12500         utimes: detect utimes() correctly on OS/2 kLIBC
12501         utimes() of OS/2 kLIBC has some limitations.
12502         1. OS/2 itself supports a file date since 1980 year in local time.
12503         2. OS/2 itself supports only even seconds for a file time.
12504         3. utimes() of OS/2 kLIBC does not work on an opened file.
12505         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
12506         * doc/posix-functions/utimes.texi: Document the above limitations of
12507         utimes() on OS/2 kLIBC.
12509 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12510             KO Myung-Hun  <komh@chollian.net>
12512         openat_proc_name: port to OS/2 kLIBC
12513         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
12514         instead of /proc/self/fd.
12515         * lib/openat-proc.c (openat_proc_name):
12516         Don't assume file name length is less than INT_MAX.
12517         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
12519 2016-01-14  KO Myung-Hun  <komh@chollian.net>
12521         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
12522         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
12523         definitions of intptr_t and uintptr_t (which use int and unsigned)
12524         to avoid clashes with declarations of system functions like sbrk.
12525         * lib/stdint.in.h (intptr_t, uintptr_t): Check
12526         _INTPTR_T_DECLARED before defining them.
12528         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
12529         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
12530         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
12531         Declare on kLIBC.
12532         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
12533         fd associated with dirp.
12534         (_gl_register_dirp_fd): New. Register fd associated with dirp to
12535         dirp_fd_list.
12536         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
12537         (dirfd): Implemented for kLIBC.
12538         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
12539         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
12540         succeeds.
12541         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
12542         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12543         (REPLACE_DIRFD): Define to 1 if replaced.
12544         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
12545         * modules/closedir (Depends-on): Add dirfd.
12546         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
12547         condition.
12548         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
12549         * modules/opendir (Depends-on): Add dirfd.
12551         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
12552         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
12553         * lib/dup.c (dup_nothrow): New.
12554         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
12555         (klibc_dup2): New.
12556         * lib/fcntl.c (klibc_fcntl): New.
12557         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
12558         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
12559         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
12560         fd.
12562         pipe_filter_ii_execute: port to OS/2 kLIBC
12563         Pipes on kLIBC do not support O_NONBLOCK like Win32.
12564         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
12565         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
12566         Reuse Win32 code on OS/2 kLIBC.
12567         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
12568         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
12570         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
12571         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
12572         static inline function.  The implementation of wcwidth in wcwidth.c
12573         causes a "conflicting types" error.
12574         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
12576         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
12577         spawn() on OS/2 kLIBC is not silly like one on Windows
12578         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
12579         empty string on OS/2 kLIBC.
12581         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
12582         On OS/2 kLIBC, select() works only on sockets.
12583         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
12585         binary-io: don't put fd in binary mode if it is a console on EMX
12586         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
12587         a console on EMX.
12589 2016-01-15  Pádraig Brady  <P@draigBrady.com>
12591         doc: mention unfixed issues with unsupported localtime() values
12592         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
12593         returns nonsense for localtime(2^56).
12594         * doc/posix-functions/localtime_r.texi: Likewise.
12596 2016-01-14  Pádraig Brady  <P@draigBrady.com>
12598         doc: mention setlocale() issues on OpenBSD
12599         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
12600         never fails, and the need to check categories individually.
12602 2016-01-14  Pádraig Brady  <P@draigBrady.com>
12604         sig2str: list all signals on FreeBSD >= 7
12605         FreeBSD >= 7 is contravening POSIX by not defining NSIG
12606         to the maximal statically defined signal value.
12607         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
12608         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
12609         where available, even when NSIG is defined.
12611 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
12613         acl-permissions: port to USE_ACL==0 platforms
12614         I ran into this problem when building bleeding-edge GNU Emacs
12615         with gcc -fsanitize=address on Fedora 23.  On this platform
12616         the ACL library does not pass the 'configure' test and Emacs
12617         then does not build due in part to what appear to be typos in the
12618         ACL part of Gnulib.
12619         * lib/acl-internal.c (free_permission_context):
12620         * lib/acl-internal.h (struct permission_context):
12621         Test whether USE_ACL is nonzero, not whether it is defined.
12623 2016-01-12  Martin Sebor  <msebor@redhat.com>
12625         mktime: rename macro to avoid glibc clash
12626         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
12627         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
12629 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
12631         Port "$@" to OpenIndiana ksh93
12632         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
12633         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
12634         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
12635         bug long-dead shells, so remove the workaround.
12636         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
12637         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
12638         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
12639         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
12640         Use "$@" instead of ${1+"$@"}.
12642         Port Universal Time settings to strict POSIX
12643         * build-aux/announce-gen, build-aux/bootstrap:
12644         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
12645         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
12646         * build-aux/gnupload, build-aux/mkinstalldirs:
12647         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
12648         * build-aux/update-copyright, build-aux/useless-if-before-free:
12649         * build-aux/vc-list-files, tests/test-strftime.c:
12650         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
12651         but POSIX says the behavior of TZ="UTC" is undefined.
12653 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
12655         msvc-inval: fix problem with unset shell var
12656         Problem reported by Karl Berry in:
12657         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
12658         * modules/msvc-inval (Depends-on):
12659         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
12660         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
12662 2016-01-01  Pádraig Brady  <P@draigBrady.com>
12664         tests: for compare_(), use cmp -s where available
12665         * tests/init.sh (compare_): Only fall back to cmp without
12666         the POSIX defined -s option, where this is not available.
12668 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12670         version-etc: new year
12671         * build-aux/gendocs.sh (version):
12672         * doc/gendocs_template:
12673         * doc/gendocs_template_min:
12674         * doc/gnulib.texi:
12675         * lib/version-etc.c (COPYRIGHT_YEAR):
12676         Update copyright dates by hand in templates and the like.
12677         * all files: Run 'make update-copyright'.
12679 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
12681         human: fix output buffer overrun by 1
12682         * lib/human.c (human_readable): Fix off-by-one typo in buffer
12683         calculation that could lead to a one-byte buffer overrun.
12685 2015-12-28  Daiki Ueno  <ueno@gnu.org>
12687         maint: fix operator precedence in mbrtowc test
12688         This is a fix for test breakage introduced by commit 45228d96; the
12689         equality expression must be parenthesized when negated with '!',
12690         otherwise we always get:
12692           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
12694         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
12695         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
12697 2015-12-23  James Youngman  <jay@gnu.org>
12699         regexprops-generic: update from regex.h
12700         * doc/regexprops-generic.texi: update by running the regexprops binary
12701         from findutils (the command line is 'regexprops "Regular Expressions"
12702         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
12703         gnulib with GNU grep had made this document out-of-date.
12705 2015-12-23  Pádraig Brady  <P@draigBrady.com>
12707         strftime-tests: avoid false failure on OS X
12708         * tests/test-strftime.c (struct localtime_rz_test): Add an
12709         ahistorical member which is used to warn rather than fail
12710         when tm_isdst isn't set for such entries.  This is the case for
12711         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
12713 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
12715         fts: ensure leaf optimization is used for NFS
12716         NFS provides usable dirent.d_type but not necessarily for all entries
12717         of large directories.  See <https://bugzilla.redhat.com/1252549>
12718         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
12720 2015-12-20  Pádraig Brady  <P@draigBrady.com>
12722         fts: enable leaf optimization for XFS
12723         XFS provides usable dirent.d_type only for DT_DIR,
12724         but the noleaf optimization still applies.
12725         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
12727 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
12729         intprops: comment fix
12730         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
12731         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
12733         intprops-test: work around GCC bug 68971
12734         Problem reported by Pádraig Brady in:
12735         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
12736         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
12737         (main): Add a case that better tests 64-bit long in this area.
12739 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
12741         gnulib-tool: allow multiple --local-dir usage
12742         * gnulib-tool: Use --local-dir to construct compound
12743         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
12744         PATH_SEPARATOR early.
12745         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
12746         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
12747         func_determine_path_separator because that needs to be detected
12748         earlier now.
12749         (func_determine_path_separator): New function.
12750         (func_path_foreach, func_path_foreach_inner): New functions.
12751         (func_path_prepend, func_path_append): Likewise.
12752         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
12753         (func_lookup_file, func_all_modules): Use new functions to work
12754         with local_gnulib_path.
12755         (func_modules_in_dir, func_exists_module): New callbacks for
12756         func_path_foreach.
12757         (func_exists_module, func_get_tests_module): Likewise.
12758         (func_is_local_file, func_should_symlink): New helper methods.
12759         (func_add_file, func_update_file): Use new func_should_symlink
12760         instead, DRY.
12761         (func_reconstruct_cached_local_gnulib_path): New helper.
12762         (func_reconstruct_cached_dir): New callback.
12763         (func_import): The cached_local_gnulib_dir renamed to
12764         cached_local_gnulib_path similarly to local_gnulib_dir.
12765         Use new func_reconstruct_cached_local_gnulib_path.
12766         (func_count_relative_local_gnulib_path): New sub-method.
12767         (func_create_testdir): Use func_should_symlink, DRY.
12768         (func_create_megatestdir): Use new functions to work with
12769         local_gnulib_path correctly.
12770         (func_append_local_dir): New helper.
12772 2015-12-08  Pádraig Brady  <P@draigBrady.com>
12774         fix freadptr to work with ungetc on all uClibc configs
12775         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
12776         where GNU coreutils cut(1) generates invalid output on uClibc
12777         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
12778         * lib/freadptr.c (freadptr): Return NULL if there are
12779         ungotten chars.  In this case freadseek() will iterate
12780         again to process the ungotten character.
12782 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12784         xalloc-oversized: improve performance with GCC 5
12785         * lib/xalloc-oversized.h (xalloc_oversized):
12786         Improve performance with GCC 5 by using __builtin_mul_overflow.
12788 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
12790         intprops: new public macro EXPR_SIGNED
12791         Emacs can use this macro, so make it public.
12792         * doc/intprops.texi (Arithmetic Type Properties): Rename from
12793         'Integer Type Determination', since some of these macros apply
12794         to non-integer types.  Clarify what kinds of constant expressions
12795         these macros return.  Say when the arguments can be non-integers.
12796         Mention newly published macro EXPR_SIGNED.
12797         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
12798         make it public.  All uses changed.
12800         intprops: fix typo in clang port
12801         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
12802         '__builtin_add_overflow' that is not caught by compiler.
12804 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
12806         test-timespec: fix typo in previous change
12807         * tests/test-timespec.c (main): Fix typo that reduced test quality.
12809         timespec-sub: fix overflow bug; add tests
12810         * lib/timespec-add.c (timespec_add):
12811         * lib/timespec-sub.c (timespec_sub):
12812         Work even if time_t is narrower than int (a theoretical
12813         possibility).  Redo code for a bit more clarity.
12814         * lib/timespec-sub.c (timespec_sub):
12815         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
12816         * modules/timespec-tests, tests/test-timespec.c: New files.
12818         intprops-test: suppress -Woverlength-strings
12819         Problem reported by Pádraig Brady in:
12820         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
12821         It is not worth the hassle to port this test to compilers that
12822         cannot handle long strings in diagnostics.
12823         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
12825 2015-11-03  Pádraig Brady  <P@draigBrady.com>
12827         quotearg: add quotearg_n_style_colon()
12828         This quotes with default options of the specified style,
12829         but with quoting enabled for instances of ':'.
12830         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
12831         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
12833 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
12835         intprops: revise _WRAPV macros, revert _OVERFLOW
12836         The incompatible changes to the _OVERFLOW macros were too much of
12837         a hassle in practice, so revert them.  Instead, change the new
12838         _WRAPV macros to make them closer in behavior to GCC 5's new
12839         builtin_add_overflow etc. functions.  No other software was using
12840         these newly-added macros yet, so this should be OK.
12841         * NEWS: Revert previous change, since the incompatible change
12842         has been reverted, and nobody used the incompatible version.
12843         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
12844         Document revised behavior.
12845         (Integer Range Overflow): Adjust example to match above revisions.
12846         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
12847         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
12848         these can be used in integer constant expressions again.
12849         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
12850         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
12851         needed.
12852         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
12853         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
12854         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
12855         Remove, as they did not seem that useful.
12856         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
12857         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
12858         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
12859         Support new semantics.
12860         (__has_builtin): New macro, if not alreay defined.
12861         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
12862         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
12863         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
12864         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
12865         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
12866         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
12867         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
12868         New macros.
12869         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
12871 2015-11-03  Jim Meyering  <meyering@fb.com>
12873         intprops: add parentheses for when OP has precedence lower than "-"
12874         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
12875         "a OP b" must be parenthesized for when OP is like "<<", which has
12876         lower precedence than the following "-". Reported by Pádraig Brady.
12878 2015-11-03  Pádraig Brady  <P@draigBrady.com>
12880         quotearg: constify get_quoting_style parameters
12881         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
12882         * lib/quotearg.c (get_quoting_style): Likewise.
12884 2015-11-02  Pádraig Brady  <P@draigBrady.com>
12886         quotearg: add support for $'' shell escaping
12887         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
12888         items and descriptions.
12889         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
12890         above types by quoting like "shell", but using $'...' syntax
12891         for non printable characters, which should provide unambiguous
12892         printable output for any input.
12893         * tests/test-quotearg-simple.c: Update accordingly.
12895 2015-11-02  Pádraig Brady  <P@draigBrady.com>
12897         maint: use a more standard return from mbrtowc test
12898         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
12899         from the test program as this is non standard and often
12900         indicates an unhandled case in the test program.
12901         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
12903 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
12905         intprops: add WRAPV and const flavors for GCC 5
12906         If available, use GCC 5's builtin functions for efficient integer
12907         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
12908         and safely compute the low-order bits of the correct answer.
12909         A downside of these efficient functions is that they cannot be
12910         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
12911         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
12912         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
12913         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
12914         Document the changes.
12915         (Wraparound Arithmetic): New section.
12916         (Integer Range Overflow):
12917         Put this subsection last, since it's least useful.
12918         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
12919         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
12920         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
12921         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
12922         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
12923         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
12924         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
12925         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
12926         New macros.
12927         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12928         Generate calls to GCC builtins if available, for speed.
12929         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
12930         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
12931         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
12932         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
12933         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
12934         (CHECK_QUOTIENT, CHECK_REMAINDER):
12935         Test WRAPV and CONST flavors (when available) too.
12937 2015-10-30  Pádraig Brady  <P@draigBrady.com>
12939         doc: use extended timezone format in iso-8601 example
12940         * doc/parse-datetime.texi: The standard states that extended format
12941         is to be used consistently throughout.
12942         Note that lib/parse-datetime.y can handle either tz format.
12944 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
12946         stdalign: port to Sun C 5.9
12947         * doc/posix-headers/stdalign.texi: Document this.
12948         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
12949         __attribute__ ((__aligned__ (...))).
12951 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
12953         time_rz: fix comment about tzalloc
12954         * lib/time_rz.c (tzalloc): Fix comment.
12956 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
12958         stdalign: work around pre-4.9 GCC x86 bug
12959         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
12960         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
12961         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
12963 2015-10-18  Pádraig Brady  <P@draigBrady.com>
12965         maint.mk: sc_tight_scope: remove extraneous expressions
12966         * top/maint.mk (tight_scope): This is not really required since
12967         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
12968         that matches all nm entries.  But it does remove extraneous entries
12969         that may be confusing or cause issue in future maintenance.
12971 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
12973         time_rz: return NULL if localtime_r fails
12974         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
12975         while still attempting to pacify bleeding-edge GCC.
12977         fts: port to C11 alignof
12978         * doc/posix-headers/stdalign.texi (stdalign.h):
12979         Document the C11 restriction.
12980         * lib/fts.c: Include stddef.h, for max_align_t.
12981         (fts_alloc): Align using max_align_t, not FTSENT.
12982         * modules/fts (Depends-on): Add stddef.
12984 2015-10-18  Jim Meyering  <meyering@fb.com>
12986         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
12987         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
12988         would see this:
12990         lib/time_rz.c: In function 'localtime_rz':
12991         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
12992           [-Werror=nonnull]
12993                    if (tm && !save_abbr (tz, tm))
12994                        ^
12996         That was complaining about "tm" because it is a parameter that was
12997         declared with the __nonnull__ attribute.
12998         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
12999         result of localtime_r.
13001 2015-10-17  Jim Meyering  <meyering@fb.com>
13003         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
13004         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
13005         name-extraction regexp mistakenly used \S+, and would mistakenly
13006         extract "*F" from "extern int *F()" rather than the desired "F".
13007         Use \w+ instead.
13009 2015-10-17  Jim Meyering  <meyering@fb.com>
13011         maint.mk: sc_tight_scope: factor and support OS X
13012         * top/maint.mk (_gl_tight_scope): Address three issues:
13013         - factor out four instances of code that wraps a string in "^...$"
13014         - allow nm-reported symbol names to have an optional leading "_"
13015         - add "main" to the list of ignored variable names, because on os x,
13016         "main" has nm-reported type "S" in the variable-checking section.
13018 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
13020         safe-alloc-tests: fix typo in license header
13021         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
13023 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
13025         copy-file: fix mem leak in error case
13026         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
13027         upon error opening or performing I/O to the src and dest files.
13029 2015-10-15  Mike Frysinger  <vapier@chromium.org>
13031         localename: control langinfo.h inclusion
13032         This header is only used to work around buggy behavior in old
13033         versions of glibc, so do not include it all the time.  Otherwise
13034         we get build failures on systems that do not provide langinfo.h.
13035         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
13036         in the source later on.
13037         The patch was originally submitted to gettext as:
13038         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
13040 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13042         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
13043         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
13044         * lib/u64.c, lib/unistd.c:
13045         Append 'typedef int dummy;', to pacify compilers that are picky
13046         about empty translation units.
13048 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
13050         accept4-tests: fix to avoid non portable flags
13051         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
13052         as they are the only documented ones, and passing others may trigger
13053         EINVAL (seen on FreeBSD 10.1-RELEASE).
13054         * doc/glibc-functions/accept4.texi: Mention that we don't provide
13055         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
13057 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
13059         gnulib-tool: fix tests of 'extensions' module
13060         This complements f8fe25fab60e3c687a124 commit.
13061         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
13062         emitting of initial gl_EARLY macros.
13063         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
13064         replaced with func_emit_pre_early_macros call.
13066 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13068         unicase/locale-language: fix typo in utf-8 cookie
13069         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
13070         Problem reported by Zbigniew Jędrzejewski-Szmek.
13072 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13074         xalloc: do not worry about GCC 5 warning on 32 bit
13075         * lib/xalloc.h: Revert previous change.
13076         I found a better way to fix this in coreutils.
13078 2015-10-02  Pádraig Brady  <P@draigBrady.com>
13080         xalloc: avoid GCC 5.1 warning on 32 bit
13081         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
13082         xalloc_oversized(), which was seen to give this warning
13083         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
13084         when simplifying conditional".
13086 2015-10-02  Daiki Ueno  <ueno@gnu.org>
13088         uniname/uniname-tests: avoid compiler warnings
13089         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
13090         unused local variables.
13091         (test_alias_lookup): Fix alias name display in failure cases.
13093 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13095         c-ctype: do not worry about EBCDIC + char signed
13096         Drop support for EBCDIC with char being signed, as this breaks too
13097         many programs.  Problem reported by Ben Pfaff in:
13098         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
13099         * lib/c-ctype.h: Verify that we are not using EBCDIC with
13100         char being signed.
13101         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
13102         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
13103         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
13104         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
13105         * tests/test-c-ctype.c (test_all):
13106         Simplify by assuming standard char values cannot be negative.
13107         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
13109 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13111         c-ctype: port better to z/OS EBCDIC
13112         Problems reported by Daniel Richard G. in:
13113         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
13114         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
13115         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
13116         (_C_CTYPE_OTHER_CNTRL): New macro.
13117         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
13118         from SCHAR_MIN, as the functions are defined only from values
13119         promoted from char or from unsigned char, not necessarily from
13120         signed char.
13122 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
13124         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
13126         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
13127         and ARFLAGS variables.  Doing this unconditionally could break
13128         later Automake's AM_PROG_AR invocation (at least it's
13129         AC_CHECK_TOOLS call to detect correct 'ar' binary).
13131         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
13132         Amsterdam Compiler Kit, so make the previous code to have effects
13133         only on ACK, and rather automatically call the Automake's
13134         AM_PROG_AR as soon as possible to decide other cases.
13136         References:
13137         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
13139         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
13140         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
13141         is possible, keep setting AR/ARFLAGS to reasonable defaults.
13142         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
13143         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
13144         'extensions' module is used.
13145         * modules/extensions (configure.ac-early): Remove as this snippet
13146         is added to gnulib-comp.m4 earlier anyway.
13148 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13150         sockets: MS Windows initalization fixes
13151         Problem reported by Test User in:
13152         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
13153         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
13154         Correct the endianness.
13155         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
13156         number mismatch, not just on <.  Cleanup before any such failure.
13158 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
13160         gc: fix detection of installed libgcrypt version
13161         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
13162         at least as recent as 1.4.4.  The previously used macro is not
13163         available now, since modules were removed in version 1.6.0.
13165 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13167         c-ctype: rewrite to use inline functions
13168         This simplifies maintenance, since it makes for just one
13169         implementation of each function, letting the compiler have the fun
13170         of optimization.  In practice this works well nowadays with GCC.
13171         E.g., c_isascii might need only three instructions even though the
13172         source code lists every ASCII character individually in a large
13173         switch statement.
13174         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
13175         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
13176         * NEWS: Document the API change.
13177         * lib/c-ctype.c: Drastically simplify, since this now just expands
13178         inline functions.
13179         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13180         (C_CTYPE_INLINE): New macro.
13181         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
13182         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
13183         Verify that either ASCII or EBCDIC is being used.
13184         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
13185         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
13186         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
13187         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
13188         New private macros.
13189         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
13190         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
13191         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
13192         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
13193         (c_tolower, c_toupper): When converting, return the unsigned char,
13194         as that is what z/OS does.
13195         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
13196         of some c-ctype.h macros.
13197         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
13198         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
13199         c_tolower promotion to be compatible with z/OS.
13201 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
13203         gitlog-to-changelog: trim only trailing whitespaces
13204         This is fix for --format regression introduced by commit
13205         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
13206         doubled %n string) had no effect anymore.  This format
13207         specification has been used e.g. by GNU paxuitils (commit
13208         edfd8bcc3).
13210         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
13211         newlines in commmit messages.
13213 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13215         Test that c_iscntrl agrees with iscntrl, etc.
13216         Suggested by Daniel Richard G. in:
13217         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
13218         * modules/c-ctype-tests (Depends-on): Add ctype.
13219         * tests/test-c-ctype.c: Include <ctype.h>.
13220         (NCHARS): New constant.
13221         (test_agree_with_C_locale): New function.
13222         (main): Use it.
13223         (test_all): Use named constants.
13225         c-ctype: improve c_isascii testing
13226         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
13227         Add a test to count the number of ASCII characters.
13229 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13231         savewd: remove SAVEWD_CHDIR_READABLE
13232         It was problematic in the light of file systems that ignore umask.
13233         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
13234         * NEWS: Document this.
13235         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
13236         successful, -1 (setting errno) on failure, rather than something
13237         more complicated than that.
13238         * lib/mkdir-p.c (make_dir_parents):
13239         Do not use SAVEWD_CHDIR_READABLE.
13240         * lib/savewd.c (savewd_chdir):
13241         Remove support for SAVEWD_CHDIR_READABLE.
13242         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
13244         c-ctype: port better to EBCDIC
13245         Problems reported by Daniel Richard G. in
13246         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
13247         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
13248         Include "verify.h".
13249         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
13250         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
13251         Define as enum constants with value false, if not defined, so that
13252         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
13253         code more portable, as both branches of the 'if' are compiled on
13254         all platforms.
13255         (C_CTYPE_EBCDIC): New constant.
13256         Verify that the character set is either ASCII or EBCDIC.
13257         (to_char): New static function.
13258         (c_isascii, c_iscntrl):
13259         Assume standard control-character assignments for EBCDIC.
13260         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
13261         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
13262         Rewrite to use 'if' instead of 'ifdef'.
13263         Use to_char if non-ASCII.  Prefer <= to >=.
13264         Prefer true and false to 1 and 0, for booleans.
13265         (c_iscntrl): Use 'if', not 'ifdef'.
13266         * modules/c-ctype (Depends-on): Add verify.
13267         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
13268         (to_char): New function.
13269         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
13271 2015-09-21  Pádraig Brady  <P@draigBrady.com>
13273         nanosleep: fix return code for interrupted replacement
13274         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
13275         that we return -1 in the case the call is interrupted by a signal,
13276         rather than the current value of 1.
13277         Diagnosed and tested by Daniel Richard G.
13279 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13281         Diagnose ERE '()|\1'
13282         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
13283         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
13284         track of the set of previously-completed subexpressions available
13285         before the first alternative, and restore this set just before
13286         parsing each subsequent alternative.  This lets us diagnose the
13287         invalid back-reference in the ERE '()|\1'.
13289         regex: merge patches from libc
13291         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
13292         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
13293         * lib/regex_internal.h:
13294         Include <libc-lock.h> instead of <bits/libc-lock.h>.
13296         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
13297         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
13298         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
13299         wcscoll.
13300         * lib/regexec.c (check_node_accept_bytes): Likewise.
13302         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13303         Fix regex wcrtomb namespace (bug 18496).
13304         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
13305         instead of wcrtomb.
13307         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
13308         Fix regex wctype namespace (bug 18495).
13309         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
13310         instead of towlower.
13311         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
13312         instead of iswlower.  Call __towupper instead of towupper.
13313         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
13314         instead of iswalnum.
13316         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
13317         * lib/regcomp.c (parse_bracket_exp): Initialize type to
13318         COLL_SYM in a couple of places to avoid uninitialized variable
13319         wanings on tilegx gcc 4.8.2.
13321         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13322         * lib/regex_internal.h: Remove NOT_IN_libc.
13324         2014-11-17  Andreas Schwab  <schwab@suse.de>
13325         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
13327         2014-09-11  Roland McGrath  <roland@hack.frob.com>
13328         Move findidx nested functions to top-level.
13329         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
13330         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
13331         Pass new arguments to findidx.
13332         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
13333         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
13334         Don't #include it inside the function.  Pass new arguments to findidx.
13335         * lib/regex_internal.h:
13336         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
13337         (re_string_elem_size_at): Don't #include it inside the function.
13338         Pass new arguments to findidx.
13340         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
13341         Check if DEBUG is defined in regex_internal.c
13342         * lib/regex_internal.c: Check if DEBUG is defined and is set.
13344 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
13346         ceill: detect buggy OpenBSD implementation
13347         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
13348         which returns zero for small values.  Discussed here:
13349         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
13351 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
13353         mountlist: add me_mntroot field on Linux machines
13354         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
13355         mount_entry so Linux machines based on /proc/self/mountinfo can
13356         distinguish between bind mounts and original mounts.  In reality bind
13357         mounts aren't treated differently than mountroot=/ mounts by the
13358         kernel, but the user often wants these bind mounts distinguished.
13359         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
13360         More details at https://pad.lv/1432871
13362 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
13364         doc: Describe to use multiple instances of gnulib
13365         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
13366         instances of gnulib with different modules can be used, for example one
13367         for a lib and another one for associated tools.
13369 2015-09-01  Pádraig Brady  <P@draigBrady.com>
13371         base32: mark function as __attribute__ const
13372         * lib/base32.h (isbase32): Mark __attribute__ const as
13373         suggested by GCC, and consistent with the base64 module.
13375 2015-08-20  Daiki Ueno  <ueno@gnu.org>
13377         gnulib-tool: don't transform binary files with sed
13378         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
13379         .mo and .class files.
13380         Reported by Denis Denisov.
13382 2015-08-10  Daiki Ueno  <ueno@gnu.org>
13384         gperf: respect silent rules
13385         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
13386         V_GPERF_0 for silent rules.
13387         * modules/iconv_open (Makefile.am): Use V_GPERF.
13388         * modules/unicase/locale-language (Makefile.am): Likewise.
13389         * modules/unicase/special-casing (Makefile.am): Likewise.
13390         * modules/unictype/category-byname (Makefile.am): Likewise.
13391         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
13392         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
13393         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
13394         * modules/unictype/property-byname (Makefile.am): Likewise.
13395         * modules/unictype/scripts (Makefile.am): Likewise.
13396         * modules/uninorm/composition (Makefile.am): Likewise.
13398 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
13400         Improve port of stdalign to C++11
13401         Problem reported by Sundaram in:
13402         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
13403         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
13404         (__alignas_is_defined): Define if C++11 or newer.
13406 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
13408         pmccabe2html: fix gawk regex escaping
13409         * build-aux/pmccabe2html: Add one more backslash to properly
13410         escape the gsub replacement value.  Fixes this error:
13411         gawk: ./build-aux/pmccabe2html:425: \
13412         warning: escape sequence `\&' treated as plain `&'
13414 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
13416         time_rz: port to pedantic memcpy
13417         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
13418         that reject memcpy (..., NULL, 0).
13420 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
13422         time_rz: port better to MinGW
13423         Don't change tzname, as this makes MinGW dump core (Bug#21020).
13424         Instead, store the tzname copy in the struct tm_zone object.
13425         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
13426         * lib/strftime.c [!_LIBC]:
13427         * lib/time_rz.c: Include time-internal.h.
13428         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
13429         name from *TZ rather than from TZNAME, doable because *TZ now has
13430         a tzname_copy member.
13431         * lib/time-internal.h: New file, with contents taken from
13432         lib/time_rz.c.  It's separate because strftime.c now accesses
13433         struct tm_zone members.
13434         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13435         New member tzname_copy.
13436         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
13437         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
13438         Initialize tzname_copy member.
13439         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
13440         in tzname_copy member.
13441         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
13442         (restore_tzname): Remove; no longer needed.  All calls removed.
13443         * modules/time_rz (Files): Add lib/time-internal.h.
13445         time: port __need_time_t to MinGW
13446         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
13447         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
13449 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13451         strftime: fix newly-introduced bug on Solaris
13452         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
13453         consistently at the start, rather than doing some of the setup at
13454         the start and some in the %Z format spec.  This is cleaner, and
13455         works better with time_rz on platforms like Solaris where struct
13456         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
13457         mktime_z and localtime_rz can mess up the tzname cache.
13459         test-strftime: test for Solaris bug
13460         * modules/strftime-tests (Depends-on): Add strerror.
13461         * tests/test-strftime.c: Include <errno.h>.
13462         (posixtm_test): New function, containing the old 'main'.
13463         (struct tzalloc_test, struct localtime_rz_test): New types.
13464         (TZ, LT): New static vars.
13465         (tzalloc_test): New function.
13466         (main): Rewrite in terms of posixtm_test and tzalloc_test.
13468         time_rz: port to Solaris etc.
13469         Works around a tzname problem on platforms like Solaris that have
13470         tzname but not tm_zone, by setting tzname at the appropriate time
13471         and restoring it later.
13472         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
13473         New static vars.
13474         (save_abbr) [HAVE_TZNAME]: Set them.
13475         (revert_tz) [HAVE_TZNAME]: Clear or use them.
13476         (restore_tzname): New function.
13477         (localtime_rz, mktime_z): Use it.
13479         time_rz: now LGPL
13480         * modules/time_rz (License): Now LGPL, because strftime depends on it.
13482         time_rz: make a constant 'const'
13483         * lib/time_rz.c (local_tz): Now const.
13485         time_rz: fix off-by-one typo
13486         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
13488 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
13490         fprintftime, strftime: use timezone_t args
13491         * NEWS: Document the change.
13492         * lib/fprintftime.h (fprintftime):
13493         * lib/strftime.c (extra_args) [my_strftime]:
13494         * lib/strftime.h (nstrftime):
13495         Time zone arg is now of type timezone_t, not int.
13496         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
13497         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
13498         (my_strftime) [emacs && !my_strftime]:
13499         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
13500         Remove; Emacs doesn't need this any more.
13501         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
13502         fprintftime and nstrftime to call tzset.
13503         (ut) [!my_strftime]: Remove, replacing with ...
13504         (tz) [!my_stftime]: ... this new macro.  All uses changed.
13505         (strftime_case_): Use localtime_rz and mktime_z instead
13506         of localtime_r and mktime.
13507         * modules/fprintftime (Depends-on): Add time_rz.
13508         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
13509         * tests/test-strftime.c (main): Adjust to new nstrftime API.
13511         time_rz: new module
13512         * MODULES.html.sh: Add time_rz.
13513         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
13514         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
13515         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
13516         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
13517         New var HAVE_TIMEZONE_T (default 0).
13518         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13519         New var GNULIB_TIME_RZ (default 0).
13520         * modules/time (time.h): Substitute the new vars.
13522         flexmember: license is now unlimited
13523         * modules/flexmember (License): Change to unlimited,
13524         since its only source file gives an unlimited license.
13526 2015-07-15  Eric Blake  <eblake@redhat.com>
13528         maint: update copyright paper procedures
13529         * config/srclist.txt: Drop outdated files.
13530         * doc/Copyright/conditions.txt: Update to latest.
13531         * doc/Copyright/assign.changes.manual: Delete.
13532         * doc/Copyright/assign.future.manual: Likewise.
13533         * doc/Copyright/assign.manual: Likewise.
13534         * doc/Copyright/assign.translation.manual: Likewise.
13535         * doc/Copyright/disclaim.changes.manual: Likewise.
13536         * doc/Copyright/disclaim.manual: Likewise.
13537         * doc/Copyright/disclaim.program: Likewise.
13539 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13541         localename: fix link error on Illumos
13542         Illumos defines __sun, but does not have getlocalename_l nor the
13543         equivalent.  This partially reverts commit 387c214.
13544         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
13545         available, as well as uselocale.
13546         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
13547         use getlocalename_l if it is not available.
13549 2015-07-07  Daiki Ueno  <ueno@gnu.org>
13551         unistr/uN-strtok-tests: avoid a trivial leak
13552         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
13553         input and delim after the multibyte delimiter tests.
13555 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
13557         file-has-acl, acl-permissions: fix HP-UX typos
13558         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
13559         * lib/file-has-acl.c (file_has_acl):
13560         * lib/set-permissions.c (context_acl_from_mode)
13561         (context_aclv_from_mode, set_acls):
13562         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
13563         They were introduced by the recent ACL changes.
13565         regex: match current GNU grep behavior
13566         These symbols have not matched GNU grep behavior for quite some time.
13567         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
13568         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
13569         Change to match current GNU behavior.
13570         Simplify by expressing it as differences from POSIX BREs and EREs.
13571         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
13573 2015-07-03  Jim Meyering  <meyering@fb.com>
13575         set-permissions.c: adjust acl_from_mode's cpp guard
13576         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
13577         directives identical to those guarding the sole use.
13578         Otherwise, on some systems, we'd get a warning about
13579         the function being defined but not used.
13580         Also, filter through cppi to correct misleading indentation
13581         of cpp directives.
13583 2015-07-03  Pádraig Brady  <P@draigBrady.com>
13585         tests: restrict shells to those that support 'local'
13586         The local keyword is very widely supported and used
13587         in tests in coreutils and grep at least.  Therefore
13588         restrict to testing with shells that support it.
13589         This mainly excludes /bin/sh on Solaris.
13590         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
13592 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
13593         and Daiki Ueno  <ueno@gnu.org>
13595         unistr/uN-strtok: handle multibyte delimiters
13596         Previously, uN_strtok moved PTR to the next unit to the token end.
13597         When DELIM contained a multibyte character, the new position could
13598         be a middle of a multibyte character.
13599         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
13600         after the token.
13601         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
13602         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
13603         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
13604         * modules/unistr/u8-strtok (Depends-on): Depend on
13605         unistr/u8-strmblen.
13606         * modules/unistr/u16-strtok (Depends-on): Depend on
13607         unistr/u16-strmblen.
13608         * modules/unistr/u32-strtok (Depends-on): Depend on
13609         unistr/u32-strmblen.
13610         * tests/unistr/test-u-strtok.h: New file.
13611         * tests/unistr/test-u8-strtok.c: New file.
13612         * tests/unistr/test-u16-strtok.c: New file.
13613         * tests/unistr/test-u32-strtok.c: New file.
13614         * modules/unistr/u8-strtok-tests: New file.
13615         * modules/unistr/u32-strtok-tests: New file.
13616         * modules/unistr/u16-strtok-tests: New file.
13618 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
13620         update-copyright: fix test failure with perl >= 5.22 (trivial)
13621         * build-aux/update-copyright: Escape a literal left curly bracket,
13622         required with perl >= 5.22
13624 2015-07-02  Daiki Ueno  <ueno@gnu.org>
13626         u{16,32}-strstr-tests: relax timeout condition
13627         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
13628         tests can take longer than 5 seconds to complete.
13629         Reported by Dagobert Michelsen in:
13630         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
13631         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
13632         seconds to 10 seconds.
13633         * tests/unistr/test-u32-strstr.c (main): Likewise.
13635 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
13637         gnulib-common.m4: change the ARFLAGS default to 'cr'
13638         In some GNU/Linux distributions people started to compile 'ar'
13639         binary with --enable-deterministic-archives (binutils project).
13640         That, however, in combination with previous autotools long time
13641         working default AR{_,}FLAGS=cru causes warnings on such
13642         installations:
13643         ar: `u' modifier ignored since `D' is the default (see `U')
13644         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
13645         set already.
13647 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
13649         selinux-h: avoid double free after *getfilecon()
13650         Originally reported by Ben Shelton on bug-tar:
13651         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
13652         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
13653         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
13654         param should be freed by freecon(3) (regardless the return value).
13656 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
13658         fix pty related tests issues on Windows (trivial)
13659         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
13660         however it's still present in tests/ subdirectory of the final project.
13661         Therefore avoid it to pass `make check`.
13662         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
13663         will just return -ENOSYS, so avoid this non applicable test allowing
13664         the build to proceed.
13666 2015-07-01  Pádraig Brady  <P@draigBrady.com>
13668         acl: fix definition of acl_from_mode on FreeBSD
13669         This was causing basic coreutils copy operations to fail
13670         with ENOTSUP or ENOENT error messages.
13671         * lib/acl-internal.h (acl_from_mode): Only define when
13672         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
13673         of acl_from_mode() defined in lib/set-permissions.c to
13674         be used on FreeBSD at least.
13675         * lib/set-permissions.c: Fix up comment spelling,
13676         and a redundant variable assignment; noticed in passing.
13678 2015-06-30  Pádraig Brady  <P@draigBrady.com>
13680         readutmp: port to FreeBSD >= 9
13681         * lib/readutmp.h: Map utmpxname() to setutxdb().
13682         With that coreutils who(1) and pinky(1) tests pass.
13684 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13686         mgetgroups: port to strict OS X
13687         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
13688         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
13689         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
13690         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
13692 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
13694         mgetgroups: port to strict OS X
13695         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
13696         Document the getgrouplist problem.
13697         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
13698         New macro.
13699         (mgetgroups): Use it.
13700         * m4/mgetgroups.m4 (gl_MGETGROUPS):
13701         Check for OS X signature for getgrouplist.
13703 2015-06-29  Jim Meyering  <meyering@fb.com>
13705         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
13706         It started like this when building coreutils' latest on OS X,
13707         invoking ./configure with a nonempty --cache=.cache:
13709           lib/linkat.c:46:42: error: operator '||' has no right operand
13710           lib/linkat.c: In function 'rpl_linkat':
13711           lib/linkat.c:330:27: error: #if with no expression
13713         Here's linkat.c's line 46:
13715           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
13717         Here's some context:
13719           $ grep linkat_nofoll .cache
13720           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
13721           $ grep LINKAT_SYM lib/config.h
13722           #define LINKAT_SYMLINK_NOTSUP
13724         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
13725         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
13726         but that violates a tenet of AC_CACHE_CHECK: it must
13727         have no side effect other than setting its cache variable.
13729         What happens is that when the cache is set, we'd skip the
13730         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
13731         defined to whatever value it happened to have in configure's
13732         environment.  In my case, it was not defined, so this later code:
13734           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
13735             [Define to 1 if linkat can create hardlinks to symlinks])
13737         would emit code with an empty RHS.
13739         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
13740         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
13742 2015-06-28  Jim Meyering  <meyering@fb.com>
13744         mountlist: avoid an unused-label warning on OS X
13745         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
13746         Building on OS X, I saw a warning about the "free_then_fail" label
13747         being unused.  Give it the _GL_UNUSED_LABEL attribute.
13749         error.c: correct printf-style format: %d -> %u
13750         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
13751         rather than %d, to match the type of "line_number", unsigned int.
13753 2015-06-25  Pádraig Brady  <P@draigBrady.com>
13755         fts: avoid reading beyond the heap allocation
13756         GCC 5.1.1 with -O2 and -fsanitize=address reports
13757         a read of size 4 from a heap object of size 3 is indeed invalid,
13758         though this may be due to incorrect padding assumptions by GCC, see:
13759         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
13760         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
13761         * modules/fts: Depend on stdalign.
13763 2015-06-24  Pádraig Brady  <P@draigBrady.com>
13765         savedir: avoid undefined behavior in qsort call
13766         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
13767         "runtime error: null pointer passed as argument 1,
13768          which is declared to never be null"
13769         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
13771 2015-06-24  Pádraig Brady  <P@draigBrady.com>
13773         userspec: avoid undefined behavior in gettext call
13774         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
13775         "runtime error: null pointer passed as argument 2,
13776          which is declared to never be null"
13777         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
13779 2015-06-20  Glenn Morris  <rgm@gnu.org>
13781         gitlog-to-changelog: improve gitmerge.el commits
13782         Let the Emacs ChangeLog generation process exclude "skipped"
13783         messages from merge commits (Bug#20717).
13784         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
13786 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13788         wchar: fix MinGW compilation warnings
13789         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
13790         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
13791         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
13793 2015-06-20  Daiki Ueno  <ueno@gnu.org>
13795         uniname/uniname-tests: use pristine data files
13796         For copyright and maintenance reasons, use the data files from UCD
13797         without modification.
13798         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
13799         (getfield): Remove.
13800         (aliases_count): New global variable.
13801         (fill_names): Skip comments and empty lines in the input.  Don't
13802         use getfield.
13803         (fill_aliases): Likewise.
13804         (main): Change the expected command line arguments to:
13805         NAMES... ["--" ALIASES...].
13806         * tests/uniname/test-uninames.sh: Adjust to the change in
13807         test-uninames.c.
13808         * tests/uniname/UnicodeDataNames.txt: Remove.
13809         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
13810         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
13811         file from Unicode 8.0.0.
13813 2015-06-19  Pádraig Brady  <P@draigBrady.com>
13815         linked-list, linkedhash-list: avoid compiler warnings
13816         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
13817         -Werror=suggest-attribute=pure (from GCC 5.1.1).
13819 2015-06-19  Daiki Ueno  <ueno@gnu.org>
13821         libunistring: bump minimum version to 0.9.6
13822         * all modules depending on updated Unicode data: Regenerate.
13823         The modules are listed by a script that does:
13824         - for each file listed by: git show --oneline --name-only 705f4efc
13825           - deduce the containing modules, based on "Files:"
13826         - deduce the modules which depend on the containing modules, based
13827           on "Depends-on:"
13829 2015-06-18  Daiki Ueno  <ueno@gnu.org>
13831         uniname/uniname: update to Unicode 8.0.0
13832         * lib/uniname/uninames.h: Regenerate.
13833         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
13834         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
13836 2015-06-18  Daiki Ueno  <ueno@gnu.org>
13838         libunistring: update to Unicode 8.0.0
13839         * lib/gen-uni-tables.c (SIZEOF): New macro.
13840         (output_numeric): Increase the maximum number of fractions from
13841         128 to 160.  Increase the level3 value width from 7 bits to 8
13842         bits.  Use SIZEOF instead of a hard-coded integer.
13843         (output_blocks): Decrease the cut-off threshold from 0x30000 to
13844         0x28000.
13845         (fill_blocks): Increase the maximum number of blocks from 256 to
13846         384.  Use SIZEOF instead of a hard-coded integer.
13847         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
13848         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
13849         value width.
13850         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
13851         a new case added to LBP22.
13852         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
13853         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
13854         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
13855         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
13856         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
13857         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13858         lib/uniwidth/width.c.
13859         * all generated files under lib/uni* and tests/uni*: Regenerate.
13861 2015-06-16  Pádraig Brady  <P@draigBrady.com>
13863         gnu-web-doc-update: add --mirror to remove stale files
13864         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
13865         out of date files from the CVS server.  Since this is usually
13866         appropriate, a prompt is given when the option is not specified,
13867         along with the `cvs remove` command that would be run.
13869 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13871         acl-permissions: pacify -Wsuggest-attribute=const
13872         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
13873         * lib/acl-internal.h (free_permission_context):
13874         Declare with attribute const if ! (defined USE_ACL &&
13875         (HAVE_ACL_GET_FILE || defined GETACL)).
13877         fsync: document AIX misbehavior
13878         * doc/posix-functions/fsync.texi (fsync):
13879         Document failure on AIX with read-only file descriptor.
13881 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
13883         stdio: Don't redefine gets when using C++
13884         * lib/stdio.in.h (gets): Disable warning on C++.
13886 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
13888         acl-permissions: port to AIX, C89 HP-UX
13889         Problems reported by Michael Felt.
13890         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
13891         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
13892         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
13893         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
13894         Add cast for AIX, whose system calls are declared to accept
13895         char * even though the arguments are really char const *.
13896         * lib/get-permissions.c (get_permissions):
13897         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
13898         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
13899         that broke a build.
13900         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
13901         Rework types to pacify xlc.
13903 2015-06-03  Pádraig Brady  <P@draigBrady.com>
13905         vasprintf-posix: avoid compiling vasnprintf where possible
13906         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
13907         module where not required.  For example on a GNU/Linux system
13908         when gnulib-tool is run with the --conditional-dependencies option.
13910 2015-06-02  Pádraig Brady  <P@draigBrady.com>
13912         file-has-acl: fix build on Mac OS X 10
13913         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
13914         which has an incompatible 6 parameter getxattr() call.
13915         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
13916         call on Mac OS X >= 10.4.
13917         * doc/glibc-functions/fgetxattr.texi: Likewise.
13918         * lib/file-has-acl.c: Revert to more complete combined check.
13919         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
13920         Reported by Jack Howarth.
13922 2015-06-02  Pádraig Brady  <P@draigBrady.com>
13924         prefix-gnulib-mk: remove no longer needed special case
13925         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
13926         continued lib_SOURCES lines are no longer present,
13927         so special case handling of such entries is not required.
13929 2015-06-01  Pádraig Brady  <P@draigBrady.com>
13931         acl: don't depend on the deprecated qacl module
13932         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
13934 2015-06-01  Pádraig Brady  <P@draigBrady.com>
13936         gnulib-tool: concatenate lib_SOURCES to a single line
13937         * gnulib-tool: Refactor the line merging sed logic,
13938         and use that to output a single lib_SOURCES line for each module.
13939         gnulib using projects often postprocess this output to prepend
13940         subdir paths to each item, and having a single line simplifies this
13941         processing allowing better decoupling from the gnulib-tool output.
13943 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
13945         pthread_sigmask: discount system version if a simple macro (trivial)
13946         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
13947         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
13948         function to ensure it's available.
13950 2015-05-31  Pádraig Brady  <P@draigBrady.com>
13952         readlinkat: avoid OS X 10.10 trailing slash bug
13953         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
13954         has this bug.
13955         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
13956         that OS X 10.10 has this function.
13957         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
13958         as done for readlink().
13959         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
13960         trailing slash bug, and assume readlinkat() has the same issue.
13961         Also fix a typo where $gl_cv_decl_readlink_works was tested,
13962         rather than the correct $gl_cv_decl_readlinkat_works.
13964 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
13966         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
13967         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
13968         module rewrite.
13970         acl-permissions: Fix build on Solaris and Cygwin
13971         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
13972         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
13973         ace_entries variables have moved into struct permission_context but
13974         they were still accessed as local variables here.
13976 2015-05-29  Pádraig Brady  <P@draigBrady.com>
13978         linkat: avoid OS X 10.10 trailing slash with symlink bug
13979         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
13980         causes the symlink to be dereferenced, and if it points
13981         to a non existent file, that file will be created as
13982         a hard link to "path1".
13983         This fixes a test failure in test-linkat.c.
13984         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
13985         this case.  The existing workaround in linkat.c for
13986         trailing slash issues, suffices for this case.
13987         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
13988         the list of platforms with trailing slash issues.
13990 2015-05-28  Pádraig Brady  <P@draigBrady.com>
13992         unlinkat: handle ignoring of ".." on Darwin 14
13993         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
13994         on Mac OS X 10.10, where it ignores paths with a trailing "..",
13995         so handle in the same manner.
13996         * m4/unlinkat.m4: Comment on this Darwin issue.
13997         * doc/posix-functions/unlink.texi: Update the latest version
13998         where the issue was seen.
13999         * doc/posix-functions/unlinkat.texi: Mention this issue.
14000         Fixes a test failure in test-unlinkat.c.
14002 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14004         qacl: split into qcopy-acl and qset-acl
14005         Emacs needs the former, but not the latter.
14006         * modules/acl-permissions: New file, containing most of the old qacl.
14007         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
14008         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
14009         * modules/qcopy-acl, modules/qset-acl: New files.
14010         * MODULES.html.sh (File system functions):
14011         Mention the new modules, and mention qacl while we're at it.
14013 2015-05-27  Glenn Morris  <rgm@gnu.org>
14015         gitlog-to-changelog: new option --ignore-line
14016         (This patch is imported from the GNU Emacs master.)
14017         This option ignores individual commit lines matching a pattern.
14018         * build-aux/gitlog-to-changelog: Add --ignore-line option.
14020 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
14022         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
14023         Implement get_permissions and set_permissions primitives for getting all
14024         the permissions of a file, storing them, and later setting them. (In the
14025         minimal case, the permissions consist only of a file mode.) Reimplement
14026         qset_acl and qcopy_acl based on these new primitives: this avoids code
14027         duplication and makes error handling more consistent.
14028         The Solaris and Cygwin code still uses duplicate code paths for setting
14029         a file mode while making sure that no acls exist and setting an explicit
14030         acl; this is no worse than before, but could be cleaned up.  The AIX
14031         code still doesn't read ACLs, it only makes sure that acls don't get in
14032         the way when setting a file mode.
14033         * lib/acl-internal.h (struct permission_context): New data structure.
14034         (get_permissions, set_permissions, free_permission_context): Declare.
14035         * lib/acl-internal.c (free_permission_context): New helper function.
14036         * lib/get-permissions.c (get_permissions): New helper function split off
14037         from qcopy_acl.
14038         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
14039         AIX, set a file's permissions based only on a file mode.
14040         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
14041         other platforms construct a temporary acl from the file mode and set
14042         that acl in the same way as setting an acl read from the source file.
14043         This should help avoid code duplication and inconsistent / buggy
14044         behavior.
14045         (set_acls): New helper function Split off from qcopy_acl.
14046         (chmod_or_fchmod): Moved here from qset-acl.c.
14047         (set_permissions): New helper function.
14048         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
14049         set_permissions.
14050         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
14051         * modules/qacl: Add get-permissions.c and set-permissions.c.
14053         file-has-acl: Split feature tests again (Bug#20667)
14054         * lib/file-has-acl.c: Instead of testing for
14055         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
14056         define them when needed.
14057         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
14058         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
14060 2015-05-27  Pádraig Brady  <P@draigBrady.com>
14062         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
14063         This avoids a conflict with "FORTIFY_SOURCE" variants
14064         of the string functions when they're replaced on NetBSD-6.0.1
14065         and Darwin-14.3.0 at least.
14066         * lib/string.in.h: Avoid including our "lib/string.h" while
14067         including the system <string.h>.
14069 2015-05-26  Eric Blake  <eblake@redhat.com>
14071         stdio: limit __gnu_printf__ witness to gcc 4.4+
14072         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
14073         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
14075         error: use correct printf attributes on mingw
14076         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
14078         inttypes: force correct mingw PRIdMAX even without <stdio.h>
14079         * modules/inttypes (Depends-on): Require extensions, so that mingw
14080         always uses GNU style inttypes.
14081         * lib/inttypes.in.h: On mingw, include <stdio.h>.
14083         stdio: fix probe on mingw under gcc 5.1
14084         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
14085         around new gcc preprocessor rules.
14087 2015-05-07  Glenn Morris  <rgm@gnu.org>
14089         gitlog-to-changelog: parse "Tiny-change"
14090         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
14091         "Copyright-paperwork-exempt".  (Bug#20324)
14093 2015-05-06  Pádraig Brady  <P@draigBrady.com>
14095         doc: document glibc posix_fallocate() issues
14096         * doc/posix-functions/posix_fallocate.texi: Mention the
14097         glibc efficiency problems and issues with NFS.
14099 2015-05-05  Karl Berry  <karl@freefriends.org>
14101         * build-aux/gendocs.sh (usage): document new css default
14102         for HTML (--htmlarg).
14104 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14106         extern-inline: no need for workaround in GCC 5.1
14107         * doc/extern-inline.texi (extern inline):
14108         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14109         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
14110         around these bugs in GCC 5.1 and later.  Maybe in a decade or
14111         two we can remove these workarounds.
14113 2015-04-28  Pádraig Brady  <P@draigBrady.com>
14115         eealloc, pagealign_alloc, xalloc: avoid clang warnings
14116         Avoid [-Wunknown-attributes] warnings like:
14117         warning: unknown attribute '__alloc_size__' ignored
14118         * lib/xalloc.h: Don't use the __alloc_size__  attribute
14119         with clang, as support has been fully removed as of clang 3.5:
14120         https://github.com/llvm-mirror/clang/commit/c047507a
14121         * lib/eealloc.h: Likewise.
14122         * lib/pagealign_alloc.h: Likewise.
14124 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
14126         tests: pacify GCC 5.1's stricter printf checking
14127         * tests/test-dirname.c (main):
14128         * tests/test-getaddrinfo.c (simple):
14129         * tests/test-getlogin.c (main):
14130         * tests/test-getndelim2.c (main):
14131         * tests/test-inttostr.c (CK):
14132         * tests/test-md5.c (main):
14133         * tests/test-read-file.c (main):
14134         * tests/test-sha1.c (main):
14135         Fix mismatches between printf format and value signedness.
14136         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
14137         Remove, as CAST_VAL always returned a value of type uintmax_t.
14139         fts: port to GCC 5.1 with --enable-gcc-warnings
14140         Without this fix, GCC 5.1 (correctly) warns about a subscript
14141         error on the fts_name component of FTSENT.  It's actually a
14142         flexible member, so define it that way on C99 or later hosts.
14143         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
14144         structure that now has a flexible array member.
14145         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
14146         (FTSENT): fts_name is now flexible on C99-or-later platforms.
14147         * modules/fts (Depends-on): Add flexmember.
14149 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14151         file-has-acl: port to CentOS 6
14152         Problem reported by Tom G. Christensen in:
14153         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
14154         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
14155         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
14156         HAVE_GETXATTR.
14157         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
14158         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
14159         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
14160         file-has-acl.c actually needs.
14162 2015-04-26  Pádraig Brady  <P@draigBrady.com>
14164         file-has-acl: always return false when ACLs aren't supported
14165         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
14166         change the GNU/Linux getxattr path, to transform "not supported"
14167         errors to a false return rather than an error.  This is handled
14168         within file_has_acl() due to the platform specific tests to
14169         determine if ACLs are not supported.
14171 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14173         gettext: propagate po/Makefile.in.in too
14174         * build-aux/po/Makefile.in.in: Copy from latest gettext.
14175         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
14176         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
14177         between Makefile.in.in and the gettext-runtime m4 files.
14179 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14181         file-has-acl: new module, split from acl
14182         And add a new module file-has-acl-tests to match.
14183         I ran into a problem with the recent changes to the acl module,
14184         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
14185         When using the fixed version with Emacs, I discovered that
14186         file-has-acl wasn't separated out well enough for Emacs (e.g., it
14187         had multiple libraries, but needed only one), so I fixed that too.
14188         * NEWS: Document this incompatible change.
14189         * modules/file-has-acl, modules/file-has-acl-tests: New files.
14190         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
14191         Initialize gl_need_lib_has_acl.
14192         (gl_FUNC_ACL): Require it.
14193         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
14194         Move the file-has-acl.c-relevant stuff to ...
14195         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
14196         use_xattrs = 0' typo, and omit some needless work.  Set
14197         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
14198         when gl_FUNC_ACL is called.
14199         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
14200         (Link): Remove $(LIB_HAS_ACL).
14201         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
14202         (check_PROGRAMS): Move stuff relevant to file-has-acl to
14203         modules/file-has-acl-tests.
14204         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
14206         manywarnings: add GCC 5.1 warnings
14207         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
14208         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
14209         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
14210         -Wsuggest-override, -Wuse-without-only.  Change
14211         -Wnormalized=... operands to match 5.1.
14212         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
14213         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
14214         -Wdiscarded-qualifiers, -Wformat-signedness,
14215         -Wincompatible-pointer-types, -Wint-conversion,
14216         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
14217         -Wshift-count-negative, -Wshift-count-overflow,
14218         -Wsizeof-array-argument, -Wsuggest-final-methods,
14219         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
14220         and add -Warray-bounds=2 as a special case.
14222 2015-04-21  Simon Josefsson  <simon@josefsson.org>
14224         doc: update FDL template to match FDL examples.
14225         * doc/alloca-opt.texi:
14226         * doc/alloca.texi:
14227         * doc/c-ctype.texi:
14228         * doc/c-strcase.texi:
14229         * doc/c-strcaseeq.texi:
14230         * doc/c-strcasestr.texi:
14231         * doc/c-strstr.texi:
14232         * doc/c-strtod.texi:
14233         * doc/c-strtold.texi:
14234         * doc/ctime.texi:
14235         * doc/error.texi:
14236         * doc/gcd.texi:
14237         * doc/gnulib-tool.texi:
14238         * doc/inet_ntoa.texi:
14239         * doc/intprops.texi:
14240         * doc/lib-symbol-visibility.texi:
14241         * doc/maintain.texi:
14242         * doc/parse-datetime.texi:
14243         * doc/quote.texi:
14244         * doc/regexprops-generic.texi:
14245         * doc/standards.texi: Remove spurious 'with' in FDL license
14246         template.
14248 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
14250         lstat: fix cross-compilation 'ln -s' problem
14251         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
14252         Have the test program call 'symlink' rather than a separate
14253         script run 'ln -s'; this is more likely to work in
14254         cross-compilation environments.  Reported by Pavel Fedin in:
14255         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
14257 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
14259         gendocs.sh: default to a common CSS style sheet for HTML output
14260         * build-aux/gendocs.sh (htmlarg): Change default value.
14262 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
14264         gnulib-tool: output bold attribute more portably
14265         * gnulib-tool (func_show_module_list): Change hexadecimal
14266         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
14267         encoded numbers as arguments to `printf' is not portable,
14268         and is not claimed by POSIX.  This is the case with FreeBSD.
14270 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14272         qacl: Simplify HP-UX acl_nontrivial check
14273         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
14274         acl_nontrivial. Check if the acl has at most three entries instead (it must
14275         have exactly three entries according to the HP-UX documentation). Ignore
14276         uids and gids as long as an entry is either for a user (i.e., the owner),
14277         a group (i.e., the owning group), or others.
14278         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
14279         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
14281 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
14283         acl: On Linux, check for acls without libacl
14284         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
14285         library function to check for the presence of acls, avoiding a library.
14286         * lib/file-has-acl.c: Include xattr headers if we have them.
14287         (file_has_acl): On Linux, use getxattr().
14288         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
14289         file_has_acl(). Check for xattr headers and getxattr().
14291 2015-04-14  Ángel González  <keisial@gmail.com>
14293         tempname: avoid unused parameter warnings (trivial)
14294         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
14295         (try_nocreate): Likewise.
14297 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
14299         fseeko: fix build failure on NetBSD >= 6 (trivial)
14300         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
14301         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
14303 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14305         gitlog-to-changelog: port to MS-Windows
14306         * build-aux/gitlog-to-changelog (git_dir_option):
14307         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
14308         MS-Windows Perl.  Reported by Eli Zaretskii in:
14309         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
14311 2015-04-07  Karl Berry  <karl@gnu.org>
14313         gendocs: new option --tex for passing args to texi2dvi.
14314         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
14315         (TEXI2DVI): cut to just command name.
14316         (usage): mention new option, and update copyright.
14317         <generate_tex>: use it.
14319 2015-04-07  Karl Berry  <karl@gnu.org>
14321         * config/srclistvars.sh (GETTEXT): new definition.
14322         * config/srclist.txt: use it for gettext .m4 files.
14323         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
14324         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
14325         and continuing into April.
14327 2015-04-07  Daiki Ueno  <ueno@gnu.org>
14329         uniname/uniname-tests: fix failure due to alias
14330         Reported by Jack Howarth in:
14331         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
14332         * tests/uniname/test-uninames.c (name_has_alias): New function.
14333         (test_inverse_lookup): Exclude character name with valid alias,
14334         from randomly generated character names.
14335         (main): Fill unicode_aliases before calling test functions.
14337 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
14339         hash: remove deprecated hash_insert0 function
14340         * lib/hash.h (hash_insert0): Remove deprecated function.
14341         * lib/hash.c (hash_insert0): Likewise.
14343 2015-04-02  Pádraig Brady  <P@draigBrady.com>
14345         mountlist: remove dependency on libmount
14346         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
14347         directly, rather than depending on libmount, which has many
14348         dependencies due to its dependence on libselinux, as detailed at:
14349         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
14350         Note we restrict this to __linux__ as that's probably where this
14351         interface will remain.  If ever porting, it would be best
14352         to first pull the makedev() wrapper from coreutils to a gnulib module.
14353         Note also we don't add a getline dependency to the mountlist module,
14354         as all Linux versions are sufficient.
14356 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
14358         stddef: port to pre-C11 GCC on x86
14359         On this platform, max_align_t should have an alignment of 8 even
14360         though the storage alignments of double, long, etc. max out at 4.
14361         Inspired by a comment of Andreas Schwab's here:
14362         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
14363         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
14364         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
14365         * tests/test-stddef.c: Test __alignof__ too, if available.
14367 2015-03-24  Pádraig Brady  <P@draigBrady.com>
14369         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
14370         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
14372 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
14374         yesno: make EOL optional in ENABLE_NLS case also (trival)
14375         * lib/yesno.c (yesno): Check for EOL before replacing.
14376         * tests/test-yesno.sh: Add a test case (test along with gettext).
14378 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
14380         fdopendir-tests: test it does not close its arg
14381         * tests/test-fdopendir.c (main): Test that fdopendir does not
14382         close its argument.  From a suggestion by David Grayson in:
14383         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
14385 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14387         gitlog-to-changelog: trim trailing white space
14388         * build-aux/gitlog-to-changelog (main):
14389         Trim trailing white space from commit message lines.
14390         This is helpful for processing the GNU Emacs repository,
14391         which dates back to 1985 and contains a lot of such lines.
14393         gitlog-to-changelog: new option --ignore-matching
14394         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
14395         Support new option --ignore-matching=PAT, which ignores all
14396         commit messages whose first line matches PAT.
14398 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14400         fdopendir: port better to MinGW
14401         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
14402         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
14403         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
14404         * modules/fdopendir (Depends-on): Add dirfd.
14406 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14408         fdopendir: fix typo in comment
14409         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
14411 2015-03-09  Eric Blake  <eblake@redhat.com>
14413         error: document all entry points provided
14414         * doc/glibc-functions/error_print_progname.texi
14415         (error_print_progname): Mention the error module.
14416         * doc/glibc-functions/error_at_line.texi (error_at_line):
14417         Likewise.
14418         * doc/glibc-functions/error_message_count.texi
14419         (error_message_count): Likewise.
14420         * doc/glibc-functions/error_one_per_line.texi
14421         (error_one_per_line): Likewise.
14423 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
14425         vasnprintf: pacify clang 3.5.0
14426         Problem reported by Werner Lemberg in:
14427         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
14428         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
14429         The casts aren't needed, since the characters in question are ASCII.
14431 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14433         glob, etc.: port to MSVC v18 on MS-Windows 8.1
14434         * lib/dirent--.h (GNULIB_defined_opendir):
14435         * lib/dirent.in.h (GNULIB_defined_opendir)
14436         (GNULIB_defined_closedir):
14437         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
14438         #undef only if Gnulib defined it.
14440         poll: port to MSVC v18 on MS-Windows 8.1
14441         Problem reported by Gisle Vanem in:
14442         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
14443         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
14444         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
14445         Add sys_socket.
14447 2015-02-24  Pádraig Brady  <P@draigBrady.com>
14449         tests: support stderr verification with returns_()
14450         * tests/init.sh (returns_): Disable tracing for this wrapper
14451         function, so that stderr of the wrapped command is unchanged,
14452         allowing for verification of the contents.
14454 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
14456         passfd: avoid valgrind uninitalised data warning
14457         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
14458         to include just the fd we've initialized, rather than including
14459         the extra space used for alignment.
14461 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14463         uniwbrk/u32-wordbreaks-tests: fix copyright
14464         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
14466         dup2: doc and test for Android bug
14467         Reported by Kevin Cernekee in:
14468         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
14469         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14470         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
14472 2015-02-23  Kevin Cernekee  <cernekee@google.com>
14474         Replace dup2() on Android
14475         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
14476         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
14477         fails.  Using rpl_dup2() fixes this because it has an explicit test
14478         for this condition.
14480 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
14482         Android doesn't define RLIM_SAVED_*
14483         Portability problem reported by Kevin Cernekee in:
14484         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
14485         * doc/posix-headers/sys_resource.texi (sys/resource.h):
14486         Mention the portability problem.
14487         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
14488         Define if not defined.
14489         * m4/dup2.m4 (gl_FUNC_DUP2):
14490         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14491         Likewise.
14493 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14495         vasnprintf-posix-tests: use consistent test
14496         * tests/test-vasnprintf-posix.c (test_function):
14497         Use "<" in assert instead of "<=", for consistency with other tests.
14499 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14501         printf, isinf, etc.: noncanonical != NaN
14502         Do not require that isinf, printf, etc. treat noncanonical
14503         values as NaNs.  Instead, require only that they do not crash.
14504         Problem reported by Joseph Myers in:
14505         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
14506         * doc/posix-functions/dprintf.texi (dprintf):
14507         * doc/posix-functions/fprintf.texi (fprintf):
14508         * doc/posix-functions/isfinite.texi (isfinite):
14509         * doc/posix-functions/isinf.texi (isinf):
14510         * doc/posix-functions/isnan.texi (isnan):
14511         * doc/posix-functions/printf.texi (printf):
14512         * doc/posix-functions/snprintf.texi (snprintf):
14513         * doc/posix-functions/sprintf.texi (sprintf):
14514         * doc/posix-functions/vdprintf.texi (vdprintf):
14515         * doc/posix-functions/vfprintf.texi (vfprintf):
14516         * doc/posix-functions/vprintf.texi (vprintf):
14517         * doc/posix-functions/vsnprintf.texi (vsnprintf):
14518         * doc/posix-functions/vsprintf.texi (vsprintf):
14519         Document this.
14520         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
14521         * m4/isinf.m4 (gl_ISINFL_WORKS):
14522         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
14523         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
14524         * tests/test-isfinite.c (test_isfinitel):
14525         * tests/test-isinf.c (test_isinfl):
14526         * tests/test-isnan.c (test_long_double):
14527         * tests/test-isnanl.h (main):
14528         * tests/test-snprintf-posix.h (test_function):
14529         * tests/test-sprintf-posix.h (test_function):
14530         * tests/test-vasnprintf-posix.c (test_function):
14531         * tests/test-vasprintf-posix.c (test_function):
14532 o       Test only that noncanonical values do not cause crashes, not that
14533         they are treated as NaNs.  In some cases this means a larger
14534         output buffer is needed.
14536 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
14538         fts: remove redundant close() (trivial)
14539         * lib/fts.c (fts_read): Remove redundant call to close().
14540         Spotted by coverity.
14542 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14544         getdtablesize: port better for Android
14545         Problem reported by Kevin Cernekee in:
14546         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
14547         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
14548         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
14549         Instead, just use getrlimit, taking care to avoid Cygwin bug.
14551         poll: fixes for large fds
14552         * lib/poll.c (poll): Don't check directly for NFD too large.
14553         Don't rely on undefined behavior in FD_SET when an arg exceeds
14554         FD_SETSIZE.  Always set revents afterwards, even if to zero.
14555         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
14556         as that makes the test a bit stricter.
14558 2015-02-19  Kevin Cernekee  <cernekee@google.com>
14560         fcntl: Fix cross compiling
14561         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
14562         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
14564 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14566         dup2, fcntl: cross-compile better for Android
14567         Problem reported by Kevin Cernekee in:
14568         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
14569         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
14570         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
14571         there's little need to cross-compile for older kernels nowadays.
14572         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
14573         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
14575 2015-02-18  Pádraig Brady  <P@draigBrady.com>
14577         getopt: don't crash on memory exhaustion
14578         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
14579         memory exhaustion.  In the _LIBC case we use alloca() as is
14580         already done in glibc, so we don't need to consider the separate
14581         error path in that awkward case.  Also fix a memory leak when
14582         ambiguous options are present.
14583         Reported by Tobias Stoeckmann
14585 2015-02-17  Mike Miller  <mtmiller@ieee.org>
14587         tempname: allow compilation with C++ (trivial)
14588         * lib/tempname.h [C++]: Specify extern "C" linkage.
14589         * lib/tempname.h (try_tempname):
14590         * lib/tempname.c (__try_tempname, __gen_tempname):
14591         Rename 'try' to 'tryfunc'.
14593 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14595         dup2, fcntl: port to AIX
14596         * m4/dup2.m4 (gl_FUNC_DUP2):
14597         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14598         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
14599         The former works on AIX 7.1 but the latter does not.
14600         Also, this may work better with Android; see:
14601         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
14603 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14605         getdtablesize, dup2, fcntl: port to Android
14606         Problem reported by Kevin Cernekee in:
14607         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
14608         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
14609         Mention that getdtablesize doesn't work on Android.
14610         * lib/getdtablesize.c: Use getrlimit substitute only if
14611         getdtablesize is declared.  This should suffice for Cygwin
14612         while not breaking Android.
14613         * m4/dup2.m4 (gl_FUNC_DUP2):
14614         * m4/fcntl.m4 (gl_FUNC_FCNTL):
14615         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
14616         standardized but the latter is not, and sysconf works on Android.
14617         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
14618         Also check that getdtablesize is declared.
14619         This removes the need for a special case for Android.
14621 2015-02-16  Kevin Cernekee  <cernekee@google.com>
14623         localename: Implement gl_locale_name_thread_unsafe for Android
14624         * lib/localename.c: Android API level >= 21 supports two hardcoded
14625         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
14626         the internal __locale_t struct.
14628 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
14630         fts: avoid crash when a cycle is added while traversing
14631         This could be triggered by auto-mounting a recursive bind mount.
14632         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
14633         * lib/fts.c (fts_read): Avoid removing the original hash table item
14634         when leaving a directory that caused a cycle, and preserve the FTS_DC
14635         flag.
14637 2015-02-16  Daiki Ueno  <ueno@gnu.org>
14639         uniname/uniname: support character alias
14640         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
14641         Generate one-way mapping from aliases to codepoints in the
14642         generated tables.  Special case variation selectors to reduce
14643         table size.
14644         * lib/uniname/uniname.c (unicode_character_name): Special case
14645         variation selectors.
14646         (unicode_name_character): Special case variation selectors and
14647         their aliases.
14648         * lib/uniname/uninames.h: Regenerate.
14649         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
14650         * modules/uniname/uniname-tests (Files): Add
14651         tests/uniname/NameAliases.txt.
14652         * tests/uniname/test-uninames.c: Mark as static.
14653         (ALIASLEN): Define.
14654         (struct unicode_alias): New struct.
14655         (unicode_aliases): New variable.
14656         (fill_aliases): New function.
14657         (test_alias_lookup): New test function.
14658         (main): Run the 'test_alias_lookup' test if the second argument is
14659         given.
14660         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
14661         second argument.
14663 2015-02-11  Kevin Cernekee  <cernekee@google.com>
14665         Fix FILE struct compatibility with Android API level >= 21
14666         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
14667         __sferror.  Recent versions of Bionic's stdio.h no longer define
14668         __sferror.
14669         * lib/fbufmode.c: Likewise.
14670         * lib/fflush.c: Likewise.
14671         * lib/fpurge.c: Likewise.
14672         * lib/freadable.c: Likewise.
14673         * lib/freadahead.c: Likewise.
14674         * lib/freading.c: Likewise.
14675         * lib/freadptr.c: Likewise.
14676         * lib/freadseek.c: Likewise.
14677         * lib/fseeko.c: Likewise.
14678         * lib/fseterr.c: Likewise.
14679         * lib/fwritable.c: Likewise.
14681         Assume unbroken ungetc() on Android
14682         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
14683         test case passed when running on an Android host, and the code
14684         hasn't really changed since 2009.
14686         getdtablesize: Fix Android build
14687         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
14688         versions have this symbol in the .so library (at least 32-bit
14689         platforms) but are missing the declaration in the header file,
14690         causing the m4 logic to guess incorrectly.
14692         localename: Fix Android build
14693         * modules/localename (Depends-on): Add langinfo.
14695         getugroups: Fix Android build
14696         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
14697         functions.
14699         euidaccess: Fix Android build
14700         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
14701         AT_EACCESS gets declared.
14703         linkat_nofollow: Add fallback case for cross compiling
14704         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
14706         net_if: Handle content-free <net/if.h> system headers
14707         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
14708         struct if_nameindex.  If not, enable the replacement header.
14710         signal_h: Fix Android build
14711         * lib/signal.in.h: Add Android to the list of platforms that declare
14712         pthread_sigmask() in <pthread.h> instead of <signal.h>.
14714         duplocale: Fix Android build of duplocale-tests
14715         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
14716         is included by test-duplocale.c (but not by duplocale.c).
14717         * modules/duplocale-tests (configure.ac): Check for monetary.h.
14718         * tests/test-duplocale.c: Skip test if monetary.h is absent.
14719         * doc/posix-headers/monetary.texi: Add Android to the list of
14720         platforms missing monetary.h.
14722 2015-02-11  Pádraig Brady  <P@draigBrady.com>
14724         tests: avoid recent -Werror=unused-variable regression in test-locale
14725         * tests/test-locale.c (main): Reference the variable to avoid the
14726         "unused variable" warning.
14728 2015-02-11  Pádraig Brady  <P@draigBrady.com>
14730         maint: various whitespace cleanups in tempname
14731         * lib/tempname.c: Normalize spacing and line length.
14732         * lib/tempname.h: Likewise.
14733         * modules/tempname: Likewise.
14735 2015-02-11  Pádraig Brady  <P@draigBrady.com>
14737         tests: provide returns_() to simplify exit status checking
14738         * tests/init.sh (returns_): A new function for use in tests,
14739         to allow for easier checking of return values, where you expect
14740         a command to exit with failure status.  By checking for a particular
14741         exit code, you don't hide any crashes for example.
14743 2015-02-11  Pádraig Brady  <P@draigBrady.com>
14745         mountlist: only use libmount when specified
14746         There are currently many shared libs dependencies introduced by
14747         libmount with associated runtime and virt mem overhead.
14748         Therefore don't enable by default.
14749         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
14751 2015-02-08  Daiki Ueno  <ueno@gnu.org>
14753         uniname/unimame-tests: don't link with -lunistring
14754         * modules/uniname/uniname-tests (Makefile.am): Don't link against
14755         $(LIBUNISTRING).  Document the rationale why we need to
14756         conditionalize the test.
14758 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14760         fstrcmp: don't assume strlen < INT_MAX
14761         * lib/fstrcmp.c: Include stddef.h and stdint.h.
14762         (uintptr_t): Remove, as we're now assuming stdint.
14763         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
14764         Prefer ptrdiff_t to int when the value could exceed INT_MAX
14765         if the input string is long.
14766         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
14767         uintptr_t to size_t when the underlying value is a pointer casted
14768         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
14769         * modules/fstrcmp (Depends-on): Add stdint.
14771         diffseq: prefer ptrdiff_t to ssize_t
14772         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
14773         ptrdiff_t is the natural type for signed indexes.
14774         On a few older platforms, ssize_t is narrower than size_t.
14776         xalloc: fix typo that suppressed warnings
14777         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
14778         This typo, introduced a couple of years ago, mistakenly suppressed
14779         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
14780         -Wmissing-declarations warnings.
14782         full-read: fix license notice typo
14783         * lib/full-read.h: Remove a stray line in the license notice.
14784         Reported by Sam Ellis in: http://bugs.gnu.org/19808
14786         crypto/gc: fix a -Wswitch warning
14787         Reported by Bruce Korb in:
14788         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
14789         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
14791 2015-02-03  Pádraig Brady  <P@draigBrady.com>
14793         gnulib-tool: fix handling of patch(1) diagnostics
14794         * gnulib-tool: Send diagnostics from patch(1) to stderr,
14795         as otherwise gnulib-tool will reparse that output and attempt
14796         to lookup modules.
14798 2015-02-03  Pádraig Brady  <P@draigBrady.com>
14800         bootstrap: exit immediately upon gnulib-tool failure
14801         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
14802         This was noticed when gnulib-tool exited early due to failure
14803         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
14804         but various confusing errors were then given as the build proceeded.
14806 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
14808         symlinkat: include all required header files
14809         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
14810         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
14811         Reported at https://savannah.gnu.org/bugs/index.php?44151
14812         and by Jack Howarth.
14814 2015-01-29  Pádraig Brady  <P@draigBrady.com>
14816         localename: support Solaris 12 and illumos
14817         * lib/localename.c (gl_locale_name_thread_unsafe): call
14818         getlocalename_l() on newer __sun platforms.
14819         Reported by Alexander Pyhalov.
14820         Fix suggested by Rich Burridge.
14822 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
14824         locale: fix tests on illumos (trivial)
14825         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
14826         so move from global scope to main().
14828 2015-01-24  Daiki Ueno  <ueno@gnu.org>
14830         unictype: avoid undefined left-shift behavior
14831         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
14832         gcc's -fsanitize=shift and running its tests triggered:
14833           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
14834             places cannot be represented in type 'int'
14835         Cast LHS to 'unsigned int' after integer promotion.
14836         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
14837         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
14839 2015-01-20  Daiki Ueno  <ueno@gnu.org>
14841         libunistring: bump version of unitypes dependants
14842         Due to the header file search order, all the headers which depend
14843         on unitypes.h need to be generated, when the preinstalled
14844         libunistring is older.
14845         * modules/unicase/base (configure.ac): Bump minimum version to
14846         0.9.4.
14847         * modules/uniconv/base (configure.ac): Likewise.
14848         * modules/unilbrk/base (configure.ac): Likewise.
14849         * modules/uninorm/base (configure.ac): Likewise.
14850         * modules/unistdio/base (configure.ac): Likewise.
14851         * modules/unistr/base (configure.ac): Likewise.
14852         * modules/uniwbrk/base (configure.ac): Likewise.
14853         * modules/uniwidth/base (configure.ac): Likewise.
14855 2015-01-20  Daiki Ueno  <ueno@gnu.org>
14857         unictype/category-none: fix link with libunistring
14858         Since _UC_CATEGORY_NONE is not a public symbol, it will be
14859         prefixed with "libstring_" when compiled as part of libunistring.
14860         To avoid undefined symbol at link time, increase the minimum
14861         version when the dependant modules are updated.
14862         * modules/unictype/category-none (configure.ac): Bump minimum
14863         version to 0.9.5.
14865 2015-01-20  Daiki Ueno  <ueno@gnu.org>
14867         unitypes: fix build with installed libunistring
14868         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
14869         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
14870         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
14872 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
14874         time: port to MinGW32 3.21
14875         Problem reported by Eli Zaretskii in:
14876         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
14877         * lib/time.in.h:
14878         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
14879         * modules/time (Depends-on):
14880         Fall back on unistd.h if the other include files don't define
14881         struct timespec.
14883         update-copyright: apply to self
14884         * build-aux/update-copyright: Fix copyright date.  How ironic!
14886 2015-01-15  Daiki Ueno  <ueno@gnu.org>
14888         libunistring: update to Unicode 7.0.0
14889         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
14890         Manichaean names.
14891         * lib/unictype/joininggroup_name.h: Likewise.
14892         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
14893         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
14894         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
14895         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
14896         (fill_arabicshaping, joining_group_as_c_identifier): Support those
14897         enum values.
14898         (is_property_alphabetic): Accept newly added characters to
14899         cuneiform numeric signs.
14900         (is_property_default_ignorable_code_point): Reject U+0605.
14901         (FIELDLEN): Increase from 120 to 160.
14902         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
14903         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
14904         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
14905         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
14906         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
14907         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
14908         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
14909         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
14910         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
14911         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
14912         U+1E8D0..U+1E8D6.
14913         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
14914         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14915         lib/uniwidth/width.c.
14916         * all generated files under lib/uni* and tests/uni*: Regenerate.
14918 2015-01-14  Daiki Ueno  <ueno@gnu.org>
14920         libunistring: update to Unicode 6.3.0
14921         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
14922         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
14923         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
14924         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
14925         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
14926         Update WB5, WB9, WB10, WB13a, and WB13b.
14927         * tests/uniwbrk/test-uc-wordbreaks.c
14928         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
14929         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
14930         (UC_BIDI_PDI): New enumeration values.
14931         (bidi_category_byname): Support those enum values.
14932         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
14933         dedicated property assigned.
14934         (is_property_case_ignorable): Check 0x0027.
14935         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
14936         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
14937         (output_wbp): Support those enum values.
14938         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
14939         (UC_BIDI_PDI): New enumeration values.
14940         * lib/unictype/bidi_byname.gperf: Add those property names.
14941         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
14942         U+180E, U+1A1B, and U+2066..U+2069.
14943         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14944         lib/uniwidth/width.c.
14945         * all generated files under lib/uni* and tests/uni*: Regenerate.
14947 2015-01-14  Daiki Ueno  <ueno@gnu.org>
14949         libunistring: update to Unicode 6.2.0
14950         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
14951         (unilbrk_table): Adjust table size.
14952         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
14953         for LBP_RI.
14954         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
14955         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
14956         Normalize table index skipping ignored properties.
14957         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
14958         WBP_EXTEND and WBP_FORMAT, which are now computed without using
14959         the table.
14960         * lib/uniwbrk/wbrktable.h: Adjust table size.
14961         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
14962         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
14963         Support rule GB8a.
14964         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
14965         * tests/unigbrk/test-uc-is-grapheme-break.c
14966         (graphemebreakproperty_to_string): Support GBP_RI.
14967         * tests/uniwbrk/test-uc-wordbreaks.c
14968         (wordbreakproperty_to_string): Support WBP_RI.
14969         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
14970         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
14971         (output_lbp): Support LBP_RI.  Adjust some characters changed from
14972         LBP_AL to LBP_ID.
14973         (output_lbp): Support LBP_RI.
14974         (WBP_RI): New enumeration value.
14975         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
14976         (output_wbp): Support WBP_RI.
14977         (GBP_RI): New enumeration value.
14978         (output_gbp_test, fill_org_gbp): Support GBP_RI.
14979         * all generated files under lib/uni* and tests/uni*: Regenerate.
14981 2015-01-14  Daiki Ueno  <ueno@gnu.org>
14983         libunistring: update to Unicode 6.1.0
14984         * lib/gen-uni-tables.c (output_joining_group): Switch to
14985         3-level table to accommodate joining groups defined with higher
14986         codepoint value.  Since there are only 88 groups defined in
14987         Unicode 7.0.0, use 7-bit packed format for level3 entries.
14988         (get_lbp): Update for Unicode 6.1.0.
14989         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
14990         3-level table.
14991         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
14992         joining group name.
14993         * lib/unictype/joininggroup_name.h: Likewise.
14994         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
14995         (unilbrk_table): Adjust table size.
14996         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
14997         for LBP_HL.
14998         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
14999         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
15000         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
15001         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
15002         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
15003         U+302E..U+302F.
15004         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15005         lib/uniwidth/width.c.
15006         * all generated files under lib/uni* and tests/uni*: Regenerate.
15007         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
15009 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15011         uniwbrk/u32-wordbreaks-tests: add conformance test
15012         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
15013         tests/uniwbrk/test-uc-wordbreaks.c,
15014         tests/uniwbrk/test-uc-wordbreaks.sh, and
15015         tests/uniwbrk/WordBreakTest.txt.
15016         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
15017         test-uc-wordbreaks to $(check_PROGRAMS), and define
15018         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
15019         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
15020         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
15022 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15024         uniwbrk: ignore Extended/Format characters at BOL not BOS
15025         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
15026         characters if the previous character property is one of
15027         WBP_NEWLINE, WBP_CR, and WBP_LF.
15029 2015-01-11  Jim Meyering  <meyering@fb.com>
15031         test-strstr.c: avoid a trivial leak
15032         * tests/test-strstr.c (main): Free haystack.
15034         update-copyright: recognize groff's \(co marker
15035         * build-aux/update-copyright (circle_c_re): Also accept
15036         uses of \(co, as found in gzip.1.
15038 2015-01-08  Pádraig Brady  <P@draigBrady.com>
15040         maint.mk: fix compatibility with OS X nm
15041         * top/maint.mk (_gl_tight_scope): Use the -g option to
15042         show exported items rather than the -e option which is
15043         ignored on all platforms except OS X where it gives an error.
15044         Reported by Assaf Gordon.
15046 2015-01-07  KO Myung-Hun  <komh@chollian.net>
15048         localcharset: improve charset detection on OS/2
15049         Use system codepage when appropriate.  Map OS/2 codepages to
15050         GNU canonical charset names if possible.
15051         * lib/config.charset: Don't output aliases if "$os" is os2*.
15052         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
15053         result for OS/2.
15054         (locale_charset) [OS2]: Use system codepage if codeset is omitted
15055         from the locale name which is neither "C" nor "POSIX".
15057 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15059         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
15060         This reverts the last patch but one, as it shouldn't be needed now
15061         that the typo is fixed.
15062         * lib/count-leading-zeros.h (count_leading_zeros_ll):
15063         * lib/count-trailing-zeros.h:
15064         * lib/count-one-bits.h:
15065         Go back to using 64-bit intrinsics.
15067         count-leading-zeros: fix pragma typos
15068         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
15069         Fix typos in declaration of intrinsics when _MSC_VER.
15071 2015-01-06  Pádraig Brady  <P@draigBrady.com>
15073         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
15074         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
15075         intrinsics in this case.
15076         * lib/count-trailing-zeros.h: Likewise.
15077         * lib/count-one-bits.h: Likewise.
15079 2015-01-06  Daiki Ueno  <ueno@gnu.org>
15081         uniname/uniname: update to Unicode 7.0.0
15082         To accommodate new characters added since Unicode 5.1.0, this
15083         changes the internal representation of codepoint ranges.
15084         Previously, we grouped codepoint ranges by manually assigned 4-bit
15085         tag, which only allowed 16 groups.  This removes the limitation by
15086         switching to binary search on a table.  For the detail rationale
15087         and the benchmark results, see:
15088         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
15089         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
15090         to INDEX, as it no longer represents a codepoint.
15091         (range): New struct.
15092         (main): Switch to intervals list from a bit-pattern based
15093         classification.
15094         * lib/uniname/uninames.h: Regenerate.
15095         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
15096         * modules/uniname/base (configure.ac): Bump minimum version to
15097         0.9.5.
15098         * modules/uniname/uniname (configure.ac): Bump minimum version to
15099         0.9.5.
15101 2015-01-05  Eric Blake  <eblake@redhat.com>
15103         doc: update INSTALL from autoconf
15104         * doc/install.texi: Resync from autoconf.
15105         * doc/INSTALL: Reflect recent autoconf update.
15106         * doc/INSTALL.ISO: Likewise.
15107         * doc/INSTALL.UTF-8: Likewise.
15109         stdio: fix use of PRIdMAX on modern mingw
15110         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
15111         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
15112         to work with modern mingw.
15114 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
15116         pthread: detect git mingw builds with only partial pollution
15117         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
15118         pollution, as seen temporarily in Fedora 21.
15120 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15122         lib-symbol-versions: cache script check
15123         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
15124         Cache the check for linker version scripts.
15125         From a suggestion by Christophe Curis in:
15126         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
15128 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
15130         maint: fix grammar nits in propername (trivial change)
15131         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
15132         and use an adequate verb and tense.
15134 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
15136         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15137         * module/gendocs: Add 'doc/gendocs_template_min'.
15139         * build-aux/gendocs.sh: Change email addresses and upstream URLs
15140         from to Gnulib's.
15141         (scripturl, templateurl): Adjust accordingly.
15143 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15145         gendocs: copyright date and version fix
15146         Reported by Karl Berry in:
15147         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
15148         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
15149         Fix copyright date.
15150         * build-aux/gendocs.sh (scriptversion): Update.
15152 2015-01-01  Karl Berry  <karl@gnu.org>
15154         * doc/install.texi,
15155         * build-aux/mdate-sh,
15156         * build-aux/depcomp,
15157         * build-aux/config.guess,
15158         * build-aux/config.sub,
15159         * build-aux/ar-lib,
15160         * build-aux/compile: revert copyright updates (some from last
15161         year) in slaved files.
15163 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15165         version-etc: new year
15166         * doc/gnulib.texi:
15167         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
15168         * all files: Run 'make update-copyright'.
15170 2014-12-30  Pádraig Brady  <P@draigBrady.com>
15172         xstrtol: ensure errno is reset
15173         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
15174         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
15176         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
15178 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15180         utimens: fix dependency typo
15181         * modules/utimens (Depends-on): Remove 'assure'.
15182         This bug was introduced in the recent 'assure' patch.
15184 2014-12-22  Eric Blake  <eblake@redhat.com>
15186         docs: mention why libgen.h is bad
15187         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
15189 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15191         assure: new module
15192         This works better than 'assert' when compiling with -DNDEBUG,
15193         as it avoids some compiler diagnostics in that case.
15194         Reported by Norihiro Tanaka in:
15195         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
15196         * MODULES.html.sh (func_all_modules): Add 'assure'.
15197         * lib/assure.h, modules/assure: New files.
15198         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
15199         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
15200         Prefer 'assure' to 'assert'.
15201         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
15202         * modules/chdir-long, modules/cycle-check, modules/fchdir:
15203         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
15204         Depend on 'assure'.
15206 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15208         stdalign: port better to HP compilers
15209         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
15210         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
15212         stdalign: work around Apple GCC 4.0 bug
15213         Reported by David Fang in:
15214         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
15215         * lib/stdalign.in.h (_Alignas):
15216         * m4/stdalign.m4 (gl_STDALIGN_H):
15217         Do not use aligned attribute with GCC 4.0 on Apple.
15219 2014-12-16  Pádraig Brady  <P@draigBrady.com>
15221         getcwd: fix test failure on OS X 10.9
15222         * m4/getcwd-path-max.m4: Avoid the replacement if it
15223         won't be effective due to the PATH_MAX limitation of lstat().
15224         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
15225         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
15226         for this case for use in tests, and also exclude this
15227         case when setting REPLACE_GETCWD.
15228         * tests/test-getcwd.c (test_long_name): Restrict the
15229         tested path length so that lstat() will not be passed
15230         a path greater than PATH_MAX.
15231         Also key a test condition on HAVE_OPENAT_SUPPORT rather
15232         than AT_FDCWD, since the latter is set unconditionally
15233         since Sep 2009 in commit 52c658e9.
15235 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
15237         parse-datetime: avoid a compiler warning with byacc (trivial)
15238         * lib/parse-datetime.y (yylex): Use the same prototype in the
15239         function definition as the declaration, to avoid a -Wstrict-prototypes
15240         warning seen when using byacc.
15242 2014-12-12  Daiki Ueno  <ueno@gnu.org>
15244         unicase/locale-language-tests: fix LOCALE_FR test
15245         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
15246         a French locale with traditional encoding.
15247         Reported by umerqayam in:
15248         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
15250 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
15252         stddef: support C11's max_align_t
15253         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
15254         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
15255         Do not undef, as that might cause max_align_t to be defined twice.
15256         Instead, change use to check for _GL_STDDEF_WINT_T too.
15257         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
15258         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
15259         Check for max_align_t.
15260         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
15261         * modules/stddef-tests (Depends-on): Add stdalign.
15262         * tests/test-stddef.c: Test max_align_t.
15264 2014-12-11  Daiki Ueno  <ueno@gnu.org>
15266         unistd: fix iOS check conditional
15267         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
15268         as 0 or 1 in <TargetConditionals.h>, and the previous check always
15269         yielded true on non-iOS environment.
15270         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
15271         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
15272         they are defined.
15274 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
15276         posixtm: avoid compiler warning in a better way
15277         * lib/posixtm.c (IF_LINT): Remove.
15278         (year, posix_time_parse):
15279         Return true (not 0) if successful.  All callers changed.
15280         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
15282 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15284         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
15285         started with '/' on EMX.
15287 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
15289         freopen: workaround freopen() on OS/2 kLIBC
15290         * lib/freopen.c (rpl_freopen): Workaround.
15291         * m4/freopen.m4: Add os2* case.
15293         get_shared_library_fullname: port to EMX
15294         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
15295         on EMX, respectively.
15296         (_DLL_InitTerm): New on EMX.
15297         (get_shared_library_fullname): Implement on EMX.
15299         find_executable: port to EMX
15300         * lib/progreloc.c (find_executable): Implement on EMX.
15302         sched: check struct sched_param in spawn.h as well
15303         * lib/sched.in.h: Include spawn.h on kLIBC.
15304         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
15306 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
15308         bootstrap: Allow perl modules in $buildreq
15309         * build-aux/bootstrap: Add case for perl modules.
15311 2014-12-08  Pádraig Brady  <P@draigBrady.com>
15313         apply _GL_ATTRIBUTE_PURE to some inline functions
15314         clang 3.4.2 flagged these inline functions as pure
15315         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
15316         * lib/sig-handler.h (get_handler): Likewise.
15317         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
15318         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
15320 2014-12-06  Pádraig Brady  <P@draigBrady.com>
15322         vasnprintf: fix potential use after free
15323         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
15324         flagged by clang-analyzer 3.4.2.
15326 2014-12-05  Pádraig Brady  <P@draigBrady.com>
15328         filevercmp, posixtm: avoid compiler warnings with -O3
15329         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
15330         * lib/posixtm.c: (IF_LINT): Define.
15331         (posix_time_parse): Use it to void a "may be used uninitialized"
15332         warning, seen only with -O3.
15334 2014-12-05  Bruno Haible  <bruno@clisp.org>
15336         Fix LDBL80_WORDS macro on big endian platforms.
15337         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
15338         LDBL80_WORDS macro.
15339         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15340         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15341         * tests/test-isfinite.c (test_isfinitel): Likewise.
15342         * tests/test-isinf.c (test_isinfl): Likewise.
15343         * tests/test-isnan.c (test_long_double): Likewise.
15344         * tests/test-isnanl.h (main): Likewise.
15345         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
15346         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
15347         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
15348         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
15349         Reported by Pádraig Brady.
15351 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
15353         git-version-gen: do not print new line characters
15354         * build-aux/git-version-gen: Use printf instead of echo and tr.
15356         gnulib-tool: recognize x:* as an absolute path
15357         * gnulib-tool (func_gnulib_dir): Add ?:* case.
15358         (func_relconcat): Likewise.
15360 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
15362         argp: avoid extraneous translation and mem leak with empty pre doc
15363         * lib/argp-help.c (argp_doc): Never translate the empty string,
15364         when "\v" is the first or last character of the string, as that
15365         has a reserved meaning to return the header info from a po file.
15366         This also fixes a small memory leak in the !post case.
15367         The issue can be seen with this command for example:
15368         LC_MESSAGES=en_US grub2-mknetdir --help
15370 2014-11-27  Daiki Ueno  <ueno@gnu.org>
15372         uniname/uniname-tests: skip if system's libunistring is used
15373         * modules/uniname/uniname-tests (Makefile.am): Skip test if
15374         uniname/uniname module is not compiled.
15376 2014-11-27  Pádraig Brady  <P@draigBrady.com>
15378         printf: fix configure check on big endian systems
15379         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
15381 2014-11-22  Daiki Ueno  <ueno@gnu.org>
15383         pipe-filter-gi, pipe-filter-ii: port to AIX
15384         On AIX 7.1, 'select' is defined as static and cannot be referred
15385         to from inline function.
15386         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
15387         the definition...
15388         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
15389         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
15391 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15393         gitlog-to-changelog: add --until
15394         * build-aux/gitlog-to-changelog: Support new --until option.
15395         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
15397 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
15399         extern-inline: update commentary about GCC bugs
15400         * m4/extern-inline.m4: Add another GCC bug number to comments.
15402 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15404         gen-uni-tables: untabify
15405         * lib/gen-uni-tables.c: Untabify.
15407 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15409         gen-uni-tables: check out-of-range values added to 3-level tables
15410         * lib/gen-uni-tables.c (output_category, output_bidi_category)
15411         (output_joining_type, output_ident_category): Check out-of-range
15412         values added to 3-level tables.
15414 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15416         gen-uni-tables: utilize 'assert'
15417         * lib/gen-uni-tables.c: Include <assert.h>.
15418         (output_category, output_combclass, output_decimal_digit_test)
15419         (output_decimal_digit, output_digit_test, output_digit)
15420         (output_numeric, get_mirror_value, fill_properties)
15421         (fill_property30, is_property_alphabetic)
15422         (is_property_default_ignorable_code_point)
15423         (is_property_uppercase, is_property_lowercase)
15424         (is_property_cased, is_property_case_ignorable)
15425         (is_property_changes_when_lowercased, is_property_iso_control)
15426         (is_property_math, fill_arabicshaping, output_joining_group)
15427         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
15428         (output_wbp, fill_org_gbp, get_decomposition)
15429         (output_decomposition, fill_composition_exclusions)
15430         (debug_output_composition_tables, output_composition_tables)
15431         (redistribute_casefolding_rules, output_casing_rules): Use
15432         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
15433         reporting.
15435 2014-11-13  Daiki Ueno  <ueno@gnu.org>
15437         gen-uni-tables: cosmetic improvements
15438         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
15439         variables specification.
15440         (is_outdigit): Remove unused function.
15442 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
15444         fcntl-h-tests: port to PA-RISC GNU/Linux
15445         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
15447 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15449         fts: port to C89
15450         Problem reported for MSVC 16 by Gisle Vanem in:
15451         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
15452         * lib/fts.c (fts_build): Avoid declaration before statement.
15454 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
15456         unistd: port to iOS
15457         Problem reported by André Klitzing in:
15458         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
15459         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
15461 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15463         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
15464         Problem reported by Alan Modra in:
15465         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
15466         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
15467         Always cast the function arg, reverting this part of the previous
15468         change.
15470 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
15472         obstack: avoid potentially-nonportable function casts
15473         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
15474         Remove, replacing with ...
15475         (call_chunkfun, call_freefun): New static functions.
15476         All uses changed.  Avoid potentially-nonportable casts.
15477         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
15478         (_obstack_begin_worker): Omit last two args, since they
15479         rely on potentially-nonportable casts.  All callers changed.
15480         * lib/obstack.h (_OBSTACK_CAST): New macro.
15481         Use it everywhere the old API used a potentially-nonportable cast.
15482         The new API doesn't cast.
15483         (struct obstack): Use unions rather than requiring
15484         potentially-nonportable casts.
15485         (obstack_chunkfun, obstack_freefun): Return void.
15487 2014-11-03  Alan Modra  <amodra@gmail.com>
15489         obstack: fix macro return values
15490         * lib/obstack.h (obstack_next_free): Return void *.
15491         (obstack_1grow_fast, obstack_blank_fast): Return void.
15492         For __GNUC__ macros:
15493         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
15494         For !__GNUC__ macros:
15495         (obstack_make_room, obstack_grow, obstack_grow0)
15496         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
15498 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15500         obstack: do not assume system-supplied obstack is size_t safe
15501         * m4/obstack.m4: New file.
15502         * modules/obstack (Files): Add it.
15504         obstack: port to platforms that #define __alignof__
15505         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
15506         not if !_LIBC.  We don't know of any platforms that #define
15507         __alignof__, but it might be useful in tests.  Conversely,
15508         glibc assumes GCC.
15510 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15512         linkat: don't unconditionally replace on GNU/Linux
15513         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
15514         was redundant for a few reasons.  It was present to support compiling
15515         on new systems but running on the old narrow window of Linux 2.6.1[67].
15516         It setup and cleaned up test files which weren't actually used.
15517         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
15518         implicit in the following check.
15520 2014-11-03  Pádraig Brady  <P@draigBrady.com>
15522         linkat: wrap to handle symlinks on OS X 10.10
15523         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
15524         but not usable because it doesn't support creating hardlinks
15525         to symlinks.  Therefore add a generic test for this capability
15526         and fallback to our emulation if linkat() fails with ENOTSUP.
15528 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15530         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
15531         * doc/posix-functions/open.texi (open):
15532         * doc/posix-functions/openat.texi (openat):
15533         Document that these functions do not set errno to ELOOP when
15534         a symlink is opened with O_NOFOLLOW.
15536 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
15538         obstack: add NEWS entry for recent incompatible changes
15539         * NEWS: Describe recent changes.
15541 2014-10-30  Pádraig Brady  <P@draigBrady.com>
15543         mountlist: don't use libmount to decide on dummy/remote
15544         * lib/mountlist.c (read_file_system_list): Don't use the libmount
15545         routines to determine whether a file system is dummy or remote,
15546         as they're not currently compatible.  For example the remoteness
15547         is determined on file system type (for which the list seems incomplete),
15548         rather than simply checking for a ':' in the device name.
15549         Also libmount currently determines that 'tmpfs' is a dummy file system
15550         even though it has associated storage.
15552 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15554         obstack: prefer __alignof__ to alignof
15555         This is for portability to pre-4.7 GCC when compiling glibc.
15556         See Joseph S. Myers in:
15557         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
15558         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
15559         New macro, defined by including and using <alignof.h>.
15560         (MAX): New macro.
15561         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
15562         Do not use enums as they are not portable to some broken compilers.
15563         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
15565         obstack: prefer alignof to calculating alignments by hand
15566         * lib/obstack.c: Include <stdalign.h>.
15567         (struct fooalign): Remove.
15568         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
15569         * modules/obstack (Depends-on): Add stdalign.
15571 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
15573         obstack: use size_t alignments and check for overflow
15574         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
15575         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
15576         * lib/obstack.h (struct obstack.alignment_mask):
15577         Use _OBSTACK_SIZE_T, not int, for alignments.
15578         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
15579         overflows, e.g., when adding the alignment.
15581 2014-10-29  Alan Modra  <amodra@gmail.com>
15583         obstack: 64-bit obstack support, part 3
15584         This finally enables full 64-bit obstack support.  The glibc
15585         shared library specific code is removed from obstack.c too, and
15586         the error handling code conditionally compiled under control of
15587         another macro, _OBSTACK_NO_ERROR_HANDLER.
15588         * lib/obstack.h: Include string.h earlier.
15589         (_OBSTACK_INTERFACE_VERSION): Define.
15590         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
15591         * lib/obstack.c: Don't include shlib-compat.h.
15592         (OBSTACK_INTERFACE_VERSION): Delete.
15593         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
15594         glibc code is compatible with version 2.  Don't include stdio.h for
15595         __GNU_LIBRARY.
15596         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
15597         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
15598         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
15599         glibc shared library specific source.
15601         obstack: 64-bit obstack support, part 2
15602         This gets us 4G obstack support, without changing ABI
15603         compatibility, apart from possibly introducing some
15604         signed/unsigned comparison warnings in code that uses obstack.h.
15605         a) Replace "int" size parameters, return values, and macro local vars
15606            with _OBSTACK_SIZE_T, an "unsigned int" for now.
15607         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
15608         c) Make all obstack macros checking available room use obstack_room.
15609            "next_free + desired > chunk_limit" may wrap the lhs for chunks
15610            allocated near the top of memory.
15611         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
15612         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
15613         in place of "int" size parameters, return values and local vars.
15614         (_CHUNK_SIZE_T): Define.
15615         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
15616         union use an _OBSTACK_SIZE_T integer type.
15617         For __GNUC__ versions of the following macros...
15618         (obstack_room): Rename local var.
15619         (obstack_make_room): Use obstack_room.
15620         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
15621         obstack_int_grow, obstack_blank): Likewise.
15622         (obstack_finish): Use unsigned comparison when comparing aligned
15623         next_free against chunk_limit.
15624         (obstack_free): Cast OBJ to remove possible const qualifier.
15625         For !__GNUC__ versions of the following macros...
15626         (obstack_make_room): Use obstack_room.
15627         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
15628         obstack_int_grow, obstack_blank): Likewise.
15629         (obstack_finish): Use unsigned comparision when comparing aligned
15630         next_free against chunk_limit.
15631         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
15632         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
15633         _OBSTACK_SIZE_T.
15634         (_obstack_begin, _obstack_begin_1): Likewise.
15635         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
15636         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
15638         obstack: 64-bit obstack support, part 1
15639         a) Correct calls to alloc function, to use a size_t arg.  "long" is
15640            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
15641            and "size_t" 64 bits.
15642         b) Consolidate _obstack_begin and _obstack_begin1 code.
15643         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
15644         use "size_t" rather than "long".
15645         (_obstack_begin, _obstack_begin1): Likewise.
15646         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
15647         obstack_chunkfun): Update alloc function casts.
15648         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
15649         (chunkfun_type, freefun_type): New typdefs.
15650         (_obstack_begin_worker): Split out from ..
15651         (_obstack_begin, _obstack_begin_1): ..here.
15653         obstack: tidy part 2
15654         a) Don't be concerned about "not polluting the namespace with stddef.h
15655            symbols" in obstack.h, since gnulib string.h includes stddef.h
15656            anyway, and it seems unlikely that anyone would care.
15657         b) Don't roll our own slow memcpy in _obstack_newchunk.
15658         c) Rename obstack_free to _obstack_free.  This makes the naming
15659            consistent with other obstack functions and obviates the need for
15660            __obstack_free.  Ancient obstack.c defined both obstack_free and
15661            _obstack_free.  We continue to do that for _LIBC via an alias.
15662         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
15663            is clever, but nowadays gcc warns on undefined macros.  You'll get
15664            an undefined macro warning if simulating an old gcc with -U__GNUC__
15665            -U__GNUC_MINOR__ -D__GNUC__=1.
15666         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
15667         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
15668         (__obstack_free): Delete, update refs.
15669         (_obstack_free): Rename from obstack_free.
15670         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
15671         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
15672         * lib/obstack.c: Don't include stddef.h.
15673         (COPYING_UNIT): Delete.
15674         (_obstack_begin): Formatting fix.
15675         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
15676         (_obstack_free): Rename from __obstack_free, update alias.  Move
15677         undef of obstack_free to where it is needed.
15679         obstack: tidy part 1
15680         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
15681            to me, and result in overlong lines after later patches.
15682         b) Move error handling code, to avoid a forward declaration and to
15683            simplify later patches in this series.
15684         * lib/obstack.h (struct obstack <temp>): Rename fields of union
15685         and update all uses.
15686         * lib/obstack.c: Include stdlib.h earlier.
15687         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
15688         in file.
15689         (print_and_abort): Remove now redundant forward declaration.
15691 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15693         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
15694         Without this change, in bleeding-edge fileutils Autoconf complains
15695         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
15696         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
15697         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
15698         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
15700 2014-10-24  Daiki Ueno  <ueno@gnu.org>
15702         iconv: avoid false detection of non-working iconv
15703         The INBUF arguments of iconv can be either 'const char **'
15704         or 'char **'.  If CC is g++, the difference causes a compile error
15705         and thus leads to a false detection of non-working iconv.
15706         Reported by Eli Zaretskii and Werner LEMBERG in:
15707         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
15708         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
15709         iconv.  Bump serial number.
15711 2014-10-23  Pádraig Brady  <P@draigBrady.com>
15713         bootstrap: print more diagnostics for missing programs
15714         * build-aux/bootstrap: only suppress stderr when checking for
15715         alternative program names.  This supports programs issuing non
15716         standard error messages.
15718 2014-10-23  Pádraig Brady  <P@draigBrady.com>
15720         bootstrap: only update the gnulib submodule
15721         * build-aux/bootstrap: Restrict the "submodule update" command
15722         to the gnulib path.
15724 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
15726         symlinkat: port to AIX 7.1
15727         * doc/posix-functions/symlinkat.texi (symlinkat):
15728         Mention AIX porting problem.
15729         * lib/symlinkat.c: Always include errno.h.
15730         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
15731         * lib/unistd.in.h (symlinkat): Add replacement machinery.
15732         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
15733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
15734         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
15735         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
15736         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
15738         readlinkat: port to AIX 7.1
15739         * doc/posix-functions/readlink.texi (readlink):
15740         * doc/posix-functions/readlinkat.texi (readlinkat):
15741         Mention AIX porting problem.
15742         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
15743         New function.
15744         * lib/unistd.in.h (readlinkat): Add replacement machinery.
15745         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
15746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
15747         * modules/readlinkat (configure.ac): Also compile replacement
15748         if REPLACE_READLINKAT.
15749         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
15751 2014-10-12  Karl Berry  <karl@gnu.org>
15753         * doc/posix-functions/dirname.texi: remove spurious {.
15755 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
15757         basename, dirname: Improve documentation.
15758         * doc/posix-functions/basename.texi: Mention dirname module and
15759         base_name() function.
15760         * doc/posix-functions/dirname.texi: Mention dir_name() and
15761         mdir_name() functions.
15762         Suggested by Werner LEMBERG <wl@gnu.org>.
15764 2014-09-24  Jim Meyering  <meyering@fb.com>
15766         exclude: declare exclude_patopts static
15767         * lib/exclude.c (exclude_patopts): Declare static,
15768         to avoid triggering a -Wmissing-prototypes warning.
15769         The alternative (declaring it in the .h file) would
15770         require publicizing the private "struct patopts".
15772 2014-09-21  Werner Lemberg  <wl@gnu.org>
15774         dirname: support compilation with C++
15775         * lib/dirname.h: Add necessary C linkage declarations.
15777 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15779         qsort_r: include <config.h>
15780         Problem reported by Tom G. Christensen in:
15781         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
15782         * lib/qsort.c [!_LIBC]: Include <config.h> first.
15784 2014-09-16  Dylan Cali  <calid1984@gmail.com>
15786         avltree-list: avoid compiler warnings (trivial)
15787         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
15788         -Werror=suggest-attribute=pure.
15789         * lib/gl_array_list.c: Likewise.
15790         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
15791         declaration to avoid -Werror=missing-prototypes.  This is not added
15792         to a header as only exported for tests.  Add (void) to the
15793         check_invariants() call to indicate we're discarding the result
15794         in this context which avoids -Werror=unused-value.  Note we don't
15795         use ignore_value here to avoid a dependency as we know we'll not
15796         be adding __attribute__((warn_unused_result)) to check_invariants().
15797         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
15799 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
15801         qsort_r: new module, for GNU-style qsort_r
15802         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
15804 2014-09-15  Werner LEMBERG  <wl@gnu.org>
15806         strerror_r-posix: support compilation with C++
15807         * lib/strerror_r.c: Add necessary C linkage declarations.
15809 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
15811         fcntl-h: fix compilation with Intel C++ compiler (trivial)
15812         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
15814 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
15816         mountlist: use /proc/self/mountinfo when available
15817         Use libmount to propagate device IDs provided by Linux in
15818         /proc/self/mountinfo.  This will give more accurate output when
15819         using df in chroot'ed environments as the device IDs are not
15820         determined by stat() which may be inaccurate within the chroot.
15821         * lib/mountlist.c (read_file_system_list): Use the libmount routines
15822         from util-linux to parse "/proc/self/mountinfo" or fall back to
15823         standard getmntent() processing.
15824         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
15825         getmntent() is used, as is the case on GNU/Linux.
15827 2014-09-07  Eric Wong  <normalperson@yhbt.net>
15829         users.txt: add cmogstored
15830         cmogstored has used gnulib since the beginning in 2012 to support
15831         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
15833 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
15835         Trivial change.
15836         * gnulib-tool: Use same options as build-aux/bootstrap to download
15837         PO files.
15839 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
15841         Trivial change.
15842         * gnulib-tool: Fallback to wget when rsync of PO files fails.
15844 2014-09-04  Eric Blake  <eblake@redhat.com>
15846         maintainer-makefile: add syntax check for useless ';;'
15847         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
15849 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
15851         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
15852         Problem reported by Assaf Gordon in:
15853         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
15854         Apparently Ubuntu is doing some fancy link-time optimization
15855         that doesn't work with -lpthread but does work with -pthread.
15856         Work around the bug by preferring -pthread to -lpthread.
15857         * m4/pthread.m4 (gl_PTHREAD_CHECK):
15858         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
15859         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15860         Treat -pthread like -lpthread.
15862 2014-09-04  Eric Blake  <eblake@redhat.com>
15864         error: drop spurious semicolon
15865         * lib/error.c (__error_at_line): Fix ';;'.
15867 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15869         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
15870         * m4/gnulib-common.m4 (AC_C_RESTRICT):
15871         Override AC_C_RESTRICT unconditionally.
15872         Update from autoconf, incorporating:
15873         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
15874         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
15876 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15878         manywarnings: add GCC 4.9 warnings
15879         Also, make it easier to maintain this in the future.
15880         * build-aux/gcc-warning.spec: Add -Wabi-tag,
15881         -Wconditionally-supported, -Wdelete-incomplete,
15882         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
15883         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
15884         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
15885         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
15886         only for older GCC versions that need them.  Handle
15887         -Wnormalized=nfc specially, so that the 'comm' command used
15888         for maintenance doesn't get confused.
15890 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15892         vasnprintf: fix bugs in width computation
15893         * lib/vasnprintf.c (VASNPRINTF):
15894         Rework previous change, which introduced a bug,
15895         to avoid the warning in a different way.
15896         Avoid undefined behavior if the width arg is less than -INT_MAX.
15897         Avoid unnecessary use of HAS_WIDTH local.
15899 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
15901         vasnprintf: Avoid signed/unsigned comparison warning.
15902         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
15903         compare end addr of generated string w/ maximum end addr.
15905 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
15907         parse-datetime: Avoid pointer difference.
15908         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
15909         instead of calculating difference of pointers.  This removes an
15910         annoying warning, devoid of any use.
15912 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15914         qsort_r: new module, for GNU-style qsort_r
15915         This works even on FreeBSD, which has an incompatible qsort_r API.
15916         * MODULES.html.sh: Add it.
15917         * doc/glibc-functions/qsort_r.texi: It's now supported.
15918         * lib/qsort.c: New file, taken from glibc with minor changes
15919         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
15920         removed.
15921         * lib/qsort_r.c: New file, compiled only on FreeBSD.
15922         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
15923         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
15924         * modules/qsort_r, modules/qsort_r-tests: New files.
15925         * modules/stdlib (Makefile): Set up its defaults.
15926         * tests/test-qsort_r.c: New file.
15928 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
15930         vla: new module
15931         GNU RCS can use this, mostly for documentation I expect.  See:
15932         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
15933         * MODULES.html.sh: Add vla.
15934         * lib/vla.h, modules/vla: New files.
15936 2014-08-07  Daiki Ueno  <ueno@gnu.org>
15938         localename: make gl_locale_name_thread really thread-safe on Windows
15939         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
15940         "glthread/lock.h".
15941         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
15942         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
15944 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
15946         getpass: don't assume struct termios
15947         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
15948         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
15949         * lib/getpass.c (getpass): Port to systems lacking struct termios.
15951         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
15952         Problem reported by Jonas 'Sortie' Termansen in:
15953         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
15954         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
15955         Implement via sysconf for platforms that lack getdtablesize.
15957         vararrays: modernize AC_C_VARARRAYS for C11
15958         This backports a change I recently made to Autoconf.
15959         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
15960         VLAs are not supported, as this is what C11 does.  The old macro
15961         HAVE_C_VARARRAYS is still defined if they are supported, but is
15962         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
15964 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
15966         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
15967         * build-aux/install-reloc (func_create_wrapper): Also wrap
15968         strerror-override, stat, stat.
15970 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
15972         sys_select: fix FD_ZERO problem on Solaris 10
15973         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
15974         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
15975         to expand to an expression that invoked memset without necessarily
15976         including <string.h>.  The problem was that the first include
15977         defined _SYS_TIME_H, causing the second include to short-circuit.
15978         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
15979         Also, fix what appears to be a cut-and-paste typo, by replacing
15980         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
15981         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
15983         accept: document Solaris 10 type glitch
15984         * doc/posix-functions/accept.texi (accept): Mention that
15985         Solaris 10 'accept' takes void * last arg, not socklen_t *.
15987 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
15989         extern-inline: port to FreeBSD, DragonFly
15990         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
15991         is present if either __DragonFly__ or __FreeBSD__ is defined.
15992         FreeBSD problem reported by Andrey Borzenkov in:
15993         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
15994         Also, worry about __APPLE__ only if __MACH__ is also defined,
15995         as this is more consistent with the rest of gnulib.
15996         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
15997         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
15999 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
16001         regex: Make #if/#ifdef usage consistent for DEBUG
16002         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
16003         of the inconsistent usage of #if and #ifdef as that works with
16004         both Glibc and Gnulib's style.
16006 2014-07-31  Eric Blake  <eblake@redhat.com>
16008         openat-die: use _Noreturn markup
16009         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
16010         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
16011         _Noreturn.
16013 2014-07-30  Eric Blake  <eblake@redhat.com>
16015         test-open: port to cygwin, which lacks Fortify
16016         * tests/test-open.h (ALWAYS_INLINE): New macro.
16017         (__always_inline): Don't abuse internal symbol on non-glibc.
16019 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
16021         localename: Enforce declarations before statements.
16022         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
16023         first statement.
16025 2014-07-18  Jim Meyering  <meyering@fb.com>
16027         test-userspec: don't look up numeric user names
16028         * tests/test-userspec.c: I found a system for which getpwnam("0")
16029         returned a pointer to a non-root user's entry, and that made the
16030         test fail.
16031         (T): Prefix each numeric input with "+", to inhibit lookup.
16033 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
16035         localcharset, localename: MS-Windows support for non-default locales
16036         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
16037         falling back on the default system codepage, try extracting
16038         the codepage from what 'setlocale' returns.  This allows to
16039         take into account changes of the codeset due to non-default
16040         locale set by a previous call to 'setlocale'.
16041         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
16042         Define if not already defined.
16043         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
16044         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
16045         current locale by calling 'setlocale', then converting the
16046         locale name into LCID by calling 'get_lcid'.  This allows to
16047         take into account changes in the current locale from the
16048         default one, in contrast to GetThreadLocale.
16050 2014-07-14  Daiki Ueno  <ueno@gnu.org>
16052         announce-gen: avoid failure when Digest::SHA is installed
16053         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
16054         Digest::SHA1->new in print_checksums fails.
16055         * build-aux/announce-gen (digest_classes): New associative array
16056         for available message digest implementations.
16057         (print_locations): Use it.
16059 2014-07-13  Pádraig Brady  <P@draigBrady.com>
16061         gettext: revert "update macros to version 0.19"
16062         This reverts commit 9b9370ca, as it currently requires that
16063         developers of any project that explicitly uses the gettext module
16064         or implicitly uses it through the utimens-tests or
16065         futimens-tests modules, use gettext >= 0.19.
16066         However there are some stability and availablity issues with
16067         that version at present.  We can reinstate this soon, when stability
16068         is addressed and packages are more readily available.
16070 2014-07-12  Jim Meyering  <meyering@fb.com>
16072         regex: don't deref NULL upon heap allocation failure
16073         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
16074         failure in one more place.
16075         To trigger the segfault, configure grep -with-included-regex,
16076         build it, and run these commands:
16077         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
16078         I discovered this while replying to a private report from
16079         Jens Schleusener about excessive memory consumption by grep
16080         when using a regular expression like the one above.
16082 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16084         regex: fix memory leak in compiler
16085         Fix by Andreas Schwab in:
16086         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
16087         * lib/regcomp.c (parse_reg_exp): Deallocate partially
16088         constructed tree before returning error.
16090 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16092         announce-gen: avoid perl warnings
16093         * build-aux/announce-gen: add two minor checks to avoid
16094         "use of uninitialized value" warnings when command-line parameters are
16095         missing.
16097 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16099         localename: avoid -Wsuggest-attribute={const,pure} warnings
16100         * lib/localename.c (string_has): Tag internal function as pure.
16101         * lib/localename.h (gl_locale_name_default): Tag extern declaration
16102         as const when appropriate.
16104 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
16106         nl_langinfo: Fix last change.
16107         * lib/nl_langinfo.c (includes): Drop redundant include.
16109 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16111         error: Fix -Wundef warnings in glibc
16112         * lib/error.c [_LIBC]: Define default macros for
16113         glibc.
16114         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
16115         Check _LIBC before STRERROR_R_CHAR_P.
16117         error: Sync from glibc master
16118         * lib/error.c [_LIBC]: Remove INTUSE usage.
16119         (error_tail): Remove unused macro ALLOCA_LIMIT.
16120         Fix potential buffer overflow.  Fix potential NULL dereference
16121         in strcmp.
16123 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
16125         nl_langinfo: fix build under mingw
16126         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
16128 2014-07-09  Andrew D Warshall  <warshall@99main.com>
16130         mountlist: do not classify a bind-mounted dir entry as "dummy"
16131         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
16132         1-argument getmntent() (instead of assuming absence).
16134 2014-07-08  Eric Blake  <eblake@redhat.com>
16136         maint.mk: less syntax-check noise when SIGPIPE is ignored
16137         * top/maint.mk (_sc_header_without_use)
16138         (sc_require_config_h_first): Parse full list.
16140 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
16141             Paul Eggert  <eggert@cs.ucla.edu>
16143         nl_langinfo: CODESET on MS-Windows and more items from localeconv
16144         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
16145         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
16146         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
16147         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
16148         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
16149         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
16150         Include <stdio.h> if Microsoft Windows.
16151         Include <time.h> if !REPLACE_NL_LANGINFO.
16152         (ctype_codeset): New function, taken from rpl_nl_langinfo,
16153         and with improvements for Microsoft Windows.
16154         (rpl_nl_langinfo): Use it.
16155         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
16156         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
16157         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
16158         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
16159         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
16160         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
16161         corresponding values returned by 'localeconv'.  Compute the values
16162         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
16163         'strftime' with a suitable struct tm value.
16165 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16167         Bruno Haible has stepped down as maintainer.
16168         See Karl Berry in:
16169         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
16170         Daiki Ueno has volunteered to maintain libunistring; see:
16171         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
16172         * modules/gen-uni-tables, modules/libunistring:
16173         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
16174         * modules/unicase/base, modules/unicase/cased:
16175         * modules/unicase/empty-prefix-context:
16176         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
16177         * modules/unicase/locale-language, modules/unicase/special-casing:
16178         * modules/unicase/tocasefold, modules/unicase/tolower:
16179         * modules/unicase/totitle, modules/unicase/toupper:
16180         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
16181         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
16182         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
16183         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
16184         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
16185         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
16186         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
16187         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
16188         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
16189         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
16190         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
16191         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
16192         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
16193         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
16194         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
16195         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
16196         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
16197         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
16198         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
16199         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
16200         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
16201         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
16202         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
16203         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
16204         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
16205         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
16206         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
16207         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
16208         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
16209         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
16210         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
16211         * modules/unicase/ulc-casexfrm, modules/unicodeio:
16212         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
16213         * modules/uniconv/u16-conv-to-enc:
16214         * modules/uniconv/u16-strconv-from-enc:
16215         * modules/uniconv/u16-strconv-from-locale:
16216         * modules/uniconv/u16-strconv-to-enc:
16217         * modules/uniconv/u16-strconv-to-locale:
16218         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
16219         * modules/uniconv/u32-strconv-from-enc:
16220         * modules/uniconv/u32-strconv-from-locale:
16221         * modules/uniconv/u32-strconv-to-enc:
16222         * modules/uniconv/u32-strconv-to-locale:
16223         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
16224         * modules/uniconv/u8-strconv-from-enc:
16225         * modules/uniconv/u8-strconv-from-locale:
16226         * modules/uniconv/u8-strconv-to-enc:
16227         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
16228         * modules/unictype/bidicategory-all:
16229         * modules/unictype/bidicategory-byname:
16230         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
16231         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
16232         * modules/unictype/bidiclass-byname:
16233         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
16234         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
16235         * modules/unictype/block-all, modules/unictype/block-list:
16236         * modules/unictype/block-of, modules/unictype/block-test:
16237         * modules/unictype/category-C, modules/unictype/category-Cc:
16238         * modules/unictype/category-Cf, modules/unictype/category-Cn:
16239         * modules/unictype/category-Co, modules/unictype/category-Cs:
16240         * modules/unictype/category-L, modules/unictype/category-LC:
16241         * modules/unictype/category-Ll, modules/unictype/category-Lm:
16242         * modules/unictype/category-Lo, modules/unictype/category-Lt:
16243         * modules/unictype/category-Lu, modules/unictype/category-M:
16244         * modules/unictype/category-Mc, modules/unictype/category-Me:
16245         * modules/unictype/category-Mn, modules/unictype/category-N:
16246         * modules/unictype/category-Nd, modules/unictype/category-Nl:
16247         * modules/unictype/category-No, modules/unictype/category-P:
16248         * modules/unictype/category-Pc, modules/unictype/category-Pd:
16249         * modules/unictype/category-Pe, modules/unictype/category-Pf:
16250         * modules/unictype/category-Pi, modules/unictype/category-Po:
16251         * modules/unictype/category-Ps, modules/unictype/category-S:
16252         * modules/unictype/category-Sc, modules/unictype/category-Sk:
16253         * modules/unictype/category-Sm, modules/unictype/category-So:
16254         * modules/unictype/category-Z, modules/unictype/category-Zl:
16255         * modules/unictype/category-Zp, modules/unictype/category-Zs:
16256         * modules/unictype/category-all, modules/unictype/category-and:
16257         * modules/unictype/category-and-not, modules/unictype/category-byname:
16258         * modules/unictype/category-longname, modules/unictype/category-name:
16259         * modules/unictype/category-none, modules/unictype/category-of:
16260         * modules/unictype/category-or, modules/unictype/category-test:
16261         * modules/unictype/category-test-withtable:
16262         * modules/unictype/combining-class:
16263         * modules/unictype/combining-class-all:
16264         * modules/unictype/combining-class-byname:
16265         * modules/unictype/combining-class-longname:
16266         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
16267         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
16268         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
16269         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
16270         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
16271         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
16272         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
16273         * modules/unictype/digit, modules/unictype/joininggroup-all:
16274         * modules/unictype/joininggroup-byname:
16275         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
16276         * modules/unictype/joiningtype-all:
16277         * modules/unictype/joiningtype-byname:
16278         * modules/unictype/joiningtype-longname:
16279         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
16280         * modules/unictype/mirror, modules/unictype/numeric:
16281         * modules/unictype/property-all, modules/unictype/property-alphabetic:
16282         * modules/unictype/property-ascii-hex-digit:
16283         * modules/unictype/property-bidi-arabic-digit:
16284         * modules/unictype/property-bidi-arabic-right-to-left:
16285         * modules/unictype/property-bidi-block-separator:
16286         * modules/unictype/property-bidi-boundary-neutral:
16287         * modules/unictype/property-bidi-common-separator:
16288         * modules/unictype/property-bidi-control:
16289         * modules/unictype/property-bidi-embedding-or-override:
16290         * modules/unictype/property-bidi-eur-num-separator:
16291         * modules/unictype/property-bidi-eur-num-terminator:
16292         * modules/unictype/property-bidi-european-digit:
16293         * modules/unictype/property-bidi-hebrew-right-to-left:
16294         * modules/unictype/property-bidi-left-to-right:
16295         * modules/unictype/property-bidi-non-spacing-mark:
16296         * modules/unictype/property-bidi-other-neutral:
16297         * modules/unictype/property-bidi-pdf:
16298         * modules/unictype/property-bidi-segment-separator:
16299         * modules/unictype/property-bidi-whitespace:
16300         * modules/unictype/property-byname:
16301         * modules/unictype/property-case-ignorable:
16302         * modules/unictype/property-cased:
16303         * modules/unictype/property-changes-when-casefolded:
16304         * modules/unictype/property-changes-when-casemapped:
16305         * modules/unictype/property-changes-when-lowercased:
16306         * modules/unictype/property-changes-when-titlecased:
16307         * modules/unictype/property-changes-when-uppercased:
16308         * modules/unictype/property-combining:
16309         * modules/unictype/property-composite:
16310         * modules/unictype/property-currency-symbol:
16311         * modules/unictype/property-dash:
16312         * modules/unictype/property-decimal-digit:
16313         * modules/unictype/property-default-ignorable-code-point:
16314         * modules/unictype/property-deprecated:
16315         * modules/unictype/property-diacritic:
16316         * modules/unictype/property-extender:
16317         * modules/unictype/property-format-control:
16318         * modules/unictype/property-grapheme-base:
16319         * modules/unictype/property-grapheme-extend:
16320         * modules/unictype/property-grapheme-link:
16321         * modules/unictype/property-hex-digit:
16322         * modules/unictype/property-hyphen:
16323         * modules/unictype/property-id-continue:
16324         * modules/unictype/property-id-start:
16325         * modules/unictype/property-ideographic:
16326         * modules/unictype/property-ids-binary-operator:
16327         * modules/unictype/property-ids-trinary-operator:
16328         * modules/unictype/property-ignorable-control:
16329         * modules/unictype/property-iso-control:
16330         * modules/unictype/property-join-control:
16331         * modules/unictype/property-left-of-pair:
16332         * modules/unictype/property-line-separator:
16333         * modules/unictype/property-logical-order-exception:
16334         * modules/unictype/property-lowercase, modules/unictype/property-math:
16335         * modules/unictype/property-non-break:
16336         * modules/unictype/property-not-a-character:
16337         * modules/unictype/property-numeric:
16338         * modules/unictype/property-other-alphabetic:
16339         * modules/unictype/property-other-default-ignorable-code-point:
16340         * modules/unictype/property-other-grapheme-extend:
16341         * modules/unictype/property-other-id-continue:
16342         * modules/unictype/property-other-id-start:
16343         * modules/unictype/property-other-lowercase:
16344         * modules/unictype/property-other-math:
16345         * modules/unictype/property-other-uppercase:
16346         * modules/unictype/property-paired-punctuation:
16347         * modules/unictype/property-paragraph-separator:
16348         * modules/unictype/property-pattern-syntax:
16349         * modules/unictype/property-pattern-white-space:
16350         * modules/unictype/property-private-use:
16351         * modules/unictype/property-punctuation:
16352         * modules/unictype/property-quotation-mark:
16353         * modules/unictype/property-radical:
16354         * modules/unictype/property-sentence-terminal:
16355         * modules/unictype/property-soft-dotted:
16356         * modules/unictype/property-space:
16357         * modules/unictype/property-terminal-punctuation:
16358         * modules/unictype/property-test, modules/unictype/property-titlecase:
16359         * modules/unictype/property-unassigned-code-value:
16360         * modules/unictype/property-unified-ideograph:
16361         * modules/unictype/property-uppercase:
16362         * modules/unictype/property-variation-selector:
16363         * modules/unictype/property-white-space:
16364         * modules/unictype/property-xid-continue:
16365         * modules/unictype/property-xid-start:
16366         * modules/unictype/property-zero-width, modules/unictype/scripts:
16367         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
16368         * modules/unictype/syntax-c-whitespace:
16369         * modules/unictype/syntax-java-ident:
16370         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
16371         * modules/unigbrk/u16-grapheme-breaks:
16372         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
16373         * modules/unigbrk/u32-grapheme-breaks:
16374         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
16375         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
16376         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
16377         * modules/unigbrk/uc-is-grapheme-break:
16378         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
16379         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
16380         * modules/unilbrk/u16-width-linebreaks:
16381         * modules/unilbrk/u32-possible-linebreaks:
16382         * modules/unilbrk/u32-width-linebreaks:
16383         * modules/unilbrk/u8-possible-linebreaks:
16384         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
16385         * modules/unilbrk/ulc-possible-linebreaks:
16386         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
16387         * modules/uniname/uniname, modules/uninorm/base:
16388         * modules/uninorm/canonical-decomposition:
16389         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
16390         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
16391         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
16392         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
16393         * modules/uninorm/nfkc, modules/uninorm/nfkd:
16394         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
16395         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
16396         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
16397         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
16398         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
16399         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
16400         * modules/unistdio/base, modules/unistdio/u-printf-args:
16401         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
16402         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
16403         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
16404         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
16405         * modules/unistdio/u16-u16-sprintf:
16406         * modules/unistdio/u16-u16-vasnprintf:
16407         * modules/unistdio/u16-u16-vasprintf:
16408         * modules/unistdio/u16-u16-vsnprintf:
16409         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
16410         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
16411         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
16412         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
16413         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
16414         * modules/unistdio/u32-u32-asnprintf:
16415         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
16416         * modules/unistdio/u32-u32-sprintf:
16417         * modules/unistdio/u32-u32-vasnprintf:
16418         * modules/unistdio/u32-u32-vasprintf:
16419         * modules/unistdio/u32-u32-vsnprintf:
16420         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
16421         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
16422         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
16423         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
16424         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
16425         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
16426         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
16427         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
16428         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
16429         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
16430         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
16431         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
16432         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
16433         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
16434         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
16435         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
16436         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
16437         * modules/unistr/u16-check, modules/unistr/u16-chr:
16438         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
16439         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
16440         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
16441         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
16442         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
16443         * modules/unistr/u16-move, modules/unistr/u16-next:
16444         * modules/unistr/u16-prev, modules/unistr/u16-set:
16445         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
16446         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
16447         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
16448         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
16449         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
16450         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
16451         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
16452         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
16453         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
16454         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
16455         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
16456         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
16457         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
16458         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
16459         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
16460         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
16461         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
16462         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
16463         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
16464         * modules/unistr/u32-next, modules/unistr/u32-prev:
16465         * modules/unistr/u32-set, modules/unistr/u32-startswith:
16466         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
16467         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
16468         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
16469         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
16470         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
16471         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
16472         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
16473         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
16474         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
16475         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
16476         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
16477         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
16478         * modules/unistr/u8-check, modules/unistr/u8-chr:
16479         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
16480         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
16481         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
16482         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
16483         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
16484         * modules/unistr/u8-next, modules/unistr/u8-prev:
16485         * modules/unistr/u8-set, modules/unistr/u8-startswith:
16486         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
16487         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
16488         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
16489         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
16490         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
16491         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
16492         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
16493         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
16494         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
16495         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
16496         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
16497         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
16498         * modules/uniwbrk/base, modules/uniwbrk/table:
16499         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
16500         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
16501         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
16502         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
16503         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
16504         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
16505         * modules/uniwidth/width, modules/utf16-ucs4:
16506         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
16507         * modules/utf8-ucs4-unsafe:
16508         Change maintainer from Bruno Haible to Daiki Ueno.
16509         This is my guess at the libunistring modules; please feel free
16510         to fix if I guessed incorrectly.
16511         * modules/accept4, modules/acl, modules/acos, modules/acosf:
16512         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
16513         * modules/areadlink, modules/array-list, modules/array-mergesort:
16514         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
16515         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
16516         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
16517         * modules/binary-io, modules/bison-i18n, modules/btowc:
16518         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
16519         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
16520         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
16521         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
16522         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
16523         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
16524         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
16525         * modules/closedir, modules/concat-filename, modules/copy-file:
16526         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
16527         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
16528         * modules/csharpcomp-script, modules/csharpexec:
16529         * modules/csharpexec-script, modules/ctype, modules/diffseq:
16530         * modules/dprintf, modules/dprintf-posix, modules/dup:
16531         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
16532         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
16533         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
16534         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
16535         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
16536         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
16537         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
16538         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
16539         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
16540         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
16541         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
16542         * modules/findprog, modules/findprog-lgpl, modules/floor:
16543         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
16544         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
16545         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
16546         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
16547         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
16548         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
16549         * modules/freadable, modules/freadahead, modules/freadptr:
16550         * modules/freadseek, modules/freopen, modules/frexp:
16551         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
16552         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
16553         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
16554         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
16555         * modules/ftello, modules/full-read, modules/full-write:
16556         * modules/fwritable, modules/fwriteerror, modules/gcd:
16557         * modules/get-rusage-as, modules/get-rusage-data:
16558         * modules/getdtablesize, modules/getrusage, modules/gettext:
16559         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
16560         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
16561         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
16562         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
16563         * modules/iconv, modules/iconv-h, modules/iconv_open:
16564         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
16565         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
16566         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
16567         * modules/integer_length_ll, modules/ioctl, modules/isatty:
16568         * modules/isblank, modules/isnand, modules/isnand-nolibm:
16569         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
16570         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
16571         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
16572         * modules/javaexec, modules/javaexec-script, modules/javaversion:
16573         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
16574         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
16575         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
16576         * modules/lib-symbol-visibility, modules/libsigsegv:
16577         * modules/linked-list, modules/linkedhash-list, modules/list:
16578         * modules/localcharset, modules/locale, modules/localeconv:
16579         * modules/localename, modules/lock, modules/log, modules/log-ieee:
16580         * modules/log10, modules/log10-ieee, modules/log10f:
16581         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
16582         * modules/log1p, modules/log1p-ieee, modules/log1pf:
16583         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
16584         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
16585         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
16586         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
16587         * modules/logf, modules/logf-ieee, modules/login_tty:
16588         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
16589         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
16590         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
16591         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
16592         * modules/mbscspn, modules/mbsinit, modules/mbslen:
16593         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
16594         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
16595         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
16596         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
16597         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
16598         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
16599         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
16600         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
16601         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
16602         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
16603         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
16604         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
16605         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
16606         * modules/posix_spawn, modules/posix_spawn-internal:
16607         * modules/posix_spawn_file_actions_addclose:
16608         * modules/posix_spawn_file_actions_adddup2:
16609         * modules/posix_spawn_file_actions_addopen:
16610         * modules/posix_spawn_file_actions_destroy:
16611         * modules/posix_spawn_file_actions_init:
16612         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
16613         * modules/posix_spawnattr_getpgroup:
16614         * modules/posix_spawnattr_getschedparam:
16615         * modules/posix_spawnattr_getschedpolicy:
16616         * modules/posix_spawnattr_getsigdefault:
16617         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
16618         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
16619         * modules/posix_spawnattr_setschedparam:
16620         * modules/posix_spawnattr_setschedpolicy:
16621         * modules/posix_spawnattr_setsigdefault:
16622         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
16623         * modules/pow, modules/powf, modules/printf-frexp:
16624         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
16625         * modules/progname, modules/propername, modules/pselect:
16626         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
16627         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
16628         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
16629         * modules/read, modules/readdir, modules/readlink:
16630         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
16631         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
16632         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
16633         * modules/relocatable-script, modules/remainder:
16634         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
16635         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
16636         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
16637         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
16638         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
16639         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
16640         * modules/setlocale, modules/sh-quote, modules/shutdown:
16641         * modules/signal, modules/signbit, modules/sigpipe:
16642         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
16643         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
16644         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
16645         * modules/snippet/link-warning, modules/snippet/unused-parameter:
16646         * modules/snprintf, modules/snprintf-posix, modules/spawn:
16647         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
16648         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
16649         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
16650         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
16651         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
16652         * modules/streq, modules/strerror_r-posix, modules/striconv:
16653         * modules/striconveh, modules/striconveha, modules/strncat:
16654         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
16655         * modules/sublist, modules/sys_resource, modules/sys_utsname:
16656         * modules/sys_wait, modules/system-posix, modules/system-quote:
16657         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
16658         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
16659         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
16660         * modules/truncf, modules/truncf-ieee, modules/truncl:
16661         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
16662         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
16663         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
16664         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
16665         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
16666         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
16667         * modules/wait-process, modules/waitpid, modules/wcpcpy:
16668         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
16669         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
16670         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
16671         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
16672         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
16673         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
16674         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
16675         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
16676         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
16677         * modules/write, modules/xconcat-filename, modules/xlist:
16678         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
16679         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
16680         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
16681         * modules/y0, modules/y1, modules/yn:
16682         Remove Bruno Haible as maintainer; if he's the sole maintainer,
16683         change the maintainer to 'all'.  Let's hope someone volunteers.
16685 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
16687         mktime: merge #if/#ifdef usage from glibc
16688         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
16689         as that works with both Glibc's and Gnulib's style.
16690         See thread starting at Siddhesh Poyarekar's bug report at:
16691         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
16693 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
16695         git-version-gen: improve option descriptions
16696         * build-aux/git-version-gen: Mention that --prefix and --fallback
16697         have a mandatory argument.
16699 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
16701         regex: fix memory leak in compiler
16702         Fix by Andreas Schwab in:
16703         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
16704         * lib/regcomp.c (parse_expression): Deallocate partially
16705         constructed tree before returning error.
16707         regex: merge patch from libc
16708         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
16709         Combine __USE_BSD and __USE_SVID into __USE_MISC.
16710         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
16712 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
16714         acl: port to gcc -Wredundant-decls
16715         From a request by Dmitry Antipov in:
16716         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
16717         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
16718         "#ifndef _GL_ACL_H".
16720 2014-06-11  Bruce Korb  <bkorb@gnu.org>
16721         Jim Meyering  <meyering@fb.com>
16723         parse-duration: eliminate 68-year duration limit
16724         * lib/parse-duration.c: Include "intprops.h".
16725         (TIME_MAX): Rename to MAX_DURATION and define to
16726         TYPE_MAXIMUM(time_t).
16727         * modules/parse-duration (Depends-on): Add intprops.
16728         Reported by Jonas 'Sortie' Termansen.
16730 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
16732         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
16733         * modules/pthread (Depends-on): Add 'extensions', as it defines
16734         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
16735         (configure.ac-early): New section.
16736         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
16737         it is no longer needed.
16739 2014-06-14  Pádraig Brady  <P@draigBrady.com>
16741         pthread: define thread-safe macros on some platforms
16742         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
16743         for thread-safe operation on some platforms.
16745 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16747         regex: don't be multithreaded if USE_UNLOCKED_IO.
16748         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
16749         * lib/regex_internal.h: Do not use multithreaded version if
16750         USE_UNLOCKED_IO is defined.  This is a hack, but it works
16751         around a porting bug with coreutils 8.22 on AIX 7.1.
16753 2014-06-11  Daiki Ueno  <ueno@gnu.org>
16755         gettext: update macros to version 0.19
16756         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
16757         depend on gl_EXTERN_INLINE and drop support for older Bison
16758         versions.
16760 2014-06-10  Pádraig Brady  <P@draigBrady.com>
16762         select,poll: fix console handle check on windows 8
16763         lib/poll.c (IsConsoleHandle): Change from testing the lower
16764         2 bits of the handle to the more expensive but accurate syscall.
16765         lib/select.c: Likewise.
16767 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
16769         select: fix waiting on anonymous pipes on MS-Windows
16770         * lib/select.c (rpl_select): Fall back to polling when select()
16771         indicates there is nothing to check, while due to the timeout not
16772         expiring, activity is indicated on one of the handles.
16773         Also clear the TIMEOUT argument if the timer does expire.
16775 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
16777         times: fix to return non constant value on MS-Windows
16778         * lib/times.c (times): Don't use the process creation time,
16779         rather clock() which on windows returns the number of
16780         clock ticks since the process started.
16782 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
16784         isatty: fix to work on windows 8
16785         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
16786         2 bits of the handle to the more expensive but accurate syscall.
16788 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16790         maint: fix typo in fdl.texi
16791         * doc/fdl.texi: Fix typo (missing '@').
16792         Somehow this was in fdl.texi but not fdl-1.3.texi.
16794 2014-06-06  Ben Walton  <bdwalton@gmail.com>
16796         mountlist: avoid hasmntopt const type warning on solaris
16797         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
16798         with char * instead of const char *.  Passing the constant string
16799         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
16800         to avoid the warning.
16802 2014-06-04  Eric Blake  <eblake@redhat.com>
16804         maintainer-makefile: delete obsolete code
16805         * top/maint.mk (build_aux): Drop old code, as threatened.
16807         maintainer-makefile: avoid spurious error messages
16808         * top/maint.mk (syntax-check): Guard definition and use of
16809         $(shell) by whether Makefile is present.
16811 2014-06-03  Ben Walton  <bdwalton@gmail.com>
16813         rename: avoid unused-but-set-variable compiler warning
16814         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
16815         it is possible that dst_exists may be set but not used.  Mark it with
16816         the unused attribute to avoid compiler warnings.
16818 2014-06-02  Ben Walton  <bdwalton@gmail.com>
16820         rename: mark a label as potentially unused
16821         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
16822         by marking the out label as potentially unused.
16823         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
16825 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16827         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
16828         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
16830 2014-06-02  Ben Walton  <bdwalton@gmail.com>
16832         acl: apply pure attribute to two functions
16833         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
16834         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
16836 2014-06-01  Pádraig Brady  <P@draigBrady.com>
16838         gnulib-common.m4: add _GL_UNUSED_LABEL
16839         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
16840         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
16842 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
16844         dup2, fcntl, fcntl-h: port to AIX 7.1
16845         This fixes some porting problems discovered when testing the latest
16846         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
16847         in grep but it could be important for other applications.
16848         * doc/posix-functions/dup2.texi:
16849         * doc/posix-functions/fcntl.texi:
16850         * doc/posix-headers/fcntl.texi:
16851         Document AIX bugs.
16852         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
16853         Define to 0 if outside 'int' range.
16854         * m4/dup2.m4 (gl_FUNC_DUP2):
16855         * m4/fcntl.m4 (gl_FUNC_FCNTL):
16856         Check for getdtablesize.  If it's available, test a value just
16857         outside its range instead of testing 1000000.  When cross-compiling,
16858         guess that AIX will fail this improved test.
16860 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16862         printf, config.rpath: Port to FreeBSD 10.
16863         Problem reported by Tijl Coosemans in:
16864         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
16865         * build-aux/config.rpath (hardcode_libdir_flag_spec)
16866         (hardcode_direct): Simplify FreeBSD configuration.
16867         (library_names_spec): Don't mishandle FreeBSD 10+.
16868         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
16869         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
16870         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
16871         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
16872         Don't mishandle FreeBSD 10+ when cross-compiling.
16874         ftoastr: work around compiler bug in IBM xlc 12.1
16875         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
16876         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
16877         around a compiler bug in IBM xlc 12.1.0.0: it complains
16878         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
16879         _GL_FLT_PREC_BOUND.'
16881 2014-05-30  Kieran Colford  <colfordk@gmail.com>
16883         valgrind-tests: fixed misleading help message
16884         * m4/valgrind-tests.m4: The help message generated by configure
16885         implied that valgrind was disabled by default, which it wasn't.
16886         Adjusted the help message using s/enable/disable/ to clarify.
16888 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
16890         isfinite, isinf, isnan tests: fix for little-endian PowerPC
16891         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
16892         first double of a PowerPC "double double" pair.
16893         * tests/test-isinf.c (test_isinfl): Likewise.
16894         * tests/test-isnan.c (test_long_double): Likewise.
16895         * tests/test-isnanl.h (main): Likewise.
16896         * tests/test-signbit.c (test_signbitl): Likewise.
16898 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16900         exclude-tests: port to AIX 7.1
16901         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
16902         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
16903         the regex code uses locks.
16905 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
16907         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
16908         Without this fix, Emacs would sometimes call sigprocmask instead
16909         of pthread_sigmask, which is a no-no in multithreaded applications.
16910         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
16911         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16912         Suppress check for pthread_sigmask working without -lpthread if
16913         the application always links with -lpthread.  Do not link with
16914         $LIBMULTITHREAD if gl_THREADLIB is not defined.
16915         * m4/timer_time.m4 (gl_TIMER_TIME):
16916         Require gl_THREADLIB only if it is defined.  Do not append
16917         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
16919 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
16921         gnulib-tool: wget translations using --no-verbose rather than --quiet
16922         This allows the user to see error messages if any (--quiet hides them)
16923         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
16925 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
16927         gnulib-tool: adjust translation wget to avoid a https redirection
16928         Context: http://translationproject.org/latest/gnulib redirects to
16929            https://translationproject.org/latest/gnulib/
16930         Rationale: if the user falls back to wget, she doesn't have rsync and
16931         is probably in a minimal build environment, where packages such as
16932         'ca-certificates' are missing as well, resulting in a failed (and
16933         difficult to detect since ignored) translation initial fetch.
16934         Consequently let's avoid https if possible, and add the missing
16935         trailing slash.  This also avoids an unnecessary 302 redirection.
16936         * gnulib-tool: Add trailing slash to gnulib URL.
16938 2014-05-22  Pádraig Brady  <P@draigBrady.com>
16940         getlogin_r-tests: check return value rather than errno
16941         * tests/test-getlogin_r.c (main): As per POSIX we should be
16942         verifying the return value from getlogin_r() rather than errno.
16944 2014-05-22  Pádraig Brady  <P@draigBrady.com>
16946         getlogin_r-tests: fix various issues in recent change
16947         * tests/test-getlogin_r.c: Include required headers that were
16948         missed in recent commit eec20b4e.
16949         Also consistently check the errno rather than the return value from
16950         getlogin_r as POSIX only specifies that non zero is returned on error.
16951         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
16953 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16955         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
16956         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
16957         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
16958         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
16959         * lib/spawn-pipe.c:
16960         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
16961         and then 'int open64(const char *, int, ...);', which means the
16962         declaration for 'open' gets lost if we later '#undef open'.
16963         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
16964         where the compilation reported the non-fatal error "In function
16965         'openat_proc_name' ... warning: implicit declaration of function
16966         'open'".  In this case the error is relatively harmless, but in
16967         other cases it might not be so minor.
16969 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16971         xalloc: don't potentially generate invalid code for xmemdup calls
16972         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
16973         this function can initialize the newly-allocated storage with new
16974         pointers, which means this function is not malloc-like.  See:
16975         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
16977 2014-05-19  Pádraig Brady  <P@draigBrady.com>
16979         getlogin_r-tests: avoid false failure under sudo/ssh etc.
16980         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
16981         changes from commit 97249cf29 to not depend on environment variables.
16983 2014-05-18  Pádraig Brady  <P@draigBrady.com>
16985         getlogin-tests: avoid false failure under cron
16986         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
16987         since that's not what's under test.  Centos 6 was seen to return
16988         EINVAL for ttyname() when run from cron.
16990 2014-05-16  Jim Meyering  <meyering@fb.com>
16992         mbrtowc.m4: fix a comment typo
16993         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
16994         emitted documentation string.
16996 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16998         mbrlen, mbrtowc: fix bug with empty input
16999         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
17000         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
17001         so this is mainly for documentation.
17002         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
17003         (gl_FUNC_MBRTOWC): Use it.
17004         * tests/test-mbrtowc.c (main): Test for the bug.
17006 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
17008         doc: document mbrtowc and mbrlen problem with empty input
17009         * doc/posix-functions/mbrlen.texi (mbrlen):
17010         * doc/posix-functions/mbrtowc.texi (mbrtowc):
17011         Document portability problem when the input string is empty.  See:
17012         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
17014         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
17015         Problem reported by Eli Zaretskii in:
17016         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
17017         * doc/posix-functions/execl.texi (execl):
17018         * doc/posix-functions/execle.texi (execle):
17019         * doc/posix-functions/execlp.texi (execlp):
17020         * doc/posix-functions/execv.texi (execv):
17021         * doc/posix-functions/execve.texi (execve):
17022         * doc/posix-functions/execvp.texi (execvp):
17023         Mention spawn+exit problem on non-Cygwin Windows platforms.
17025 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
17027         getlogin-tests: avoid false failure under sudo/ssh etc.
17028         * modules/getlogin-tests (configure.ac): Check for ttyname().
17029         * tests/test-getlogin.c (main): Don't depend on environment variables
17030         to correlate with getlogin(), since sudo and ssh etc. can tamper
17031         with the LOGNAME and USER env vars.  Instead lookup the name from
17032         the uid associated with the stdin tty.
17034 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17036         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
17037         These were found when building the latest grep snapshot on IRIX 6.5.
17038         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
17039         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
17040         never used later.
17041         * lib/quotearg.c (quoting_options_from_style):
17042         * lib/xstrtol.c (__xstrtol):
17043         Use enum instead of 0, to pacify IRIX 6.5 cc.
17045 2014-04-18  Pádraig Brady  <P@draigBrady.com>
17047         gitlog-to-changelog: revert inclusion of git-log-fix file
17048         * build-aux/git-log-fix: Delete dummy file.
17049         * modules/gitlog-to-changelog: Don't reference (overwrite)
17050         the project specific git-log-fix file.
17052 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
17054         maint.mk: Relax the copyright check to cater for non FSF projects
17055         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
17056         to not require the "Free" suffix after the copyright years.
17058 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
17060         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
17061         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
17062         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
17063         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
17064         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
17066 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
17068         exclude: port to strict C99
17069         Strict C does not allow converting a function pointer to void *
17070         and vice versa.  Pass a pointer to a function pointer instead.
17071         * lib/exclude.c (add_exclude_file):
17072         Pass the address of the function pointer.
17073         (call_addfn): And deference the address here, to match.
17075 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
17077         regex: do not depend on malloc-gnu
17078         * modules/regex (Depends-on): Remove malloc-gnu.
17079         It's no longer needed, because of the 2012-12-29 patch
17080         "regex: port to hosts where malloc (0) == NULL".
17081         Reported by Nathan Kennedy in:
17082         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
17084 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
17086         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
17087         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
17088         * doc/posix-functions/expl.texi: Mention the workaround.
17090 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17092         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
17093         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
17094         size to be zero even when the pointer is nonnull.  This
17095         accommodates the use case where P is malloc (0) and *PN is 0 on a
17096         host where malloc (0) yields nonnull.
17098 2014-04-09  Eric Blake  <eblake@redhat.com>
17100         fts: avoid unnecessary strlen calls
17101         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
17103 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17105         fts: avoid unnecessary strlen calls
17106         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
17107         when that can be faster than strlen.
17109 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17111         fts: avoid unnecessary strlen calls
17112         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
17113         (fts_build): Store the length of the dp->d_name entry in a local variable
17114         instead of calling strlen() several times via the above, removed macro.
17115         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
17116         run by ~4%, yet this reduces the execution time by about a third if run
17117         via "ltrace -c rm -rf some-dir".
17119 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17121         obstack: Remove ancient NeXTSTEP gcc support conditional
17122         This change will ease merging with glibc.  The "#if ... __NEXT__"
17123         causes a warning with -Wundef which glibc now enables by default.
17124         Problem reported by Will Newton in
17125         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
17126         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
17127         so go with that.
17128         * lib/obstack.h (__extension__):
17130 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17132         obstack: merge with glibc changes
17133         * lib/obstack.c, lib/obstack.h: Merge from glibc.
17134         This is mostly indenting and commentary changes.
17135         Instances of 'register' have been removed.
17137 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17139         strftime: wrap macros in "do {...} while(0)"
17140         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
17141         this macro in "do {...} while(0)" to prevent false use as a
17142         single statement, e.g., in an un-braced "{}" else-block.
17143         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
17144         (strftime_case_): Remove 'else' after 'goto' - which was the
17145         only non-fatal, un-braced use of one of the above macros.
17146         Spotted by coverity (NESTING_INDENT_MISMATCH).
17148 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17150         modechange: avoid memory leaks for invalid octal modes
17151         * lib/modechange.c (mode_compile): During the parsing of
17152         notations like +40, free the 'mc' buffer for invalid mode
17153         strings like +17777 (greater than the maximum octal mode),
17154         =18 (bad octal mode characters) or u=1 ('affected' with
17155         octal modes).
17156         Reproducer, e.g.:
17157             $ valgrind --leak-check=full chmod +17777 file
17158         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
17159         add notations +40, 00440, etc.".
17160         Spotted by coverity (RESOURCE_LEAK).
17162 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17164         gitlog-to-changelog: include a dummy git-log-fix file
17165         Problem reported by Nathan Stratton Treadway in:
17166         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
17167         * build-aux/git-log-fix: New file.
17169 2014-03-13  Jim Meyering  <meyering@fb.com>
17171         gitlog-to-changelog: also include the file, git-log-fix
17172         * modules/gitlog-to-changelog (Files): Add git-log-fix.
17173         Reported by Assaf Gordon.
17175 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
17177         regex: port to OS X 10.8.5 en_US.UTF-8 locale
17178         This fixes a bug when ignoring case and when comparing the
17179         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
17180         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
17181         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
17182         titlecase letter is neither lowercase nor uppercase, but
17183         uppercasing the titlecase letter (via towupper) yields the
17184         uppercase letter, so the two letters should match when ignoring case.
17185         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
17186         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
17187         Don't test whether a character is lowercase before uppercasing it.
17189 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
17191         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
17192         This is basically one of the options Bruno Haible proposed in:
17193         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
17194         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
17195         * lib/stdint.in.h: Use it.
17196         * modules/stdint (Depends-on): Add sys_types.
17198 2014-02-26  Pádraig Brady  <P@draigBrady.com>
17200         parse-datetime: fix crash or infloop in TZ="" parsing
17201         * lib/parse-datetime.y (parse_datetime): Break out of the
17202         TZ="" parsing loop once the second significant " is found.
17203         Also skip over any subsequent whitespace to be consistent
17204         with the non TZ= case.
17205         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
17207 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17209         savedir: new symbol for fast-read version
17210         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
17211         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
17212         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
17213         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
17215 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17217         unistd: port readlink to Mac OS X 10.3.9
17218         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
17219         around self-include problem in Mac OS X 10.3.9 when combined with
17220         readlink module.  Problem reported by Klaus Zietler in
17221         <http://bugs.gnu.org/16825>.
17223 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17225         diffseq: remove TOO_EXPENSIVE heuristic
17226         Problem with diffutils reported by Vincent Lefevre in
17227         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
17228         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
17229         Although appropriate for circa-1993 hardware, these days the heuristic
17230         seems to be more trouble than it's worth.
17231         * lib/diffseq.h: Modernize citations.
17232         (struct context): Remove member too_expensive.
17233         All uses changed.
17234         (struct partition): Remove members lo_minimal, hi_minimal.
17235         All uses changed.
17236         (diag, compareseq): Remove arg find_minimal.  All uses changed.
17237         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
17238         1993 to make 'diff' run faster (but not as well) on large inputs.
17239         These days, computers are fast enough that it's typically better
17240         to run slower but more accurately.
17241         * lib/fstrcmp.c: Remove duplicate comment.
17242         * lib/fstrcmp.c (strcmp_bounded):
17243         * lib/git-merge-changelog.c (compute_differences):
17244         Adjust to diffseq.h changes.
17245         * NEWS: Document the change.
17247         savedir: simplify by using stpcpy
17248         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
17249         (streamsavedir): Use stpcpy instead.
17250         * modules/savedir (Depends-on): Add stpcpy.
17252 2014-02-21  Pádraig Brady  <P@draigBrady.com>
17254         spawn: fix link error on uclibc
17255         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
17256         to incorporate -lrt if needed (on uclibc for example).
17257         * modules/posix_spawn: Reference the substituted LIB.
17259 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
17260         timer: fix uClibc detection of threading
17261         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
17262         enabled in uClibc.
17264 2014-02-21  Eric Blake  <eblake@redhat.com>
17266         maintainer-makefiles: provide AC_PROG_SED for older autoconf
17267         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
17269 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
17271         exclude: add support for posix regexps
17273         This commit adds support for POSIX extended regular expressions
17274         and fixes a long-standing memory leak (pattern buffer was never
17275         freed).  It also implements a new interface function to read
17276         exclude patterns from a FILE, which passes an additional parameter
17277         to its callback function, thereby allowing to preserve its state
17278         between invocations.
17280         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
17281         (pattern_buffer): New struct.
17282         (exclude): New member patbuf.
17283         (exclude_add_pattern_buffer): New function.
17284         (free_exclude_segment): Free regexps.
17285         (free_exclude): Free allocated pattern buffers.
17286         (exclude_patopts): New function.
17287         (file_pattern_matches): Use exclude_patopts.
17288         (add_exclude): support regexps.
17289         (add_exclude_fp): New function.
17290         (add_exclude_file): Rewrite using add_exclude_fp.
17291         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17292         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17293         (add_exclude_fp)
17294         (add_exclude_file): Rewrite using add_exclude_fp.
17295         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
17296         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
17297         (add_exclude_fp)
17298         (exclude_add_pattern_buffer): New prototypes.
17299         * modules/exclude: Depends on regex and filename.
17301 2014-02-20  Eric Blake  <eblake@redhat.com>
17303         maintainer-makefiles: use $(SED) for syntax check
17304         * modules/maintainer-makefile (configure.ac): Check for sane sed.
17305         * top/maint.mk: Change sed to $(SED).
17307 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
17308             Paul Eggert  <eggert@cs.ucla.edu>
17310         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
17311         Patch based on an idea by Dick Streefland in
17312         <https://savannah.gnu.org/patch/?7892>.
17313         * NEWS: Document this.
17314         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
17315         (direntry_t, comparison_function): New types.
17316         (direntry_cmp_name): New function.
17317         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
17318         (streamsavedir, savedir): New arg OPTION.
17319         (streamsavedir): Simplify memory allocation.
17320         (fdsavedir): Remove.
17321         * lib/savedir.h (enum savedir_option): New type.
17322         (streamsavedir, savedir): New arg OPTION.
17323         (fdsavedir): Remove.
17325 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
17327         file-type: add support for doors and other less-common file types
17328         Problem with S_ISDOOR reported by Rich Burridge.
17329         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
17330         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
17331         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
17333 2014-01-23  Eric Blake  <eblake@redhat.com>
17335         pthread: work around winpthread header pollution on mingw
17336         * lib/time.in.h: Move pthread workarounds...
17337         * lib/pthread.in.h: ...here.
17338         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
17339         detect macro pollution on mingw.
17340         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
17342 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17344         qacl: check for fchmod
17345         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
17346         and qset-acl.c both use HAVE_FCHMOD.
17348 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
17350         fdopen-tests: port to Tru64
17351         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
17352         descriptor that is not open, as POSIX doesn't specify the
17353         resulting behavior and the test does not work on Tru64.
17354         Problem reported by Steven M. Schweda in:
17355         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
17357         stdalign: port to HP-UX compilers
17358         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
17359         if __HP_cc or __HP_aCC are nonzero.
17361 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17363         strtoimax: port to platforms lacking 'long long'
17364         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
17365         check whether strtoll is declared, which causes the C file to
17366         wrongly report an error.  Problem reported by Steven M. Schweda in:
17367         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
17368         * lib/strtoimax.c (strtoull):
17369         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
17370         (strtoll): Declare only if HAVE_LONG_LONG_INT.
17372 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
17374         relocatable-perl: fix texi syntax
17375         * doc/relocatable-maint.texi: Escape braces.
17377 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
17379         relocatable-perl: like relocatable-script, but for Perl scripts
17380         * build-aux/relocatable.pl.in: Add.
17381         * doc/relocatable-maint.texi: Add documentation.
17382         * modules/relocatable-perl: Add.
17384 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
17386         tests: fix export bug in previous patch
17387         Problem reported by Jim Meyering.
17388         * tests/init.sh (re_shell): New var, which is exported instead of
17389         re_shell_.
17391         tests: simplify porting to Solaris 10 /bin/sh
17392         Some test cases in 'grep' need a shell that groks '$(';
17393         export re_shell_ for their benefit.  Problem reported for 'grep'
17394         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
17395         * tests/init.sh (re_shell_): Export if it's used.
17397 2014-01-06  Eric Blake  <eblake@redhat.com>
17399         md5, sha1, sha256, sha512: support older autoconf
17400         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
17401         for autoconf < 2.63b.
17403         include_next: port to autoconf 2.63
17404         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
17406 2014-01-04  Jim Meyering  <meyering@fb.com>
17408         maint: add a gnulib-local rule to keep non-ascii out of .texi files
17409         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
17410         so that "make sc_maint" will ding anyone who puts non-ascii
17411         in any of gnulib's .texi files.
17413 2014-01-03  Jim Meyering  <meyering@fb.com>
17415         freadable, fwritable, fwriting: declare with the "pure" attribute
17416         * lib/freadable.h (freadable): Declare with the "pure" attribute.
17417         * lib/fwritable.h (fwritable): Likewise.
17418         * lib/fwriting.h (fwriting): Likewise.
17419         Suggested by Bruno Haible.
17421         maint.mk: adapt openat.h-include-without-use test
17422         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
17423         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
17424         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
17425         With this change, running "make sc_maint" in gnulib's top-level
17426         directory now passes for me.
17428 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17430         doc: use ASCII in .texi files where UTF-8 isn't needed
17431         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
17432         * doc/posix-functions/setkey.texi, doc/regex.texi:
17433         Use ASCII input, not UTF-8.
17435 2014-01-02  Jim Meyering  <meyering@fb.com>
17437         freading: declare with the "pure" attribute
17438         * lib/freading.h (freading): Declare with the "pure" attribute.
17440         manywarnings: remove -Wmudflap
17441         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
17442         it is no longer supported in gcc-4.9-to-be.
17444 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17446         relocatable-script: remove unused code
17447         Problem reported by Reuben Thomas in:
17448         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
17449         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
17451 2014-01-01  Jim Meyering  <meyering@fb.com>
17453         maint: fix public-submodule-commit to work with newer git
17454         * top/maint.mk (public-submodule-commit): Remove excess quoting.
17455         We were over-quoting the test arguments, and somewhere prior to
17456         version 1.8.5.2.229, git stopped removing those excess quotes,
17457         which made the test fail, since the unexpanded strings would
17458         always differ; using GIT_TRACE=1 confirmed that the git merge-base
17459         command wasn't even being run.
17461 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17463         doc: update main copyright year
17464         * doc/gnulib.texi: Update copyright date.
17466 2014-01-01  Eric Blake  <eblake@redhat.com>
17468         version-etc: new year
17469         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
17470         * all files: run 'make update-copyright'
17472 2013-12-24  Eric Blake  <eblake@redhat.com>
17474         passfd: give nicer error for recvfd at eof
17475         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
17476         * tests/test-passfd.c (main): Enhance test to cover this.
17478 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17480         gettimeofday: port recent C++ fix to Emacs
17481         Without this further patch, Emacs won't build due to
17482         the portcheck failing.  Also, this simplifies the patch a bit.
17483         * lib/time.in.h (localtime, gmtime): Don't replace unless
17484         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
17485         * lib/time.in.h (localtime, gmtime):
17486         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
17487         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17488         * modules/time (time.h):
17489         Don't worry about the possibility of localtime and gmtime
17490         being absent; they're present in all C libraries we know about.
17491         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
17492         Don't assume sys_time is present and has been initialized.
17493         Instead, use a hack that should work even if it hasn't been.
17494         Don't use a portcheck for gmtime or localtime; this supports
17495         the hack.
17496         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
17498 2013-12-17  John W. Eaton  <jwe@gnu.org>
17500         gettimeofday: fix C++ crosscompilation
17502         Never replace gmtime and localtime by macros when compiling with
17503         C++, this prevents <ctime> from being included.
17505         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
17506         define gmtime and localtime as preprocessor macros.  Instead
17507         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
17508         REPLACE_LOCALTIME substitutions.
17509         * lib/time.in.h: Declare gmtime and localtime when needed.
17510         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
17511         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
17512         * modules/time: Depend on gettimeofday, and substitute the above
17513         variables in time.h.
17515 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
17517         qacl: port to Windows better
17518         See Eli Zaretskii in
17519         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
17520         * lib/file-has-acl.c (acl_access_nontrivial):
17521         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
17522         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
17524 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
17526         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
17527         * lib/gl_openssl.h: Cast void pointers to a specific type.
17529 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17531         open-tests: fix build failure with -Werror=old-style-declaration
17532         * tests/test-open.h: Reorder the inline to avoid the issue.
17534 2013-12-07  Pádraig Brady  <P@draigBrady.com>
17536         md5, sha1, sha256, sha512: fix link error with partial libcrypto
17537         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
17538         init time, so that if early checks find crypto routines,
17539         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
17540         avoiding link failures.
17542 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17544         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
17545         This provides a new way to specify the default for
17546         gl_CRYPTO_CHECK, one that is reflected in the --help message.
17547         Emacs uses this, as well as the old way.
17548         This attempts to implement a suggestion by Pádraig Brady in
17549         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
17550         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
17551         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
17553         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
17554         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
17555         Add support for a new option, --with-openssl=auto, which causes
17556         the library to be used if available and silently ignored if not.
17557         Add support to allow configure.ac to specify its own
17558         default, by setting with_openssl_default before invoking gl_INIT.
17560 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
17562         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
17563         Problem reported by Daiki Ueno in:
17564         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
17565         * tests/test-open.h (__always_inline):
17566         New macro, if not already defined.
17567         (test_open): Use it.
17569 2013-12-04  Eric Blake  <eblake@redhat.com>
17571         include_next: minimize code duplication
17572         * modules/include_next (Depends-on): Add absolute-header.
17573         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
17574         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
17576 2013-12-04  Pádraig Brady  <P@draigBrady.com>
17578         getcwd: fix compile error in configure check
17579         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
17581 2013-12-04  Pádraig Brady  <P@draigBrady.com>
17583         regex: suppress core dumps from detection code
17584         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
17585         to suppress core dumps that may well occur on glibc systems.
17586         These core dumps might not be cleaned up automatically, or could
17587         trigger some system core dump handling logic.
17589 2013-12-03  Pádraig Brady  <P@draigBrady.com>
17591         md5, sha1, sha256, sha512: support mandating use of openssl
17592         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
17593         description, to list the now 3 separate options.  also don't
17594         mention the default=no, since this is implicit given the option
17595         is described as --with-openssl rather than --without-openssl.
17596         If projects change the default they're free to document that.
17597         with --with-openssl[=yes] we now error out when the specified
17598         hash algorithm is not available in libcrypto.
17600 2013-12-03  Ivailo  <xakepa10@gmail.com>
17602         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
17603         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
17604         -Wformat-nonliteral checks, as these edge cases are part of the test.
17606 2013-12-03  Eric Blake  <eblake@redhat.com>
17608         regex: avoid glibc deadlock during configure
17609         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
17610         glibc bug 15078 in turn triggers bug 16159.
17611         Reported by Michal Privoznik.
17613 2013-12-02  Pádraig Brady  <P@draigBrady.com>
17615         md5, sha1, sha256, sha512: use openssl routines if available.
17616         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
17617         routines will be used if available, requiring apps to link @LIB_CRYPTO@
17618         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
17619         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
17620         in the standard system location.
17621         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
17622         * m4/sha256.m4: Likewise with SHA256.
17623         * m4/sha512.m4: Likewise with SHA512.
17624         * m4/md5.m4: Likewise with MD5.
17625         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
17626         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
17627         * lib/sha256.h: Likewise with SHA256.
17628         * lib/sha512.h: Likewise with SHA512.
17629         * lib/md5.h: Likewise with MD5.
17630         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
17631         * lib/sha256.c: Likewise with SHA256.
17632         * lib/sha512.c: Likewise with SHA512.
17633         * lib/md5.c: Likewise with MD5.
17634         * modules/crypto/sha1 (Link:): Add the new optional lib.
17635         (Depends-on:): Add dependency on extern-inline.
17636         * modules/crypto/sha256: Likewise.
17637         * modules/crypto/sha512: Likewise.
17638         * modules/crypto/md5: Likewise.
17639         * modules/crypto/sha1-tests: Reference the lib here too.
17640         * modules/crypto/md5-tests: Likewise.
17641         * modules/crypto/gc-des-tests: Likewise.
17642         * modules/crypto/gc-hmac-md5-tests: Likewise.
17643         * modules/crypto/gc-hmac-sha1-tests: Likewise.
17644         * modules/crypto/gc-hmac-sha256-tests: Likewise.
17645         * modules/crypto/gc-hmac-sha512-tests: Likewise.
17646         * modules/crypto/gc-md5-tests: Likewise.
17647         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
17648         * modules/crypto/gc-sha1-tests: Likewise.
17649         * modules/crypto/gc-tests: Likewise.
17650         * modules/crypto/hmac-md5-tests: Likewise.
17651         * modules/crypto/hmac-sha1-tests: Likewise.
17652         * modules/crypto/hmac-sha256-tests: Likewise.
17653         * modules/crypto/hmac-sha512-tests: Likewise.
17655 2013-11-29  RV1971  <rv1971@web.de>
17657         base64: (trivial) fix compilation regression on some compilers
17658         * lib/base64.c: Don't return the void function,
17659         instead split to a separate return statement.
17661 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17663         ignore-value: revert previous code change
17664         * lib/ignore-value.h (ignore_value): Use __extension__ and
17665         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
17666         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
17667         Change the comment to try to explain this better.
17669 2013-11-27  Pádraig Brady  <P@draigBrady.com>
17671         selinux-h: improve stub types and add more stub functions
17673         * lib/se-selinux.in.h: Change security_context_t to a typedef
17674         rather than a define, as it's a pointer type and so is better
17675         as a typedef to avoid issues declaring multiple variables
17676         with the comma operator.  Also add stub for string_to_security_class().
17677         * lib/se-context.in.h: Add stub functions for
17678         context_{type,range,role,user}_get().
17680 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
17682         ignore-value: prefer GCC version back through 2.0
17683         The code didn't match the comments, so I did a bit of software
17684         archaeology.  GCC 2.0 seems to support __extension__ and
17685         __typeof__, so fix both code and comments to use 2.0.
17686         * lib/ignore-value.h (ignore_value): Use __extension__ and
17687         __typeof__ for GCC 2.0 through 3.3, too.
17689 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
17691         pty: Activate the signature wrapper of forkpty.
17692         The intended preprocessor macro HAVE_FORKPTY is
17693         never defined, yet `lib/forkpty.c' depends on it.
17695         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
17696         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
17697         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
17699 2013-11-18  Jim Meyering  <meyering@fb.com>
17700         and Paul Eggert  <eggert@cs.ucla.edu>
17702         quotearg: don't attempt to store 1 << 31 into an "int"
17703         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
17704         gcc's new -fsanitize=undefined and running its tests triggered some
17705         new test failures due to undefined behavior, all with this diagnostic:
17706           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
17707             cannot be represented in type int
17708         Rather than shifting "1" left to form a mask, shift the bits right and
17709         simply use "1" as the mask.
17711 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
17713         error: depend on stdio
17714         Problem reported by Nikos Mavrogiannopoulos in
17715         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
17716         * modules/error (Depends-on): Add stdio.
17718 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
17720         * doc/relocatable-maint.texi (Supporting Relocation): Improve
17721         wording.
17722         Reported by Reuben Thomas <rrt@sc3d.org>.
17724 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
17726         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
17727         New function and macro, to work around _DARWIN_C_SOURCE problem.
17728         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
17730 2013-11-11  Pádraig Brady  <P@draigBrady.com>
17732         base64: provide a fast path for encoding well sized buffers
17733         Avoid conditionals in the base64 encoding loop,
17734         which was seen to give 60% better throughput.
17735         * lib/base64.c (base64_encode_fast): A new function to be called
17736         when we don't want to NUL terminate, and we have enough space
17737         in the output to encode the given input.
17738         (base64_encode): Call the _fast() version when appropriate.
17739         Also remove a redundant mask with 0x3F on the first encoded byte.
17741 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
17743         extern-inline: port better to OS X 10.9
17744         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
17745         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
17746         OS X 10.9, except for g++ where the bug is still present.
17747         See <http://trac.macports.org/ticket/41033>.
17749 2013-11-08  Eric Blake  <eblake@redhat.com>
17751         fpending: fix regression on DragonFly BSD
17752         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
17753         * lib/fpending.h (__fpending): Don't declare twice.
17754         Reported by GW in
17755         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
17757 2013-11-05  Jim Meyering  <meyering@fb.com>
17759         hash: relax license to LGPLv2+, for libguestfs
17760         * modules/hash (License): Change from GPL to LGPLv2+.
17762 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17764         intprops: port to Oracle Studio c99
17765         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
17766         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
17768 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
17770         obstack: pacify HP C
17771         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
17772         warning "conversion from pointer to smaller integer" from HP
17773         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
17774         C89 or later nowadays, so cast to void instead of int.  Privately
17775         reported by H.Merijn Brand.  Also, change header to match glibc's,
17776         to make checking against glibc easier.
17778 2013-10-29  Jim Meyering  <meyering@fb.com>
17780         maint.mk: prefer gpgv2 over gpgv
17781         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
17782         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
17783         Reported by Gary Vaughan.
17785 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17787         isnan: port to VAX
17788         Reported by John Klos for NetBSD-5/VAX in
17789         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
17790         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
17791         (FUNC): Use it.
17793 2013-10-28  Jim Meyering  <meyering@fb.com>
17795         gnulib-tool: protect against CDPATH
17796         * gnulib-tool: Many "cd" built-in functions print a directory name
17797         to stdout when CDPATH is set, e.g.,
17798           $ bash -c 'CDPATH=/; cd tmp'
17799           /tmp
17800         Unset it, when possible.  Prompted by a comment from Bruce Korb.
17802         maint.mk: restore functionality removed by recent change...
17803         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
17804         the context of a shallow-cloned gnulib repository: "git describe"
17805         would fail in such a directory.  However, that change made it so
17806         the reported gnulib revision no longer includes the version number
17807         or a commit count, even when run from a full clone.
17808         * top/maint.mk (gnulib-version): Use the full "git describe"
17809         output when possible, e.g., the form above, rather than the
17810         abbreviated, no-tag, no-commit-count string, and fall back to
17811         using a 10-byte hash, rather than the default minimal-length
17812         hash prefix, since while the minimal-length one may be fine today,
17813         it is likely not to be unique for very long.
17815 2013-10-26  Jim Meyering  <meyering@fb.com>
17817         maint.mk: fix "release" target to build _version
17818         This fixes a bug in README-release whereby following the outlined
17819         steps, one would publish a tarball whose programs would report
17820         --version output not consistent with the package version number.
17821         This bug caused grep-2.15 to produce a grep program whose
17822         --version option made it print 2.14.56-1e3d rather than 2.15.
17823         * top/maint.mk (release): Making this target build "_version"
17824         ensures that the new version number is reflected in configure.
17826 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
17828         install-reloc: Support multi-binary installation.
17829         * build-aux/install-reloc: Support installing multiple programs in
17830         one invocation, as done by Automake starting with commit
17831         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
17832         Haible <bruno@clisp.org>, archived at
17833         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
17834         Reported by Sylvain <beuc@gnu.org>.
17836 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
17838         selinux-h: Really build without selinux when library is missing.
17839         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
17840         continue without selinux, as already told in the warning message.
17842 2013-10-21  Jim Meyering  <meyering@fb.com>
17844         regex: also remove dependency on HAVE_WCSCOLL
17845         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
17847 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
17849         xfreopen: Fix typo. s/frepoen/freopen/
17850         * lib/xfreopen.c: Fix description.
17851         * modules/xfreopen: Likewise.
17853 2013-10-21  Jim Meyering  <meyering@fb.com>
17855         regex: don't depend on wcscoll
17856         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
17857         It is no longer used.
17859 2013-10-20  Jim Meyering  <meyering@fb.com>
17861         error: add the printf attribute to a static function
17862         * lib/error.c (error_tail): Add the printf attribute, to placate
17863         gcc's -Werror=suggest-attribute=format option.
17865 2013-09-30  Jim Meyering  <meyering@fb.com>
17867         fpending, obstack, strerror-override: use pure+const function attrs
17868         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
17869         * lib/obstack.c (_obstack_allocated_p): Likewise.
17870         * lib/obstack.h (_obstack_memory_used): Likewise.
17871         (_obstack_memory_used): Likewise.
17872         * lib/strerror-override.h (strerror_override): Declare with
17873         the "const" attribute.
17875 2013-10-18  Eric Blake  <eblake@redhat.com>
17877         extern-inline: make safe for -Wundef usage
17878         Reported by Vladimir 'phcoder' Serbinenko in
17879         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
17880         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
17882 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
17884         mkfifo-tests, etc.: allow HP-UX 11.11 bug
17885         Problem reported by Daniel Richard G. in
17886         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
17887         * doc/posix-functions/mkfifo.texi (mkfifo):
17888         * doc/posix-functions/mkfifoat.texi (mkfifoat):
17889         * doc/posix-functions/mknod.texi (mknod):
17890         * doc/posix-functions/mknodat.texi (mknodat):
17891         Document the HP-UX 11.11 bug.
17892         * tests/test-mkfifo.h (test_mkfifo):
17893         Allow the HP-UX 11.11 bug.
17895 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17897         acl: allow cross-compilation to Gentoo
17898         Problem reported by Gabriel Marcano in
17899         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
17900         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
17901         test only whether it links.
17903 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17905         mgetgroups: remove dependency on realloc-gnu
17906         The dependency violates the comment in realloc-gnu, which
17907         says that tests can't depend on realloc-gnu; some tests depend
17908         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
17909         Problem reported by Daniel Richard G. in
17910         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
17911         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
17912         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
17913         not realloc-gnu.
17915 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
17917         regex-tests: port to HP-UX 11.11
17918         Problem reported by Daniel Richard G. in
17919         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
17920         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
17922 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17924         verify: document some 'assume' pitfalls
17925         * doc/verify.texi (Compile-time Assertions):
17926         Mention that 'assume (E)' can sometimes slow things down.
17927         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
17929 2013-10-10  Eric Blake  <eblake@redhat.com>
17931         strtoumax: fix typo in previous commit.
17932         * modules/strtoumax (Depends-on): Fix typo.
17933         * modules/strtoimax (Depends-on): Likewise.
17935 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17937         strtoumax: port to Solaris 8
17938         This problem was introduced in the recent HP-UX patch.
17939         Reported by Tom G. Christensen in
17940         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
17941         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
17942         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
17944 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
17946         strtoimax, strtoumax: port to HP-UX 11.11
17947         Problem reported by Daniel Richard G. in
17948         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
17949         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
17950         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
17951         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
17952         REPLACE_STRTOUMAX.
17953         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
17954         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
17955         Replace the function if defined as a macro but not as a function.
17956         * modules/inttypes-incomplete (inttypes.h): Substitute
17957         REPLACE_STRTOUMAX.
17958         * modules/strtoumax (configure.ac): Replace strtoumax if
17959         REPLACE_STRTOUMAX.
17961 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17963         strtoimax: port to HP-UX 11.11
17964         Problem reported by Daniel Richard G.
17965         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
17966         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
17967         they might clash with inttypes.h.
17969 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
17971         New module 'count-trailing-zeros'.
17972         * MODULES.html.sh: Mention it.
17973         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
17974         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
17975         * modules/count-trailing-zeros-tests:
17976         * tests/test-count-trailing-zeros.c:
17977         New files.
17979         count-leading-zeros: port to MSC; support types wider than 64 bits
17980         The ideas behind the MSC port are stolen from Emacs.
17981         * lib/count-leading-zeros.h:
17982         Don't include verify.h: it's no longer needed, as types wider than
17983         64 bits are now supported.
17984         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
17985         performance with MSC.  All uses changed.  Do not assume that TYPE
17986         has at most 64 bits.
17987         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
17988         All uses changed.  Fold the subtraction from 31 into the table.
17990         count-one-bits: port to MSC; support types wider than 64 bits
17991         The ideas behind the MSC port are stolen from Emacs.
17992         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
17993         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
17994         Don't include verify.h: it's no longer needed, as types wider than
17995         64 bits are now supported.
17996         (COUNT_ONE_BITS_GENERIC): New macro.
17997         (popcount_supported) [_MSC_VER]: New inline function.
17998         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
17999         performance with MSC.  All uses changed.  Do not assume that TYPE
18000         has at most 64 bits.
18001         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
18003 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
18005         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
18006         * lib/mountlist.c (read_file_system_list): fix leak of directory
18007         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
18009 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18011         tests: improve diagnostic when an assertion fails
18012         * tests/macros.h (ASSERT): Report the assertion that failed.
18014 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18016         verify: new macro 'assume'
18017         This is taken from Emacs, and should be generally useful.
18018         * doc/verify.texi (assume): Document it.
18019         * lib/verify.h (assume): New macro.
18020         (__has_builtin): Expand to 0 if not defined.
18022 2013-09-26  Eric Blake  <eblake@redhat.com>
18024         dup2, dup3: work around another cygwin crasher
18025         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
18026         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
18027         * tests/test-dup2.c (main): Likewise.
18028         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
18029         * lib/dup3.c (dup3): Likewise.
18030         * doc/posix-functions/dup2.texi (dup2): Document it.
18031         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18033         getdtablesize: work around cygwin issue
18034         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
18035         * modules/getdtablesize (configure.ac): Build replacement.
18036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
18037         * modules/unistd (Makefile.am): Expose the witness.
18038         * lib/unistd.in.h (getdtablesize): Declare replacement.
18039         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
18040         * tests/test-getdtablesize.c (main): Test it.
18041         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
18043 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
18045         pmccabe2html: escaping of special characters
18046         Escape all '<', '>', and '&' in HTML output.
18047         * build-aux/pmccabe2html (html_fnc): Call gsub()
18048         instead of sub() to capture all '<', '>', and '&'.
18049         Neither of '<' and '>' is special in a regexp,
18050         so first arguments to gsub() are corrected. Also,
18051         in replacement strings, ampersand must be escaped.
18052         Finally, '&' must be handled first, then '<' and '>'.
18054 2013-09-24  Eric Blake  <eblake@redhat.com>
18056         manywarnings: enable nicer gcc warning messages
18057         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
18058         some -f options for optimal warnings.
18060 2013-09-21  Jim Meyering  <meyering@fb.com>
18062         timespec: use the new TIMESPEC_RESOLUTION in a few more places
18063         * lib/timespec-add.c (timespec_add): Also replace 999999999
18064         with TIMESPEC_RESOLUTION - 1.
18065         * lib/timespec-sub.c (timespec_sub): Likewise.
18067 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18069         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
18070         Problem reported by Dagobert Michelsen via Eric Blake in
18071         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
18072         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
18073         not AC_COMPILE_IFELSE.
18075 2013-09-23  Eric Blake  <eblake@redhat.com>
18077         configmake: support new --runstatedir option
18078         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
18079         even if autoconf was too old to provide the command line option.
18080         * modules/configmake (Makefile.am): Propagate it to .h file.
18082 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18084         ctype, string: depend on extern-inline
18085         This is needed to complete the recent OS X fixes.
18086         Also, fix related documentation as suggested by Eric Blake.
18087         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18088         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
18089         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
18090         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
18091         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
18092         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
18093         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
18094         * doc/posix-functions/toupper.texi:
18095         List the 'ctype' gnulib module.
18096         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
18097         * doc/posix-functions/strncpy.texi:
18098         List the 'string' gnulib module.
18099         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
18100         Add string.
18101         * modules/ctype, modules/string (Depends-on): Add extern-inline.
18103 2013-09-19  Pádraig Brady  <P@draigBrady.com>
18105         userspec: support optional parameters to parse_user_spec()
18106         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
18107         then avoid group processing and treat the full spec as a user.
18108         (parse_with_separator): Allow the USERNAME and GROUPNAME to
18109         be optional params (NULL), in which case they're ignored.
18111 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18113         timespec: new function make_timespec, and new constants
18114         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
18115         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
18116         (make_timespec): New function.
18117         * lib/dtotimespec.c (dtotimespec):
18118         * lib/timespec-add.c (timespec_add):
18119         * lib/timespec-sub.c (timespec_sub):
18120         * lib/utimens.c (validate_timespec):
18121         * lib/utimensat.c (rpl_utimensat):
18122         Use these new constants and functions.
18124         stdio: OS X port of putc_unlocked + extern inline
18125         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
18126         * doc/posix-functions/putc_unlocked.texi:
18127         * doc/posix-functions/putchar_unlocked.texi:
18128         Document this portability problem.
18130         signal: OS X port of sigaddset etc. + extern inline
18131         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
18132         (sigismember): #undef on problematic Apple platforms.
18133         * doc/posix-functions/sigaddset.texi:
18134         * doc/posix-functions/sigdelset.texi:
18135         * doc/posix-functions/sigemptyset.texi:
18136         * doc/posix-functions/sigfillset.texi:
18137         * doc/posix-functions/sigismember.texi:
18138         Document this portability problem.
18140         extern-inline: do not always suppress extern inline on OS X
18141         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
18142         extern inline on Apple only if the particular compile-time
18143         configuration is known to have the problem.
18144         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
18145         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
18146         other Gnulib modules.
18148         extern-inline: document fixes for ctype and wctype macros
18149         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18150         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
18151         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
18152         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
18153         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
18154         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
18155         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
18156         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
18157         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
18158         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
18159         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
18160         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
18161         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
18162         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
18163         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
18164         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
18165         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
18166         * doc/posix-functions/strncpy.texi:
18167         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
18168         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
18169         Document that Gnulib fixes portability problems with these
18170         functions on OS X 10.8 and earlier when called from plain inline
18171         or extern inline functions.
18173 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
18175         fflush, freadahead, fseeko: Fix for Android
18176         Suggested by Bruno Haible in:
18177         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
18178         * lib/stdio-impl.h: Use local __sfileext definition.
18180 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
18182         pmccabe2html: Portability to other awk versions.
18183         The functions systime() and strftime() are available
18184         in Gawk only.  Properly close two HTML-tags 'style'
18185         and 'span'.
18186         * build-aux/pmccabe2html (BEGIN): Store timing
18187         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
18188         systime() in HTML_COMMENT.
18189         (html_header): Correctly close tag 'style'.
18190         (END): Replace strftime() by CHRONOS_TIME.  Close
18191         tag 'span' correctly, not as 'div'.
18193 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18195         getgroups: statement without effect
18196         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
18197         Change equality conditional to expected assignment.
18199 2013-09-09  Eric Blake  <eblake@redhat.com>
18201         glob: fix compilation
18202         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
18204 2013-09-07  Eric Blake  <eblake@redhat.com>
18206         glob: fix build for platforms without __THROW
18207         * lib/glob.in.h (__THROW): Add definition again.
18209 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
18211         regex-quote: fix buffer access out of bounds
18212         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
18213         * lib/regex-quote.c (regex_quote_spec_pcre):
18214         Fix typo that resulted in an out-of-bounds read.
18216 2013-09-04  Eric Blake  <eblake@redhat.com>
18218         glob: avoid -Wattribute warnings on glibc
18219         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
18220         __THROWNL, not __THROW, on static functions.
18221         * lib/glob.in.h (__THROW): Adjust...
18222         (__THROWNL): ...accordingly.
18224 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18226         headers: check that _GL_INLINE_HEADER_BEGIN is defined
18227         Suggested by Bruce Korb in:
18228         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
18229         * doc/extern-inline.texi (extern inline):
18230         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
18231         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
18232         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
18233         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
18234         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
18235         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
18236         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
18237         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
18238         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
18239         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
18240         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
18241         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
18242         * lib/xtime.h:
18243         Check that _GL_INLINE_HEADER_BEGIN is defined.
18245 2013-08-29  Pádraig Brady  <P@draigBrady.com>
18247         bootstrap: remove the --version requirement from ancillary tools
18248         * build-aux/bootstrap (check_exists): A new refactored function to
18249         determine if a command exists.
18250         (find_tool): Use the new function which does not require the
18251         --version option to be supported.
18252         (check_versions): Use the new function.
18254 2013-08-26  Simon Josefsson  <simon@josefsson.org>
18256         gc: support HMAC-SHA256 and HMAC-SHA512.
18257         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
18258         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
18259         functions.
18260         (gc_hmac_md5): Use symbolic constant.
18261         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
18262         (gc_hmac_sha256, gc_hmac_sha512): New functions.
18263         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
18264         * m4/sha256.m4: Protect against empty expansion.
18265         * m4/sha512.m4: Likewise.
18266         * lib/hmac-sha256.c: New file.
18267         * lib/hmac-sha512.c: Likewise.
18268         * m4/gc-hmac-sha256.m4: Likewise.
18269         * m4/gc-hmac-sha512.m4: Likewise.
18270         * m4/gc-sha256.m4: Likewise.
18271         * m4/gc-sha512.m4: Likewise.
18272         * modules/crypto/gc-hmac-sha256: Likewise.
18273         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18274         * modules/crypto/gc-hmac-sha512: Likewise.
18275         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18276         * modules/crypto/hmac-sha256: Likewise.
18277         * modules/crypto/hmac-sha256-tests: Likewise.
18278         * modules/crypto/hmac-sha512: Likewise.
18279         * modules/crypto/hmac-sha512-tests: Likewise.
18280         * tests/test-gc-hmac-sha256.c: Likewise.
18281         * tests/test-gc-hmac-sha512.c: Likewise
18282         * tests/test-hmac-sha256.c: Likewise.
18283         * tests/test-hmac-sha512.c: Likewise
18285 2013-08-24  Daiki Ueno  <ueno@gnu.org>
18287         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
18288         of AC_CHECK_DECLS.
18290 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18292         selinux-at: omit unnecessary include
18293         * lib/selinux-at.c: Don't include dosname.h; not needed, since
18294         this source file doesn't use its macros, and subsidiary files that
18295         use the macros already include it.
18297 2013-08-21  Eric Blake  <eblake@redhat.com>
18299         d-ino: avoid false negative on symlink
18300         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
18301         Reported by Stephane Chazelas.
18303 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
18305         bootstrap: port to OpenBSD sed
18306         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
18307         does not interpret `-' as a file argument to mean stdin.
18309 2013-08-15  Eric Blake  <eblake@redhat.com>
18311         warnings: minor optimization
18312         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
18314         warnings: check -Wfoo rather than -Wno-foo
18315         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
18316         -Wno-, test if the compiler recognizes the positive form instead.
18318 2013-08-15  Karl Berry  <karl@gnu.org>
18320         * config/srclist-update: add option "doclicense" to placate
18321         pulling *.texi files from Emacs.  Write terse usage
18322         documentation at the top.
18324 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
18326         xvasprintf-tests: port to GCC with hardening flags
18327         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
18328         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
18329         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
18331 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18333         fpending: port to recent Cygwin change to stdio_ext.h
18334         Reported by LRN in
18335         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
18336         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
18337         just declare __fpending unless it's a macro.
18338         A duplicate decl shouldn't hurt.
18339         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
18340         call compiles and links, instead of separately checking for
18341         decl and lib function.
18342         * modules/fpending (configure-ac):
18343         Adjust to fpending.m4's renaming of shell variable.
18345 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18347         sys_time: port to OpenBSD
18348         * lib/sys_time.in.h: Simply delegate to the system's header
18349         in the BSDish cases as well.  Problem reported by Mike Miller in
18350         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
18351         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
18352         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
18353         wider than time_t.
18355 2013-08-09  Pádraig Brady  <P@draigBrady.com>
18357         bootstrap: support checksum utils having -c but not --status
18358         * build-aux/bootstrap: Only look for sha1sum if updating po files.
18359         Add sha1 to the list of supported checksum utils since it's now
18360         supported through adjustments below.
18361         (update_po_files): Remove the use of --status
18362         in a way that will suppress all error messages, but since this is
18363         only used to minimize updates, it shouldn't cause an issue.
18364         Exit early if there is a problem updating the po file checksums.
18365         (find_tool): Remove the check for --version support as this
18366         is optional as per commit 86186b17.  Don't even check for the
18367         presence of the command as if that is needed, it's supported
18368         through configuring prerequisites in bootstrap.conf.
18369         Prompt that when a tool isn't found, one can define an environment
18370         variable to add to the hardcoded search list.
18372 2013-08-05  Jim Meyering  <meyering@fb.com>
18374         regex: port to non-glibc/lock-using systems
18375         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
18376         system with GNULIB_LOCK would fail due to absence of the
18377         included "glthread/lock.h".  This would affect any package
18378         for which the "lock" module is used only by the regex module,
18379         and not explicitly used.
18380         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
18381         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
18382         Add a dependency on the "lock" module.
18384 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18386         localecharset: make locale_charset thread-safe on Mac OS X
18387         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
18388         instead of MB_CUR_MAX.
18390 2013-07-20  Daiki Ueno  <ueno@gnu.org>
18392         gettext: update to version 0.18.3
18393         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
18394         require AC_PROG_SED to allow user to specify custom sed command when
18395         generating en@quot PO file.
18397 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
18399         bootstrap: use correct source when copying build-aux files
18400         * build-aux/bootstrap (gnulib_extra_files): This variable is
18401         relative to upstream gnulib layout, not downstream.
18403 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18405         tmpdir: fix bug in VMS port
18406         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
18407         See Steven M. Schweda in
18408         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
18410 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18412         tmpdir: port to VMS, to // != /, and to long dirs
18413         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
18414         __secure_getenv, so that we're more like the glibc version.
18415         All uses changed.
18416         (path_search): Don't put slash after directory if __VMS.
18417         Problem reported by Steven M. Schweda in
18418         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
18419         Simplify code to add slash; no need for a loop.
18420         Do not remove trailing slash from "//".
18421         Do not assume dlen <= INT_MAX.
18423 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
18425         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
18426         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
18427         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
18428         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
18430         accept4, dup3, pipe2: port to Cygwin
18431         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
18432         * lib/accept4.c (accept4) [O_BINARY]:
18433         * lib/dup3.c (dup3) [O_BINARY]:
18434         * lib/pipe2.c (pipe2) [O_BINARY]:
18435         Use set_binary_mode, not setmode.
18436         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
18437         * modules/binary-io (Depends-on): Remove module indicator.
18438         These last two bits undo the previous change to pipe2 and binary-io.
18440 2013-07-09  Pádraig Brady  <P@draigBrady.com>
18442         mountlist: add support for deallocating returned list entries
18443         * lib/mountlist.c (free_mount_entry): A new exported function
18444         to deallocate a mount list entry.
18445         (read_file_system_list): Refactor to use the new deallocation function.
18446         Suggested by Anton Ovchinnikov.
18448 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18450         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
18451         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
18452         * lib/stdalign.in.h (_Alignas, _Alignof):
18453         Port to FreeBSD 9.1, and to C11 and C++11.
18454         (_Alignas): Also support ICC.
18455         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
18456         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
18458 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18460         fnmatch: don't goto over declaration
18461         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
18462         undefined behavior for goto over a declaration.
18463         Problem reported by Charlie Brown in
18464         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
18466         pipe2: decouple from binary-io a bit
18467         This is for Emacs, which needs pipe2 but not binary-io.
18468         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
18469         * modules/binary-io (Depends-on): Add module indicator.
18471 2013-07-03  Eric Blake  <eblake@redhat.com>
18473         mgetgroups: relax license to LGPLv2+
18474         * modules/getugroups (License): Change from GPLv3+.
18475         * modules/mgetgroups (License): Likewise.
18476         * modules/getgroups (License): Change from LGPLv3+.
18478         xalloc-oversized: relax license to LGPLv2+
18479         * modules/xalloc-oversized (License): Change from GPLv3+.
18481         nproc: relax license to LGPLv2+
18482         * modules/nproc (License): Change from LGPLv3+.
18484         bootstrap: honor --no-git
18485         * build-aux/bootstrap: Don't even try to use git when user is
18486         pointing to a static checkout.
18488 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18490         ignore-value: port to gcc -pedantic
18491         * lib/ignore-value.h (ignore_value):
18492         Port to gcc -pedantic, by using __extension__.
18493         Reindent as per usual gnulib style nowadays.
18494         Simplify GCC version check.
18496 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18498         extern-inline: port to gcc -std=c89
18499         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
18500         Do not use __gnu_inline__ if pedantic and pre-C99.
18502 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
18504         doc: document extern-inline
18505         * doc/extern-inline.texi: New file.
18506         * doc/gnulib.texi (alloca-opt): Include it.
18507         * m4/extern-inline.m4: Move some comments to documentation,
18508         and others closer to what they describe.
18510         doc: chatter less
18511         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
18512         (updated-stamp): Use it.  This causes 'make' to output just
18513         one file name rather than zillions.
18515         fflush, fseeko: port to musl cross-compiles
18516         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
18517         on some implementation that (1) is not known to be buggy,
18518         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
18519         cross-compiled to so we can't easily check for lack of
18520         conformance.  This is for cross-compiling to musl.
18521         Reported by Rich Felker in
18522         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
18523         * m4/fclose.m4 (gl_FUNC_FCLOSE):
18524         * m4/fflush.m4 (gl_FUNC_FFLUSH):
18525         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
18526         Adjust to above change.
18527         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
18528         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
18529         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
18530         known not to work, or unknown.
18532 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18534         msvc-inval: port to mingw-w64
18535         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
18536         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
18537         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
18539 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18541         getcwd-lgpl: port to Tru64
18542         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
18543         Problem reported by Steven M. Schweda in
18544         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
18546         tests: port large-fd POSIX spawn tests to OS X
18547         Problem reported by Daiki Ueno in
18548         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
18549         * tests/test-posix_spawn_file_actions_addclose.c:
18550         * tests/test-posix_spawn_file_actions_adddup2.c:
18551         * tests/test-posix_spawn_file_actions_addopen.c:
18552         Include <limits.h>, for OPEN_MAX, if available.
18553         (big_fd): New static function.
18554         (main): Use it.
18556 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
18558         tests/nap.h: use an adaptive delay to avoid ctime update issues
18559         The recent change in nap.h (5191133e) decreased the probability of lost
18560         races to about a third, however such problems could still be observed
18561         in virtual machines and openSUSE's OBS.
18562         Before, nap() detected the needed time once empirically and then used
18563         that delay (together with a small correction multiplier) in further
18564         calls.  This problem has been reported and discussed several times,
18565         including guesses about possible kernel issues:
18566         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
18567         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
18568         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
18569         http://bugs.gnu.org/12820
18570         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
18571         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
18572         Now, nap() avoids the race alltogether by verifying on a reference
18573         file whether a timestamp difference has happened.
18574         * tests/nap.h (nap_fd): Define file descriptor variable for the
18575         witness file.
18576         (nap_works): Change return value to bool.  Change passing
18577         the old file's status by value instead of by reference as this function
18578         does no longer update that timestamp; rename the function argument from
18579         st to old_st.  Remove the local variables cdiff and mdiff because that
18580         function now returns true/false instead of the precise delay.
18581         (guess_delay): Remove function.
18582         (clear_tmp_file): Add new function to close and unlink the witness file.
18583         (nap): Instead of re-using the delay which has been calculated during
18584         the first call, avoid the race by actually verifying that a timestamp
18585         difference can be observed on the current file system.  Use an adaptive
18586         approach for the delay to minimize execution time.  Assert that the
18587         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
18588         = 2^31 - 1 = 2.1s.
18589         Use atexit to call clear_tmp_file when the process terminates.
18591 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18593         sig2str: port to C++
18594         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
18595         Reported by Daniel J Sebald in
18596         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
18598 2013-05-30  Eric Blake  <eblake@redhat.com>
18600         docs: mention cygwin shortcoming in <sys/un.h>
18601         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
18603         vasnprintf: silence mingw compiler warning
18604         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
18606 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18608         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
18609         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
18610         This fixes a porting bug I recently reintroduced in regex, and
18611         some other instances that I discovered while testing the fix.
18612         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
18613         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
18614         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
18615         with an empty argument if this is a pedantic pre-C99 GCC.
18616         * lib/verify.h: Do not use _Static_assert if this is a pedantic
18617         pre-C11 GCC.
18619         regex: adapt to locking regime instead of depending on pthread
18620         Instead of depending on pthread, adapt to whatever thread
18621         modules are in use.  Problem reported by Ludovic Courtès in
18622         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
18623         and by Mats Erik Andersson in
18624         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
18625         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
18626         Support either the 'lock' module, or the 'pthread' module, or
18627         no module.
18628         (lock_lock, lock_unlock): New macros.
18629         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
18630         * modules/lock, modules/pthread (configure.ac): Add module indicator.
18631         * modules/regex (Depends-on): Remove pthread.
18633 2013-05-22  Eric Blake  <eblake@redhat.com>
18635         getgroups: document portability issues
18636         * doc/glibc-functions/initgroups.texi (initgroups): Mention
18637         multithread safety.
18638         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
18639         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
18640         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
18641         getugroups.
18642         * doc/posix-functions/getgroups.texi (getgroups): Mention
18643         multithread safety and mgetgroups.
18645 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
18647         test-lchown, test-chown: also skip test if chown fails with EPERM
18648         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
18649         skip this test, to handle FAT file systems.
18650         * tests/test-chown.h (test_chown): Likewise.
18652 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18654         regex: fix dfa race in multithreaded uses
18655         Problem reported by Ludovic Courtès in
18656         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
18657         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
18658         New macros.  All uses of __libc_lock_define, __libc_lock_init
18659         changed to use the first two of these.
18660         (__libc_lock_lock, __libc_lock_unlock): New macros, for
18661         non-glibc platforms.
18662         (struct re_dfa_t): Define the lock unconditionally.
18663         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
18664         '#ifdef _LIBC"s.
18665         * modules/regex (Depends-on): Add pthread, if we use the
18666         included regex.
18668         * lib/regcomp.c: Do actions that are not needed for glibc,
18669         but may be needed elsewhere.
18670         (regfree, re_compile_internal): Destroy the lock.
18671         (re_compile_internal): Check for lock-initialization failure.
18673         malloca: port to compilers that reject size-zero arrays
18674         This fixes a bug introduced in my previous patch.
18675         * lib/malloca.c (struct preliminary_header): Use an int
18676         rather than a character array of size int; that's simpler.
18677         (struct header): Remove, replacing with ...
18678         (union header): New type.  This avoids the need for declaring a
18679         character array of size zero, which is not allowed on some platforms.
18680         All uses changed.
18682 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
18684         parse-datetime, tests: don't use "string" + int
18685         Recent versions of 'clang' complain about C source code that
18686         uses expressions of the form '"string literal" + integer',
18687         I guess on the theory that it's confusing for readers who are
18688         used to C++.  On those grounds I suppose it's OK to make this
18689         minor style change.
18690         * lib/parse-datetime.y (parse_datetime):
18691         * tests/test-fchdir.c (main):
18692         * tests/test-snprintf-posix.h (test_function):
18693         * tests/test-snprintf.c (main):
18694         * tests/test-vasnprintf-posix.c (test_function):
18695         * tests/test-vasnprintf.c (test_function):
18696         * tests/test-vsnprintf.c (main):
18697         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
18698         Rewrite '"str" + E' to '&"str"[E]'.
18700 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18702         argmatch: port to C++
18703         * lib/argmatch.h [__cplusplus]: Add extern "C".
18705         argp: typo fix
18706         * lib/argp-help.c: Typo in comment.
18708 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
18710         manywarnings: update for GCC 4.8.0
18711         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18712         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
18713         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
18714         -Wmissing-noreturn, as they are duplicates of other warnings.
18715         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
18716         was documented to be flaky in earlier versions of GCC.
18718         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
18719         * tests/test-spawn.c (main):
18720         * tests/test-sys_socket.c (main):
18721         * tests/test-sys_wait.c (main):
18722         Don't have a switch value that isn't covered by a case.
18724         getaddrinfo-tests: port --enable-gcc-warnings to clang
18725         * tests/test-getaddrinfo.c (simple):
18726         Avoid casts from looser to stricter-aligned pointers.
18728         thread: port --enable-gcc-warnings to clang
18729         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
18730         Include <signal.h>, to pacify a warning about pthread_sigmask.
18732         stdio: use __REDIRECT for fwrite, fwrite_unlocked
18733         * lib/stdio.in.h (fwrite):
18734         When working around bug 11959, use __REDIRECT rather than '#define
18735         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
18736         fix the -Wunused-value issue with clang, and it works with GCC too.
18737         Problem with targeting reported by Eric Blake in
18738         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
18739         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
18740         debugging the fwrite issue.
18742         stdio: port --enable-gcc-warnings to clang
18743         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
18744         since the GCC workaround for fwrite does not pacify clang.
18746         sig2str: port --enable-gcc-warnings to clang
18747         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
18749         obstack: port --enable-gcc-warnings to clang
18750         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
18751         Avoid casts from looser to stricter-aligned pointers.
18753         memchr2: port --enable-gcc-warnings to clang
18754         * lib/memchr2.c (memchr2):
18755         Avoid casts from looser to stricter-aligned pointers.
18757         mbsstr: port --enable-gcc-warnings to clang
18758         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
18759         Avoid casts from looser to stricter-aligned pointers.
18761         malloca: port --enable-gcc-warnings to clang
18762         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
18763         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
18765         inttostr: port --enable-gcc-warnings to clang
18766         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
18768         warnings: port to clang
18769         Problem reported by Daniel P. Berrange via Eric Blake in
18770         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
18771         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
18772         (gl_WARN_ADD): Use it.
18774 2013-05-11  Jim Meyering  <meyering@fb.com>
18776         quotearg: do not read beyond end of buffer
18777         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
18778         end of an ARG for which no length was specified.  With an N-byte
18779         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
18780         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
18781         via coreutils' misc/sort-debug-keys.sh test and detected by running
18782         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
18783         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
18784         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
18785         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
18786         characters correctly."
18788 2013-05-11  Daiki Ueno  <ueno@gnu.org>
18790         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
18791         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
18792         compilation target is Mac OS X 10.6.
18793         Problem reported by parafin and Andoni Morales in
18794         <http://savannah.gnu.org/bugs/?37844> and
18795         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
18797 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
18799         mkdir-p: remove assumptions about umask and mode
18800         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
18801         umask is 0, or that MODE is a subset of MODE_BITS.
18803 2013-05-10  Eric Blake  <eblake@redhat.com>
18805         maint.mk: catch more abuse of HAVE_DECL in syntax-check
18806         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
18808 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
18810         deps: require Automake >= 1.9.6 in generated Makefile fragments
18812         That is the same minimal version required in the DEPENDENCIES file.
18813         Moreover, the old code generated a requirement of Automake >= 1.5,
18814         and that is an insanely outdated version.
18816         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
18817         * tests/havelib/rpathlx/Makefile.am: Likewise.
18818         * tests/havelib/rpathly/Makefile.am: Likewise.
18819         * tests/havelib/rpathlyx/Makefile.am: Likewise.
18820         * tests/havelib/rpathlz/Makefile.am: Likewise.
18821         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
18822         * tests/havelib/rpathx/Makefile.am: Likewise.
18823         * tests/havelib/rpathy/Makefile.am: Likewise.
18824         * tests/havelib/rpathz/Makefile.am: Likewise.
18826 2013-05-08  Eric Blake  <eblake@redhat.com>
18828         bootstrap: AC_INIT may have more than four parameters
18829         * build-aux/bootstrap (extract_package_name): Correctly extract
18830         non-empty tarname field.  Avoid range in regex.
18831         Based on a report by Sami Kerola <kerolasa@iki.fi>.
18833 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18835         qacl: port to MS-Windows port of GNU Emacs
18836         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
18837         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
18838         port of GNU Emacs.  Problem reported by Eli Zaretskii in
18839         <http://bugs.gnu.org/14295#14>.
18841 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
18843         acl: include quote.h
18844         * lib/copy-acl.c: Include quote.h.
18845         * lib/set-acl.c: Likewise.
18847 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
18849         fchownat, renameat, unlinkat: update statat dependencies
18850         These modules use statat and lstatat, not fstatat; so depend on
18851         the statat module, which was split out recently from fstatat.
18852         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
18853         * modules/renameat: Likewise.  Also delete fstat.
18854         URL: http://bugs.gentoo.org/468790
18856 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
18858         Assume gnulib is checked out from Git, not CVS
18860         In fact, access to the gnulib repository through CVS has been
18861         disabled, or more precisely, got broken and was never restored; see:
18862         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
18864         Note that support for CVS is not removed completely and unthinkingly
18865         by this change: only support for CVS checkouts of gnulib itself is
18866         removed.  For example, the 'bootstrap' script still cater to .cvsingore
18867         files and CVS directories, for the benefit of those poor gnulib clients
18868         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
18870         * gnulib-tool: Simplify accordingly.
18871         * posix-modules: Likewise.
18872         * MODULES.html.sh: Likewise.
18873         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
18874         repository.
18875         * doc/gnulib-intro.texi: Likewise.
18876         * doc/gnulib-readme.texi: Likewise.
18877         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
18878         sample '.gitignore' file rather than a sample '.cvsignore'.
18879         * NEWS: Update.
18880         * m4/extensions.m4: While at it, remove a comment mistakenly referring
18881         to "CVS Autoconf" rather than "git Autoconf".
18883 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
18885         utimensat-tests, etc.: try to fix some races
18886         Problem reported by Bernhard Voelker in
18887         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
18888         I don't know whether this patch fixes that race condition, but it
18889         fixes *some* race conditions, so it should be a win.
18890         * modules/chown-tests (Depends-on):
18891         * modules/fchownat-tests (Depends-on):
18892         * modules/fdutimensat-tests (Depends-on):
18893         * modules/futimens-tests (Depends-on):
18894         * modules/lchown-tests (Depends-on):
18895         * modules/stat-time-tests (Depends-on):
18896         * modules/utimens-tests (Depends-on):
18897         * modules/utimensat-tests (Depends-on):
18898         Depend on nanosleep, not usleep.
18899         * modules/chown-tests (test_chown_LDADD):
18900         * modules/lchown-tests (test_lchown_LDADD):
18901         * modules/stat-time-tests (test_stat_time_LDADD):
18902         New macro.
18903         * modules/fchownat-tests (test_fchownat_LDADD):
18904         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
18905         * modules/futimens-tests (test_futimens_LDADD):
18906         * modules/utimens-tests (test_utimens_LDADD):
18907         * modules/utimensat-tests (test_utimensat_LDADD):
18908         Add $(LIB_NANOSLEEP).
18909         * modules/stat-time-tests (Files): Add tests/nap.h.
18910         * tests/nap.h: Include <limits.h>, for INT_MAX.
18911         (lt_mtime): Remove.
18912         (diff_timespec): New function.
18913         (get_stat): Rename from get_mtime.  All callers changed.
18914         (nap_works): Determine the needed delay by inspecting the
18915         file system's timestamp jumps; this should be more reliable.
18916         Look at both mtime and ctime, and take the maximum of the two jumps.
18917         (nap_works, guess_delay):
18918         Return a nanosecond count, not a microsecond count.
18919         All callers changed.
18920         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
18921         failure.
18922         (nap): Multiply the guess by 1.125, to accommodate the case where
18923         the file system's clock is a bit slower than nanosleep's clock.
18924         * tests/test-stat-time.c (BASE): New macro.
18925         Include nap.h.
18926         (nap): Remove; nap.h now defines this.  This removes a duplicate
18927         implementation of 'nap'.
18929         utimens, utimensat: work around Solaris UTIME_OMIT bug
18930         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
18931         Linux kernel 2.6.32 does.  Work around it in the same way.
18932         * doc/posix-functions/futimens.texi (futimens):
18933         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
18934         * lib/utimens.c (fdutimens, lutimens):
18935         * lib/utimensat.c (rpl_utimensat): Work around the bug.
18937         gettext: now it's your responsibility to add -I$(top_builddir)/intl
18938         Formerly, it was your responsibility to do this for all Makefile.ams
18939         other than Gnulib's.  Now it's your responsibility to do it for
18940         Gnulib's Makefile.am, too.
18941         * NEWS: Document this.
18942         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
18944         acl: include errno.h to get errno
18945         Reported by Daiki Ueno in
18946         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
18947         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
18949 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
18951         tests: don't assume getdtablesize () <= 10000000
18952         * modules/cloexec-tests:
18953         * modules/dup2-tests:
18954         * modules/dup3-tests:
18955         * modules/nonblocking-tests:
18956         * modules/posix_spawn_file_actions_addclose-tests:
18957         * modules/posix_spawn_file_actions_adddup2-tests:
18958         * modules/posix_spawn_file_actions_addopen-tests:
18959         * modules/unistd-safer-tests:
18960         Depend on the getdtablesize module.
18961         * tests/test-cloexec.c:
18962         * tests/test-dup-safer.c:
18963         * tests/test-dup2.c:
18964         * tests/test-dup3.c:
18965         * tests/test-fcntl.c:
18966         * tests/test-nonblocking.c:
18967         * tests/test-posix_spawn_file_actions_addclose.c:
18968         * tests/test-posix_spawn_file_actions_adddup2.c:
18969         * tests/test-posix_spawn_file_actions_addopen.c:
18970         Don't assume getdtablesize () <= 10000000.
18972 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
18974         extern-inline: work around bug in Sun c99
18975         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
18976         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
18978 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
18980         qacl: new module, broken out from the acl module
18981         This is for GNU Emacs, which wants the acl functions but does
18982         not want 'error' invoked when they fail.
18983         * lib/acl-internal.h: Do not include error.h, quote.h.
18984         (ENOSYS, ENOTSUP): Remove; no longer needed.
18985         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
18986         * lib/acl.h: Include <stdbool.h>.
18987         (acl_errno_valid): New function.
18988         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
18989         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
18990         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
18991         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
18992         (ACL_INTERNAL_INLINE): Remove; no longer needed.
18993         * lib/file-has-acl.c (file_has_acl):
18994         * lib/qcopy-acl.c (qcopy_acl):
18995         * lib/qset-acl.c (qset_acl):
18996         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
18997         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
18998         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
18999         lib/file-has-acl.c, m4/acl.m4 to qacl module.
19000         Add lib/set-acl.c.
19001         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
19002         Add qacl.
19003         (configure.ac): Move gl_FUNC_ACL to qacl module.
19004         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
19005         Rename set-mode-acl.c to set-acl.c.
19006         * lib/acl-errno-valid.c: New file.
19007         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
19008         copy_acl function remains in copy-acl.c.
19009         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
19010         (_): Remove; not needed.
19011         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
19012         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
19013         * modules/qacl: New file, moved from the old modules/acl.
19014         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
19015         Remove set-mode-acl.c, copy-acl.c.
19016         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
19018         alignof, intprops, malloca: port better to IBM's C compiler
19019         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
19020         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
19021         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
19023 2013-04-25  Daiki Ueno  <ueno@gnu.org>
19025         wctype-h: fix gettext link error on mingw
19026         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
19027         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
19028         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
19029         rpl_towupper and rpl_towupper.
19031 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
19033         regex-tests, regex: allow glibc re_search behavior
19034         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
19035         re_search input data to make the multi-character collating element
19036         in it clearly visible, and treat re_search return code 0 as valid.
19037         * m4/regex.m4 (gl_REGEX): Likewise.
19039 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19041         stdalign: doc fix
19042         * doc/posix-headers/stdalign.texi (stdalign.h):
19043         Gnulib doesn't support '_Alignof expr'.
19045 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
19047         stdalign: port to stricter ISO C11
19048         ISO C11 says that _Alignof's operand must be a parenthesized type.
19049         Problem reported by Eli Zaretskii in
19050         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
19051         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
19052         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
19054 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19056         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
19057         Problem reported by Marco Atzeri in
19058         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
19059         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
19060         Simply delegate to the system <sys/select.h> in this case too.
19061         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
19062         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
19063         be needed on Solaris either.
19064         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
19065         Simply delegate to the system <sys/time.h> in this case.
19067 2013-03-19  Karl Berry  <karl@gnu.org>
19069         * build-aux/gnupload: check for erroneous (with gnupload) use of
19070         ftp-upload.gnu.org, tweak help.
19072 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19074         copy-file, rpmatch: fix problems found by cppcheck
19075         Reported by Arno Onken in
19076         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
19077         * lib/rpmatch.c (try): Fix memory leak.
19078         * lib/copy-file.c: Include "ignore-value.h".
19079         (qcopy_file_preserving): Ignore chown value.
19080         * modules/copy-file (Depends-on): Add ignore-value.
19082 2013-01-27  Jim Meyering  <jim@meyering.net>
19084         prefix-gnulib-mk: give better diagnostics
19085         * build-aux/prefix-gnulib-mk: Don't just "die".
19086         Give better diagnostics upon failure.
19088 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19090         putenv: port to Solaris 10
19091         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
19092         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
19093         is not what is wanted here.
19094         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
19095         declaration, not for its existence.
19097 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
19099         mktime: fix configure typo
19100         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
19102 2013-03-12  Eric Blake  <eblake@redhat.com>
19104         regex-tests: skip UTF-8 test on mingw
19105         * modules/regex-tests (Depends-on): Add localcharset.
19106         * tests/test-regex.c (main): Use it to skip test on mingw.
19108 2013-03-11  Eric Blake  <eblake@redhat.com>
19110         tests: make it easier to bypass alarm time in debugger
19111         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
19112         * tests/test-memmem.c (main): Likewise.
19113         * tests/test-passfd.c (main): Likewise.
19114         * tests/test-ptsname.c (main): Likewise.
19115         * tests/test-ptsname_r.c (main): Likewise.
19116         * tests/test-strcasestr.c (main): Likewise.
19117         * tests/test-strstr.c (main): Likewise.
19119         regex: port to mingw's recent addition of undeclared alarm
19120         * doc/posix-functions/alarm.texi (alarm): Document that alarm
19121         exists but still doesn't work in newer mingw.
19122         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
19123         not existence.  Ensure SIGALRM is not trapped.
19124         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
19125         * m4/regex.m4 (gl_REGEX): Likewise.
19126         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
19127         * tests/test-regex.c (main): Use correct probe for alarm.
19129         putenv: avoid compilation warning on mingw
19130         * lib/putenv.c (_unsetenv): Protect variable declaration.
19131         (putenv): Fix indentation.
19133 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
19135         unistd: don't prevent Tru64 Unix from using gnulib strtod.
19136         * lib/unistd.in.h: be careful not to include un-needed system
19137         stdlib.h from here, because that prevents gnulib stdlib.h from
19138         defining rpl_strtod correctly.
19140 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
19142         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
19143         changesets, but for the 'precision 0' test.
19144         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19145         round-to-even, since POSIX says rounding is implementation-defined
19146         and OS X 10.8.2 rounds 1.51 to 1 here.
19148         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
19149         changeset.
19150         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19151         round-to-even, since POSIX says rounding is implementation-defined
19152         and OS X 10.8.2 rounds 1.5 to 1 here.
19154 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19156         vasnprintf-posix-tests: allow rounding 1.5 to 1
19157         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
19158         round-to-even, since POSIX says rounding is implementation-defined
19159         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
19160         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
19162         bootstrap: port to FreeBSD
19163         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
19164         that treat '--' differently.  Reported by Mats Erik Andersson in
19165         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
19167 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
19169         regex: rename remaining __attribute calls to __attribute__.
19170         2012-02-25 changed definition of __attribute, but left some uses
19171         unchanged, preventing compilation of regex module on most non-gcc
19172         environments.
19173         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
19174         (lookup_collation_sequence_value, build_range_exp)
19175         (build_collating_symbol): Set attributes with newly renamed
19176         __attribute__ decorator.
19177         * lib/regex_internal.c (re_string_peek_byte_case)
19178         (re_node_set_compare, re_node_set_contains): Likewise.
19179         * lib/regexec.c (acquire_init_state_context): Likewise.
19181 2013-03-06  Bruno Haible  <bruno@clisp.org>
19183         execute: Revert last change, but use a different condition.
19184         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
19185         on Windows.
19187 2013-03-05  Eric Blake  <eblake@redhat.com>
19189         execute: drop dead code
19190         * lib/execute.c (nonintr_close, nonintr_open): Delete.
19192 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
19194         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
19195         * m4/non-recursive-gnulib-prefix-hack.m4
19196         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
19197         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
19198         <http://bugs.gnu.org/10305#237>.
19200 2013-03-04  Eric Blake  <eblake@redhat.com>
19202         test-getsockopt: avoid compiler warning
19203         * tests/test-getsockopt.c (includes): Ensure close is declared.
19205 2013-03-02  Bruno Haible  <bruno@clisp.org>
19207         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
19208         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
19210 2013-03-02  Bruno Haible  <bruno@clisp.org>
19212         gettext: Update to version 0.18.2.
19213         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
19214         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
19215                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
19217 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19219         regex: merge patches from libc
19221         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19222         * lib/regex_internal.h (__attribute__): Rename from __attribute.
19223         All uses changed.
19224         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
19225         (re_string_wchar_at, re_string_elem_size_at):
19226         Mark function as possibly unused.
19228         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
19229         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
19230         elements compare against the byte sequence of it, not its name.
19232 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
19234         putenv: port better to native Windows
19235         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19236         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
19237         (_unsetenv): Use _putenv if available.
19238         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
19239         a bit less likely to cause damage.
19240         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19241         Fix the wrong value with SetEnvironmentVariable.
19242         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
19243         code better.
19245 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19247         regex: ignore old-style-definition warnings
19248         * lib/regex.c: Add pragma to ignore these warnings.
19249         Problem reported for GNU tar by Pavel Raiskup.
19251 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
19253         getcwd: support coreutils better
19254         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
19255         but this might not be correct in coreutils, which disables
19256         the raw decl checks.  Problem reported by Nagendra in
19257         <http://bugs.gnu.org/10305#192>.
19258         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
19259         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
19260         Test the getcwd function, not any macro, since getcwd.c wants the
19261         function.
19262         * m4/getcwd.m4 (gl_FUNC_GETCWD):
19263         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
19264         compile, as might happen if there's a macro but no function.
19266         strtod: support coreutils better
19267         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
19268         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
19269         disables the raw decl checks.  This assumes there is an underlying
19270         strtod, but that's a safe assumption these days.
19271         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
19273         mountlist: port to HP NonStop
19274         Reported by Joachim Schmitz in
19275         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
19276         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
19277         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
19279 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19281         extern-inline: avoid compilation error with HP-UX cc
19282         Reported by Richard Lloyd in
19283         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
19284         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19285         Suppress extern inline with HP-UX cc.  This should be safe,
19286         though it may hurt performance.  Perhaps someone with some HP-UX
19287         experience can come up with a higher-performance fix.
19289 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19291         putenv: fix heap corruption with mixed putenv/_putenv
19292         Problem reported by Michael Goffioul in
19293         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
19294         * lib/putenv.c (putenv) [HAVE__PUTENV]:
19295         Rely on _putenv to allocate the new environment.
19296         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
19297         * modules/putenv (configure.ac): Use it.
19299 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
19301         unsetenv etc.: port to Solaris 11 + GNU Emacs
19302         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
19303         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
19304         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
19305         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
19306         idea but is too painful to fix right now), and without this gnulib
19307         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
19308         compiling unsetenv.c on Solaris 11.  Fix the problem for
19309         unsetenv.c, and fix other similar occurrences.
19311 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19313         secure_getenv: fix C++ declaration typo
19314         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
19315         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
19316         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
19318 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19320         careadlinkat: stop exporting careadlinkatcwd
19321         Only Emacs used it directly, and Emacs no longer needs it.
19322         * NEWS: Document this simplification.
19323         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
19324         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
19325         for readlink.
19326         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
19327         Don't include stdlib.h; no longer needed.
19328         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
19329         * lib/relocwrapper.c: Adjust comment to match new dependencies.
19330         * modules/areadlink (Depends-on): Add readlink.
19331         (Maintainer): Add self.
19332         * modules/careadlinkat (Depends-on): Remove readlink.
19334         extensions: port better to HP-UX
19335         This is merged from git Autoconf.
19336         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19337         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
19338         so that it's compatible with the value used when compiling.
19340         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
19341         Problem reported by Mats Erik Andersson in
19342         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
19343         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19344         openpty function exists, not merely when we intend to replace it.
19345         This corrects the 2013-01-31 patch, which mistakenly defined
19346         HAVE_OPENPTY even on hosts that lacked it.
19348 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
19350         secure_getenv: fix include typo
19351         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
19353         secure_getenv: port better to FreeBSD and Solaris
19354         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
19355         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
19356         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
19357         This works better on BSDish platforms.
19358         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
19359         Test for issetugid if __secure_getenv is missing.
19361 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19363         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
19364         Some of these changes are merged in from git Autoconf.
19365         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
19366         When deciding whether to define _XOPEN_SOURCE, inspect the
19367         preprocessor macro __hpux instead of the more-heavyweight
19368         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
19369         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
19370         as the key for __EXTENSIONS__.
19372         unistd: avoid namespace pollution on non-glibc systems
19373         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
19374         This avoids namespace pollution on non-glibc systems, by causing
19375         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
19376         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
19377         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
19379 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19381         tmpdir: use secure_getenv
19382         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
19383         Define to secure_getenv, not getenv.
19384         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
19385         as that's now secure_getenv's job.
19386         * modules/tmpdir (Depends-on): Add secure_getenv.
19388         tempname: use secure_getenv
19389         * lib/tempname.c (__secure_getenv) [!_LIBC]:
19390         Define to secure_getenv, not getenv.
19391         * modules/tempname (Depends-on):
19392         Add secure_getenv.
19394         secure_getenv: new module
19395         * MODULES.html.sh (Extra functions based on ANSI C 89):
19396         Add secure_getenv.
19397         * doc/glibc-functions/secure_getenv.texi: New file.
19398         * doc/gnulib.texi: Include it.
19399         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
19400         New files.
19401         * lib/stdlib.in.h (secure_getenv): New decl.
19402         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
19403         * modules/stdlib (stdlib.h):
19404         Add secure_getenv checks.
19406 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19408         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
19409         Reported for OS X 10.8.2 by Assaf Gordon in
19410         <http://bugs.gnu.org/13516>.
19411         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
19412         !HAVE_OPENAT && !HAVE_FDOPENDIR.
19413         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
19414         so that they can be kept in sync more easily.  Avoid PATH_MAX
19415         test on the Hurd.  Sync from test-getcwd.c for errno tests after
19416         mkdir or chdir failure.
19417         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
19418         lib/getcwd.c.
19419         (test_abort_bug): Do not test for the deep directory bug unless we
19420         have openat support.  Avoid PATH_MAX test on the Hurd.
19422         regex-tests, regex: fix bug: memset undeclared
19423         * tests/test-regex.c: Don't include regex.h twice.  Include
19424         string.h, to declare memset.  Christensen's report also mentioned
19425         this issue.
19426         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
19427         test-regex.c, to avoid future problems like this.  Remove
19428         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
19429         twice.
19431         regex-tests: fix link errors on older Solaris
19432         These need to link with @LIBINTL@ to get libintl_gettext.
19433         Problem reported by Tom G. Christensen in
19434         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
19435         * modules/regex-tests (test_regex_LDADD): New macro.
19437 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19439         regex-tests: new module
19440         * modules/regex-tests, tests/test-regex.c: New files.
19442         regex: fix off-by-one error in configure test
19443         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
19445 2013-01-31  Eric Blake  <eblake@redhat.com>
19447         regex: avoid infinite configure test
19448         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
19450 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
19452         openpty: fix bug where HAVE_OPENPTY wasn't defined
19453         See the thread starting at:
19454         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
19455         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
19456         openpty function exists, not merely when we intend to replace it.
19458 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19460         sys_time: port to Solaris 2.6
19461         There is a circularity problem on Solaris 2.6, where <time.h> includes
19462         <sys/time.h> for struct timespec.  The include nesting is gnulib
19463         <time.h>, system <time.h>, gnulib <sys/time.h>, system
19464         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
19465         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
19466         <sys/siginfo.h>; the last, innermost file needs struct
19467         timestruc_t, which is defined in <sys/time.h>, which has not been
19468         fully parsed.  Problem reported by Tom G. Christensen in
19469         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
19470         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
19471         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
19472         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
19473         uses split double-inclusion guards.
19475 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19477         regex: test for buffer overrun
19478         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
19479         for the just-fixed regex bug.
19481 2013-01-29  Andreas Schwab  <schwab@suse.de>
19483         regex: fix buffer overrun in regexp matcher [BZ #15078]
19484         * lib/regexec.c (extend_buffers): Add parameter min_len.
19485         (check_matching): Pass minimum needed length.
19486         (clean_state_log_if_needed): Likewise.
19487         (get_subexp): Likewise.
19489 2013-01-28  Pádraig Brady  <P@draigBrady.com>
19491         mountlist: don't consider "devtmpfs" as dummy
19492         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
19493         as there is storage associcated with it.
19495 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
19497         futimens-tests, utimens-tests: Depend on gettext.
19498         This works around a problem introduced in my 2013-01-12 patch,
19499         which added @LIBINTL@ to these modules.
19500         * modules/futimens-tests (Depends-on):
19501         * modules/utimens-tests (Depends-on): Add gettext.
19503 2013-01-26  Eric Blake  <eblake@redhat.com>
19505         test-getpeername: fix typo
19506         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
19508 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
19510         bootstrap: remove the need for a sorted .gitignore file
19511         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
19512         rename to insert_if_absent(), so that we don't need or generate
19513         a sorted .gitignore file.  We do require a .gitignore with no
19514         existing duplicate entries and enforce that.
19515         (sort_patterns): Remove this function as we now use the simpler
19516         technigue of inserting blacklist entries at the top of the file,
19517         assuming gnulib won't be inserting !whitelist entries.
19519 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19521         readlinkat: don't depend on gl_FUNC_OPENAT
19522         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
19523         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
19524         renameat.m4, symlinkat.m4; but one thing at a time.
19526         statat: new module, split out from fstatat
19527         GNU Emacs needs the POSIX-specified fstatat, but not the
19528         gnulib-specified statat and lstat.  Split the latter two into a
19529         new module 'statat'.
19530         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
19531         * lib/openat.h, lib/statat.c (STATAT_INLINE):
19532         Rename from FSTATAT_INLINE. All uses changed.
19533         * modules/fstatat (Files): Remove lib/statat.c.
19534         (gl_MODULE_INDICATOR([fstatat])): Remove.
19535         (lib_SOURCES): Remove.
19536         (Maintainer): Add self.
19537         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
19538         * tests/test-fstatat.c (BASE): Don't define if already defined.
19539         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
19541 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
19543         tests: don't assume fd 99 is closed
19544         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
19545         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
19546         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
19547         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
19548         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
19549         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
19550         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
19551         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
19552         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
19553         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
19554         * tests/test-fwrite.c, tests/test-getpeername.c:
19555         * tests/test-getsockname.c, tests/test-getsockopt.c:
19556         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
19557         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
19558         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
19559         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
19560         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
19561         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
19562         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
19563         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
19564         * tests/test-unlinkat.c, tests/test-unlockpt.c:
19565         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
19566         Close file descriptor 99, instead of assuming it's already closed.
19568 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19570         stpncpy: port to OS X 10.8
19571         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
19572         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
19574 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
19576         unistd: port to recent mingw
19577         * lib/unistd.in.h: Remove special invocation convention for mingw,
19578         which breaks for the latest mingw version.  See John W. Eaton in
19579         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
19581         largefile: port better to Mac OS X 10.5
19582         This patch is backported from Autoconf git.
19583         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
19584         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
19585         with ino_t size being different for configuration time versus
19586         build/run time.  Problem reported by PHO in
19587         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
19589 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
19591         doc: clarify -Werror
19592         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
19593         clarify that it's intended for developers, not for ordinary builds,
19594         and mention --enable-gcc-warnings as one possible use.
19596 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
19598         stdint: fix build with Android's Bionic fox x86
19599         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
19600         was already included as _SSIZE_T_DEFINED_ might also be defined
19601         in include/machine/_types.h, which is included by stdio.h
19603 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
19605         net_if-tests: port to Solaris 7 + GCC 3.4.6
19606         Problem reported by Tom G. Christensen in
19607         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
19608         * tests/test-net_if.c (ni): Move to next the code that uses it,
19609         so that it's declared only if needed.
19611 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
19613         net_if-tests: port to older Solaris
19614         Problem reported by Tom G. Christensen in
19615         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19616         * modules/net_if-tests (NET_IF_LIB): New substitution.
19617         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
19618         (HAVE_IF_NAMEINDEX): New C macro.
19619         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
19621         system-quote-tests: port to older Solaris
19622         Problem reported by Tom G. Christensen in
19623         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19624         * tests/test-system-quote-child.c (fopen, fread): Undef.
19626         c-xvasprintf etc.: fix link errors on older Solaris
19627         These need to link with @LIBINTL@ to get libintl_gettext.
19628         Problem reported by Tom G. Christensen in
19629         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
19630         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
19631         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
19632         * modules/futimens-tests (test_futimens_LDADD):
19633         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
19635 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19637         locale: port to Solaris 2.6 and 7 + GNU gettext
19638         * lib/locale.in.h: Just include_next <locale.h> when
19639         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
19640         when combining the localename module with GNU gettext 0.18.2.
19641         Problem reported by Tom G. Christensen in
19642         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
19644 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
19646         stdlib: port to Solaris 2.6
19647         Also, the code worked on Solaris 7 through 9 only by accident.
19648         Problem reported by Tom G. Christensen in
19649         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
19650         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
19651         simply include the system stdlib.h.
19652         * lib/getopt.in.h (__need_system_stdlib_h):
19653         * lib/pthread.in.h (__need_system_stdlib_h):
19654         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
19655         Define when including <stdlib.h>, to avoid problems at least for
19656         the pthread case on Solaris 2.6 and 7.  These .h files can get by
19657         with the system stdlib.h.
19659 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
19661         doc: update main copyright year
19662         * doc/gnulib.texi: Update copyright date.
19664         doc: improve ISO 8601 discussion
19665         * doc/parse-datetime.texi (Combined date and time of day items):
19666         Specify more carefully what formats are supported and what is
19667         done with excess precision.
19669 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
19671         doc: avoid small caps
19672         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
19673         they're more trouble than they're worth.  Suggested by Karl Berry
19674         in <http://bugs.gnu.org/13360>.
19676         regex: conform to strict C
19677         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
19678         From Aharon Robbins.
19680         gnulib-tool: fix incompatibility with autopoint 0.18.2
19681         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
19682         Problem reported by Tom G. Christensen in
19683         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
19685 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19687         fprintftime: bring back and reword fwrite comment
19688         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
19690         stdio: remove now-unnecessary stdio.c
19691         Since stdio.in.h no longer uses inline functions, we no longer
19692         need to compile the extern versions.
19693         * lib/stdio.c: Remove.
19694         * modules/stdio (Files): Remove lib/stdio.c.
19695         (lib_SOURCES): Remove.
19697         unicodeio: depend on stdio, not ignore-value
19698         * lib/unicodeio.c: Do not include ignore-value.h.
19699         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
19700         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
19702         fprintftime: depend on stdio, not ignore-value
19703         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
19704         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
19705         since the stdio module arranges to silence that warning now.
19706         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
19708 2012-10-04  Simon Josefsson  <simon@josefsson.org>
19710         stdint-tests: Fix expanded-before-required-warning.
19711         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
19713 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
19715         fwrite: silence __wur only for older glibc versions
19716         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
19717         This will help us remove this workaround some time in the far future.
19719 2013-01-03  Eric Blake  <eblake@redhat.com>
19721         fwrite: silence __wur without using inline
19722         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
19723         just gcc, and in a way that avoids inline issues.
19724         * modules/stdio (Depends-on): Drop extern-inline.
19726 2013-01-03  Jim Meyering  <jim@meyering.net>
19728         update-copyright: avoid copyright notice date corruption
19729         Given a sequence of copyright year numbers in which the final
19730         one was a two-digit number that happened to be a substring of
19731         a preceding four-digit year number, we would mistakenly update
19732         the substring (from two- to four-digit) rather than the two-digit
19733         number at the end, which, combined with the addition of the current
19734         4-digit year number would yield two 5-digit year numbers, e.g.,
19735         here, it would convert the first "99" to "1999, 2013" rather than
19736         the final one:
19737           1991, 99
19738           11999, 20131, 1999
19739         * build-aux/update-copyright: Tighten a regexp.
19740         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
19741         Reported by Joseph Myers in
19742         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
19744 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19746         regex: omit needless signed-pointer casts
19747         * lib/regcomp.c (build_charclass, build_charclass_op):
19748         Use char *, not unsigned char *, for class name and extra.
19749         The char values are always nonnegative so there's no need to
19750         insist on unsigned char * here, and using char * removes the need
19751         for casts.  Reported by Aharon Robbins in
19752         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19754         regex: support Gawk, which never uses alloca
19755         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
19756         Do not include in this case.  Gawk doesn't supply a substitute
19757         alloca.h and doesn't need one.
19759         regex: port __libc_lock_define usage to C89
19760         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
19761         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
19762         does not conform to C89, as it has an empty macro argument.
19763         Reported by Aharon Robbins in
19764         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19766 2013-01-01  Eric Blake  <eblake@redhat.com>
19768         maint: update all copyright year number ranges
19769         Run "make update-copyright".
19771         version-etc: bump copyright year reported in --version
19772         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
19774 2012-12-31  Eric Blake  <eblake@redhat.com>
19776         sigprocmask-tests: skip test if pid is unexpectedly large
19777         * tests/test-sigprocmask.c (main): Add range check.
19779         git-version-gen: avoid test -z portability glitch
19780         * build-aux/git-version-gen: Prefer portable test spelling, since
19781         git-version-gen is run on more than just developer machines.
19783 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
19785         git-version-gen: add --fallback option to use if git is not present
19786         * build-aux/git-version-gen: Add support for the new option --fallback,
19787         which comes into play when there is no $tarball_version_file and
19788         git is not working.
19789         (scriptversion): Update.
19791         maint.mk: handle missing git with more grace
19792         * top/maint.mk (no-submodule-changes, public-submodule-commit):
19793         Quietly proceed if git is not present.
19795 2012-12-31  Eric Blake  <eblake@redhat.com>
19797         dup2: work around cygwin bug
19798         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
19799         * lib/dup2.c (rpl_dup2): Work around it.
19800         * doc/posix-functions/dup2.texi (dup2): Document it.
19802 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19804         regex: remove unnecessary dependency on localcharset.h
19805         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
19806         hasn't been needed for years.
19807         * modules/regex (Depends-on): Remove localcharset.
19809         regex: revert single-byte change
19810         * lib/regexec.c (check_node_accept_bytes): Revert previous change
19811         to this function.  This was alredy fixed in a different way, at
19812         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
19813         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
19814         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
19816         regex: simplify based on Gawk version
19817         * lib/regex_internal.c (re_dfa_add_node): Simplify.
19818         Reported by Aharon Robbins in
19819         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19821 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19823         regex: check that pattern char is single-byte
19824         Reported by Aharon Robbins in
19825         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19826         * lib/regexec.c (check_node_accept_bytes):
19827         Return 0 if the pattern string has a multibyte character here.
19829         regex: implement rational ranges
19830         Reported by Aharon Robbins in
19831         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19832         * lib/regcomp.c (build_range_exp) [!_LIBC]:
19833         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
19834         Implement rational ranges.
19836         regex: avoid redefining __wctype
19837         Reported by Aharon Robbins in
19838         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19839         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
19840         #undef before defining.
19842         regex: port to hosts where malloc (0) == NULL
19843         Reported by Aharon Robbins in
19844         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19845         * lib/regex_internal.c (re_node_set_alloc):
19846         Don't assume that malloc (0) yields nonnull.
19847         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
19848         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
19849         * modules/regex (Files): Add m4/eealloc.m4.
19851         regex: port to C89
19852         Reported by Aharon Robbins in
19853         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
19854         * lib/regcomp.c (init_word_char): Declaration before statement.
19856         regex: merge glibc changes
19857         Also, copy the license wording from glibc.  This simplifies
19858         merging changes.  gnulib-tool will change the wording to GPL as
19859         appropriate, when importing it to other packages.  The only
19860         glibc change made since the last merge, which needs merging, is:
19861         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
19862         * lib/regex_internal.h (gettext): Remove use of INTUSE.
19864         * users.txt: Add Emacs.
19866         doc: omit mention of version when not needed
19867         * doc/gnulib-intro.texi (Portability and Application Code):
19868         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
19869         Don't mention particular dates or versions when not necessary, so
19870         that the documentation won't go out of date so quickly.
19872         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
19874 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
19876         bootstrap: pass --force to autoreconf.
19877         * build-aux/bootstrap (AUTORECONFFLAGS): New.
19878         Add "--force" so that Automake's ylwrap and other such tools
19879         be updated at each bootstrap invocation.
19880         Use it.
19882 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19884         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
19885         The earlier patch forgot to update one of the #if conditions, causing
19886         a problem on Debian testing i386 reported by Mats Erik Andersson
19887         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
19888         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
19889         (__argp_fmtstream_puts, argp_fmtstream_puts)
19890         (__argp_fmtstream_write, argp_fmtstream_write)
19891         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
19893         * doc/gnulib-readme.texi: Minor fixups.
19894         (Portability guidelines): Modernize URLs.  Remove some repetition.
19895         (Indent with spaces not TABs): Reword to avoid too-long lines.
19896         Remove some '@ifset standalone' stuff that isn't used.
19898         * doc/gnulib-readme.texi (Portability guidelines):
19899         ctype.h, not ctime.h.
19901         Correct name of POSIX.1-2001.
19902         * doc/posix-functions/fgetc.texi (fgetc):
19903         * doc/posix-functions/fgets.texi (fgets):
19904         * doc/posix-functions/fread.texi (fread):
19905         * doc/posix-functions/fscanf.texi (fscanf):
19906         * doc/posix-functions/getc.texi (getc):
19907         * doc/posix-functions/getchar.texi (getchar):
19908         * doc/posix-functions/scanf.texi (scanf):
19909         POSIX.1-2001, not POSIX-2001.
19911         doc: move README into manual
19912         * README: Move contents to new file doc/gnulib-readme.texi.
19913         Replace with a one-line summary.
19914         * doc/gnulib.texi (Brief Overview): New section,
19915         with old intro preface.  Include gnulib-readme.texi for contents.
19916         (Philosophy): Rename from "Introduction", since this
19917         section no longer introduces the rest.  Write a new preface.
19918         * doc/gnulib-readme.texi: New file, with the old contents of
19919         README texinfo-ized.  This way, the README info appears
19920         in the online and printed manual.
19922 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
19924         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
19925         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
19926         c_vasprintf() prototype.
19928 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
19930         c-vasprintf: Fix "empty declaration" warning reported by GCC.
19931         * lib/c-vasprintf.h: Remove stray semicolon.
19933 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19935         gettext: avoid obsolete macro AM_PROG_MKDIR_P
19936         It is obsolete and is planned to be removed from Automake 1.14; see
19937         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
19938         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
19939         (installdirs-data, installdirs-data-yes):
19940         Use $(MKDIR_P), not $(mkdir_p).
19941         * m4/intl.m4 (AM_INTL_SUBDIR):
19942         * m4/po.m4 (AM_PO_SUBDIRS):
19943         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
19945 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19947         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
19948         On this platform, we are not optimizing but we are using
19949         the substitute for extern inlines, so compile as if
19950         C99-style extern inline, or a substitute, is available.
19951         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
19952         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
19953         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
19954         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
19955         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
19956         Declare as ARGP_FS_EI, not as extern.
19957         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
19958         (__option_is_short, _option_is_end, __option_is_end)
19959         [!_LIBC && __USE_EXTERN_INLINES]:
19960         Declare as ARGP_EI, not as extern.
19962 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19964         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
19965         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
19966         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
19967         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
19968         ...), as the latter is fatal with older Autoconfs.
19969         Problem reported and fix suggested by Eric Blake in thread starting at
19970         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
19972 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19974         AC_PROG_MKDIR_P: don't workaround if not buggy
19975         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
19976         Define only for Autoconf versions before 2.62.
19977         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
19978         undocumented m4_PACKAGE_VERSION, for consistency with the
19979         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
19980         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
19981         was introduced in 2.62.
19983 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
19985         New 'c-*printf' modules for formatted output in C locale.
19987         New module 'c-vasnprintf'.
19988         * modules/c-vasnprintf: New file.
19989         * lib/c-vasnprintf.c: New file.
19990         * lib/c-vasnprintf.h: New file.
19992         New module 'c-snprintf'.
19993         * modules/c-snprintf: New file.
19994         * modules/c-snprintf-tests: New file.
19995         * lib/c-snprintf.c: New file.
19996         * lib/c-snprintf.h: New file.
19997         * tests/test-c-snprintf.c: New file.
19998         * tests/test-c-snprintf.sh: New file.
20000         New module 'c-vsnprintf'.
20001         * modules/c-vsnprintf: New file.
20002         * modules/c-vsnprintf-tests: New file.
20003         * lib/c-vsnprintf.c: New file.
20004         * lib/c-vsnprintf.h: New file.
20005         * tests/test-c-vsnprintf.c: New file.
20006         * tests/test-c-vsnprintf.sh: New file.
20008         New module 'c-vasprintf'.
20009         * modules/c-vasprintf: New file.
20010         * modules/c-vasprintf-tests: New file.
20011         * lib/c-asprintf.c: New file.
20012         * lib/c-vasprintf.c: New file.
20013         * lib/c-vasprintf.h: New file.
20014         * tests/test-c-vasprintf.c  +: New file.
20015         * tests/test-c-vasprintf.sh: New file.
20017         New module 'c-xvasprintf'.
20018         * modules/c-xvasprintf: New file.
20019         * modules/c-xvasprintf-tests: New file.
20020         * lib/c-xasprintf.c: New file.
20021         * lib/c-xvasprintf.c: New file.
20022         * lib/c-xvasprintf.h: New file.
20023         * tests/test-c-xvasprintf.c: New file.
20024         * tests/test-c-xvasprintf.sh: New file.
20026 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20028         argp: better 'inline'
20029         Use extern-inline module to declare extern inline functions.
20030         This avoids some bogus warning diagnostics.  Problem discovered
20031         when modifying GNU tar to use the manywarnings module.
20032         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
20033         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
20034         Define based on extern-inline.
20035         * modules/argp (Depends-on): Add extern-inline.
20037 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
20039         filemode, sys_stat: Handle MPX files a la AIX.
20040         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
20041         * lib/sys_stat.in.h (S_ISMPX): New macro.
20042         * tests/test-sys_stat.c: Add tests for MPX files.
20044 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20046         x-to-1: honor $PERL
20047         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
20048         a chance to use his preferred version of Perl.  This is typically
20049         required by Darwin users whose default /usr/bin/perl does not have all
20050         the libraries required by help2man, and who need to use their MacPorts
20051         installation of Perl instead.
20053 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20055         gnu-web-doc-update: add all the new files, even in new directories
20056         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
20057         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
20058         Use it.
20059         (main): Don't use cvsutils to get the list of unknown files,
20060         just add all the existing files and directories.
20062 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20064         gnu-web-doc-update: improve --help
20065         * build-aux/gnu-web-doc-update: Move comments into --help.
20067 2012-12-07  Eric Wong  <normalperson@yhbt.net>
20069         mountlist: recognize more "dummy" file systems
20070         * lib/mountlist.c (ME_DUMMY_0):
20071         Add these dummy FS names to the list:
20072         - "debugfs" virtual filesystem for kernel debugging
20073         - "devpts" PTY slave filesystem
20074         - "devtmpfs" device filesystem on top of tmpfs/ramfs
20075         - "fusectl" control filesystem for FUSE
20076         - "mqueue" enumerates POSIX message queues
20077         - "rpc_pipefs" kernel <-> userspace bridge for NFS
20078         - "sysfs" is for exporting kernel objects
20079         - "devfs" device filesystem for Linux 2.4 and FreeBSD
20081 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20083         extern-inline: avoid incompatibility with Darwin Libc
20084         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
20085         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
20086         Problem reported by Akim Demaille in
20087         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
20089 2012-12-11  Simon Josefsson  <simon@josefsson.org>
20091         gnupload: Work with GnuPG using gpg-agent (for smartcards).
20092         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
20093         let it handle password prompting.
20095 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
20097         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
20098         * lib/canonicalize.c (canonicalize_filename_mode):
20099         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
20100         fetching the current directory.  Don't overrun the beginning of
20101         rpath if there's no slashes after the MS-Windows drive letter.
20103 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
20105         maint.mk: avoid extra forks
20106         * top/maint.mk (_cfg_mk): The GNU make manual documents that
20107         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
20108         So use that instead of "$(shell test -f FILE && echo FILE)".
20110 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20112         vasnprintf: fix ASCII_ONLY typo
20113         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20114         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20115         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20116         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
20117         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
20119 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20121         list, oset, xlist, xoset: fix extern inline issue with C99
20122         This was introduced by my recent changes for 'inline'.
20123         Problem reported for gettext by Daiki Ueno in
20124         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
20125         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
20126         (gl_list_nx_create, gl_list_size, gl_list_node_value)
20127         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
20128         (gl_list_previous_node, gl_list_get_at)
20129         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
20130         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
20131         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
20132         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
20133         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
20134         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
20135         (gl_list_iterator_free, gl_sortedlist_search)
20136         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
20137         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
20138         (gl_sortedlist_remove):
20139         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
20140         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
20141         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
20142         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
20143         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
20144         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
20145         (gl_list_add_at, gl_sortedlist_add):
20146         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
20147         Wrap these extern decls inside "#if 0", because they are implemented
20148         as inline functions, and extern inline is not what's wanted here.
20149         It would simplify these .h files to remove the extern decls entirely,
20150         although a downside would be less-clear separation between
20151         specification and implementation.
20153 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20155         sys_stat: no 'static inline'
20156         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
20157         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
20159         extern-inline: no 'static inline'
20160         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
20161         Do not require AC_C_INLINE.
20162         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
20163         'static inline', for older compilers.
20165         snippet/warn-on-use: no 'static inline'
20166         * build-aux/snippet/warn-on-use.h:
20167         Remove unnecessary 'inline' in comment.
20169         rbtree-list, rbtreehash-list: no 'static inline'
20170         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
20171         * lib/gl_anytree_list2.h (node_at):
20172         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
20173         (gl_oset_first, add_nodes_to_buckets):
20174         Now static, not static inline.
20176         regex: no 'static inline'
20177         * lib/regex_internal.c (calc_state_hash):
20178         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
20179         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
20180         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
20181         Now static, not static inline.
20182         (inline) [__GNUC__ < 3 && _LIBC]:
20183         Remove macro; no longer needed.
20185         xvasprintf: no 'static inline'
20186         * lib/xvasprintf.c (xstrcat):
20187         Now static, not static inline.
20188         * m4/xvasprintf.m4 (gl_XVASPRINTF):
20189         Do not require AC_C_INLINE.
20191         parse-datetime, parse-duration: no 'static inline'
20192         * lib/parse-datetime.y (to_uchar):
20193         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
20194         (scale_n_add):
20195         Now static, not static inline.
20196         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
20197         * modules/parse-duration (configure.ac):
20198         Do not require AC_C_INLINE.
20200         getaddrinfo: no 'static inline'
20201         * lib/getaddrinfo.c (validate_family):
20202         Now static, not static inline.
20203         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
20204         Do not require AC_C_INLINE.
20206         ftruncate, fts, lstat, openat, raise: no 'static inline'
20207         * lib/ftruncate.c (chsize_nothrow):
20208         * lib/fts.c (opendirat, diropen):
20209         * lib/lstat.c (orig_lstat):
20210         * lib/openat.c (orig_openat):
20211         * lib/raise.c (raise_nothrow):
20212         Now static, not static inline.
20213         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
20214         * m4/fts.m4 (gl_FUNC_FTS_CORE):
20215         * m4/lstat.m4 (gl_PREREQ_LSTAT):
20216         * m4/openat.m4 (gl_PREREQ_OPENAT):
20217         * m4/raise.m4 (gl_PREREQ_RAISE):
20218         Do not require AC_C_INLINE.
20220         fflush, stat: no 'static inline'
20221         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20222         (clear_ungetc_buffer, disable_seek_optimization)
20223         (restore_seek_optimization, update_fpos_cache):
20224         * lib/stat.c (orig_stat):
20225         Now static, not static inline.
20226         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
20227         (update_fpos_cache):
20228         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
20229         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
20230         * m4/stat.m4 (gl_PREREQ_STAT):
20231         Do not require AC_C_INLINE.
20233         error, filevercmp: no 'static inline'
20234         * lib/error.c (is_open, flush_stdout):
20235         * lib/filevercmp.c (order):
20236         Now static, not static inline.
20237         * m4/error.m4 (gl_PREREQ_ERROR):
20238         * modules/filevercmp (configure.ac):
20239         Do not require AC_C_INLINE.
20241         dup, execute, fatal-signal, etc.: no 'static inline'
20242         * lib/dup.c (dup_nothrow):
20243         * lib/execute.c (nonintr_close, nonintr_open):
20244         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
20245         * lib/fopen.c (orig_fopen):
20246         * lib/freadseek.c (freadptrinc):
20247         * lib/freopen.c (orig_freopen):
20248         * lib/fstat.c (orig_fstat, fstat_nothrow):
20249         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
20250         (get_rusage_as_via_iterator):
20251         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
20252         * lib/getdtablesize.c (_setmaxstdio_nothrow):
20253         * lib/isatty.c (_isatty_nothrow):
20254         * lib/open.c (orig_open):
20255         * lib/read.c (read_nothrow):
20256         * lib/sigprocmask.c (signal_nothrow):
20257         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
20258         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
20259         * lib/wait-process.c (unregister_slave_subprocess):
20260         * lib/write.c (write_nothrow):
20261         Now static, not static inline.
20262         * lib/spawn-pipe.c (nonintr_open): Define only if
20263         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
20264         * m4/dup.m4 (gl_PREREQ_DUP):
20265         * m4/execute.m4 (gl_EXECUTE):
20266         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
20267         * m4/fopen.m4 (gl_PREREQ_FOPEN):
20268         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
20269         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
20270         * m4/fstat.m4 (gl_PREREQ_FSTAT):
20271         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
20272         * m4/isatty.m4 (gl_PREREQ_ISATTY):
20273         * m4/open.m4 (gl_PREREQ_OPEN):
20274         * m4/read.m4 (gl_PREREQ_READ):
20275         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
20276         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
20277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
20278         * m4/wait-process.m4 (gl_WAIT_PROCESS):
20279         * m4/write.m4 (gl_PREREQ_WRITE):
20280         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
20281         Do not require AC_C_INLINE.
20283         c-strtod, memcoll, readutmp: no 'static inline'
20284         * lib/c-strtod.c (c_locale):
20285         * lib/memcoll.c (strcoll_loop):
20286         * lib/readutmp.c (desirable_utmp_entry):
20287         Now static, not static inline.
20288         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
20289         * m4/memcoll.m4 (gl_MEMCOLL):
20290         * m4/readutmp.m4 (gl_READUTMP):
20291         Do not require AC_C_INLINE.
20293         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
20294         * lib/arctwo.c (to_uchar):
20295         * lib/md4.c (set_uint32):
20296         * lib/md5.c (set_uint32):
20297         * lib/sha1.c (set_uint32):
20298         * lib/sha256.c (set_uint32):
20299         * lib/sha512.c (set_uint64):
20300         Now static, not static inline.  This is a bit simpler, and doesn't
20301         affect performance with GCC and default optimization.
20302         * m4/arctwo.m4 (gl_ARCTWO):
20303         * m4/md4.m4 (gl_MD4):
20304         * m4/md5.m4 (gl_MD5):
20305         * m4/sha1.m4 (gl_SHA1):
20306         * m4/sha256.m4 (gl_SHA256):
20307         * m4/sha512.m4 (gl_SHA512):
20308         Do not require AC_C_INLINE.
20310         cond, lock, thread: better 'inline'
20311         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
20312         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
20313         New macros.  Use them instead of static inline, for header functions.
20314         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
20315         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20316         * lib/glthread/lock.c (gl_waitqueue_init)
20317         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
20318         * lib/glthread/thread.c (get_current_thread_handle):
20319         Change 'static inline' to 'inline'.
20320         * lib/glthread/cond.h, lib/glthread/thread.h:
20321         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20322         * m4/cond.m4 (gl_COND):
20323         * m4/lock.m4 (gl_PREREQ_LOCK):
20324         * m4/thread.m4 (gl_THREAD):
20325         Do not require AC_C_INLINE.
20326         * modules/cond, modules/thread (Depends-on): Add extern-inline.
20328         chdir-long, cycle-check, savewd: better 'inline'
20329         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
20330         (find_non_slash):
20331         * lib/cycle-check.c (is_zero_or_power_of_two):
20332         * lib/savewd.c (savewd_delegating):
20333         Change 'static inline' to 'inline'.
20334         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
20335         Replace all remaining uses of 'static inline' with it.
20336         * lib/savewd.h:
20337         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20338         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
20339         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20340         * m4/savewd.m4 (gl_SAVEWD):
20341         Do not require AC_C_INLINE.
20342         * modules/savewd (Depends-on): Add extern-inline.
20344         base32, base64: no need for 'inline'
20345         * lib/base32.c (to_uchar, get_8, decode_8):
20346         * lib/base64.c (to_uchar, get_4, decode_4):
20347         Change 'static inline' to 'inline'.
20348         * m4/base32.m4 (gl_PREREQ_BASE32):
20349         * m4/base64.m4 (gl_PREREQ_BASE64):
20350         Do not require AC_C_INLINE.
20352         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
20353         * lib/gl_array_oset.c (gl_array_nx_add_at):
20354         (gl_array_remove_at):
20355         * lib/gl_linkedhash_list.c (hash_resize_after_add)
20356         (add_to_bucket, remove_from_bucket):
20357         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
20358         Change 'static inline' to 'static', as it's simpler to omit
20359         'inline' unless there's a significant performance advantage.
20361         list, oset, xlist, xoset, xsublist: simplify via extern inline
20362         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
20363         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
20364         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
20365         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
20366         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
20367         New macro.  Replace all uses of 'static inline' with it.
20368         [HAVE_INLINE]: Implement functions as *_INLINE functions,
20369         instead of as macros FOO that are defined to static inline
20370         functions FOO_inline.
20371         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
20372         * lib/gl_xsublist.c:
20373         Reimplement from scratch, by defining the corresponding *_INLINE
20374         macro and including the corresponding .h file.  This is simpler.
20375         * modules/list, modules/oset, modules/xlist, modules/xoset:
20376         (Files): Remove m4/gl_list.m4.
20377         (configure.ac): Remove gl_LIST.
20378         * m4/gl_list.m4: Remove.
20379         * modules/list, modules/oset, modules/xlist, modules/xoset:
20380         * modules/xsublist:
20381         (Depends-on): Depend on extern-inline, not inline.
20383         xalloc: better 'inline'
20384         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
20385         New macro.  Replace all uses of 'static inline' with it.
20386         (static_inline): Remove.
20387         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
20388         Let 'extern inline' do the work automatically, instead of doing
20389         it by hand.
20390         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
20391         Remove.  All uses removed.
20392         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
20394         gethrxtime: better 'inline'
20395         * lib/xtime.c: New file.
20396         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
20397         * lib/xtime.h (XTIME_INCLUDE):
20398         New macros.  Replace all uses of 'static inline' with them.
20399         * lib/gethrxtime.c (gethrxtime): Define only if
20400         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
20401         this source file is now always compiled, because of the extern inline.
20402         * lib/gethrxtime.h, lib/xtime.h:
20403         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20404         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
20405         if gethrtime works, as they're not needed in that case.
20406         (gl_XTIME): Do not require AC_C_INLINE.
20407         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
20408         compiled now.  Move the check into gl_GETHRXTIME.
20409         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
20410         (Depends-on): Add extern-inline.
20411         (configure.ac): gethrxtime is always compiled now.
20412         (lib_SOURCES): Add gethrxtime.c.
20414         wctype-h: better 'inline'
20415         * lib/wctype-h.c: New file.
20416         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
20417         New macro.  Replace all uses of 'static inline' with it.
20418         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20419         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
20420         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
20421         (Depends-on): Add extern-inline.
20423         unistd: better 'inline'
20424         * lib/unistd.c: New file.
20425         * lib/unistd.in.h (_GL_UNISTD_INLINE):
20426         New macro.  Replace all uses of 'static inline' with it.
20427         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20428         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
20429         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
20430         (Depends-on): Add extern-inline.
20432         sys_socket: better 'inline'
20433         * lib/sys_socket.c: New file.
20434         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
20435         New macro.  Replace all uses of 'static inline' with it.
20436         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20437         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
20438         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
20439         (Depends-on): Add extern-inline.
20441         stdio: better 'inline'
20442         * lib/stdio.c: New file.
20443         * lib/stdio.in.h (_GL_STDIO_INLINE):
20444         New macro.  Replace all uses of 'static inline' with it.
20445         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20446         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
20447         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
20448         (Depends-on): Add extern-inline.
20450         sigaction: better 'inline'
20451         * lib/sig-handler.c: New file.
20452         * lib/sig-handler.h (SIG_HANDLER_INLINE):
20453         New macro.  Replace all uses of 'static inline' with it.
20454         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20455         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
20456         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
20457         (Depends-on): Add extern-inline.
20459         selinux-h: better 'inline'
20460         * lib/se-context.c, lib/se-selinux.c: New files.
20461         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
20462         * lib/se-context.in.h (SE_CONTEXT_INLINE):
20463         New macro.  Replace all uses of 'static inline' with it.
20464         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20465         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
20466         New macro.  Replace all uses of 'static inline' with it.
20467         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20468         * modules/selinux-h (Files, lib_SOURCES):
20469         Add lib/se-context.c, lib/se-selinux.c.
20470         (Depends-on): Add extern-inline.
20471         (configure.ac): Do not require AC_C_INLINE.
20473         pthread: better 'inline'
20474         * lib/pthread.c: New file.
20475         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
20476         New macro.  Replace all uses of 'static inline' with it.
20477         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20478         * m4/pthread.m4 (gl_PTHREAD_CHECK):
20479         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
20480         * modules/pthread (Files): Add lib/pthread.c.
20481         (Depends-on): Add extern-inline.
20483         math: better 'inline'
20484         * lib/math.c: New file.
20485         * lib/math.in.h (_GL_MATH_INLINE):
20486         New macro.  Replace all uses of 'static inline' with it.
20487         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20488         * m4/math_h.m4 (gl_MATH_H):
20489         Do not require AC_C_INLINE.
20490         * modules/math (Files, lib_SOURCES):
20491         Add lib/math.c.
20492         (Depends-on): Add extern-inline.
20494         count-one-bits: better 'inline'
20495         * lib/count-one-bits.c: New file.
20496         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
20497         New macro.  Replace all uses of 'static inline' with it.
20498         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20499         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
20500         Do not require AC_C_INLINE.
20501         * modules/count-one-bits (Files, lib_SOURCES):
20502         Add lib/count-one-bits.c.
20503         (Depends-on): Add extern-inline.
20505         count-leading-zeros: better 'inline'
20506         * lib/count-leading-zeros.c: New file.
20507         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
20508         New macro.  Replace all uses of 'static inline' with it.
20509         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20510         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
20511         Do not require AC_C_INLINE.
20512         * modules/count-leading-zeros (Files, lib_SOURCES):
20513         Add lib/count-leading-zeros.c.
20514         (Depends-on): Add extern-inline.
20516         bitrotate: better 'inline'
20517         * lib/bitrotate.c: New file.
20518         * lib/bitrotate.h (BITROTATE_INLINE):
20519         New macros.
20520         Replace all uses of 'static inline' with them.
20521         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20522         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
20523         (Depends-on): Add extern-inline.
20524         (configure.ac): Do not require AC_C_INLINE.
20526 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
20528         maint.mk: avoid gratuitous failure
20529         Reported by Stefano Lattarini in
20530         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
20531         * top/maint.mk (public-submodule-commit): Quote more safely.
20533 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
20535         canonicalize, canonicalize-lgpl: support MS-Windows file names
20536         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
20537         for test cases, which it'd be nice to add at some point.
20538         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
20539         * lib/canonicalize.c (canonicalize_filename_mode):
20540         * lib/canonicalize-lgpl.c (__realpath):
20541         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
20542         slash is at the beginning of the file name.  Use ISSLASH, instead
20543         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
20544         the first character with '/'.  Test for
20545         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
20546         with a drive letter.
20547         * lib/canonicalize.c (SLASHES): New macro.
20548         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
20550 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
20552         fts: introduce FTS_VERBATIM
20553         * lib/fts_.h (FTS_VERBATIM): New bit flag.
20554         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
20555         * lib/fts.c (fts_open): Honor it.
20557 2012-11-09  Pádraig Brady  <P@draigBrady.com>
20559         getlogin-tests: allow errno == ENXIO
20560         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20561         with errno == ENXIO (No controlling tty).
20562         getlogin_r-tests: Likewise. Also allow errno == ENOENT
20563         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
20564         with errno == ENOENT.  This was reported to happen in various
20565         situations on GNU/Linux.
20567 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
20569         getlogin-tests: allow errno == ENOENT
20570         * tests/test-getlogin.c (main): Skip tests if getlogin fails
20571         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
20572         when running a test in an Emacs shell buffer.
20574 2012-11-08  Jim Meyering  <jim@meyering.net>
20576         tests/nap.h: avoid warning about unused variable
20577         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
20579         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
20580         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
20581         white space before each of the special-cased file names, to avoid
20582         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
20583         in http://bugs.gnu.org/12830.
20585 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
20587         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
20588         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
20589         fails with errno == EBADF when fd is opened with O_PATH.
20590         Reported by Jim Meyering in
20591         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
20592         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
20593         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
20595 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20597         test-utimens: speed up by taking shorter naps
20598         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
20599         New functions.
20600         (nap): Use them, to do a better job of guessing the delay.
20601         On Fedora 17 with ext4 atop md atop hard disks, this made
20602         test-utimens run 10x faster, because the test napped for
20603         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
20604         <http://bugs.gnu.org/12820#11>.
20606 2012-11-07  Jim Meyering  <jim@meyering.net>
20608         mountlist.c: fix a compilation failure
20609         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
20610         I introduced while transforming commit v0.0-7683-g613bcb6
20612 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20614         errno: port to LynxOS 178 2.2.2
20615         Problem reported by Joel Brobecker in
20616         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
20617         * doc/posix-headers/errno.texi (errno.h): Document this.
20618         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
20619         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
20620         Supply a string for EILSEQ.
20621         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
20623 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20625         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
20626         Linux kernel 2.6.39 introduced O_PATH (see
20627         <http://lwn.net/Articles/433854/>) and this is a better fallback
20628         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
20629         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
20630         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
20631         * lib/fcntl.in.h (O_ACCMODE):
20632         * tests/test-fcntl-h.c (main):
20633         Do not reject O_ACCMODE merely because it has more than the
20634         minimal number of bits, as POSIX allows extensions here.
20636 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
20638         mountlist: do not classify a bind-mounted dir entry as "dummy"
20639         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
20640         the "none"-testing clause.
20641         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
20642         exception for bind-mounted directories.
20644 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
20646         quote: provide a means to escape strings with nul characters
20647         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
20648         (quote, quote_n): Rename formal arguments for consistency with
20649         quotearg.
20651 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
20653         test-raise: don't assume 199 is an invalid signal
20654         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
20656         sh-quote-tests: port to Solaris 9
20657         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
20658         Problem reported by Dagobert Michelsen in
20659         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
20661 2012-10-28  Jim Meyering  <jim@meyering.net>
20663         maint.mk: rename a new configurable variable
20664         * top/maint.mk (_gl_translatable_string_re): Rename from
20665         translation-markers: _gl_ prefix to insulate from user Makefile code,
20666         and the _re suffix to inform that it's a regular expression.
20668 2012-10-26  Eric Blake  <eblake@redhat.com>
20670         maint.mk: let packages tweak sc_po_check pattern
20671         * top/maint.mk (sc_po_check): Add translation-markers, to allow
20672         finding files with other translation markers.
20674 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
20676         euidaccess: speed up 'configure' on GNU hosts
20677         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
20678         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
20679         it's needed only in this case.  Use AC_CHECK_DECLS, not
20680         AC_CHECK_DECLS_ONCE.
20681         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
20682         or AC_REQUIRE for AC_FUNC_GETGROUPS.
20684         * lib/regexec.c (re_search_internal): Fix grammar in comment.
20686 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
20688         fchmodat, fchownat, fstatat: port to non-inlining compilers
20689         Problem reported for FreeBSD 9 by Jim Meyering in
20690         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
20691         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
20692         New files, which define FCHMODAT_INLINE etc.
20693         * lib/fchmodat.c (FCHMODAT_INLINE):
20694         * lib/fchownat.c (FCHOWNAT_INLINE):
20695         * lib/fstatat.c (FSTATAT_INLINE):
20696         Remove, as chmodat.c etc. now do this.
20697         * modules/fchmodat (Files): Add lib/chmodat.c.
20698         * modules/fchownat (Files): Add lib/chownat.c.
20699         * modules/fstatat (Files): Add lib/statat.c.
20701 2012-10-15  Jim Meyering  <jim@meyering.net>
20703         fchmodat.c, fchownat.c: compile-impeding typos
20704         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
20705         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
20706         Introduced in commit v0.0-7636-gd202279.
20708 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
20710         fcntl-h: support GNU flags like O_IGNORE_CTTY
20711         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
20712         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
20713         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
20714         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
20715         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
20716         Define to 0 if not already defined.
20717         * tests/test-fcntl-h.c: Test these new flags.
20719 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
20721         faccessat, etc.: support AT_FDCWD-only use
20722         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
20723         this function only if its first argument is AT_FDCWD.
20724         Emacs wants faccessat for AT_EACCESS but not for any first-arg
20725         values other than AT_FDCWD, so it doesn't want all the openat
20726         machinery with fchdir etc.
20727         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
20728         * modules/fstatat, modules/mkdirat, modules/openat (Files):
20729         * modules/unlinkat (Files):
20730         Remove lib/openat-priv.h, as at-internal supplies this file.
20731         Removing this file here allows us to support programs like Emacs
20732         that avoid at-internal.
20734         faccessat: speed up 'configure' on mainstream hosts
20735         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
20736         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
20737         since it's only on unusual platforms that we need to check for
20738         'access', and it's better not to slow 'configure' down on all
20739         platforms.
20741         faccessat: port to Solaris 10
20742         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
20743         Needed on Solaris 10, which doesn't have AT_EACCESS,
20744         so we need the Gnulib fcntl.h, which defines it.
20746 2012-10-14  Pádraig Brady  <P@draigBrady.com>
20747         canonicalize: fix C89 compilation
20748         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
20749         declarations so C89 is supported.  Also remove the comment
20750         referencing memorty allocation as the suggested feature could
20751         not be implemented as suggested.
20752         Reported by Michael Goffioul.
20754 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
20756         group-member: omit unnecessary dependencies
20757         This is for Emacs, which has its own allocator and where we
20758         don't want to use xalloc.
20759         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
20760         since we no longer use xmalloc.  Do not include stdbool.h, since
20761         the changes below happen to remove the only use of bool.
20762         (GROUPBUF_SIZE): New constant.
20763         (struct group_info): Remove n_groups member.  Add groupbuf member.
20764         This lets us get the groups without using malloc, usually.
20765         (free_group_info, get_group_info): Adjust to this.
20766         (get_group_info): Return the number of groups found, or -1 on error.
20767         Use plain malloc not xmalloc, and treat its failure as if there
20768         are no groups, as the user already loses in case of error.
20769         (group_member): Simplify, based on changes to get_group_info.
20770         * modules/group-member (Depends-on): Remove dependencies on
20771         xalloc and stdbool.  Add dependency on xalloc-oversized.
20773 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
20775         gethrxtime: port to C++
20776         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
20778 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
20780         ptsname: fix macro-name typo
20781         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
20783 2012-10-03  Simon Josefsson  <simon@josefsson.org>
20785         inttostr: Relax license.
20786         * modules/inttostr (License): Change from LGPL to LGPLv2+.
20788 2012-10-03  Eric Blake  <eblake@redhat.com>
20790         ptsname_r: support ptys returned by FreeBSD posix_openpt
20791         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
20792         lives in /dev/pts/.
20794 2012-10-02  Eric Blake  <eblake@redhat.com>
20796         pselect: reject invalid file descriptors
20797         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
20798         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
20799         * modules/pselect (Depends-on): Add dup2.
20800         * doc/posix-functions/pselect.texi (pselect): Document this.
20802         select: reject invalid file descriptors
20803         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
20804         * lib/select.c (rpl_select) [!win32]: Work around it.
20805         * modules/select (Depends-on): Add dup2.
20806         * doc/posix-functions/select.texi (select): Document this.
20808         select: enhance test
20809         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
20810         New functions.
20811         (test_function): Enhance test.
20812         (do_select_bad_fd): Avoid any stale errno values.
20814         ptsname: reject invalid file descriptors
20815         http://www.austingroupbugs.net/view.php?id=503
20816         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
20817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
20818         * modules/stdlib (Makefile.am): Replace witness.
20819         * lib/stdlib.in.h (ptsname): Allow for replacement.
20820         * modules/ptsname (configure.ac): Trigger replacement.
20821         * doc/posix-functions/ptsname.texi (ptsname): Document this.
20823 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
20825         hash-pjw-bare: new module
20826         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
20827         * lib/hash-pjw-bare.h: Likewise.
20828         * modules/hash-pjw-bare: New file.
20829         * MODULES.html.sh (Misc): Add it.
20831 2012-10-02  Eric Blake  <eblake@redhat.com>
20833         manywarnings: cater to more gcc infelicities
20834         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
20835         -Wuninitialized without -O.
20837 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
20839         select, poll tests: Make setsockopt invocation effective.
20840         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
20841         the bind() call.
20842         * tests/test-select.h (open_server_socket): Likewise.
20844 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
20846         sockets, sys_stat: restore AC_C_INLINE
20847         This undoes the 2012-09-22 patch.
20848         * m4/sockets.m4 (gl_SOCKETS):
20849         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
20850         Restore AC_C_INLINE, since MSVC requires __inline or _inline
20851         and does not support plain 'inline'.  Reported by Bruno Haible in
20852         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
20854 2012-09-30  Bruno Haible  <bruno@clisp.org>
20856         localeconv tests: Avoid test failure on OpenIndiana.
20857         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
20858         skip the 'grouping' and 'mon_grouping' tests.
20859         Reported by Jim Meyering.
20861 2012-09-30  Bruno Haible  <bruno@clisp.org>
20863         havelib: Follow libtool developments.
20864         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
20865         Suggested by Simon Josefsson.
20867 2012-09-29  Jim Meyering  <meyering@redhat.com>
20869         fstatat.c: fix a compile-impeding typo
20870         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
20871         Introduced in commit v0.0-7636-gd202279.
20872         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
20874 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
20876         extern-inline: provide a -Wundef safe config.h
20877         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
20878         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
20879         to produce a -Wundef warning free config.h.
20881 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20883         hash-pjw: relax license to LGPLv2+
20884         * modules/hash-pjw (License): Relax, with consent of author.
20886 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
20888         maint.mk: fix strict vs. lazy variable issues with RELEASE
20889         * top/maint.mk (_equal): New function.
20890         (member_check): Strip the result to avoid spurious spaces.
20891         (url_dir_list): Do not use ifeq, which is strict, as it will
20892         require RELEASE_TYPE to be defined.
20893         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
20894         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
20895         (announcement_Cc_alpha,announcement_mail_headers_alpha)
20896         (announcement_Cc_beta,announcement_mail_headers_beta)
20897         (announcement_Cc_stable,announcement_mail_headers_stable): these.
20898         (release): Do not depend on $(release-type), as it forces its
20899         evaluation.  Bounce to it.
20901 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
20903         maint.mk: formatting changes
20904         * top/maint.mk: Indent bodies of if's.
20906 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
20908         maint.mk: factor the validation of RELEASE_TYPE
20909         With help from Jim Meyering.
20910         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
20911         * top/maint.mk (_empty, _sp): Move their definition earlier.
20912         (member-check, release-type): New.
20913         Use the latter instead of $(RELEASE_TYPE).
20914         Remove now useless local checks.
20916 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
20918         maint.mk: provide "make upload" to ease uploading
20919         See
20920         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
20921         Do not depend simply on the current $(VERSION), as there may have been
20922         new commits since the tarball generation.  Rather, rely on $(RELEASE),
20923         as "make release-commit" already does.
20925         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
20926         "make TYPE".
20928         * top/maint.mk (upload_command, upload, release): New.
20929         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
20930         (VERSION): first word of $(RELEASE) is always right.
20931         (emit_upload_commands): Adjust.
20932         * top/README-release: Update.
20934 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
20936         maint.mk: silent rules
20937         With help from Stefano Lattarini.
20938         * top/maint.mk (writable-files): Use $(AM_V_GEN).
20939         (announcement): Use $(AM_V_at).
20941 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
20943         localename: port gl_locale_name_thread_unsafe to FreeBSD
20944         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
20945         and use the simpler FreeBSD implementation on Mac OS X as well.
20946         Original idea suggested by Ed Maste in
20947         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
20949 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20951         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
20952         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
20953         * lib/mbuiter.c, lib/xsize.c: New files.
20954         * lib/binary-io.h (BINARY_IO_INLINE):
20955         * lib/eealloc.h (EEALLOC_INLINE):
20956         * lib/mbfile.h (MBFILE_INLINE):
20957         * lib/mbiter.h (MBITER_INLINE):
20958         * lib/mbuiter.h (MBUITER_INLINE):
20959         * lib/xsize.h (XSIZE_INLINE):
20960         New macros.
20961         Replace all uses of 'static inline' with them.
20962         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20963         * m4/eealloc.m4 (gl_EEALLOC):
20964         * m4/mbfile.m4 (gl_MBFILE):
20965         * m4/mbiter.m4 (gl_MBITER):
20966         * m4/xsize.m4 (gl_XSIZE):
20967         Do not require AC_C_INLINE.
20968         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
20969         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
20970         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
20971         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
20972         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
20973         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
20974         * modules/binary-io, modules/eealloc, modules/mbfile:
20975         * modules/mbiter, modules/mbuiter:
20976         (Depends-on): Add extern-inline.
20978         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
20979         * lib/pipe-filter-aux.c: New file.
20980         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
20981         Replace all uses of 'static inline' with it.
20982         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
20983         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
20984         (filter_retcode): No real need for inline here.
20985         * modules/pipe-filter-gi, modules/pipe-filter-ii:
20986         (Files): Add lib/pipe-filter-aux.c.
20987         (Depends-on): Add extern-inline.
20988         (configure.ac): Do not require AC_C_INLINE.
20989         (lib_SOURCES): Add pipe-filter-aux.c.
20991         fdutimensat: omit unnecessary AC_C_INLINE
20992         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
20994         fchmodat, fchownat, fstatat: use extern-inline
20995         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
20996         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
20997         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
20998         New macros.
20999         * lib/openat.h:
21000         Replace all uses of 'static inline' with them.
21001         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21002         * modules/fchmodat, modules/fchownat, modules/fstatat:
21003         * modules/openat-h:
21004         (Depends-on):
21005         Add extern-inline.
21006         (configure.ac): Remove AC_C_INLINE.
21008         acl, mbchar, priv-set: use extern-inline
21009         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
21010         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
21011         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
21012         New macros.
21013         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
21014         Replace all uses of 'static inline' with it.
21015         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21016         * m4/acl.m4 (gl_FUNC_ACL):
21017         * m4/mbchar.m4 (gl_MBCHAR):
21018         * m4/priv-set.m4 (gl_PRIV_SET):
21019         Remove AC_C_INLINE, since 'inline' is no longer used directly.
21020         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
21021         Add extern-inline.
21023         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
21024         * m4/sockets.m4 (gl_SOCKETS):
21025         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21026         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
21027         environments where it's already guaranteed to work, so we needn't
21028         check for it at 'configure'-time.
21030         tls-tests: omit unnecessary 'inline'
21031         * tests/test-tls.c (perhaps_yield): No longer inline.
21032         Simplicity and portability trump efficiency in test cases.
21034         utimens-tests: avoid unnecessary 'inline'
21035         * modules/fdutimensat-tests (configure.ac):
21036         * modules/futimens-tests (configure.ac):
21037         * modules/utimens-tests (configure.ac):
21038         * modules/utimensat-tests (configure.ac):
21039         Remove AC_C_INLINE.
21040         * tests/test-utimens-common.h (ctime_compare):
21041         No longer inline.  Simplicity and portability trump efficiency here.
21043         misc: don't limit commentary to inline functions
21044         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
21045         * lib/xalloc-oversized.h, lib/xsize.h:
21046         Contrast macros to functions in general, not just to inline functions,
21047         when the commentary does not apply only to inline functions.
21049 2012-09-20  Jim Meyering  <meyering@redhat.com>
21051         non-recursive-gnulib-prefix-hack: new module
21052         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
21053         the file that originated in Bison.
21054         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
21055         largely copied from a snippet that resided in bison's configure.ac.
21056         * modules/non-recursive-gnulib-prefix-hack: New file.
21057         * MODULES.html.sh (Support for maintaining and releasing projects):
21058         Add it.
21060 2012-09-18  Jim Meyering  <meyering@redhat.com>
21062         maint.mk: generalize _gl_tight_scope for non-recursive make
21063         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
21064         that *.h would describe additional .h files in the directory
21065         specified by $(_gl_TS_dir).  I.e., add this...
21066         (_gl_TS_other_headers): New variable.
21068         maint.mk: exempt trailing blanks found in "binary" files
21069         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
21070         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
21071         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21073 2012-09-17  Jim Meyering  <meyering@redhat.com>
21075         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
21076         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
21077         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
21078         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21080 2012-09-17  Jim Meyering  <meyering@redhat.com>
21082         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
21083         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
21084         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
21085         It is not in the same category as "exit (0)" or "exit (1)", and
21086         besides, I know of no symbolic name for that 77.  Reported by
21087         Richard W.M. Jones in
21088         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21090 2012-09-17  Jim Meyering  <meyering@redhat.com>
21092         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
21093         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
21094         all uses of #define, not just those that start in column 1.
21095         Richard W.M. Jones reported a false positive in
21096         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21098 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21100         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
21101         * lib/localcharset.c (locale_charset) [DARWIN7]:
21102         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
21103         as these two values are incompatible.  Problem reported by Max Horn.
21104         For more discussion, please see
21105         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
21107         doc: document sticky-EOF issue
21108         * doc/posix-functions/fgetc.texi (fgetc):
21109         * doc/posix-functions/fgets.texi (fgets):
21110         * doc/posix-functions/fread.texi (fread):
21111         * doc/posix-functions/fscanf.texi (fscanf):
21112         * doc/posix-functions/getc.texi (getc):
21113         * doc/posix-functions/getchar.texi (getchar):
21114         * doc/posix-functions/scanf.texi (scanf):
21115         Mention that glibc and default Solaris do not conform to
21116         C99 and POSIX-2001 or later, with respect to how getchar
21117         etc. behave when feof reports nonzero.
21119 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21121         poll: fix poll(0, NULL, msec)
21122         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
21123         but nfd is 0.  In that case poll should behave like select.
21125 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21126             Paolo Bonzini  <bonzini@gnu.org>
21128         poll: fix for systems that can't recv() on a non-socket
21129         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
21130         is readable.  In this case POLLHUP will not be supported.
21131         * doc/posix-functions/poll.texi: Document this.
21133 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
21135         poll/select: document portability problems not fixed by Gnulib.
21136         * doc/posix-functions/poll.texi: poll does not work well on
21137         pipes under Windows.  It has the same limitations as select on
21138         BeOS.
21139         * doc/posix-functions/select.texi: select does not work well
21140         on pipes under Windows.
21142 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21144         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
21145         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
21146         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
21147         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
21149 2012-09-06  Eric Blake  <eblake@redhat.com>
21151         net_if: give more details about the bug being fixed
21152         * doc/posix-headers/net_if.texi: Add clarification.
21154 2012-09-05  Eric Blake  <eblake@redhat.com>
21156         net_if: new module
21157         * modules/net_if: New module, borrowing ideas from netinet_in.
21158         * m4/net_if_h.m4: New file.
21159         * lib/net_if.in.h: Likewise.
21160         * doc/posix-headers/net_if.texi (net/if.h): Document it.
21161         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21162         * tests/test-net_if.c: Make function checks conditional.
21163         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
21165 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
21167         readutmp: fix non-portable UT_PID use
21168         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
21169         Use `UT_PID (u) > 0' as absolute condition.
21171 2012-09-04  Jim Meyering  <meyering@redhat.com>
21173         fts: reduce two or more trailing spaces to just one, usually
21174         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
21175         or more slashes, trim all but the final one.  But if a name consists
21176         solely of two slashes, don't modify it.  If it consists solely of
21177         three or more slashes, strip all but one.
21179         This is part of the solution to a minor problem with rm:
21180         it would print a bogus ELOOP diagnostic when failing to remove
21181         the slash-decorated name of a symlink-to-directory:
21183             $ mkdir d && ln -s d s && env rm -r s/
21184             rm: cannot remove 's': Too many levels of symbolic links
21186         With the change below and a trivial don't-trim-trailing-slashes
21187         adjustment to remove.c, it does this:
21189             $ env rm -r s/
21190             rm: cannot remove 's/': Not a directory
21192         Improved by: Eric Blake
21194         fts: when there is no risk of overlap, use memcpy, not memmove
21195         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
21197 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21199         stdbool: be more compatible with mixed C/C++ compiles
21200         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
21201         Define to bool, true, false, respectively, as GCC's builtin
21202         stdbool.h does.  Problem reported by Michael Goffioul in
21203         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
21205 2012-08-28  Jim Meyering  <meyering@redhat.com>
21207         revert last change: it was not needed
21208         * tests/test-vc-list-files-git.sh: There's already a test for
21209         a working git, just below.
21211 2012-08-28  Jim Meyering  <meyering@redhat.com>
21213         tests: test-vc-list-files-git.sh: skip if git is not available
21214         * tests/test-vc-list-files-git.sh: Skip this test when git is
21215         not available.
21217 2012-08-26  Bruno Haible  <bruno@clisp.org>
21219         gnulib-tool: Remove no-op option --no-changelog.
21220         * gnulib-tool (func_usage): Don't mention --no-changelog.
21221         (do_changelog): Remove variable.
21222         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21224 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21226         doc: remove fdl-1.2.texi
21227         It is no longer used or maintained, and its use of @acronym
21228         is problematic.  See the thread containing
21229         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
21230         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
21231         * doc/old-licenses/fdl-1.2.texi: Remove.
21233         execinfo: port to FreeBSD
21234         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
21235         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
21236         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
21237         * modules/execinfo (Link): Add $(LIB_EXECINFO).
21239 2012-08-23  Jim Meyering  <meyering@redhat.com>
21241         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
21242         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
21243         to placate gcc's -Wold-style-declaration.
21245 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21247         doc: do not use @acronym
21248         * doc/inet_ntoa.texi (inet_ntoa):
21249         * doc/parse-datetime.texi (Seconds since the Epoch)
21250         (Specifying time zone rules):
21251         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
21252         Don't use @acronym.  Problem reported by John Darlington in
21253         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
21255 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21257         stdnoreturn: port to newer GCCs
21258         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
21259         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
21260         Problem reported by Jim Meyering in
21261         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
21262         Also, rename the 'test' function to a void a clash with the
21263         already-supplied 'main' function; this fixes a bug that incorrectly
21264         rejected GCC 4.7.1's <stdnoreturn.h>.
21265         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
21266         Document GCC problem.
21268 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
21270         pipe-filter: fix comment typo
21271         * lib/pipe-filter.h: Mention correct function.
21273 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21275         execinfo: new module
21276         This is for Emacs.  Currently, it provides a no-effect stub
21277         on all platforms where it does not already work.
21278         It already works on glibc-based systems, and on Solaris 11.
21279         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
21280         New files.
21281         * doc/glibc-headers/execinfo.texi (execinfo.h):
21282         * MODULES.html.sh (Misc): Document it.
21284 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21286         extern-inline: support old GCC 'inline'
21287         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
21288         if available.  This applies to GCC versions 2.7 through 4.2, or
21289         when newer GCC is using -fgnu89-inline.  The goal is to address
21290         some of the performance issues mentioned by Bruno Haible in
21291         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
21293 2012-08-20  Eric Blake  <eblake@redhat.com>
21295         maint.mk: avoid redundant file name in message
21296         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
21297         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
21298         (sc_makefile_path_separator_check): Remove bogus $(ME).
21300 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
21302         timer-time: fix link order when static linking on glibc
21303         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
21304         _after_ -lrt so that it's significant.
21306 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21308         timespec: omit unnecessary AC_C_INLINE
21309         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
21311         stat-time: omit unnecessary AC_C_INLINE
21312         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21313         Do not require AC_C_INLINE.
21315         ignore-value: omit unnecessary AC_C_INLINE
21316         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
21318         sys_select: avoid 'static inline'
21319         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
21321         mktime: avoid 'static inline'
21322         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
21323         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
21325 2012-08-19  Bruno Haible  <bruno@clisp.org>
21327         gnulib-tool: Improve coding style.
21328         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
21329         func_emit_lib_Makefile_am.
21330         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21332 2012-08-19  Bruno Haible  <bruno@clisp.org>
21334         gnulib-tool: Fix indentation.
21335         * gnulib-tool (func_import): Fix indentation.
21337 2012-08-19  Bruno Haible  <bruno@clisp.org>
21339         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
21340         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
21341         on the list of removed files.
21343 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21345         test-parse-datetime: avoid glibc leap-second glitch
21346         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
21347         with the 2012 rules.  Problem reported by Bruce Dubbs in
21348         <http://bugs.gnu.org/12206>.
21350 2012-08-14  Bruno Haible  <bruno@clisp.org>
21352         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
21353         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
21354         from argument.
21355         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21357 2012-08-14  Eric Blake  <eblake@redhat.com>
21359         ldexp: relax license
21360         * modules/ldexp (License): Trivial relax, since the module only
21361         provides a permissively licensed m4 file.
21363 2012-08-13  Bruno Haible  <bruno@clisp.org>
21365         gnulib-tool: Fix persistence of --witness-c-macro option.
21366         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
21367         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21369 2012-08-11  Eric Blake  <eblake@redhat.com>
21371         count-leading-zeros: use a lookup table on non-gcc compilers
21372         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
21373         alternate implementation, suggested by Jim Meyering.
21375 2012-08-10  Eric Blake  <eblake@redhat.com>
21377         count-leading-zeros: new module
21378         * modules/count-leading-zeros: New module.
21379         * m4/count-leading-zeros.m4: New file.
21380         * lib/count-leading-zeros.h: Likewise.
21381         * modules/count-leading-zeros-tests: New test.
21382         * tests/test-count-leading-zeros.c: New file.
21383         * MODULES.html.sh (Integer arithmetic functions): Document it.
21385 2012-08-07  Simon Josefsson  <simon@josefsson.org>
21386             Jim Meyering  <meyering@redhat.com>
21388         maintainer-makefile: Fix syntax error with dash.
21389         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
21390         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
21392 2012-08-05  Jim Meyering  <meyering@redhat.com>
21394         extern-inline: also ignore -Wmissing-declarations
21395         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
21396         required with gcc-4.8.0-to-be.
21398         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
21399         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
21400         for /error ?([^,]*)/.  This avoids false-positives for strings like
21401         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
21403 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
21405         gnumakefile: better interaction with Automake-NG
21406         * modules/gnumakefile [Makefile.am]: The makefiles generated by
21407         Automake-NG always contain a definition of VPATH, even in non-VPATH
21408         builds (its value being simply '.' in that case).  So, in the
21409         'clean-GNUmakefile' rule, to determine whether running under a
21410         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
21411         '$(VPATH)' expands to the empty string.
21413 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
21415         base64: Use extern C scope in header file, for C++.
21416         * lib/base64.h: Add C++ namespace protection.
21418 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21420         stat-time, timespec, u64: support naive out-of-dir builds
21421         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
21422         Use '#include "foo.h"', not '#include <foo.h>', when including
21423         one's own interface.  This works better when configuring with
21424         out-of-directory builds, since packages need not add an
21425         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
21427 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21429         utimens: use extern-inline
21430         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
21431         * lib/utimens.h: Add copyright notice, since this is now large enough
21432         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21433         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
21434         * modules/utimens (Depends-on): Add extern-inline.
21436         u64: use extern-inline
21437         * lib/u64.c: New file.
21438         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21439         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
21440         * modules/u64 (Files): Add lib/u64.c.
21441         (Depends-on): Add extern-inline.
21442         (configure.ac): No need to require AC_C_INLINE, since extern-inline
21443         does that now.
21444         (lib_SOURCES): Add u64.c.
21446         timespec: use extern-inline
21447         * lib/timespec.c: New file.
21448         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21449         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
21450         * modules/timespec (Files): Add lib/timespec.c.
21451         (Depends-on): Add extern-inline.
21452         (lib_SOURCES): Add timespec.c.
21454         stat-time: use extern-inline
21455         * lib/stat-time.c: New file.
21456         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21457         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
21458         * modules/stat-time (Files): Add lib/stat-time.c.
21459         (Depends-on): Add extern-inline.
21460         (lib_SOURCES): Add stat-time.c.
21462         extern-inline: new module
21463         * modules/extern-inline, m4/extern-inline.m4: New files.
21464         This is for better support of 'extern inline' a la ISO C99,
21465         with a portable alternative on compilers that do not support
21466         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
21467         of the Emacs executable, when compiled with debugging disabled,
21468         which is a typical way that Emacs is built while developing.
21470 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
21472         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
21473         * build-aux/do-release-commit-and-tag: Move variable definitions
21474         together.
21475         ($branch): Instead of defaulting to "master", default to the current
21476         branch (as gnu-web-doc-update does).
21477         (help): Display the current values of the option arguments.
21478         * top/maint.mk (release-commit): New.
21479         * top/README-release: Simplify the corresponding step.
21481 2012-07-30  Eric Blake  <eblake@redhat.com>
21483         passfd: fix comment on recvfd
21484         * lib/passfd.c (recvfd): Fix comment.
21485         Reported by Jann Horn <jannhorn@googlemail.com>.
21487 2012-07-30  Jim Meyering  <meyering@redhat.com>
21489         maint.mk: avoid a sub-shell
21490         * top/maint.mk (release-prep): Remove unneeded sub-shell.
21492 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21494         maint.mk: use silent-rules support from Automake
21495         * top/maint.mk (news-check, vc-diff-check, announcement)
21496         (no-submodule-changes, alpha beta stable, release-prep)
21497         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
21499 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21501         maint.mk: provide a web-manual-update target
21502         * top/maint.mk: here.
21503         * top/README-release: Use it to simplify the web manual update step.
21505 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21507         README-release: shorten the circuit to post a news
21508         * top/README-release: Point directly to the news submission form.
21510 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21512         gnu-web-doc-update: fix --help
21513         * build-aux/gnu-web-doc-update: The information "top level" was written
21514         twice.
21516 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
21518         maint.mk: absolute VPATH issue
21519         * top/maint.mk (release-prep): Help Git find .git/.
21520         From Jim Meyering.
21522 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21524         gitlog-to-changelog: fix previous change
21525         * build-aux/gitlog-to-changelog: Fix condition.
21526         Add missing ";".
21528 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21530         gitlog-to-changelog: don't expect .git to be in $srcdir
21531         Reported by Bruno Haible.
21532         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
21533         * build-aux/gitlog-to-changelog (&git_dir_option): New.
21534         Use it.
21536 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
21538         maint.mk: absolute VPATH build fix
21539         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
21540         $(srcdir) is not a parent of $(builddir).
21542 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
21544         clean-temp: Fix memory leak.
21545         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
21546         'files' members of tmpdir.
21548 2012-07-27  Jim Meyering  <meyering@redhat.com>
21550         maint.mk: new rule: refresh-gnulib-patches
21551         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
21552         Use this rule to refresh them.
21553         * top/maint.mk (refresh-gnulib-patches): New rule.
21555 2012-07-24  Bruno Haible  <bruno@clisp.org>
21557         gnulib-tool: Fix handling of inctests variable.
21558         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
21559         Reported by Nick Bowler <nbowler@elliptictech.com>.
21561 2012-07-22  Bruno Haible  <bruno@clisp.org>
21563         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
21564         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
21565         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
21566         Remove exemption for getpass.h.
21567         Suggested by Eric Blake.
21569 2012-07-20  Eric Blake  <eblake@redhat.com>
21571         verify: document conflict with -Wnested-externs
21572         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
21574         maint.mk: forbid exit(-1)
21575         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
21577 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
21579         fsusage: port back to Solaris
21580         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
21581         error (fsd not declared) on Solaris 10.  Reported privately by
21582         Andrew Borodin.
21584 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
21586         gnu-web-doc-update: fix error messages
21587         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
21589         gnu-web-doc-update: check the requirements.
21590         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
21591         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
21592         * build-aux/bootstrap (find_tool): Comment change.
21594 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
21596         maint.mk: minor simplication.
21597         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
21598         for default values.
21600 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
21602         gitlog-to-changelog: VPATH build issues
21603         If builddir is not a subdirectory of srcdir, running git from it will
21604         fail.
21605         * build-aux/gitlog-to-changelog (--srcdir): New option.
21607 2012-07-15  Bruno Haible  <bruno@clisp.org>
21609         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
21610         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
21611         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
21612         Remove exemption for fpending.h.
21613         Suggested by Eric Blake.
21615 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
21617         pthread_sigmask: fix bug on FreeBSD 9
21618         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
21619         Include string.h.
21620         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
21621         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
21622         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
21623         but pthread_sigmask (1729, NULL, NULL) returns zero.
21624         See <http://bugs.gnu.org/11884>.
21625         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
21626         by inspecting whether the main call changed the old mask.
21628 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
21630         README-release: make it more legible
21631         * top/README-release: Improve typography slightly.
21633 2012-07-15  Jim Meyering  <meyering@redhat.com>
21635         maint: require that each sc_... command start with "@"
21636         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
21637         "make sc_maint" helps us avoid this nit.
21639 2012-07-15  Jim Meyering  <meyering@redhat.com>
21641         maint.mk: add leading "@" to quiet new "make syntax-check" rule
21642         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
21644 2012-07-13  Eric Blake  <eblake@redhat.com>
21646         maint.mk: new syntax check for HAVE_DECL checks
21647         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
21648         * cfg.mk
21649         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
21650         Exempt some false positives.
21651         Based on a report by Karel Zak.
21653         argp: make HAVE_DECL usage consistent
21654         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
21655         macros, not whether they are defined.
21656         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
21657         convention with other declaration checks.
21658         Reported by Karel Zak, with suggestions from Paul Eggert.
21660         stat-time: relax license to LGPLv2+
21661         * modules/stat-time (License): Relax, with consent of all authors.
21663         strndup: fix m4 usage error
21664         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
21665         defined, to either 0 or 1.
21666         Reported by Karel Zak.
21668 2012-07-11  Jim Meyering  <meyering@redhat.com>
21670         maint: enable the sc_avoid_if_before_free syntax-check rule
21671         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
21672         (if_before_free_offenders_): Define.
21673         (if_before_free_basename_re_): Define.
21674         Exempt current files with useless if-before-free.
21676 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
21678         gettext: do not assume '#define ... defined ...' behavior
21679         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
21680         Do not use '#define FOO ... defined BAR ...', as the C standard says
21681         it's not portable to expect that this works after macro expansion.
21682         Problem reported for gzip by Steven M. Schweda in
21683         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
21685 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21687         getloadavg: clean out old Emacs and Autoconf cruft
21688         See Glenn Morris in <http://bugs.gnu.org/11905>.
21689         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
21690         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
21691         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
21692         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
21694 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
21696         bootstrap: let warn be like tests/init.sh's warn_
21697         Reported by Jim Meyering.
21698         * build-aux/bootstrap (warn): Remove, replaced by...
21699         (warnf_, warn_): these.
21700         Adjust callers.
21701         Shorten messages that no longer fit in 80 columns.
21703 2012-07-09  Bruno Haible  <bruno@clisp.org>
21705         getopt: Simplify after Emacs changed.
21706         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
21707         (gl_GETOPT_IFELSE): Remove macro.
21709 2012-07-09  Jim Meyering  <meyering@redhat.com>
21711         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
21712         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
21714         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
21715         Bugs in both of those conspired to make the
21716         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
21717         _sc_search_regexp's handling of non-empty $in_files would filter
21718         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
21719         choice of in_files value meant there would be no match in most
21720         projects, due to the presence of two or more Makefile.in files.
21721         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
21722         Fix a bug in how a non-empty $$in_files was processed:
21723         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
21724         in spite of the name, it's a regexp, not a list of file names.
21726 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
21728         getloadavg, getopt: fix commentary re configure.in
21729         Autoconf is deprecating the name 'configure.in', so change it to
21730         to the new name 'configure.ac' in a couple of places.
21731         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
21732         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
21733         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
21734         Emacs has renamed it to configure.ac, and it no longer refers
21735         to these macros anyway.
21737         timespec: mark functions with const attributes
21738         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
21739         Mark with _GL_ATTRIBUTE_CONST.
21741 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
21743         canonicalize[-lgpl]: handle "guessing" values when cross-building
21744         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
21745         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
21746         matches "*yes" instead of just "yes".  Regression introduced in commit
21747         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
21749 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
21750             Bruno Haible  <bruno@clisp.org>
21752         canonicalize: make the right guess when cross-compiling to GNU
21753         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
21754         determine whether cross-compiling to glibc systems, so as to
21755         include GNU/Hurd.
21757 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21759         timespec-sub: avoid duplicate include
21760         * lib/timespec-sub.c: Do not include <config.h> twice.
21761         Reported by Juanma Barranquero.
21763 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
21765         bootstrap: use a more consistent error reporting scheme
21766         * build-aux/bootstrap (warn, die): New.
21767         Use them.
21769 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
21771         sys_time: allow too-wide tv_sec
21772         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
21773         timeval even if tv_sec is wider than time_t.  This allows
21774         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
21775         as without this patch gnulib replaces struct timeval
21776         and OpenBSD futimes therefore has a type mismatch.
21777         * doc/posix-headers/sys_time.texi: Mention this.
21779         pthread: check for both pthread_create and pthread_join
21780         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
21781         alter the check so that it tests for both pthread_create and
21782         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
21783         Suggested by Bruno Haible and Richard Yao in
21784         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
21786         parse-datetime: doc tuneup
21787         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
21788         spacing issues.
21790 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
21792         do-release-commit-and-tag: fix the previous commit
21793         * build-aux/do-release-commit-and-tag: Actually the test was right,
21794         but the comment and the error message were misleading.
21795         Fix comment, and improve error message.
21796         Perform check first, so that NEWS is not modified uselessly.
21798         do-release-commit-and-tag: fix typo
21799         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
21800         _not_ start with a stub.
21802 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
21804         pthread: check for pthread_create, not pthread_join
21805         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
21806         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
21807         pthread_join in libc.  I hope this removes the need for all the
21808         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
21809         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
21811 2012-07-04  Jim Meyering  <meyering@redhat.com>
21813         parse-datetime: fix failure to diagnose invalid input
21814         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
21815         rather than diagnosing the invalid input.  Now it reports this:
21816         date: invalid date '\260'
21817         * lib/parse-datetime.y (to_uchar): Define.
21818         (yylex): Don't sign-extend "other" bytes.
21819         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
21820         Thanks to Bruno Haible for the patch to this file.
21821         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
21822         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
21824 2012-07-03  Jim Meyering  <meyering@redhat.com>
21826         bootstrap: do not require now-removed build-aux/missing
21827         Now that build-aux/missing is, er, missing, bootstrap would
21828         silently fail.
21829         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
21830         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
21831         no longer part of gnulib.
21832         Diagnose the failure.
21834 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
21836         alloca: add support for HP NonStop TNS/E native
21837         * lib/alloca.in.h (alloca): Support the new host.
21838         From a suggestion by Joachim Schmitz in
21839         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
21841 2012-07-02  Pádraig Brady  <P@draigBrady.com>
21843         fsusage: remove code not needed on non GNU/Linux systems.
21845         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
21846         Don't include headers no longer needed in this case.
21847         * lib/fsusage.c [STAT_STATVFS &&
21848         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
21849         STAT_STATFS2_FRSIZE to exclude code not used in this case.
21851 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
21853         fsusage: include files needed for glibc 2.6 fallback
21854         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
21855         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
21856         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
21857         Problem reported by Ludovic Courtès in
21858         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
21860         fsusage: avoid needless check on GNU/Linux
21861         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
21862         on GNU/Linux systems, since it can't possibly work.
21864 2012-07-01  Bruno Haible  <bruno@clisp.org>
21866         log: Fix an autoconf >= 2.64 warning.
21867         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
21868         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
21870 2012-06-28  Bruno Haible  <bruno@clisp.org>
21872         log10f: Fix possible configuration problem.
21873         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
21874         $LOGF_LIBM.
21875         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
21877 2012-06-28  Bruno Haible  <bruno@clisp.org>
21879         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
21880         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
21881         not gl_cv_func_unlink_works.
21882         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
21884 2012-06-27  Eric Blake  <eblake@redhat.com>
21886         config: drop scripts that automake says are not independent
21887         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
21888         * build-aux/elisp-comp: Delete.
21889         * build-aux/missing: Likewise.
21890         * build-aux/ylwrap: Likewise.
21891         * modules/elisp-comp: Likewise.
21892         * MODULES.html.sh: Drop mention of elisp-comp.
21893         * NEWS: Mention this.
21895 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
21897         root-uid: new module
21898         This is for portability to Tandem's NonStop Kernel.
21899         * lib/root-uid.h, modules/root-uid: New files.
21900         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
21901         * lib/write-any-file.c, tests/test-sethostname2.c:
21902         Include "root-uid.h".
21903         * lib/euidaccess.c (euidaccess):
21904         * lib/pt_chown.c (main):
21905         * lib/unlinkdir.c (cannot_unlink_dir):
21906         * lib/write-any-file.c (can_write_any_file):
21907         * m4/mknod.m4 (gl_FUNC_MKNOD):
21908         * tests/test-sethostname2.c (geteuid, main):
21909         Don't assume ROOT_UID == 0.
21910         * modules/euidaccess (Depends-on):
21911         * modules/pt_chown (Depends-on):
21912         * modules/sethostname-tests (Depends-on):
21913         * modules/unlinkdir (Depends-on):
21914         * modules/write-any-file (Depends-on):
21915         Add root-uid.
21917         regex: use locale-independent comparison for codeset name
21918         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
21919         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
21920         for codeset name.
21921         * lib/regex_internal.h: Do not include <strings.h>, since we
21922         no longer use strcasecmp.
21923         * modules/regex (Depends-on): Remove strcase.
21925 2012-06-23  Bruno Haible  <bruno@clisp.org>
21927         getopt-posix: No longer guarantee that option processing is resettable.
21928         * doc/posix-functions/getopt.texi: Drop description of problem with
21929         internal state. Fix info about mingw and msvc9.
21930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
21931         option processing by getopt(). Run three test programs instead of one.
21932         Simplify cross-compilation guess.
21933         * NEWS: Mention the change.
21934         Reported by Rich Felker <dalias@aerifal.cx>.
21936 2012-06-26  Bruno Haible  <bruno@clisp.org>
21938         argp, regex: Ensure strcasecmp gets declared.
21939         * lib/argp-help.c: Include <strings.h>.
21940         * lib/regex_internal.h: Likewise.
21941         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
21943 2012-06-24  Bruno Haible  <bruno@clisp.org>
21945         ptsname_r: Make it consistent with ptsname on AIX.
21946         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
21947         implementation as for OSF/1.
21948         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
21949         a pty master.
21951         ptsname_r: Make it consistent with ptsname on OSF/1.
21952         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
21953         OSF/1.
21955 2012-06-24  Bruno Haible  <bruno@clisp.org>
21957         ttyname_r: Fix result on OSF/1, Solaris.
21958         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
21960 2012-06-24  Bruno Haible  <bruno@clisp.org>
21962         ptsname_r: Add support for Solaris.
21963         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
21964         Solaris.
21966         ptsname_r: Fix test failure on native Windows.
21967         * modules/ptsname_r (Depends-on): Add isatty.
21969         ptsname_r: Fix test failures on IRIX, Solaris.
21970         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
21971         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
21972         accordingly.
21973         * lib/ptsname_r.c: Include <fcntl.h>.
21974         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
21975         set errno if fd is invalid.
21976         * tests/test-isatty.c (main): Update comments.
21978 2012-06-24  Bruno Haible  <bruno@clisp.org>
21980         ptsname test: Extend test.
21981         * tests/test-ptsname.c: Include <errno.h>.
21982         (main): Test behaviour with invalid file descriptor.
21984 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21986         time: fix obsolete comment
21987         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
21988         reference to HAVE_STRUCT_TIMESPEC in comment.
21990 2012-06-23  Bruno Haible  <bruno@clisp.org>
21992         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
21993         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
21994         does not handle abbreviated long options with equivalent
21995         disambiguations, set gl_replace_getopt to yes.
21996         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
21998 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22000         time_r: fix typo that always overrode localtime_r decl
22001         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
22002         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
22003         not in a standard include.
22005 2012-06-22  Bruno Haible  <bruno@clisp.org>
22007         Write "Mac OS X" instead of "MacOS X".
22008         * README: Write "Mac OS X" instead of "MacOS X".
22009         * build-aux/bootstrap: Likewise.
22010         * build-aux/install-reloc: Likewise.
22011         * lib/acl-internal.h: Likewise.
22012         * lib/acl_entries.c: Likewise.
22013         * lib/argp-ba.c: Likewise.
22014         * lib/argp-pv.c: Likewise.
22015         * lib/config.charset: Likewise.
22016         * lib/copy-acl.c: Likewise.
22017         * lib/csharpexec.c: Likewise.
22018         * lib/euidaccess.c: Likewise.
22019         * lib/fbufmode.c: Likewise.
22020         * lib/fflush.c: Likewise.
22021         * lib/file-has-acl.c: Likewise.
22022         * lib/filemode.h: Likewise.
22023         * lib/fpurge.c: Likewise.
22024         * lib/freadable.c: Likewise.
22025         * lib/freadahead.c: Likewise.
22026         * lib/freading.c: Likewise.
22027         * lib/freadptr.c: Likewise.
22028         * lib/freadseek.c: Likewise.
22029         * lib/fseeko.c: Likewise.
22030         * lib/fseterr.c: Likewise.
22031         * lib/fsusage.c: Likewise.
22032         * lib/fwritable.c: Likewise.
22033         * lib/fwriting.c: Likewise.
22034         * lib/get-rusage-as.c: Likewise.
22035         * lib/get-rusage-data.c: Likewise.
22036         * lib/getdomainname.c: Likewise.
22037         * lib/idpriv-drop.c: Likewise.
22038         * lib/idpriv-droptemp.c: Likewise.
22039         * lib/localcharset.c: Likewise.
22040         * lib/locale.in.h: Likewise.
22041         * lib/localename.c: Likewise.
22042         * lib/mbsrtowcs-state.c: Likewise.
22043         * lib/nproc.c: Likewise.
22044         * lib/passfd.c: Likewise.
22045         * lib/posix_openpt.c: Likewise.
22046         * lib/printf-parse.c: Likewise.
22047         * lib/progreloc.c: Likewise.
22048         * lib/safe-read.h: Likewise.
22049         * lib/safe-write.h: Likewise.
22050         * lib/sched.in.h: Likewise.
22051         * lib/set-mode-acl.c: Likewise.
22052         * lib/signal.in.h: Likewise.
22053         * lib/stdint.in.h: Likewise.
22054         * lib/stdio-impl.h: Likewise.
22055         * lib/stdlib.in.h: Likewise.
22056         * lib/strtod.c: Likewise.
22057         * lib/sys_select.in.h: Likewise.
22058         * lib/tcgetsid.c: Likewise.
22059         * lib/unistd.in.h: Likewise.
22060         * lib/unlockpt.c: Likewise.
22061         * lib/vasnprintf.c: Likewise.
22062         * lib/vma-iter.c: Likewise.
22063         * lib/wcsrtombs-state.c: Likewise.
22064         * m4/acl.m4: Likewise.
22065         * m4/acosl.m4: Likewise.
22066         * m4/asinl.m4: Likewise.
22067         * m4/atanl.m4: Likewise.
22068         * m4/c-stack.m4: Likewise.
22069         * m4/cosl.m4: Likewise.
22070         * m4/expl.m4: Likewise.
22071         * m4/extensions.m4: Likewise.
22072         * m4/fdatasync.m4: Likewise.
22073         * m4/fmal.m4: Likewise.
22074         * m4/frexp.m4: Likewise.
22075         * m4/frexpf.m4: Likewise.
22076         * m4/frexpl.m4: Likewise.
22077         * m4/fsusage.m4: Likewise.
22078         * m4/getdomainname.m4: Likewise.
22079         * m4/getloadavg.m4: Likewise.
22080         * m4/getopt.m4: Likewise.
22081         * m4/gettext.m4: Likewise.
22082         * m4/gnulib-common.m4: Likewise.
22083         * m4/intdiv0.m4: Likewise.
22084         * m4/intlmacosx.m4: Likewise.
22085         * m4/largefile.m4: Likewise.
22086         * m4/ldexpl.m4: Likewise.
22087         * m4/link-follow.m4: Likewise.
22088         * m4/locale-ar.m4: Likewise.
22089         * m4/locale-fr.m4: Likewise.
22090         * m4/locale-ja.m4: Likewise.
22091         * m4/locale-tr.m4: Likewise.
22092         * m4/locale-zh.m4: Likewise.
22093         * m4/locale_h.m4: Likewise.
22094         * m4/lock.m4: Likewise.
22095         * m4/logl.m4: Likewise.
22096         * m4/mathfunc.m4: Likewise.
22097         * m4/minus-zero.m4: Likewise.
22098         * m4/mktime.m4: Likewise.
22099         * m4/mmap-anon.m4: Likewise.
22100         * m4/multiarch.m4: Likewise.
22101         * m4/nanosleep.m4: Likewise.
22102         * m4/nocrash.m4: Likewise.
22103         * m4/poll.m4: Likewise.
22104         * m4/printf-frexpl.m4: Likewise.
22105         * m4/printf.m4: Likewise.
22106         * m4/signbit.m4: Likewise.
22107         * m4/sinl.m4: Likewise.
22108         * m4/sqrtl.m4: Likewise.
22109         * m4/strerror_r.m4: Likewise.
22110         * m4/tanl.m4: Likewise.
22111         * m4/threadlib.m4: Likewise.
22112         * m4/ttyname_r.m4: Likewise.
22113         * m4/unlink.m4: Likewise.
22114         * m4/visibility.m4: Likewise.
22115         * m4/wcwidth.m4: Likewise.
22116         * tests/minus-zero.h: Likewise.
22117         * tests/test-alloca-opt.c: Likewise.
22118         * tests/test-copy-acl.sh: Likewise.
22119         * tests/test-copy-file.sh: Likewise.
22120         * tests/test-fdatasync.c: Likewise.
22121         * tests/test-file-has-acl.sh: Likewise.
22122         * tests/test-flock.c: Likewise.
22123         * tests/test-fsync.c: Likewise.
22124         * tests/test-localename.c: Likewise.
22125         * tests/test-malloca.c: Likewise.
22126         * tests/test-nonblocking-pipe.h: Likewise.
22127         * tests/test-nonblocking-socket.h: Likewise.
22128         * tests/test-openpty.c: Likewise.
22129         * tests/test-posix_openpt.c: Likewise.
22130         * tests/test-ptsname.c: Likewise.
22131         * tests/test-ptsname_r.c: Likewise.
22132         * tests/test-sameacls.c: Likewise.
22133         * tests/test-select.h: Likewise.
22134         * tests/test-set-mode-acl.sh: Likewise.
22135         * tests/test-snprintf-posix.h: Likewise.
22136         * tests/test-sprintf-posix.h: Likewise.
22137         * tests/test-strtod.c: Likewise.
22138         * tests/test-time.c: Likewise.
22139         * tests/test-vasnprintf-posix.c: Likewise.
22140         * tests/test-vasprintf-posix.c: Likewise.
22141         * doc/acl-resources.txt: Likewise.
22142         * doc/**/*.texi: Likewise.
22143         Reported by Max Horn <max@quendi.de>.
22145 2012-06-22  Bruno Haible  <bruno@clisp.org>
22147         grantpt: Relax requirement regarding invalid file descriptors.
22148         * lib/grantpt.c: Don't include <fcntl.h>.
22149         (grantpt): Don't verify the validity of the file descriptor.
22150         * modules/grantpt (Depends-on): Remove fcntl-h.
22151         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
22152         file descriptors.
22153         * doc/posix-functions/grantpt.texi: Document more platforms on which
22154         grantpt succeeds for invalid file descriptors.
22155         Reported by Rich Felker <dalias@aerifal.cx>.
22157 2012-06-22  Bruno Haible  <bruno@clisp.org>
22159         fbufmode test: Don't test unportable behaviour.
22160         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
22161         (main): Invoke it three times.
22162         Reported by Szabolcs Nagy <nsz@port70.net>
22163         and Rich Felker <dalias@aerifal.cx>.
22165 2012-06-21  Bruno Haible  <bruno@clisp.org>
22167         gnulib-tool: Refactor inctests variable.
22168         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
22169         (func_modules_transitive_closure,
22170         func_modules_transitive_closure_separately,
22171         func_import, func_create_testdir): Update.
22173         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
22174         * gnulib-tool: Accept option --without-tests.
22175         (func_usage): Document --without-tests option. Rearrange.
22176         (inctests): Normalize according to the mode.
22177         * NEWS: Mention the change.
22178         Suggested by Simon Josefsson.
22180 2012-06-21  Bruce Korb  <bkorb@gnu.org>
22182         parse-duration test: Avoid spurious output.
22183         * tests/test-parse-duration.sh: Reindent with leading tabs.
22185 2012-06-21  Jim Meyering  <meyering@redhat.com>
22187         maint: disable the strncpy prohibition
22188         * cfg.mk: Do not prohibit strncpy here.
22190 2012-06-21  Bruno Haible  <bruno@clisp.org>
22192         nonblocking: Avoid compilation error on mingw64.
22193         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
22194         fscanf.
22195         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
22196         * modules/vfscanf (configure.ac): Likewise.
22197         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
22198         definition only if stdio.h has prepared it.
22199         Reported by Daniel P. Berrange <berrange@redhat.com>.
22201 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
22203         gnulib-tool: Use readlink if it is available.
22204         * gnulib-tool (func_readlink): Choose function more appropriately.
22206 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22208         posixtm-tests: port to buggy compiler
22209         Problem reported by Simon Josefsson in
22210         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
22211         * modules/posixtm-tests (Depends-on): Add stdint.
22212         * tests/test-posixtm.c (struct posixtm_test.t_expected):
22213         Now of type int_least64_t, not int64_t, both because that's
22214         what INT64_C returns and because int_least64_t works even
22215         on 72-bit hosts.
22216         (T): Use INT64_C on constants outside the traditional int range,
22217         to work around compiler bug noted by Simon.
22219         mktime: fix integer overflow in 'configure'-time test
22220         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
22221         after integer overflow.  Problem reported by Rich Felker in
22222         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
22223         Also, don't look for further instances of a bug if we've already
22224         found one instance; this helps 'configure' run faster.
22226 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
22228         tmpfile, clean-temp: Fix invocation of GetVersionEx.
22229         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
22230         GetVersionEx correctly.
22231         * lib/clean-temp.c (supports_delete_on_close): Likewise.
22233 2012-06-20  Bruno Haible  <bruno@clisp.org>
22235         fdopen: Allow implementations that don't reject invalid fd arguments.
22236         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
22237         succeeds.
22238         Reported by Rich Felker <dalias@aerifal.cx>.
22240 2012-06-20  Simon Josefsson  <simon@josefsson.org>
22242         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
22243         bring in LIBINTL.
22245 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22247         init.sh: do not rely on autoupated PWD
22248         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
22249         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
22250         Although Nelson's bug was not necessarily fixed by this patch,
22251         it seems wise to make the change for safety.
22252         * tests/init.sh (path_prepend_): Do not rely on PWD updating
22253         automagically after 'cd'; this is not reliable on older shells.
22254         (setup_): Fail if we cannot cd to temporary directory.
22256 2012-06-19  Bruno Haible  <bruno@clisp.org>
22258         stat, fstat: Avoid warnings on mingw64.
22259         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
22260         redefining.
22261         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
22262         Reported by Daniel P. Berrange <berrange@redhat.com>.
22264 2012-06-19  Bruno Haible  <bruno@clisp.org>
22266         stdioext: Add support for musl libc.
22268         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
22269         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
22271         * m4/fseterr.m4: New file.
22272         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
22273         function exists.
22274         * modules/fseterr (Files): Add m4/fseterr.m4.
22275         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
22276         __fseterr does not exist.
22277         (Makefile.am): Remove fseterr.c from lib_SOURCES.
22279         * lib/freadable.h: Update comment.
22281         * lib/fwritable.h: Update comment.
22283         * lib/freading.h: Update comment.
22285         * lib/fwriting.h: Update comment.
22287         * m4/freadahead.m4: New file.
22288         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
22289         that function exists.
22290         * modules/freadahead (Files): Add m4/freadahead.m4.
22291         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
22292         __freadahead does not exist.
22293         (Makefile.am): Remove freadahead.c from lib_SOURCES.
22295         * m4/freadptr.m4: New file.
22296         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
22297         function exists.
22298         * modules/freadptr (Files): Add m4/freadptr.m4.
22299         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
22300         __freadptr does not exist.
22301         (Makefile.am): Remove freadptr.c from lib_SOURCES.
22303         * m4/freadseek.m4: New file.
22304         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
22305         exists.
22306         * modules/freadseek (Files): Add m4/freadseek.m4.
22307         (configure.ac): Invoke gl_FUNC_FREADSEEK.
22309         * lib/fpurge.c (fpurge): Update comment.
22311         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
22313 2012-06-19  Bruno Haible  <bruno@clisp.org>
22315         *printf-posix: Put more info into config.log.
22316         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
22317         exit code into config.log.
22319 2012-06-19  Bruno Haible  <bruno@clisp.org>
22321         getopt-gnu: Fix exit code overflow in autoconf test.
22322         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
22323         to keep them below < 128.
22325 2012-06-17  Jim Meyering  <meyering@redhat.com>
22327         maint.mk: fix typo in code to derive GPG key at release time
22328         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
22330 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22332         regex: avoid warning when pointers are not long
22333         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
22334         and uintptr_t, not long, for portability to hosts where pointers and
22335         long have different sizes.  Issue noted by Daniel P. Berrange in
22336         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
22337         and fix suggested by Bruno Haible in
22338         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
22340 2012-06-17  Bruno Haible  <bruno@clisp.org>
22342         dummy: Relicense into the public domain.
22343         * modules/dummy (License): Set to "public domain".
22344         Suggested by Reuben Thomas.
22346 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22348         announce-gen: VPATH issues
22349         * build-aux/announce-gen (--srcdir): New option, used to trim the
22350         $srcdir part of the path from $builddir to NEWS.
22351         * top/maint.mk (announcement): Adjust.
22353 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
22355         gnu-web-doc-update: VPATH builds
22356         * build-aux/gnu-web-doc-update (--builddir): New option.
22357         Revamp the handling of options.
22358         Prefer $(...) to `...`.
22359         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
22360         the template, and it is GNU mktemp specific.
22361         Prefer set -e to long series of &&.
22362         Restore the initial git branch, not "master".
22363         Properly initialize submodules (don't rely only on bootstrap).
22364         Do not reconfigure blindly, use config.status.
22365         * top/README-release: Update instructions for gnu-web-doc-update.
22367 2012-06-11  Jim Meyering  <meyering@redhat.com>
22369         maint.mk: revert most of the previous change re "all these"
22370         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
22371         For rationale, see the discussion at
22372         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
22374 2012-06-10  Karl Berry  <karl@gnu.org>
22376         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
22378         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
22380 2012-06-10  Bruce Korb  <bkorb@gnu.org>
22382         parse-duration: Relicense under LGPLv2+.
22383         * modules/parse-duration (License): Change to LGPLv2+.
22385 2012-06-10  Jim Meyering  <meyering@redhat.com>
22387         maint.mk: prohibit common grammar error: "all these"
22388         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
22389         the list of prohibited word sequences.  It should be "all of these".
22390         * lib/tempname.c (__gen_tempname): Fix one of them.
22392 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22394         do-release-commit-and-tag: support VPATH builds
22395         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
22396         (noteworthy): Defined earlier to factor its value.
22397         (noteworthy_stub): New.
22398         Use it to factor.
22399         (help_version): Split into...
22400         (help, version): these.
22401         Adjust the option processing part.
22402         Support "--option=value" in addition to "--option value".
22403         (builddir): New.
22404         (--builddir): New option.
22405         * top/README-release: Document this.
22406         Reword slightly so that the reader cannot understand that he
22407         has to do these steps before calling do-release-commit-and-tag.
22409 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22411         readme-release: also require announce-gen and maintainer-makefile
22412         * modules/readme-release (Depends-on): here.
22413         * modules/announce-gen, modules/do-release-commit-and-tag,
22414         modules/gnu-web-doc-update, modules/maintainer-makefile
22415         (Description): Point to readme-release.
22417 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
22419         maint.mk: fix VPATH issues.
22420         * top/maint.mk (news-check): GNU Make understand $< very well.
22421         (release-prep): NEWS is in $(srcdir).
22423 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
22425         readme-release: require the promoted modules.
22426         * modules/readme-release (Depends-on): Add
22427         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
22428         in this text.
22430 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22431             Bruno Haible  <bruno@clisp.org>
22433         error, strerror-override: Support mingw64 from Fedora 17.
22434         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
22435         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
22436         EINPROGRESS.
22437         * lib/strerror-override.h (strerror_override): Test it.
22438         * lib/strerror-override.c (strerror_override): Likewise.
22439         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
22441 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22442             Bruno Haible  <bruno@clisp.org>
22444         error, strerror-override: Support mingw64 from Fedora 17.
22445         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
22446         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
22447         * lib/strerror-override.h (strerror_override): Test it.
22448         * lib/strerror-override.c (strerror_override): Likewise.
22450 2012-06-03  Bruno Haible  <bruno@clisp.org>
22452         error, strerror-override: Support new errno values from POSIX:2008.
22453         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
22454         ENOTRECOVERABLE.
22455         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
22456         platforms.
22457         * lib/strerror-override.c (strerror_override): Conditionalize the
22458         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
22459         * lib/strerror-override.h (strerror_override): Declare also if
22460         GNULIB_defined_EOWNERDEAD is defined.
22461         * tests/test-errno.c (e130, e131): New variables.
22462         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
22463         ENOTRECOVERABLE.
22464         Reported by Paolo Bonzini.
22466 2012-05-31  Jim Meyering  <meyering@redhat.com>
22468         savewd: add missing dependency on sys_wait module
22469         * modules/savewd (Depends-on): Add sys_wait, needed at least
22470         for MSVC.  Report and suggested change by Michael Goffioul.
22472 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
22474         system-quote-tests: port to CentOS 5
22475         Problem reported by Tom G. Christensen in
22476         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
22477         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
22479 2012-05-29  Jim Meyering  <meyering@redhat.com>
22481         maint: fix typos in comments and ChangeLog
22482         Culprits identified and fixed mostly automatically using these commands:
22483         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
22484         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
22485         using http://github.com/lyda/misspell-check
22486         * ChangeLog: Fix typos.
22487         * doc/solaris-versions: Likewise.
22488         * lib/regexec.c (re_search_stub): Likewise.
22489         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22491 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
22493         manywarnings: remove duplicate -Wmultichar entry
22494         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
22495         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
22496         so keep the entry marked as documented.
22498 2012-05-27  Karl Berry  <karl@gnu.org>
22500         * config/srclist.txt (mktime.c): remove last libc sync,
22501         perhaps just temporarily.
22503 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
22505         regex: don't assume uint64_t or uint32_t
22506         * lib/regcomp.c (init_word_char): Don't assume that the types
22507         uint64_t and uint32_t exist.  The C standard doesn't guarantee
22508         them, and on some 32-bit compilers there is no uint64_t.
22509         Problem reported by Gianluigi Tiesi in
22510         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
22512 2012-05-25  Jim Meyering  <meyering@redhat.com>
22514         maint.mk: add strncpy-prohibiting syntax-check rule
22515         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
22517 2012-05-24  Jim Meyering  <meyering@redhat.com>
22519         maint.mk: compute $(gpg_key_ID) more portably
22520         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
22521         That use of sed is not portable to some fringe systems.
22522         Reported by Paul Eggert in
22523         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
22525 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
22527         mktime: sync from glibc
22528         * config/srclist.txt: Uncomment mktime.c.
22529         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
22530         First, indent with tabs, since glibc uses tabs and doesn't want to
22531         change and we'd rather be identical to glibc.  Also, two small
22532         coding changes:
22533         (isdst_differ): Use &&, not &, as && is the usual style.
22534         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
22535         for clarity.
22537 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22539         announce-gen: du -h is more portable than du --human
22540         * build-aux/announce-gen (sizes): Invoke du with -h instead
22541         of --human.  Accept leading white space in its output.
22543 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22545         announce-gen: Improve diagnostics.
22546         * build-aux/announce-gen: When parsing command line options,
22547         prefer "announce-gen: option --release-type requires an argument"
22548         to "Option release-type requires an argument".
22550 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
22552         maint.mk: gpg_key_ID: use sed more portably
22553         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
22554         the closing brace.
22555         (refresh-po): Fuse two sed invocations into one.
22557 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
22559         gitlog-to-changelog: support the log message format used in Bison.
22560         * build-aux/gitlog-to-changelog: Support --strip-tab and
22561         --strip-cherry-picked.
22563 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
22565         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
22566         the rest of the current time slice to another thread in the current
22567         process. So if the thread that feeds the file decscriptor we're
22568         polling is not in the current process, we get busy-waiting.
22569         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
22570         Patch from Theodore Leblond.
22571         * lib/select.c: Split polling out of the loop that sets the output
22572         fd_sets.  Check for zero result and loop if the wait timeout is
22573         infinite.
22575 2012-05-21  Simon Josefsson  <simon@josefsson.org>
22577         select: Fix build error on IRIX 6.5.
22578         * lib/select.c: Include stddef.h for NULL.
22580 2012-05-21  Simon Josefsson  <simon@josefsson.org>
22582         gc: fix libgcrypt detection on older machines.
22583         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
22584         copyright years because the file has been distributed every year
22585         since it was created.
22587 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
22589         crypto: fix bug in large buffer handling
22590         Problem reported by Serge Belyshev for glibc in
22591         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
22592         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
22593         * lib/md4.c (md4_process_block):
22594         * lib/md5.c (md5_process_block):
22595         * lib/sha1.c (sha1_process_block):
22596         * lib/sha256.c (sha256_process_block):
22597         Don't assume the buffer length is less than 2**32.
22598         * lib/sha512.c (sha512_process_block): Likewise.
22599         Here, the bug is present only in the rare case where the host does
22600         not support uint64_t or where size_t is wider than 64 bits.
22601         Use u64size to work around the problems.
22602         * lib/u64.h (u64size): New macro.
22604 2012-05-15  Pádraig Brady  <P@draigBrady.com>
22606         fsusage: fix block size returned on older Linux 2.6
22608         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
22609         which is available since Linux 2.6.
22610         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
22611         when the member is available so it can be used as a fallback.
22612         * doc/posix-functions/statvfs.texi: Mention the hang issue
22613         on Linux < 2.6.36.
22615 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22617         bootstrap: suppress stderr chatter
22618         * build-aux/bootstrap (insert_sorted_if_absent, main program):
22619         Omit unnecessary chatter to stderr.  The main program chatter
22620         was there only inadvertantly.
22622         bootstrap: .gitignore files created by autopoint, libtool
22623         I ran into this problem when bootstrapping the latest diffutils.
22624         After './bootstrap', 'git status' reported lots of untracked files
22625         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
22626         autopoint and do not need to be version-controlled.
22627         * build-aux/bootstrap: Put into .gitignore the files that
22628         autopoint and libtool create, by keeping track of files that exist
22629         after but not before these programs are run.
22630         (version_controlled_file): Move up.  2nd arg is now full file
22631         name, not base name; this is more convenient.  Put CVS at the end,
22632         as it's now somewhat deprecated.
22634 2012-05-14  Jim Meyering  <meyering@redhat.com>
22636         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
22637         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
22638         definition.  Reported by Bruno Haible.
22640 2012-05-13  Bruno Haible  <bruno@clisp.org>
22641             Paul Eggert  <eggert@cs.ucla.edu>
22643         binary-io: Define set_binary_mode function.
22644         * lib/binary-io.h (set_binary_mode): New function.
22645         (SET_BINARY): Define in terms of set_binary_mode.
22646         * modules/binary-io (configure.ac): Require AC_C_INLINE.
22647         * tests/test-binary-io.c (main): Accept an argument, and test either
22648         set_binary_mode or SET_BINARY depending on the argument.
22649         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
22650         argument. Clean up also t-bin-out0.tmp.
22652 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
22654         bootstrap: take advantage of POSIX shell features
22656         The 'bootstrap' script offered by Gnulib script already uses POSIX
22657         shell features (like $((...)) arithmetic expansions) that are not
22658         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
22659         means that bootstrap must already be run using a proper POSIX shell,
22660         which will thus provide more features, like ${var#pattern} parameter
22661         expansion or inversion of a command exit status with '!'.  We can
22662         thus use these features to improve the clarity and the performances
22663         of the bootstrap script.
22665         Suggested by Eric Blake.
22667         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
22668         of sed/expr plus command substitutions, to save some forks.  While
22669         we are at it, prefer the POSIX $(...) form of command substitution,
22670         rather than the legacy form `...` (since the former is visually
22671         clearer and interacts better with quoting), and prefer the idiom:
22672           "if ! CMD; then ACTION ..."
22673         over the idiom:
22674           "if CMD; then :; else ACTION ..."
22675         which was required by legacy Bourne shells not supporting '!'.
22677 2012-05-12  Bruno Haible  <bruno@clisp.org>
22679         system-quote: Add more comments.
22680         * lib/system-quote.h: Add more comments about wilcards and limitations.
22681         Suggested by Eli Zaretskii <eliz@gnu.org>.
22683         sh-quote, system-quote: Add comments about wildcards.
22684         * lib/sh-quote.h: Clarify what happens with wildcard characters.
22685         * lib/system-quote.h: Likewise.
22686         Reported by Eli Zaretskii <eliz@gnu.org>.
22688 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22690         fsusage: check for GNU/Linux statvfs problem dynamically
22691         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
22692         Define STAT_STATFS2_BSIZE too, since in this case the code now
22693         checks dynamically whether statvfs is reliable, falling back on
22694         Linux-style statfs otherwise.
22695         (statvfs_works): New function, for dynamically testing statvfs.
22696         (get_fs_usage) [STAT_STATVFS]: Use it.
22697         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
22698         statvfs on GNU/Linux hosts, since it's now done dynamically.
22700 2012-05-10  Bruno Haible  <bruno@clisp.org>
22702         system-quote, execute, spawn-pipe: Escape '?' on Windows.
22703         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
22704         '?' character.
22705         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
22706         * tests/test-system-quote-main.c (check_all): Check also strings like
22707         "??????????".
22708         Reported by Eli Zaretskii <eliz@gnu.org>.
22710 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
22712         _Noreturn: port config.h to gcc -Wundef
22713         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
22714         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
22715         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
22717 2012-05-10  Bruno Haible  <bruno@clisp.org>
22719         system-quote: Refactor.
22720         * lib/system-quote.h (system_quote_copy): Fix comment.
22721         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
22722         New functions, extracted from system_quote_copy.
22723         (system_quote_length, system_quote_copy): Use these functions.
22724         Reported by Paul Eggert.
22726 2012-05-08  Bruno Haible  <bruno@clisp.org>
22728         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
22729         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
22731 2012-05-08  Bruno Haible  <bruno@clisp.org>
22733         Tests for module 'system-quote'.
22734         * modules/system-quote-tests: New file.
22735         * tests/test-system-quote.sh: New file.
22736         * tests/test-system-quote-main.c: New file.
22737         * tests/test-system-quote-child.c: New file.
22739         New module 'system-quote'.
22740         * lib/system-quote.h: New file.
22741         * lib/system-quote.c: New file.
22742         * modules/system-quote: New file.
22744 2012-05-08  Bruno Haible  <bruno@clisp.org>
22746         sh-quote: Make C++ safe and allow multiple inclusion.
22747         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
22748         declarations in extern "C".
22750 2012-05-08  Bruno Haible  <bruno@clisp.org>
22752         sh-quote tests: Make tests stricter.
22753         * tests/test-sh-quote.c (check_one): Check the return value of
22754         shell_quote_copy.
22755         (main): Check a string with a CR character. Check a string that
22756         contains UCHAR_MAX.
22758 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
22760         warnings.m4: provide a means to specify the program to compile.
22761         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
22762         (gl_WARN_ADD): here.
22763         Use gl_AS_VAR_APPEND.
22764         Support an argument to specify the program to compile.
22765         (gl_WARN_ADD): Accept an argument to specify the program to compile.
22766         AC_SUBST the WARN_CFLAGS when they are used.
22767         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
22768         leave this to gl_WARN_ADD.
22770 2012-05-08  Eric Blake  <eblake@redhat.com>
22772         doc: recommendations on gettext version
22773         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
22774         choice between versions.
22775         * DEPENDENCIES (gettext): Cover both approaches.
22777 2012-05-08  Jim Meyering  <meyering@redhat.com>
22779         init.sh: explain why EXEEXT support uses aliases rather than functions
22780         * tests/init.sh: Add a comment.
22782         init.sh: don't let bash aliases interfere with tests
22783         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
22784         is bash.  This avoids problems for those who alias standard commands to
22785         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
22786         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
22788 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
22790         stdint: be more consistent with glibc, SunOS libc
22791         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
22792         (gl_int_fast16_t, gl_uint_fast16_t)
22793         (gl_int_fast32_t, gl_uint_fast32_t)
22794         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
22795         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
22796         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
22797         Be consistent with glibc by default, and with SunOS 5.10 and later
22798         if __sun is defined.  This lessens the likelihood of clashes if
22799         code compiled for older hosts is combined with code compiled for
22800         newer ones.  Problem reported by Niels Möller in
22801         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
22803 2012-05-07  Eric Blake  <eblake@redhat.com>
22805         isatty: relax license to LGPLv2+
22806         * modules/isatty (License): Relax license.
22808 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
22810         stat-size: comment fix
22811         * lib/stat-size.h: Remove obsolete comment about indenting.
22813 2012-05-06  Bruno Haible  <bruno@clisp.org>
22815         Tests for module 'sh-quote'.
22816         * modules/sh-quote-tests: New file.
22817         * tests/test-sh-quote.c: New file.
22819 2012-05-06  Bruno Haible  <bruno@clisp.org>
22821         sh-quote: Improve shell_quote_argv's signature.
22822         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
22823         * lib/sh-quote.c (shell_quote_argv): Likewise.
22825 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
22827         stdint: document issues with int_fast8_t etc.
22828         * doc/posix-headers/stdint.texi (stdint.h): Say that other
22829         stdint.h substitutes may define these types differently.  See
22830         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
22832 2012-05-05  Bruno Haible  <bruno@clisp.org>
22834         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
22835         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
22836         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
22837         or 'guessing no (mishandles large arguments)'.
22839 2012-05-05  Bruno Haible  <bruno@clisp.org>
22841         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
22842         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
22843         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
22844         set gl_cv_func_link_follows_symlink to "guessing no".
22846 2012-05-05  Bruno Haible  <bruno@clisp.org>
22848         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
22849         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
22850         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
22851         "guessing no".
22852         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
22854 2012-05-05  Bruno Haible  <bruno@clisp.org>
22856         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
22857         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
22858         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
22859         set gl_cv_struct_dirent_d_ino to "guessing yes".
22861 2012-05-05  Bruno Haible  <bruno@clisp.org>
22863         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
22864         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
22865         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
22866         "guessing yes".
22868 2012-05-05  Bruno Haible  <bruno@clisp.org>
22870         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
22871         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
22872         compiling to a glibc system, set gl_cv_func_signbit and
22873         gl_cv_func_signbit_gcc to "guessing yes".
22875 2012-05-05  Bruno Haible  <bruno@clisp.org>
22877         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
22878         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
22879         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
22880         to "guessing yes".
22881         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
22882         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
22884 2012-05-05  Bruno Haible  <bruno@clisp.org>
22886         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
22887         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
22888         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
22889         gl_cv_func_realpath_works to "guessing yes".
22891 2012-05-05  Bruno Haible  <bruno@clisp.org>
22893         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
22894         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
22895         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
22897 2012-05-04  Bruno Haible  <bruno@clisp.org>
22899         Tweak last commit.
22900         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
22901         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22903 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
22905         unistd_h: make it easier to avoid sys_types_h
22906         This is useful for Emacs, which has its own method of porting to
22907         Windows, and which therefore does not need the sys_types_h module.
22908         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
22909         code moved here from gl_SYS_TYPES_H.
22910         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
22911         using the code directly.
22912         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
22913         gl_SYS_TYPES_H.
22914         * modules/sys_types (Files):
22915         * modules/unistd (Files): Add m4/off_t.m4.
22917 2012-05-03  Bruno Haible  <bruno@clisp.org>
22919         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
22920         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
22921         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
22922         "guessing yes" or "guessing no".
22923         (gl_FUNC_LSTAT): Update.
22924         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
22925         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
22926         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
22928 2012-05-03  Bruno Haible  <bruno@clisp.org>
22930         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
22931         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
22932         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
22933         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
22934         cross-compiling, choose the first alternative on glibc systems.
22935         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
22937 2012-05-03  Bruno Haible  <bruno@clisp.org>
22939         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
22940         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
22941         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
22943 2012-05-03  Bruno Haible  <bruno@clisp.org>
22945         chown: Avoid "guessing no" when cross-compiling to glibc systems.
22946         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
22948 2012-05-03  Bruno Haible  <bruno@clisp.org>
22950         Avoid "guessing no" guesses when cross-compiling to glibc systems.
22951         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
22952         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
22953         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
22954         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
22955         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
22956         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
22957         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
22958         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
22959         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
22960         compiling to glibc systems, set gl_cv_func_chown_slash_works,
22961         gl_cv_func_chown_ctime_works to "guessing yes".
22962         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
22963         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
22964         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
22965         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
22966         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
22967         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
22968         compiling to glibc systems, set gl_cv_func_open_directory_works to
22969         "guessing yes".
22970         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
22971         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
22972         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
22973         "guessing yes".
22974         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
22975         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
22976         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
22977         compiling to glibc systems, set gl_cv_func_floorf_ieee to
22978         "guessing yes".
22979         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
22980         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
22981         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
22982         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
22983         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
22984         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
22985         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
22986         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
22987         "guessing yes".
22988         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
22989         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
22990         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
22991         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
22992         "guessing yes".
22993         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
22994         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
22995         "guessing yes".
22996         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
22997         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
22998         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
22999         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
23000         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
23001         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
23002         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
23003         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
23004         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
23005         compiling to glibc systems, set gl_cv_func_log10f_ieee to
23006         "guessing yes".
23007         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
23008         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
23009         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
23010         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
23011         "guessing yes".
23012         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
23013         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
23014         "guessing yes".
23015         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
23016         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
23017         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
23018         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
23019         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
23020         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
23021         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
23022         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
23023         compiling to glibc systems, set gl_cv_func_mkfifo_works to
23024         "guessing yes".
23025         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
23026         compiling to glibc systems, set gl_cv_func_mknod_works to
23027         "guessing yes".
23028         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
23029         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
23030         "guessing yes".
23031         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
23032         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
23033         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
23034         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
23035         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
23036         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
23037         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
23038         compiling to glibc systems, set gl_cv_func_svid_putenv to
23039         "guessing yes".
23040         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
23041         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
23042         "guessing yes".
23043         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
23044         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
23045         "guessing yes".
23046         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
23047         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
23048         to "guessing yes".
23049         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
23050         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
23051         to "guessing yes".
23052         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
23053         compiling to glibc systems, set gl_cv_func_rmdir_works to
23054         "guessing yes".
23055         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
23056         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
23057         gl_cv_func_unlink_parent_fails to "guessing yes".
23058         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
23059         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
23060         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
23061         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
23062         gl_cv_func_rename_dest_works to "guessing yes".
23063         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
23064         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
23065         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
23066         compiling to glibc systems, set gl_cv_func_roundf_ieee to
23067         "guessing yes".
23068         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
23069         compiling to glibc systems, set gl_cv_func_roundl_ieee to
23070         "guessing yes".
23071         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
23072         compiling to glibc systems, set gl_cv_func_setenv_works to
23073         "guessing yes".
23074         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
23075         compiling to glibc systems, set gl_cv_func_unsetenv_works to
23076         "guessing yes".
23077         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
23078         compiling to glibc systems, set gl_cv_func_sleep_works to
23079         "guessing yes".
23080         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
23081         compiling to glibc systems, set gl_cv_func_stat_file_slash to
23082         "guessing yes".
23083         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
23084         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
23085         "guessing yes".
23086         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
23087         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
23088         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
23089         compiling to glibc systems, set gl_cv_func_truncf_ieee to
23090         "guessing yes".
23091         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
23092         compiling to glibc systems, set gl_cv_func_truncl_ieee to
23093         "guessing yes".
23094         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
23095         compiling to glibc systems, set gl_cv_func_usleep_works to
23096         "guessing yes".
23097         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
23098         compiling to glibc systems, set gl_cv_func_futimesat_works to
23099         "guessing yes".
23101 2012-05-03  Bruno Haible  <bruno@clisp.org>
23103         Say "guessing yes" or "guessing no" when cross-compiling.
23104         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
23105         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
23106         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
23107         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
23108         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
23109         am_cv_func_working_getline to "guessing yes" or "guessing no".
23110         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
23111         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
23112         (gl_FUNC_MEMMEM): When cross-compiling, set
23113         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
23114         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
23115         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
23116         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
23117         set gl_cv_func_strcasestr_works_always to "guessing yes" or
23118         "guessing no".
23119         (gl_FUNC_STRCASESTR): When cross-compiling, set
23120         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
23121         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
23122         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
23123         (gl_FUNC_STRSTR): When cross-compiling, set
23124         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
23125         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
23126         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
23127         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
23128         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
23130 2012-05-01  Bruno Haible  <bruno@clisp.org>
23132         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
23133         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
23134         * build-aux/reloc-ldflags: Likewise.
23135         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
23137 2012-05-01  Bruno Haible  <bruno@clisp.org>
23139         gnulib-tool: Remove transitional code.
23140         * gnulib-tool: Don't warn about --import with 0 arguments any more.
23141         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
23143 2012-05-01  Bruno Haible  <bruno@clisp.org>
23145         getcwd: Fix misindentation.
23146         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
23148 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23150         exclude: process exclude and include directives in order
23151         This restores the pre-2009 behavior, and is part of a fix of a
23152         grep bug reported by Quentin Arce in
23153         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
23154         * lib/exclude.c (struct exclude): Remove 'tail' member.
23155         (new_exclude_segment): Prepend the new segment instead of appending.
23156         Return void, since that's now more convenient.
23157         (file_pattern_matches): Renamed from excluded_file_pattern_p.
23158         (file_name_matches): Renamed from excluded_file_name_p.
23159         (file_pattern_matches, file_name_matches):
23160         Return true if the pattern matches, not if it excludes.
23161         All callers changed.
23162         (excluded_file_name): Process the list in reverse order;
23163         since the list is now reversed this restores the pre-2009 behavior.
23164         (add_exclude): Adjust to new reversed-order list.  Use local var
23165         rather than macro, for clarity.
23166         * tests/test-exclude7.sh: Adjust to corrected behavior.
23168         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
23169         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
23170         it's not possible here.  Handle the case of \ at end of pattern
23171         without dumping core.
23172         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
23174         _Noreturn: future-proof non-GNU and non-MSVC compilers
23175         * build-aux/snippet/_Noreturn.h (_Noreturn):
23176         * m4/gnulib-common.m4 (gl_COMMON_BODY):
23177         Do not define _Noreturn if __STDC_VERSION__ indicates this is
23178         C11 or later.  This is more likely to work with random future C
23179         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
23180         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
23182         exclude: handle wildcards with FNM_EXTMATCH
23183         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
23184         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
23185         comment that "has wildcards" really means "has or may have
23186         wildcards".  Simplify by avoiding the need to call strcspn.
23188 2012-04-29  Bruno Haible  <bruno@clisp.org>
23190         gnulib-tool: Fix list of authors.
23191         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
23193 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
23195         bootstrap: support Automake-NG in $buildreq
23196         * bootstrap (check_versions): Handle automake and aclocal from
23197         Automake-NG specially.  They can be specified as respectively
23198         the "automake-ng" and "aclocal-ng" requirements.
23200 2012-04-25  Eric Blake  <eblake@redhat.com>
23202         bootstrap: only force latest Makefile.in.in for gettext module
23203         * build-aux/bootstrap (with_gettext): Only install latest
23204         Makefile.in.in for projects requesting bleeding edge gettext.
23206 2012-04-22  Bruno Haible  <bruno@clisp.org>
23208         doc: Mention reason for replacement on glibc/Linux systems.
23209         * doc/posix-functions/dprintf.texi: Mention the problem with special
23210         'long double' values.
23211         * doc/posix-functions/fprintf.texi: Likewise.
23212         * doc/posix-functions/printf.texi: Likewise.
23213         * doc/posix-functions/snprintf.texi: Likewise.
23214         * doc/posix-functions/sprintf.texi: Likewise.
23215         * doc/posix-functions/vdprintf.texi: Likewise.
23216         * doc/posix-functions/vfprintf.texi: Likewise.
23217         * doc/posix-functions/vprintf.texi: Likewise.
23218         * doc/posix-functions/vsnprintf.texi: Likewise.
23219         * doc/posix-functions/vsprintf.texi: Likewise.
23220         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
23221         platforms with F_DUPFD_CLOEXEC problems.
23222         * doc/posix-functions/glob.texi: Mention which platforms are affected
23223         by the problem with symbolic links.
23224         * doc/posix-functions/linkat.texi: Mention the problem with
23225         AT_SYMLINK_FOLLOW on Linux.
23227 2012-04-22  Bruno Haible  <bruno@clisp.org>
23229         pwrite: Don't replace on all platforms.
23230         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
23232 2012-04-22  Bruno Haible  <bruno@clisp.org>
23234         rint* tests: Avoid gcc warnings.
23235         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
23236         * tests/test-rintf.c (INFINITY, NAN): Likewise.
23237         * tests/test-rintl.c (INFINITY, NAN): Likewise.
23239 2012-04-21  Bruno Haible  <bruno@clisp.org>
23241         users.txt: Update.
23242         * users.txt: Add freedink, wdiff. Update URLs for projects that have
23243         switched from CVS to git, bzr, or svn.
23245 2012-04-21  Bruno Haible  <bruno@clisp.org>
23247         Large File Support for native Windows platforms.
23249         * m4/largefile.m4 (gl_LARGEFILE): New macro.
23250         * modules/largefile (configure.ac): Require gl_LARGEFILE.
23252         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
23253         type.
23254         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
23255         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
23256         * doc/posix-headers/sys_types.texi: Mention the effect of the
23257         'largefile' module.
23259         * lib/fcntl.in.h: Add comments about off_t.
23260         * modules/fcntl-h (Depends-on): Add sys_types.
23262         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
23263         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
23264         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
23265         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
23266         * modules/unistd (Depends-on): Add sys_types.
23267         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
23269         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
23270         instead of lseek.
23271         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
23272         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
23273         * modules/lseek (Depends-on): Add sys_types.
23275         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
23276         msvc-nothrow.h.
23277         (SetFileSize): New function.
23278         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
23279         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
23280         if Large File Support is requested.
23281         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
23282         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
23284         * lib/stdio.in.h: Add comments about off_t.
23285         * modules/stdio (Depends-on): Add sys_types.
23287         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
23288         instead of ftello.
23289         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
23290         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
23291         (gl_PREREQ_FTELLO): New macro.
23292         * modules/ftello (Depends-on): Add sys_types.
23293         (configure.ac): Incoke gl_PREREQ_FTELLO.
23295         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
23296         instead of fseeko.
23297         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
23298         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
23299         (gl_PREREQ_FSEEKO): New macro.
23300         * modules/fseeko (Depends-on): Add sys_types.
23301         (configure.ac): Invoke gl_PREREQ_FSEEKO.
23303         * lib/sys_stat.in.h: Add comments about off_t.
23304         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
23305         64-bit integer for st_size in 'struct stat'.
23306         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
23307         Define _GL_WINDOWS_64_BIT_ST_SIZE.
23308         * modules/sys_stat (Depends-on): Add sys_types.
23309         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
23311         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
23312         instead of stat or _stat.
23314         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
23315         'struct _stati64' instead of fstat and 'struct stat'.
23316         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
23317         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
23319         Reported by Ray Satiro <raysatiro@yahoo.com>.
23321 2012-04-19  Eric Blake  <eblake@redhat.com>
23323         bootstrap: accommodate older libtool
23324         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
23325         Reported by Daniel P. Berrange.
23327 2012-04-19  Jim Meyering  <meyering@redhat.com>
23329         announce-gen: avoid failure due to lack of Digest::SHA1
23330         Even with the preferred Digest::SHA available, this script
23331         would fail when the backup module, Digest::SHA1, was not installed.
23332         * build-aux/announce-gen: Quote the conditional use of "use".
23333         Reported by Reuben Thomas in:
23334         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
23336         bootstrap: don't let a user's CDPATH setting affect this script
23337         When CDPATH is set, cd will sometimes generate output.
23338         When "cd" is run in a subshell whose output matters, that
23339         surprising-to-some output can cause malfunction.
23340         Unsetting CDPATH turns off this shell "feature."
23341         * build-aux/bootstrap (CDPATH): Unset.
23342         Reported by Reuben Thomas in:
23343         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
23344         and inspired by his patch here:
23345         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
23347 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
23348         and Jim Meyering  <meyering@redhat.com>
23350         maint.mk: catch "see @xref{}" and similar
23351         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
23352         prohibit "See also @xref{", "Also see @pxref{", and similar.
23354 2012-04-16  Jim Meyering  <meyering@redhat.com>
23356         bootstrap: really use gnulib's po/Makefile.in.in
23357         * build-aux/bootstrap: Correct the source file name in previous change.
23358         Reported by Akim Demaille.
23360         configmake: correct minor inconsistency in Makefile rule
23361         * modules/configmake (Makefile.am): All other rules like this one
23362         run the final "mv -f ..." in the same backslash-continued command
23363         as the one that does everything else.  This one put the mv -f ...
23364         command on a separate, non-backslash-continued line.
23365         Make it like the others.
23367         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
23368         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
23369         the one from gettext.  Reported by Akim Demaille.
23371 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
23373         Fix recursion of install-* into po directories.
23374         Bison's install-pdf bug reported by Hans Aberg at
23375         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
23376         * build-aux/po/Makefile.in.in (install-dvi, install-html)
23377         (install-info, install-pdf, install-ps): New targets.
23379 2012-04-16  Jim Meyering  <meyering@redhat.com>
23381         maint: avoid spurious "make sc_maint" failure
23382         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
23383         exempt all *.class file names, for lib/javaversion.class.
23385 2012-04-15  Bruno Haible  <bruno@clisp.org>
23387         lseek: Make configure test independent of environment.
23388         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
23389         Windows, we know that lseek() on pipes is broken; skip the runtime
23390         test.
23392 2012-04-14  Bruno Haible  <bruno@clisp.org>
23394         stat: Bypass buggy override in mingw64.
23395         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
23396         * lib/stat.c (stat) [mingw64]: Define to _stat.
23397         * doc/posix-functions/stat.texi: Mention mingw64 bug.
23399 2012-04-14  Bruno Haible  <bruno@clisp.org>
23401         pathmax: Fix compilation error on MSVC 9.
23402         * modules/pathmax (Depends-on): Add unistd.
23404 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23406         README: document pointer comparison assumption
23407         * README (Portability guidelines): Document assumption about
23408         pointer comparisons, in response to a recent bug-gnulib comment by
23409         Jeffrey Kegler.
23411 2012-04-12  Bruno Haible  <bruno@clisp.org>
23413         Tests for module 'getrusage'.
23414         * modules/getrusage-tests: New file.
23415         * tests/test-getrusage.c: New file.
23417         New module 'getrusage'.
23418         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
23419         warn-on-use.h.
23420         (getrusage): New declaration.
23421         * lib/getrusage.c: New file.
23422         * m4/getrusage.m4: New file.
23423         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
23424         is declared.
23425         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
23426         HAVE_GETRUSAGE.
23427         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
23428         snippet/c++defs, snippet/warn-on-use.
23429         (Makefile.am): Update generation of sys/resource.h. Substitute
23430         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
23431         * modules/getrusage: New file.
23432         * doc/posix-functions/getrusage.texi: Mention the new module.
23434 2012-04-12  Bruno Haible  <bruno@clisp.org>
23436         Tests for module 'sys_resource'.
23437         * modules/sys_resource-tests: New file.
23438         * tests/test-sys_resource.c: New file.
23440         New module 'sys_resource'.
23441         * lib/sys_resource.in.h: New file.
23442         * m4/sys_resource_h.m4: New file.
23443         * modules/sys_resource: New file.
23444         * doc/posix-headers/sys_resource.texi: Mention the new module.
23446 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
23448         ioctl: Fix compilation error on mingw.
23449         * lib/ioctl.c: Include <windows.h>.
23450         Also reported by Ray Satiro <raysatiro@yahoo.com>.
23452 2012-04-04  Jim Meyering  <meyering@redhat.com>
23454         regex: correct #pragma guard expression
23455         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
23456         not 4.3.  Correct its cpp guard expression.
23458 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
23460         regex: remove unnecessary type punning
23461         Problem reported by Vladimir Serbinenko in
23462         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
23463         * lib/regex.h (struct re_pattern_buffer): Change the type of
23464         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
23465         Fix comment to match code.
23466         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
23467         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
23468         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
23469         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
23470         (set_regs):
23471         Omit no-longer-necessary casts.
23473 2012-04-03  Bruno Haible  <bruno@clisp.org>
23475         Tests for module 'ilogbl'.
23476         * modules/ilogbl-tests: New file.
23477         * tests/test-ilogbl.c: New file.
23479         New module 'ilogbl'.
23480         * lib/math.in.h (ilogbl): New declaration.
23481         * lib/ilogbl.c: New file.
23482         * m4/ilogbl.m4: New file.
23483         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
23484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
23485         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
23486         Split sed invocation, to avoid the limit of 100 substitutions of
23487         HP-UX 'sed'.
23488         * modules/ilogbl: New file.
23489         * tests/test-math-c++.cc: Check the declaration of ilogbl.
23490         * doc/posix-functions/ilogbl.texi: Mention the new module.
23492 2012-04-03  Bruno Haible  <bruno@clisp.org>
23494         Tests for module 'ilogbf'.
23495         * modules/ilogbf-tests: New file.
23496         * tests/test-ilogbf.c: New file.
23498         New module 'ilogbf'.
23499         * lib/math.in.h (ilogbf): New declaration.
23500         * lib/ilogbf.c: New file.
23501         * m4/ilogbf.m4: New file.
23502         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
23503         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
23504         REPLACE_ILOGBF.
23505         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
23506         REPLACE_ILOGBF.
23507         * modules/ilogbf: New file.
23508         * tests/test-math-c++.cc: Check the declaration of ilogbf.
23509         * doc/posix-functions/ilogbf.texi: Mention the new module.
23511 2012-04-03  Bruno Haible  <bruno@clisp.org>
23513         Tests for module 'ilogb'.
23514         * modules/ilogb-tests: New file.
23515         * tests/test-ilogb.c: New file.
23516         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
23517         tests/test-logb-ieee.h.
23519         New module 'ilogb'.
23520         * lib/math.in.h (ilogb): New declaration.
23521         * lib/ilogb.c: New file.
23522         * m4/ilogb.m4: New file.
23523         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
23524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
23525         REPLACE_ILOGB.
23526         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
23527         REPLACE_ILOGB.
23528         * modules/ilogb: New file.
23529         * tests/test-math-c++.cc: Check the declaration of ilogb.
23530         * doc/posix-functions/ilogb.texi: Mention the new module.
23532 2012-04-03  Bruno Haible  <bruno@clisp.org>
23534         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
23535         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
23536         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
23537         (main): Check their values.
23538         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
23539         problem.
23541 2012-04-03  Bruno Haible  <bruno@clisp.org>
23543         Tests for module 'logbl-ieee'.
23544         * modules/logbl-ieee-tests: New file.
23545         * tests/test-logbl-ieee.c: New file.
23547         New module 'logbl-ieee'.
23548         * modules/logbl-ieee: New file.
23550         Tests for module 'logb-ieee'.
23551         * modules/logb-ieee-tests: New file.
23552         * tests/test-logb-ieee.c: New file.
23554         New module 'logb-ieee'.
23555         * modules/logb-ieee: New file.
23557         Tests for module 'logbf-ieee'.
23558         * modules/logbf-ieee-tests: New file.
23559         * tests/test-logbf-ieee.c: New file.
23560         * tests/test-logb-ieee.h: New file.
23562         New module 'logbf-ieee'.
23563         * modules/logbf-ieee: New file.
23565 2012-04-03  Bruno Haible  <bruno@clisp.org>
23567         Tests for module 'logbl'.
23568         * modules/logbl-tests: New file.
23569         * tests/test-logbl.c: New file.
23571         New module 'logbl'.
23572         * lib/math.in.h (logbl): New declaration.
23573         * lib/logbl.c: New file.
23574         * m4/logbl.m4: New file.
23575         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
23576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
23577         REPLACE_LOGBL.
23578         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
23579         REPLACE_LOGBL.
23580         * modules/logbl: New file.
23581         * tests/test-math-c++.cc: Check the declaration of logbl.
23582         * doc/posix-functions/logbl.texi: Mention the new module.
23584 2012-04-02  Bruno Haible  <bruno@clisp.org>
23586         Tests for module 'logbf'.
23587         * modules/logbf-tests: New file.
23588         * tests/test-logbf.c: New file.
23590         New module 'logbf'.
23591         * lib/math.in.h (logbf): New declaration.
23592         * lib/logbf.c: New file.
23593         * m4/logbf.m4: New file.
23594         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
23595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
23596         REPLACE_LOGBF.
23597         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
23598         REPLACE_LOGBF.
23599         * modules/logbf: New file.
23600         * tests/test-math-c++.cc: Check the declaration of logbf.
23601         * doc/posix-functions/logbf.texi: Mention the new module.
23603 2012-04-02  Bruno Haible  <bruno@clisp.org>
23605         logb tests: More tests.
23606         * tests/test-logb.h: New file, based on tests/test-logb.c and
23607         tests/test-frexp.h.
23608         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
23609         (main): Just invoke test_function.
23610         * modules/logb-tests (Files): Add tests/test-logb.h,
23611         tests/minus-zero.h, tests/randomd.c.
23612         (Makefile.am): Add randomd.c to test_logb_SOURCES.
23614         logb: Provide replacement and workarounds.
23615         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
23616         is 1.
23617         * lib/logb.c: New file.
23618         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
23619         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
23620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
23621         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
23622         * modules/logb (Files): Add lib/logb.c.
23623         (Depends-on): Add isfinite, frexp, isnand.
23624         (configure.ac): Compile the replacement code logb.c if needed.
23625         * tests/test-math-c++.cc: Check the declaration of logb.
23626         * doc/posix-functions/logb.texi: Mention the replacement and the bug
23627         with subnormal numbers.
23629 2012-04-02  Bruno Haible  <bruno@clisp.org>
23631         log10* tests: Speed up.
23632         * tests/test-log10.h (test_function): Reduce amount of random numbers
23633         to test.
23635 2012-04-01  Bruno Haible  <bruno@clisp.org>
23637         logf-ieee: Fix test whether logf works.
23638         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
23640 2012-04-01  Bruno Haible  <bruno@clisp.org>
23642         log10l: Work around log10l-ieee test failure on IRIX 6.5.
23643         * lib/log10l.c: Include <float.h>
23644         (log10l): On IRIX, normalize the +Infinity value.
23645         * modules/log10l (Depends-on): Add 'float'.
23646         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
23647         +Infinity.
23649         log10f-ieee: Work around test failure on NetBSD 5.1.
23650         * m4/log10f-ieee.m4: New file.
23651         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
23652         test whether log10f works with a negative argument. Replace it if not.
23653         * lib/log10f.c (log10f): For negative arguments, return NaN.
23654         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
23655         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
23656         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
23658         log10f-ieee: Work around test failure on Solaris 9.
23659         * modules/log10f-ieee (Depends-on): Add log10-ieee.
23660         (configure.ac): Require gl_FUNC_LOG10F.
23662         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
23663         * m4/log10-ieee.m4: New file.
23664         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
23665         whether log10 works with a negative argument. Replace it if not.
23666         * lib/log10.c (log10): For negative arguments, return NaN.
23667         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
23668         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
23669         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
23671         Tests for module 'log10l-ieee'.
23672         * modules/log10l-ieee-tests: New file.
23673         * tests/test-log10l-ieee.c: New file.
23675         New module 'log10l-ieee'.
23676         * modules/log10l-ieee: New file.
23678         Tests for module 'log10-ieee'.
23679         * modules/log10-ieee-tests: New file.
23680         * tests/test-log10-ieee.c: New file.
23682         New module 'log10-ieee'.
23683         * modules/log10-ieee: New file.
23685         Tests for module 'log10f-ieee'.
23686         * modules/log10f-ieee-tests: New file.
23687         * tests/test-log10f-ieee.c: New file.
23688         * tests/test-log10-ieee.h: New file.
23690         New module 'log10f-ieee'.
23691         * modules/log10f-ieee: New file.
23693 2012-04-01  Bruno Haible  <bruno@clisp.org>
23695         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
23696         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
23697         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
23698         workaround.
23699         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
23700         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
23701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
23702         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
23703         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
23704         (Depends-on): Update conditions.
23705         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
23706         IRIX 6.5, OSF/1 5.1 problems.
23708 2012-04-01  Bruno Haible  <bruno@clisp.org>
23710         log10f: Work around OSF/1 5.1 bug.
23711         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
23712         * lib/log10f.c (log10f): If logf exists, use it and provide just the
23713         workaround.
23714         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
23715         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
23716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
23717         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
23718         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
23719         (Depends-on): Update conditions.
23720         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
23722 2012-04-01  Bruno Haible  <bruno@clisp.org>
23724         log10: Work around OSF/1 5.1 bug.
23725         * lib/math.in.h (log10): New declaration.
23726         * lib/log10.c: New file.
23727         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
23728         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
23729         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
23730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
23731         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
23732         * modules/log10 (Files): Add lib/log10.c.
23733         (Depends-on): Add math.
23734         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
23735         * tests/test-math-c++.cc: Check the declaration of log10.
23736         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
23738 2012-03-31  Bruno Haible  <bruno@clisp.org>
23740         log10l tests: More tests.
23741         * modules/log10l-tests (Files): Add tests/test-log10l.h,
23742         tests/minus-zero.h, tests/randoml.c.
23743         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
23744         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
23745         (main): Invoke test_function.
23747         log10f tests: More tests.
23748         * modules/log10f-tests (Files): Add tests/test-log10.h,
23749         tests/minus-zero.h, tests/randomf.c.
23750         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
23751         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
23752         (main): Invoke test_function.
23754         log10 tests: More tests.
23755         * tests/test-log10.h: New file.
23756         * modules/log10-tests (Files): Add tests/test-log10.h,
23757         tests/minus-zero.h, tests/randomd.c.
23758         (Makefile.am): Add randomd.c to test_log10_SOURCES.
23759         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
23760         (main): Invoke test_function.
23762 2012-03-31  Simon Josefsson  <simon@josefsson.org>
23764         fflush: Fix syntax error.
23765         * lib/fflush.c: Include unused-parameter.h, needed for
23766         _GL_UNUSED_PARAMETER.
23767         * modules/fflush (Depends-on): Add snippet/unused-parameter.
23769 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
23771         regex: pacify GCC when compiling GRUB
23772         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
23773         a diagnostic.  Reported by Vladimir Serbinenko in
23774         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
23776 2012-03-29  Eric Blake  <eblake@redhat.com>
23778         stdio: don't assume gets any more
23779         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
23780         support.
23781         * modules/stdio (Makefile.am): Likewise.
23782         * lib/stdio-read.c (gets): Likewise.
23783         * tests/test-stdio-c++.cc: Likewise.
23784         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
23785         * lib/stdio.in.h (gets): Make warning occur in more places.
23786         * doc/posix-functions/gets.texi (gets): Update documentation.
23787         Reported by Christer Solskogen.
23789         maint.mk: fix syntax checks without exclusions
23790         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
23791         Reported by Daniel P. Berrange.
23793         strerror_r: avoid compiler warning
23794         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
23795         level.
23797         fflush: avoid compiler warning
23798         * lib/fflush.c (update_fpos_cache): Mark variables that are
23799         potentially unused.
23801 2012-03-25  Bruno Haible  <bruno@clisp.org>
23803         Tests for module 'localeconv'.
23804         * modules/localeconv-tests: New file.
23805         * tests/test-localeconv.c: New file.
23807         New module 'localeconv'.
23808         * lib/locale.in.h (localeconv): New declaration.
23809         * lib/localeconv.c: New file.
23810         * m4/localeconv.m4: New file.
23811         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
23812         REPLACE_LOCALECONV.
23813         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
23814         REPLACE_LOCALECONV.
23815         * modules/localeconv: New file.
23816         * modules/nl_langinfo (Depends-on): Add localeconv.
23817         * modules/human (Depends-on): Likewise.
23818         * doc/posix-functions/localeconv.texi: Mention the new module.
23820 2012-03-25  Bruno Haible  <bruno@clisp.org>
23822         locale: Provide a complete 'struct lconv'.
23823         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
23824         'struct lconv' does not contain int_p_cs_precedes.
23825         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
23826         * doc/posix-headers/locale.texi: Update.
23828         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
23829         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
23830         * doc/posix-headers/locale.texi: Update.
23832         locale: Provide a working 'struct lconv'.
23833         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
23834         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
23835         'struct lconv' does not even contain decimal_point.
23836         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
23837         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
23838         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
23839         * doc/posix-headers/locale.texi: Mention the problems with
23840         'struct lconv'.
23841         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23843 2012-03-24  Bruno Haible  <bruno@clisp.org>
23845         Enable common subexpression optimization in GCC.
23846         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
23847         macros.
23848         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
23849         GCC attribute 'const'.
23850         (uc_locale_language): Declare with GCC attribute 'pure'.
23851         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
23852         with GCC attribute 'const'.
23853         * lib/unictype.in.h (uc_is_general_category_withtable,
23854         uc_combining_class, uc_combining_class_name,
23855         uc_combining_class_long_name, uc_bidi_class_name,
23856         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
23857         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
23858         uc_decimal_value, uc_digit_value, uc_numeric_value,
23859         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
23860         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
23861         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
23862         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
23863         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
23864         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
23865         Declare with GCC attribute 'const'.
23866         (uc_general_category_name, uc_general_category_long_name,
23867         uc_general_category_byname, uc_general_category,
23868         uc_is_general_category, uc_combining_class_byname,
23869         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
23870         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
23871         Declare with GCC attribute 'pure'.
23872         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
23873         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
23874         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
23875         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
23876         with GCC attribute 'pure'.
23877         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
23878         'const'.
23879         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
23880         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
23881         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
23882         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
23883         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
23884         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
23885         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
23886         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
23887         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
23888         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
23889         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
23890         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
23891         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
23892         GCC attribute 'pure'.
23893         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
23894         'const'.
23895         * lib/uniwidth.in.h (uc_width): Simplify declaration.
23896         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
23897         u32_strwidth): Declare with GCC attribute 'pure'.
23899         Enable common subexpression optimization in GCC.
23900         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
23901         (alphasort): Declare with GCC attribute 'pure'.
23902         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
23903         (atoll): Declare with GCC attribute 'pure'.
23904         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23905         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23906         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
23907         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
23908         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
23909         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
23910         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
23912 2012-03-24  Bruno Haible  <bruno@clisp.org>
23914         gnulib-tool: Avoid unintended error output from 'cmp'.
23915         * gnulib-tool (func_add_file, func_update_file, func_import): Use
23916         "cmp -s", not "cmp > /dev/null".
23918 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
23920         gnulib-tool: fix imprecise comments w.r.t. an automake bug
23922         It's not just Automake versions < 1.9b that creates an empty
23923         pkgdatadir at installation time if pkgdata_DATA is specified
23924         to empty; modern automake versions do this as well, at least
23925         until automake 1.11.4 (not yet released at the moment of writing,
23926         but soon to appear).  That behaviour was generally considered a
23927         feature rather than a bug, at least until this discussion:
23928         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
23930         See also automake bugs #10997 and #11030.
23932         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
23933         reference to relevant automake bug numbers.
23934         (func_emit_tests_Makefile_am): Likewise.
23936 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
23938         announce-gen: use Digest::SHA when possible
23939         * build-aux/announce-gen: Use Digest::SHA when possible, falling
23940         back to Digest::SHA1 if necessary.
23942 2012-03-20  Jim Meyering  <meyering@redhat.com>
23944         tests: avoid gcc warnings about argv vs. const initializers
23945         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
23946         warnings about discarding 'const' qualifier from pointer target type.
23947         * tests/test-posix_spawn2.c (main): Likewise.
23949 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
23951         README-release: simplify slightly
23952         * top/README-release: Run "git checkout master" only once.
23954 2012-03-15  Mark Wielaard  <mark@klomp.org>
23956         git-merge-changelog: add specific example on how to use with hg.
23957         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
23959 2012-03-18  Mark Wielaard  <mark@klomp.org>
23961         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
23963 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
23965         git-version-gen: don't let "prefix" envvar cause trouble
23966         * build-aux/git-version-gen (prefix): Initialize properly,
23967         so as not to use a value specified via the environment.
23968         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
23970 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23972         regex: diagnose too-large repeat counts in EREs
23973         Previously, the code did not diagnose the too-large repeat count
23974         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
23975         as if it were 'b\{1000000000}', which is unexpected.
23976         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
23977         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
23978         is a reasonable one for this problem.  Another option would be to
23979         create a new REG_OVERFLOW error for repeat counts that are too large.
23980         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
23981         count is too large, so that the caller can distinguish the two cases.
23982         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
23983         "Too large" return code, and that repeat counts are one example of this.
23985 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
23987         doc: some glibc x32 integer width issues
23988         * doc/posix-headers/sys_types.texi (sys/types.h):
23989         * doc/posix-headers/time.texi (time.h):
23990         Mention that glibc x32 does not conform to POSIX in a couple of
23991         areas related to integer widths.
23993 2012-03-15  Bruno Haible  <bruno@clisp.org>
23995         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
23996         * lib/fma.c (VOLATILE): New macro.
23997         (FUNC): Use it to work around a GCC compiler bug.
23999 2012-03-13  Bruno Haible  <bruno@clisp.org>
24001         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24002         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
24003         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
24004         REPLACE_HYPOTL to 1.
24005         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
24007 2012-03-13  Bruno Haible  <bruno@clisp.org>
24009         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24010         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
24011         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
24012         REPLACE_REMAINDERL to 1.
24013         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
24014         bug.
24016 2012-03-13  Bruno Haible  <bruno@clisp.org>
24018         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24019         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
24020         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
24021         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
24022         too big rounding errors.
24023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
24024         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
24025         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
24026         (Depends-on): Update conditions.
24027         * tests/test-sqrtl.c (my_ldexpl): New function.
24028         (main): Add test of a particular value.
24029         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24031 2012-03-13  Pádraig Brady  <P@draigBrady.com>
24033         doc: Update timer_* platform portability notes.
24034         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
24035         that always return ENOSYS.
24036         * doc/posix-functions/timer_delete.texi: Likewise.
24037         * doc/posix-functions/timer_gettime.texi: Likewise.
24038         * doc/posix-functions/timer_settime.texi: Likewise.
24040 2012-03-13  Bruno Haible  <bruno@clisp.org>
24042         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24043         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
24044         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
24045         REPLACE_CBRTL to 1.
24046         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24048 2012-03-13  Bruno Haible  <bruno@clisp.org>
24050         remainderl: Avoid compilation error on AIX >= 5.2.
24051         * lib/math.in.h (remainderl): Undefine macro from the system header.
24053 2012-03-13  Bruno Haible  <bruno@clisp.org>
24055         Avoid compilation errors with MSVC option -fp:strict.
24056         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
24057         * lib/cbrtf.c: Likewise.
24058         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24060 2012-03-12  Bruno Haible  <bruno@clisp.org>
24062         uninorm: Don't crash in out-of-memory conditions.
24063         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
24064         gracefully.
24065         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
24066         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
24068 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
24070         quote: fix syntax-check
24071         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
24072         also exports quote_quoting_options.
24074 2012-03-12  Simon Josefsson  <simon@josefsson.org>
24076         Collapse list of copyright years to ranges.  See
24077         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
24078         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
24079         build-aux/csharpexec.sh.in, build-aux/gnupload,
24080         build-aux/install-reloc, build-aux/javacomp.sh.in,
24081         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
24082         build-aux/move-if-change, build-aux/reloc-ldflags,
24083         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
24085 2012-03-11  Bruno Haible  <bruno@clisp.org>
24087         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24088         * m4/log2f-ieee.m4: New file.
24089         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
24090         whether log2f works with a minus zero argument. Replace it if not.
24091         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
24092         (Depends-on): Add log2-ieee.
24093         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
24094         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
24096         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24097         * m4/log2-ieee.m4: New file.
24098         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
24099         whether log2 works with a minus zero argument. Replace it if not.
24100         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
24101         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
24102         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
24104         Tests for module 'log2l-ieee'.
24105         * modules/log2l-ieee-tests: New file.
24106         * tests/test-log2l-ieee.c: New file.
24108         New module 'log2l-ieee'.
24109         * modules/log2l-ieee: New file.
24111         Tests for module 'log2-ieee'.
24112         * modules/log2-ieee-tests: New file.
24113         * tests/test-log2-ieee.c: New file.
24115         New module 'log2-ieee'.
24116         * modules/log2-ieee: New file.
24118         Tests for module 'log2f-ieee'.
24119         * modules/log2f-ieee-tests: New file.
24120         * tests/test-log2f-ieee.c: New file.
24121         * tests/test-log2-ieee.h: New file.
24123         New module 'log2f-ieee'.
24124         * modules/log2f-ieee: New file.
24126 2012-03-11  Bruno Haible  <bruno@clisp.org>
24128         Tests for module 'log2l'.
24129         * modules/log2l-tests: New file.
24130         * tests/test-log2l.c: New file.
24132         New module 'log2l'.
24133         * lib/math.in.h (log2l): New declaration.
24134         * lib/log2l.c: New file.
24135         * m4/log2l.m4: New file.
24136         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
24137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
24138         REPLACE_LOG2L.
24139         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
24140         REPLACE_LOG2L.
24141         * modules/log2l: New file.
24142         * tests/test-math-c++.cc: Check the declaration of log2l.
24143         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
24144         and OSF/1 problems.
24146 2012-03-11  Bruno Haible  <bruno@clisp.org>
24148         Tests for module 'log2f'.
24149         * modules/log2f-tests: New file.
24150         * tests/test-log2f.c: New file.
24152         New module 'log2f'.
24153         * lib/math.in.h (log2f): New declaration.
24154         * lib/log2f.c: New file.
24155         * m4/log2f.m4: New file.
24156         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
24157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
24158         REPLACE_LOG2F.
24159         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
24160         REPLACE_LOG2F.
24161         * modules/log2f: New file.
24162         * tests/test-math-c++.cc: Check the declaration of log2f.
24163         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
24164         and OSF/1 and Cygwin problems.
24166 2012-03-11  Bruno Haible  <bruno@clisp.org>
24168         Tests for module 'log2'.
24169         * modules/log2-tests: New file.
24170         * tests/test-log2.c: New file.
24171         * tests/test-log2.h: New file.
24173         New module 'log2'.
24174         * lib/math.in.h (log2): New declaration.
24175         * lib/log2.c: New file.
24176         * m4/log2.m4: New file.
24177         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
24178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
24179         REPLACE_LOG2.
24180         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
24181         REPLACE_LOG2.
24182         * modules/log2: New file.
24183         * tests/test-math-c++.cc: Check the declaration of log2.
24184         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
24185         and OSF/1 and Cygwin problems.
24187 2012-03-11  Bruno Haible  <bruno@clisp.org>
24189         exp2* tests: More tests.
24190         * tests/test-exp2.h (test_function): Test all integral arguments that
24191         don't need to overflow or denormalized numbers.
24192         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
24193         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
24194         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
24196 2012-03-10  Bruno Haible  <bruno@clisp.org>
24198         log1pl-ieee: Work around test failure on AIX 7.1.
24199         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
24201         log1pl-ieee: Work around test failure on IRIX 6.5.
24202         * m4/log1pl-ieee.m4: New file.
24203         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
24204         test whether log1pl works with a minus zero argument. Replace it if
24205         not.
24206         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
24207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
24208         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
24209         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
24210         (Depends-on): Update conditions.
24211         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24212         m4/signbit.m4.
24213         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
24214         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
24216         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
24217         * m4/log1pf-ieee.m4: New file.
24218         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
24219         test whether log1pf works with a minus zero argument. Replace it if
24220         not.
24221         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
24222         m4/signbit.m4.
24223         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
24224         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
24226         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
24227         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
24228         (configure.ac): Require gl_FUNC_LOG1PF.
24230         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
24231         * m4/log1p-ieee.m4: New file.
24232         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
24233         whether log1p works with a minus zero argument. Replace it if not.
24234         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
24235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
24236         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
24237         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
24238         (Depends-on): Update conditions.
24239         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24240         m4/signbit.m4.
24241         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
24242         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
24244         Tests for module 'log1pl-ieee'.
24245         * modules/log1pl-ieee-tests: New file.
24246         * tests/test-log1pl-ieee.c: New file.
24248         New module 'log1pl-ieee'.
24249         * modules/log1pl-ieee: New file.
24251         Tests for module 'log1p-ieee'.
24252         * modules/log1p-ieee-tests: New file.
24253         * tests/test-log1p-ieee.c: New file.
24255         New module 'log1p-ieee'.
24256         * modules/log1p-ieee: New file.
24258         Tests for module 'log1pf-ieee'.
24259         * modules/log1pf-ieee-tests: New file.
24260         * tests/test-log1pf-ieee.c: New file.
24261         * tests/test-log1p-ieee.h: New file.
24263         New module 'log1pf-ieee'.
24264         * modules/log1pf-ieee: New file.
24266 2012-03-10  Bruno Haible  <bruno@clisp.org>
24268         Tests for module 'log1pl'.
24269         * modules/log1pl-tests: New file.
24270         * tests/test-log1pl.c: New file.
24272         New module 'log1pl'.
24273         * lib/math.in.h (log1pl): New declaration.
24274         * lib/log1pl.c: New file.
24275         * m4/log1pl.m4: New file.
24276         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
24277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
24278         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
24279         * modules/log1pl: New file.
24280         * tests/test-math-c++.cc: Check the declaration of log1pl.
24281         * doc/posix-functions/log1pl.texi: Mention the new module.
24283 2012-03-10  Bruno Haible  <bruno@clisp.org>
24285         Tests for module 'log1pf'.
24286         * modules/log1pf-tests: New file.
24287         * tests/test-log1pf.c: New file.
24289         New module 'log1pf'.
24290         * lib/math.in.h (log1pf): New declaration.
24291         * lib/log1pf.c: New file.
24292         * m4/log1pf.m4: New file.
24293         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
24294         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
24295         REPLACE_LOG1PF.
24296         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
24297         REPLACE_LOG1PF.
24298         * modules/log1pf: New file.
24299         * tests/test-math-c++.cc: Check the declaration of log1pf.
24300         * doc/posix-functions/log1pf.texi: Mention the new module.
24302 2012-03-10  Bruno Haible  <bruno@clisp.org>
24304         log1p tests: More tests.
24305         * tests/test-log1p.h: New file.
24306         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
24307         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
24308         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
24309         (main): Invoke test_function.
24311         log1p: Provide replacement for Minix and MSVC.
24312         * lib/math.in.h (log1p): New declaration.
24313         * lib/log1p.c: New file.
24314         * m4/log1p.m4: New file.
24315         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
24316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
24317         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
24318         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
24319         (Depends-on): Add math, isnand, log, round.
24320         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
24321         HAVE_LOG1P is 0.
24322         * tests/test-math-c++.cc: Check the declaration of log1p.
24323         * doc/posix-functions/log1p.texi: Mention the replacement.
24325 2012-03-10  Bruno Haible  <bruno@clisp.org>
24327         math tests: Small simplification.
24328         * tests/test-exp.h (test_function): Use the same err_bound for
24329         'double' on platforms with sizeof (long double) == sizeof (double)
24330         than on platforms with sizeof (long double) > sizeof (double).
24331         * tests/test-exp2.h (test_function): Likewise.
24332         * tests/test-expm1.h (test_function): Likewise.
24333         * tests/test-log.h (test_function): Likewise.
24335 2012-03-10  Bruno Haible  <bruno@clisp.org>
24337         Fix some comments.
24338         * lib/expl.c: Fix an ambiguous comment.
24339         * lib/expm1.c: Likewise.
24340         * lib/expm1l.c: Likewise.
24341         * lib/exp2.c: Likewise.
24342         * lib/exp2l.c: Likewise.
24344 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
24346         regex: allow inclusion of <regex.h> before <limits.h>
24347         Without this patch, portable programs had to include <limits.h> before
24348         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
24349         I ran into this problem with a test version of GNU grep on Solaris 8.
24350         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
24351         This is done conditionally so that this change can be merged
24352         back to glibc.
24353         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
24354         using the included regex.
24356         fts: depend on fdopendir
24357         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
24358         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
24359         problem was introduced when fdopendir was split out.
24361 2012-03-10  Bruno Haible  <bruno@clisp.org>
24363         Remove unused variables.
24364         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
24365         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
24367 2012-03-10  Bruno Haible  <bruno@clisp.org>
24369         isnanf-nolibm: Fix last commit.
24370         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
24372         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
24373         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
24375 2012-03-10  Bruno Haible  <bruno@clisp.org>
24377         logf-ieee: Work around test failure on NetBSD 5.1.
24378         * m4/logf-ieee.m4: New file.
24379         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
24380         whether logf works with a negative argument. Replace it if not.
24381         * lib/logf.c (logf): For negative arguments, return NaN.
24382         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
24383         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
24384         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
24386         logf-ieee: Work around test failure on Solaris 9.
24387         * modules/logf-ieee (Depends-on): Add log-ieee.
24388         (configure.ac): Require gl_FUNC_LOGF.
24390         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
24391         * m4/log-ieee.m4: New file.
24392         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
24393         log works with a negative argument. Replace it if not.
24394         * lib/log.c (log): For negative arguments, return NaN.
24395         * modules/log-ieee (Files): Add m4/log-ieee.m4.
24396         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
24397         * doc/posix-functions/log.texi: Mention the log-ieee module.
24399         Tests for module 'logl-ieee'.
24400         * modules/logl-ieee-tests: New file.
24401         * tests/test-logl-ieee.c: New file.
24403         New module 'logl-ieee'.
24404         * modules/logl-ieee: New file.
24406         Tests for module 'log-ieee'.
24407         * modules/log-ieee-tests: New file.
24408         * tests/test-log-ieee.c: New file.
24410         New module 'log-ieee'.
24411         * modules/log-ieee: New file.
24413         Tests for module 'logf-ieee'.
24414         * modules/logf-ieee-tests: New file.
24415         * tests/test-logf-ieee.c: New file.
24416         * tests/test-log-ieee.h: New file.
24418         New module 'logf-ieee'.
24419         * modules/logf-ieee: New file.
24421 2012-03-10  Bruno Haible  <bruno@clisp.org>
24423         log: Fix bug introduced on 2012-03-09.
24424         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
24426 2012-03-10  Pádraig Brady  <P@draigBrady.com>
24428         timer-time: link explicitly with pthreads on glibc
24429         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
24430         to support static linking, when newer glibc is
24431         detected, as that contains pthread emulation of
24432         POSIX timer functions where required.
24433         * modules/timer-time: Depend on threadlib to
24434         pull in the appropriate library to link.
24436 2012-03-10  Bruno Haible  <bruno@clisp.org>
24438         log* tests: More tests.
24439         * tests/test-log.h: New file.
24440         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
24441         (main): Invoke test_function.
24442         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
24443         (main): Invoke test_function.
24444         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
24445         (main): Invoke test_function.
24446         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24447         tests/randomd.c.
24448         (Makefile.am): Add randomd.c to test_log_SOURCES.
24449         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24450         tests/randomf.c.
24451         (Makefile.am): Add randomf.c to test_logf_SOURCES.
24452         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
24453         tests/randoml.c.
24454         (Depends-on): Add 'float'.
24455         (Makefile.am): Add randoml.c to test_logl_SOURCES.
24457 2012-03-09  Bruno Haible  <bruno@clisp.org>
24459         logl: Work around OSF/1 5.1 bug.
24460         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
24461         * lib/logl.c (logl): If logl exists, use it and provide just the
24462         workaround.
24463         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
24464         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
24465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
24466         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
24467         * modules/logl (configure.ac): Consider REPLACE_LOGL.
24468         (Depends-on): Update conditions.
24469         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
24471 2012-03-09  Bruno Haible  <bruno@clisp.org>
24473         logf: Work around OSF/1 5.1 bug.
24474         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
24475         * lib/logf.c (logf): If logf exists, use it and provide just the
24476         workaround.
24477         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
24478         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
24479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
24480         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
24481         * modules/logf (configure.ac): Consider REPLACE_LOGF.
24482         (Depends-on): Update conditions.
24483         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
24485 2012-03-09  Bruno Haible  <bruno@clisp.org>
24487         log: Work around OSF/1 5.1 bug.
24488         * lib/math.in.h (log): New declaration.
24489         * lib/log.c: New file.
24490         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
24491         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
24492         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
24493         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
24494         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
24495         * modules/log (Files): Add lib/log.c.
24496         (Depends-on): Add math.
24497         (configure.ac): If REPLACE_LOG is 1, compile an override.
24498         * tests/test-math-c++.cc: Check the declaration of log.
24499         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
24501 2012-03-09  Jim Meyering  <meyering@redhat.com>
24503         readtokens.c: adjust wording in a comment
24504         * lib/readtokens.c: Insert omitted "that" in a comment.
24506 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24508         modechange: add notations +40, 00440, etc.
24509         * lib/modechange.c (mode_compile): Support new notations
24510         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
24512 2012-03-08  Bruno Haible  <bruno@clisp.org>
24514         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
24515         * m4/exp2l-ieee.m4: New file.
24516         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
24517         test whether exp2l works with a NaN argument and with a negative
24518         infinity argument. Replace it if not.
24519         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
24520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
24521         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
24522         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
24523         (Depends-on): Update conditions.
24524         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
24525         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
24526         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
24528         Tests for module 'exp2l-ieee'.
24529         * modules/exp2l-ieee-tests: New file.
24530         * tests/test-exp2l-ieee.c: New file.
24532         New module 'exp2l-ieee'.
24533         * modules/exp2l-ieee: New file.
24535         Tests for module 'exp2-ieee'.
24536         * modules/exp2-ieee-tests: New file.
24537         * tests/test-exp2-ieee.c: New file.
24539         New module 'exp2-ieee'.
24540         * modules/exp2-ieee: New file.
24542         Tests for module 'exp2f-ieee'.
24543         * modules/exp2f-ieee-tests: New file.
24544         * tests/test-exp2f-ieee.c: New file.
24545         * tests/test-exp2-ieee.h: New file.
24547         New module 'exp2f-ieee'.
24548         * modules/exp2f-ieee: New file.
24550 2012-03-08  Bruno Haible  <bruno@clisp.org>
24552         Tests for module 'exp2l'.
24553         * modules/exp2l-tests: New file.
24554         * tests/test-exp2l.c: New file.
24556         New module 'exp2l'.
24557         * lib/math.in.h (exp2l): New declaration.
24558         * lib/exp2l.c: New file.
24559         * lib/expl-table.c: New file, extracted from lib/expl.c.
24560         * lib/expl.c (gl_expl_table): New declaration.
24561         (expl): Remove expl_table. Update reference.
24562         * m4/exp2l.m4: New file.
24563         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
24564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
24565         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
24566         * modules/exp2l: New file.
24567         * modules/expl (Files): Add lib/expl-table.c.
24568         (configure.ac): Compile also expl-table.c.
24569         * tests/test-math-c++.cc: Check the declaration of exp2l.
24570         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
24571         problem.
24573 2012-03-08  Bruno Haible  <bruno@clisp.org>
24575         Tests for module 'exp2f'.
24576         * modules/exp2f-tests: New file.
24577         * tests/test-exp2f.c: New file.
24579         New module 'exp2f'.
24580         * lib/math.in.h (exp2f): New declaration.
24581         * lib/exp2f.c: New file.
24582         * m4/exp2f.m4: New file.
24583         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
24584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
24585         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
24586         * modules/exp2f: New file.
24587         * tests/test-math-c++.cc: Check the declaration of exp2f.
24588         * doc/posix-functions/exp2f.texi: Mention the new module and the
24589         IRIX problem.
24591 2012-03-08  Bruno Haible  <bruno@clisp.org>
24593         Tests for module 'exp2'.
24594         * modules/exp2-tests: New file.
24595         * tests/test-exp2.c: New file.
24596         * tests/test-exp2.h: New file.
24598         New module 'exp2'.
24599         * lib/math.in.h (exp2): New declaration.
24600         * lib/exp2.c: New file.
24601         * m4/exp2.m4: New file.
24602         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
24603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
24604         REPLACE_EXP2.
24605         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
24606         REPLACE_EXP2.
24607         * modules/exp2: New file.
24608         * tests/test-math-c++.cc: Check the declaration of exp2.
24609         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
24610         and OpenBSD problems.
24612 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24614         savedir: fix comment typo
24615         * lib/savedir.c (savedirstream): Fix typo in comment.
24617 2012-03-08  Bruno Haible  <bruno@clisp.org>
24619         test-readtokens.c: use const; remove unwarranted cast
24620         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
24622 2012-03-08  Bruno Haible  <bruno@clisp.org>
24624         fmal: Avoid compilation error on AIX.
24625         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
24626         AIX 5.2..7.1.
24628 2012-03-08  Bruno Haible  <bruno@clisp.org>
24630         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
24631         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
24632         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
24633         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
24634         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
24635         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
24636         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
24638 2012-03-08  Bruno Haible  <bruno@clisp.org>
24640         remainderf: Override buggy system function on IRIX 6.5.
24641         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
24642         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
24643         when it exists.
24644         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
24646 2012-03-08  Jim Meyering  <meyering@redhat.com>
24648         test-readtokens.c: avoid const-related compilation warnings
24649         * tests/test-readtokens.c: Avoid const-related compilation warnings.
24651 2012-03-07  Jim Meyering  <meyering@redhat.com>
24652             Bruno Haible  <bruno@clisp.org>
24654         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
24655         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
24656         tests/randomd.c.
24657         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
24658         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
24659         tests/randoml.c.
24660         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
24662 2012-03-07  Bruno Haible  <bruno@clisp.org>
24664         expm1l: Avoid compilation error on AIX.
24665         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
24666         AIX 5.2..7.1.
24668 2012-03-07  Bruno Haible  <bruno@clisp.org>
24670         expm1l: Don't override undeclared system function on IRIX 6.5.
24671         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
24672         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
24673         it exists. Set HAVE_DECL_EXPM1L.
24674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
24675         HAVE_EXPM1L.
24676         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
24677         HAVE_EXPM1L.
24678         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
24680 2012-03-07  Bruno Haible  <bruno@clisp.org>
24682         remainderl: Don't override undeclared system function on IRIX 6.5.
24683         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
24684         HAVE_REMAINDERL.
24685         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
24686         declared when it exists. Set HAVE_DECL_REMAINDERL.
24687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
24688         not HAVE_REMAINDERL.
24689         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
24690         HAVE_REMAINDERL.
24691         * doc/posix-functions/remainderl.texi: Mention missing declaration
24692         problem.
24694 2012-03-07  Bruno Haible  <bruno@clisp.org>
24696         rintf: Don't override undeclared system function on IRIX 6.5.
24697         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
24698         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
24699         exists. Set HAVE_DECL_RINTF.
24700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
24701         HAVE_RINTF.
24702         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
24703         HAVE_RINTF.
24704         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
24706 2012-03-07  Bruno Haible  <bruno@clisp.org>
24708         roundl: Avoid compilation error on AIX.
24709         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
24710         AIX 5.2..7.1.
24712 2012-03-07  Bruno Haible  <bruno@clisp.org>
24714         roundl: Don't override undeclared system function on IRIX 6.5.
24715         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
24716         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
24717         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
24718         * modules/roundl (configure.ac): For replacement code, test
24719         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
24720         (Depends-on): Update conditions.
24721         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
24723 2012-03-07  Bruno Haible  <bruno@clisp.org>
24725         roundf: Don't override undeclared system function on IRIX 6.5.
24726         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
24727         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
24728         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
24729         * modules/roundf (configure.ac): For replacement code, test
24730         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
24731         (Depends-on): Update conditions.
24732         * modules/roundf-ieee (Depends-on): Update conditions.
24733         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
24735 2012-03-07  Bruno Haible  <bruno@clisp.org>
24737         round: Don't override undeclared system function on IRIX 6.5.
24738         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
24739         argument.
24740         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
24741         also when it is not declared. Set HAVE_ROUND. For replacement code,
24742         test HAVE_ROUND, not HAVE_DECL_ROUND.
24743         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
24744         not HAVE_DECL_ROUND.
24745         (Depends-on): Update conditions.
24746         * modules/round-ieee (Depends-on): Update conditions.
24747         * doc/posix-functions/round.texi: Mention the IRIX problem.
24749 2012-03-07  Bruno Haible  <bruno@clisp.org>
24751         copysignf: Don't override undeclared system function on IRIX 6.5.
24752         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
24753         HAVE_COPYSIGNF.
24754         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
24755         declared when it exists. Set HAVE_DECL_COPYSIGNF.
24756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
24757         not HAVE_COPYSIGNF.
24758         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
24759         HAVE_COPYSIGNF.
24760         * doc/posix-functions/copysignf.texi: Mention missing declaration
24761         problem.
24763 2012-03-07  Jim Meyering  <meyering@redhat.com>
24765         readtokens: add tests
24766         * modules/readtokens-tests: New file.
24767         * tests/test-readtokens.c: New file.
24769 2012-03-07  Jim Meyering  <meyering@redhat.com>
24771         quotearg: the module must now include quote.h
24772         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
24773         So must the module.
24774         * modules/quotearg (Files): Add quote.h.
24776 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
24778         readtokens: avoid core dumps with unusual calling patterns
24779         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
24780         * lib/readtokens.c: Include limits.h.
24781         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
24782         (readtoken): Don't cache the delimiters; the cache code was buggy
24783         if !delim && saved_delim, or if the new n_delim differs from the old.
24784         Also, it wasn't thread-safe.
24786 2012-03-07  Bruno Haible  <bruno@clisp.org>
24788         quote: Adhere to common module description layout.
24789         * modules/quote (Makefile.am): Add back empty section.
24791 2012-03-06  Akim Demaille  <demaille@gostai.com>
24793         quote: fuse into quotearg
24794         This patch is made for the benefit of Bison.
24795         quote does not leave the choice of the quoting style to the user.
24796         quoting_style provides poor customizability, yet quoting_options,
24797         which is very rich, is hidden inside quotearg.c.  So in order to
24798         allow quote customization, move its implementation to quotearg.c.
24799         * lib/quote.c: Remove.
24800         * modules/quote: Adjust.
24801         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
24802         warning: provide all the members of literal structs.
24803         (quote_quoting_options): New.
24804         (quote, quote_n): Import implementation from quote.c.
24805         * lib/quote.h: Import the comments from quote.c.
24806         (quote_quoting_options): New.
24808 2012-03-06  Bruno Haible  <bruno@clisp.org>
24810         Tests for module 'expm1l-ieee'.
24811         * modules/expm1l-ieee-tests: New file.
24812         * tests/test-expm1l-ieee.c: New file.
24814         New module 'expm1l-ieee'.
24815         * modules/expm1l-ieee: New file.
24817         Tests for module 'expm1f-ieee'.
24818         * modules/expm1f-ieee-tests: New file.
24819         * tests/test-expm1f-ieee.c: New file.
24821         New module 'expm1f-ieee'.
24822         * modules/expm1f-ieee: New file.
24824         Tests for module 'expm1-ieee'.
24825         * modules/expm1-ieee-tests: New file.
24826         * tests/test-expm1-ieee.c: New file.
24827         * tests/test-expm1-ieee.h: New file.
24829         New module 'expm1-ieee'.
24830         * modules/expm1-ieee: New file.
24831         * m4/expm1-ieee.m4: New file.
24832         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
24833         whether expm1 works with a minus zero argument. Replace it if not.
24834         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
24835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
24836         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
24837         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
24838         (Depends-on): Update conditions.
24839         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
24840         AIX problem.
24842 2012-03-06  Bruno Haible  <bruno@clisp.org>
24844         Work around expm1f bug on IRIX 6.5.
24845         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
24846         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
24847         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
24848         not work.
24849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
24850         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
24851         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
24852         (Depends-on): Update conditions.
24853         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
24855 2012-03-06  Bruno Haible  <bruno@clisp.org>
24857         Tests for module 'expm1l'.
24858         * modules/expm1l-tests: New file.
24859         * tests/test-expm1l.c: New file.
24861         New module 'expm1l'.
24862         * lib/math.in.h (expm1l): New declaration.
24863         * lib/expm1l.c: New file.
24864         * m4/expm1l.m4: New file.
24865         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
24866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
24867         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
24868         * modules/expm1l: New file.
24869         * tests/test-math-c++.cc: Check the declaration of expm1l.
24870         * doc/posix-functions/expm1l.texi: Mention the new module.
24872 2012-03-06  Bruno Haible  <bruno@clisp.org>
24874         Tests for module 'expm1f'.
24875         * modules/expm1f-tests: New file.
24876         * tests/test-expm1f.c: New file.
24878         New module 'expm1f'.
24879         * lib/math.in.h (expm1f): New declaration.
24880         * lib/expm1f.c: New file.
24881         * m4/expm1f.m4: New file.
24882         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
24883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
24884         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
24885         * modules/expm1f: New file.
24886         * tests/test-math-c++.cc: Check the declaration of expm1f.
24887         * doc/posix-functions/expm1f.texi: Mention the new module.
24889 2012-03-06  Bruno Haible  <bruno@clisp.org>
24891         Tests for module 'expm1'.
24892         * modules/expm1-tests: New file.
24893         * tests/test-expm1.c: New file.
24894         * tests/test-expm1.h: New file.
24896         New module 'expm1'.
24897         * lib/math.in.h (expm1): New declaration.
24898         * lib/expm1.c: New file.
24899         * m4/expm1.m4: New file.
24900         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
24901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
24902         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
24903         * modules/expm1: New file.
24904         * tests/test-math-c++.cc: Check the declaration of expm1.
24905         * doc/posix-functions/expm1.texi: Mention the new module.
24907 2012-03-06  Bruno Haible  <bruno@clisp.org>
24909         math: Ensure declarations of math functions.
24910         * modules/acosf (Depends-on): Add 'extensions'.
24911         * modules/asinf (Depends-on): Likewise.
24912         * modules/atan2f (Depends-on): Likewise.
24913         * modules/atanf (Depends-on): Likewise.
24914         * modules/cbrt (Depends-on): Likewise.
24915         * modules/cbrtf (Depends-on): Likewise.
24916         * modules/cbrtl (Depends-on): Likewise.
24917         * modules/copysignf (Depends-on): Likewise.
24918         * modules/copysignl (Depends-on): Likewise.
24919         * modules/cosf (Depends-on): Likewise.
24920         * modules/coshf (Depends-on): Likewise.
24921         * modules/expf (Depends-on): Likewise.
24922         * modules/fabsf (Depends-on): Likewise.
24923         * modules/fabsl (Depends-on): Likewise.
24924         * modules/fmaf (Depends-on): Likewise.
24925         * modules/fmal (Depends-on): Likewise.
24926         * modules/fmodf (Depends-on): Likewise.
24927         * modules/fmodl (Depends-on): Likewise.
24928         * modules/frexpf (Depends-on): Likewise.
24929         * modules/frexpl (Depends-on): Likewise.
24930         * modules/hypot (Depends-on): Likewise.
24931         * modules/hypotf (Depends-on): Likewise.
24932         * modules/hypotl (Depends-on): Likewise.
24933         * modules/ldexpf (Depends-on): Likewise.
24934         * modules/ldexpl (Depends-on): Likewise.
24935         * modules/log10f (Depends-on): Likewise.
24936         * modules/log10l (Depends-on): Likewise.
24937         * modules/log1p (Depends-on): Likewise.
24938         * modules/logb (Depends-on): Likewise.
24939         * modules/logf (Depends-on): Likewise.
24940         * modules/modff (Depends-on): Likewise.
24941         * modules/modfl (Depends-on): Likewise.
24942         * modules/powf (Depends-on): Likewise.
24943         * modules/remainderf (Depends-on): Likewise.
24944         * modules/remainderl (Depends-on): Likewise.
24945         * modules/rintf (Depends-on): Likewise.
24946         * modules/rintl (Depends-on): Likewise.
24947         * modules/sinf (Depends-on): Likewise.
24948         * modules/sinhf (Depends-on): Likewise.
24949         * modules/sqrtf (Depends-on): Likewise.
24950         * modules/tanf (Depends-on): Likewise.
24951         * modules/tanhf (Depends-on): Likewise.
24952         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
24953         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
24954         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
24955         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
24956         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
24957         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
24958         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
24959         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
24960         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
24961         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
24962         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
24963         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
24964         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
24965         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
24966         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
24967         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
24968         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
24969         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
24970         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
24971         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
24972         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
24973         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
24974         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
24975         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
24976         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
24977         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
24978         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
24979         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
24980         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
24981         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
24982         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
24983         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
24984         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
24985         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
24986         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
24987         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
24988         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
24989         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
24990         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
24991         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
24992         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
24994 2012-03-06  Bruno Haible  <bruno@clisp.org>
24996         math: Update module names in warnings.
24997         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24998         tanl): Use specific module name in warn-on-use warning.
25000 2012-03-06  Bruno Haible  <bruno@clisp.org>
25002         expl: Simplify computation.
25003         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
25005 2012-03-05  Bruno Haible  <bruno@clisp.org>
25007         exp* tests: More tests.
25008         * tests/test-exp.h: New file.
25009         * tests/test-exp.c: Include <float.h> and test-exp.h.
25010         (main): Invoke test_function.
25011         * tests/test-expf.c: Include <float.h> and test-exp.h.
25012         (main): Invoke test_function.
25013         * tests/test-expl.c: Include <float.h> and test-exp.h.
25014         (main): Invoke test_function.
25015         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
25016         (Makefile.am): Add randomd.c to test_exp_SOURCES.
25017         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
25018         (Makefile.am): Add randomf.c to test_expf_SOURCES.
25019         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
25020         (Depends-on): Add 'float'.
25021         (Makefile.am): Add randoml.c to test_expl_SOURCES.
25023         expl: Fix precision of computed result.
25024         * lib/expl.c: Completely rewritten.
25025         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
25026         (Maintainer): Add me.
25027         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
25029 2012-03-05  Bruno Haible  <bruno@clisp.org>
25031         cbrt* tests: More tests.
25032         * tests/test-cbrt.h: New file.
25033         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
25034         (main): Invoke test_function.
25035         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
25036         (main): Invoke test_function.
25037         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
25038         (main): Invoke test_function.
25039         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
25040         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
25041         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
25042         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
25043         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
25044         (Depends-on): Add 'float'.
25045         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
25047 2012-03-05  Bruno Haible  <bruno@clisp.org>
25049         hypot* tests: More tests.
25050         * tests/test-hypot.h: New file, partially extracted from
25051         tests/test-hypotl.c.
25052         * tests/test-hypot.c: Include test-hypot.h.
25053         (main): Invoke test_function.
25054         * tests/test-hypotf.c: Include test-hypot.h.
25055         (main): Invoke test_function.
25056         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
25057         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
25058         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
25059         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
25060         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
25061         tests/randomf.c.
25062         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
25063         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
25064         tests/randoml.c.
25065         (Depends-on): Add 'fpucw', 'float'.
25066         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
25068 2012-03-05  Bruno Haible  <bruno@clisp.org>
25070         fpucw: Doc about FreeBSD.
25071         * lib/fpucw.h: Mention FreeBSD in comments.
25073 2012-03-04  Bruno Haible  <bruno@clisp.org>
25075         sqrt* tests: More tests.
25076         * tests/test-sqrt.h: New file.
25077         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
25078         (main): Invoke test_function.
25079         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
25080         (main): Invoke test_function.
25081         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
25082         (main): Invoke test_function.
25083         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
25084         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
25085         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
25086         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
25087         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
25088         (Depends-on): Add 'float'.
25089         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
25091 2012-03-04  Bruno Haible  <bruno@clisp.org>
25093         remainder* tests: More tests.
25094         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
25095         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
25096         (main): Invoke test_function.
25097         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
25098         (main): Invoke test_function.
25099         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
25100         (main): Invoke test_function.
25101         * modules/remainder-tests (Files): Add tests/test-remainder.h,
25102         tests/randomd.c.
25103         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
25104         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
25105         tests/randomf.c.
25106         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
25107         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
25108         tests/randoml.c.
25109         (Depends-on): Add 'float'.
25110         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
25112 2012-03-04  Bruno Haible  <bruno@clisp.org>
25114         remainder, remainderf, remainderl: Fix computation for large quotients.
25115         * lib/remainder.c: Completely rewritten.
25116         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
25117         USE_FLOAT.
25118         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
25119         USE_LONG_DOUBLE.
25120         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
25121         isnand, isinf. Remove round, fma.
25122         * modules/remainderf (Files): Add lib/remainder.c.
25123         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
25124         Remove roundf, fmaf.
25125         * modules/remainderl (Files): Add lib/remainder.c.
25126         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
25127         isinf. Remove roundl, fmal.
25128         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
25129         REMAINDER_LIBM.
25130         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
25131         REMAINDERF_LIBM.
25132         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
25133         REMAINDERL_LIBM.
25135 2012-03-04  Bruno Haible  <bruno@clisp.org>
25137         fmod* tests: More tests.
25138         * tests/test-fmod.h (my_ldexp): New function.
25139         (test_function): Reduce amount of random numbers to test. Add tests
25140         of very large quotients x / y.
25141         * tests/test-fmod.c (MAX_EXP): New macro.
25142         * tests/test-fmodf.c (MAX_EXP): Likewise.
25143         * tests/test-fmodl.c (MAX_EXP): Likewise.
25145 2012-03-04  Bruno Haible  <bruno@clisp.org>
25147         fmod, fmodl: Fix computation for large quotients x / y.
25148         * lib/fmod.c: Completely rewritten.
25149         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
25150         USE_LONG_DOUBLE.
25151         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
25152         isnand. Remove fma.
25153         * modules/fmodl (Files): Add lib/fmod.c.
25154         (Depends-on): Add float, isfinite, signbit, fabsl,
25155         frexpl, ldexpl, isnanl. Remove fma.
25156         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
25157         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
25159 2012-03-03  Bruno Haible  <bruno@clisp.org>
25161         fmod* tests: More tests.
25162         * tests/test-fmod.h: New file.
25163         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
25164         (main): Invoke test_function.
25165         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
25166         (main): Invoke test_function.
25167         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
25168         (main): Invoke test_function.
25169         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
25170         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
25171         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
25172         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
25173         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
25174         (Depends-on): Add 'float'.
25175         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
25177 2012-03-03  Bruno Haible  <bruno@clisp.org>
25179         rint* tests: More tests.
25180         * tests/test-rint.h: New file, partially extracted from
25181         tests/test-rintl.c.
25182         * tests/test-rint.c: Include test-rint.h.
25183         (main): Invoke test_function.
25184         * tests/test-rintf.c: Include test-rint.h.
25185         (main): Invoke test_function.
25186         * tests/test-rintl.c: Include test-rint.h.
25187         (main): Invoke test_function.
25188         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
25189         (Makefile.am): Add randomd.c to test_rint_SOURCES.
25190         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
25191         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
25192         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
25193         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
25195 2012-03-03  Bruno Haible  <bruno@clisp.org>
25197         modf* tests: More tests.
25198         * tests/test-modf.h: New file.
25199         * tests/test-modf.c: Include <float.h> and test-modf.h.
25200         (main): Invoke test_function.
25201         * tests/test-modff.c: Include <float.h> and test-modf.h.
25202         (main): Invoke test_function.
25203         * tests/test-modfl.c: Include <float.h> and test-modf.h.
25204         (main): Invoke test_function.
25205         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
25206         (Makefile.am): Add randomd.c to test_modf_SOURCES.
25207         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
25208         (Makefile.am): Add randomf.c to test_modff_SOURCES.
25209         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
25210         (Depends-on): Add 'float'.
25211         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
25213 2012-03-03  Bruno Haible  <bruno@clisp.org>
25215         fabs* tests: More tests.
25216         * tests/test-fabs.h: New file, partially extracted from
25217         tests/test-fabsl.c.
25218         * tests/test-fabs.c (RANDOM): New macro.
25219         * tests/test-fabsf.c (RANDOM): New macro.
25220         * tests/test-fabsl.c (RANDOM): New macro.
25221         * modules/fabs-tests (Files): Add tests/randomd.c.
25222         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
25223         * modules/fabsf-tests (Files): Add tests/randomf.c.
25224         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
25225         * modules/fabsl-tests (Files): Add tests/randoml.c.
25226         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
25228 2012-03-03  Bruno Haible  <bruno@clisp.org>
25230         ldexp* tests: More tests.
25231         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
25232         * tests/test-ldexp.c (RANDOM): New macro.
25233         * tests/test-ldexpf.c (RANDOM): New macro.
25234         * tests/test-ldexpl.c (RANDOM): New macro.
25235         * modules/ldexp-tests (Files): Add tests/randomd.c.
25236         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
25237         * modules/ldexpf-tests (Files): Add tests/randomf.c.
25238         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
25239         * modules/ldexpl-tests (Files): Add tests/randoml.c.
25240         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
25242 2012-03-03  Bruno Haible  <bruno@clisp.org>
25244         frexp* tests: More tests.
25245         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
25246         * tests/test-frexp.c (RANDOM): New macro.
25247         * tests/test-frexpf.c (RANDOM): New macro.
25248         * tests/test-frexpl.c (RANDOM): New macro.
25249         * modules/frexp-tests (Files): Add tests/randomd.c.
25250         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
25251         * modules/frexpf-tests (Files): Add tests/randomf.c.
25252         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
25253         * modules/frexpl-tests (Files): Add tests/randoml.c.
25254         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
25256 2012-03-03  Bruno Haible  <bruno@clisp.org>
25258         Support for pseudo-random numbers in tests.
25259         * tests/randomf.c: New file.
25260         * tests/randomd.c: New file.
25261         * tests/randoml.c: New file.
25262         * tests/macros.h (randomf, randomd, randoml): New declarations.
25264 2012-03-03  Bruno Haible  <bruno@clisp.org>
25266         frexp* tests: Refactor.
25267         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
25268         * tests/test-frexp.c: Include and use it.
25269         * tests/test-frexpf.c: Likewise.
25270         * tests/test-frexpl.c: Likewise.
25271         * modules/frexp-tests (Files): Add tests/test-frexp.h.
25272         * modules/frexpf-tests (Files): Likewise.
25273         * modules/frexpl-tests (Files): Likewise.
25275 2012-03-02  Jim Meyering  <meyering@redhat.com>
25277         maint: don't specify XZ_OPT=-9ev in dist-related rule
25278         Using xz's -9 option is warranted only if you have a very large
25279         tarball (see xz's documentation for the sizes vs. presets), and
25280         requires 64MiB of memory at decompression time.
25281         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
25282         Automake's default of just "-e" is fine.  Override on a
25283         per-package basis by setting XZ_OPT e.g., in cfg.mk.
25285 2012-03-01  Eric Blake  <eblake@redhat.com>
25287         maint.mk: allow announcement for non-gnulib project
25288         * maint.mk (announcement): Skip gnulib version if not used.
25290 2012-03-01  Jim Meyering  <meyering@redhat.com>
25292         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
25293         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
25294         envvar settings cannot interfere.  Otherwise, setting envvars like
25295         prohibit=foo require=bar, etc. would cause spurious test failures.
25297 2012-03-01  Eric Blake  <eblake@redhat.com>
25299         maint.mk: add per-line exclusions to prohibitions
25300         * maint.mk (_sc_search_regexp): Add $exclude parameter.
25301         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
25302         (sc_const_long_option): Use it.
25304 2012-03-01  Bruno Haible  <bruno@clisp.org>
25306         Tests for module 'expl-ieee'.
25307         * modules/expl-ieee-tests: New file.
25308         * tests/test-expl-ieee.c: New file.
25310         New module 'expl-ieee'.
25311         * modules/expl-ieee: New file.
25313         Tests for module 'exp-ieee'.
25314         * modules/exp-ieee-tests: New file.
25315         * tests/test-exp-ieee.c: New file.
25317         New module 'exp-ieee'.
25318         * modules/exp-ieee: New file.
25320         Tests for module 'expf-ieee'.
25321         * modules/expf-ieee-tests: New file.
25322         * tests/test-expf-ieee.c: New file.
25323         * tests/test-exp-ieee.h: New file.
25325         New module 'expf-ieee'.
25326         * modules/expf-ieee: New file.
25328 2012-02-29  Bruno Haible  <bruno@clisp.org>
25330         cbrtl-ieee: Work around test failure on IRIX 6.5.
25331         * m4/cbrtl-ieee.m4: New file.
25332         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
25333         test whether cbrtl works with a minus zero argument. Replace it if not.
25334         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
25335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
25336         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
25337         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
25338         (Depends-on): Update conditions.
25339         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
25340         m4/signbit.m4.
25341         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
25342         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
25343         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
25345         Tests for module 'cbrtl-ieee'.
25346         * modules/cbrtl-ieee-tests: New file.
25347         * tests/test-cbrtl-ieee.c: New file.
25349         New module 'cbrtl-ieee'.
25350         * modules/cbrtl-ieee: New file.
25352         Tests for module 'cbrt-ieee'.
25353         * modules/cbrt-ieee-tests: New file.
25354         * tests/test-cbrt-ieee.c: New file.
25356         New module 'cbrt-ieee'.
25357         * modules/cbrt-ieee: New file.
25359         Tests for module 'cbrtf-ieee'.
25360         * modules/cbrtf-ieee-tests: New file.
25361         * tests/test-cbrtf-ieee.c: New file.
25362         * tests/test-cbrt-ieee.h: New file.
25364         New module 'cbrtf-ieee'.
25365         * modules/cbrtf-ieee: New file.
25367 2012-02-29  Bruno Haible  <bruno@clisp.org>
25369         cbrtf: Work around bug in IRIX 6.5 system function.
25370         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
25371         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
25372         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
25373         work.
25374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
25375         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
25376         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
25377         (Depends-on): Update conditions.
25378         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
25380 2012-02-29  Bruno Haible  <bruno@clisp.org>
25382         Tests for module 'cbrtl'.
25383         * modules/cbrtl-tests: New file.
25384         * tests/test-cbrtl.c: New file.
25386         New module 'cbrtl'.
25387         * lib/math.in.h (cbrtl): New declaration.
25388         * lib/cbrtl.c: New file.
25389         * m4/cbrtl.m4: New file.
25390         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
25391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
25392         HAVE_DECL_CBRTL.
25393         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
25394         HAVE_DECL_CBRTL.
25395         * modules/cbrtl: New file.
25396         * tests/test-math-c++.cc: Check the declaration of cbrtl.
25397         * doc/posix-functions/cbrtl.texi: Mention the new module.
25399 2012-02-29  Bruno Haible  <bruno@clisp.org>
25401         Tests for module 'cbrtf'.
25402         * modules/cbrtf-tests: New file.
25403         * tests/test-cbrtf.c: New file.
25405         New module 'cbrtf'.
25406         * lib/math.in.h (cbrtf): New declaration.
25407         * lib/cbrtf.c: New file.
25408         * m4/cbrtf.m4: New file.
25409         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
25410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
25411         HAVE_DECL_CBRTF.
25412         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
25413         HAVE_DECL_CBRTF.
25414         * modules/cbrtf: New file.
25415         * tests/test-math-c++.cc: Check the declaration of cbrtf.
25416         * doc/posix-functions/cbrtf.texi: Mention the new module.
25418 2012-02-29  Bruno Haible  <bruno@clisp.org>
25420         cbrt: Provide replacement on MSVC and Minix.
25421         * lib/math.in.h (cbrt): New declaration.
25422         * lib/cbrt.c: New file.
25423         * m4/cbrt.m4: New file.
25424         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
25425         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
25426         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
25427         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
25428         (Depends-on): Add dependencies.
25429         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
25430         * tests/test-math-c++.cc: Check the declaration of cbrt.
25431         * doc/posix-functions/cbrt.texi: Mention that the module provides a
25432         replacement.
25434 2012-02-29  Bruno Haible  <bruno@clisp.org>
25436         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
25437         * m4/hypotl-ieee.m4: New file.
25438         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
25439         test whether hypotl works with mixed NaN and Infinity arguments.
25440         Replace it if not.
25441         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
25442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
25443         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
25444         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
25445         (Depends-on): Update conditions.
25446         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
25447         (Depends-on): Add hypot-ieee.
25448         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
25449         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
25451         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
25452         * m4/hypotf-ieee.m4: New file.
25453         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
25454         test whether hypotf works with mixed NaN and Infinity arguments.
25455         Replace it if not.
25456         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
25457         (Depends-on): Add hypot-ieee.
25458         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
25459         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
25461         hypot-ieee: Work around test failure on OSF/1 and native Windows.
25462         * lib/math.in.h (hypot): New declaration.
25463         * lib/hypot.c: New file.
25464         * m4/hypot-ieee.m4: New file.
25465         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
25466         whether hypot works with mixed NaN and Infinity arguments. Replace it
25467         if not.
25468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
25469         REPLACE_HYPOT.
25470         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
25471         * modules/hypot (Files): Add lib/hypot.c.
25472         (Depends-on): Add dependencies.
25473         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
25474         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
25475         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
25476         * tests/test-math-c++.cc: Check the declaration of hypot.
25477         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
25479         Tests for module 'hypotl-ieee'.
25480         * modules/hypotl-ieee-tests: New file.
25481         * tests/test-hypotl-ieee.c: New file.
25483         New module 'hypotl-ieee'.
25484         * modules/hypotl-ieee: New file.
25486         Tests for module 'hypot-ieee'.
25487         * modules/hypot-ieee-tests: New file.
25488         * tests/test-hypot-ieee.c: New file.
25490         New module 'hypot-ieee'.
25491         * modules/hypot-ieee: New file.
25493         Tests for module 'hypotf-ieee'.
25494         * modules/hypotf-ieee-tests: New file.
25495         * tests/test-hypotf-ieee.c: New file.
25496         * tests/test-hypot-ieee.h: New file.
25498         New module 'hypotf-ieee'.
25499         * modules/hypotf-ieee: New file.
25501 2012-02-29  Bruno Haible  <bruno@clisp.org>
25503         Remove unused variables.
25504         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
25505         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25506         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
25507         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25509 2012-02-29  Eric Blake  <eblake@redhat.com>
25511         termios: fix pid_t always, not just for tcgetsid
25512         * doc/posix-headers/termios.texi (termios.h): Mention problem.
25513         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
25514         just when building tcgetsid.
25516 2012-02-29  Bruno Haible  <bruno@clisp.org>
25518         Tests for module 'hypotl'.
25519         * modules/hypotl-tests: New file.
25520         * tests/test-hypotl.c: New file.
25522         New module 'hypotl'.
25523         * lib/math.in.h (hypotl): New declaration.
25524         * lib/hypotl.c: New file.
25525         * m4/hypotl.m4: New file.
25526         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
25527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
25528         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
25529         * modules/hypotl: New file.
25530         * tests/test-math-c++.cc: Check the hypotl declaration.
25531         * doc/posix-functions/hypotl.texi: Mention the new module.
25533 2012-02-29  Eric Blake  <eblake@redhat.com>
25535         tcgetsid: fix cygwin header bug
25536         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
25538         docs: update cygwin progress
25539         * doc/posix-functions/llround.texi (llround): Added in cygwin
25540         1.7.8.
25541         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
25542         * doc/glibc-functions/program_invocation_name.texi
25543         (program_invocation_name): Likewise.
25544         * doc/glibc-functions/program_invocation_short_name.texi
25545         (program_invocation_short_name): Likewise.
25546         * doc/glibc-functions/madvise.texi (madvise): Likewise.
25547         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
25548         Likewise.
25549         * doc/posix-functions/pthread_spin_destroy.texi
25550         (pthread_spin_destroy): Added in cygwin 1.7.10.
25551         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
25552         Likewise.
25553         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
25554         Likewise.
25555         * doc/posix-functions/pthread_spin_trylock.texi
25556         (pthread_spin_trylock): Likewise.
25557         * doc/posix-functions/pthread_spin_unlock.texi
25558         (pthread_spin_unlock): Likewise.
25559         * doc/posix-functions/pthread_setschedprio.texi
25560         (pthread_setschedprio): Likewise.
25561         * doc/posix-functions/pthread_attr_getstack.texi
25562         (pthread_attr_getstack): Likewise.
25563         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
25564         (pthread_attr_getstackaddr): Likewise.
25565         * doc/glibc-functions/pthread_getattr_np.texi
25566         (pthread_getattr_np): Likewise.
25567         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
25568         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
25569         * doc/posix-functions/clock_settime.texi (clock_settime):
25570         Likewise.
25571         * doc/posix-functions/pthread_attr_getguardsize.texi
25572         (pthread_attr_getguardsize): Likewise.
25573         * doc/posix-functions/pthread_attr_setguardsize.texi
25574         (pthread_attr_setguardsize): Likewise.
25575         * doc/posix-functions/pthread_attr_setstack.texi
25576         (pthread_attr_setstack): Likewise.
25577         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
25578         (pthread_attr_setstackaddr): Likewise.
25579         * doc/posix-functions/clock_getcpuclockid.texi
25580         (clock_getcpuclockid): Likewise.
25581         * doc/posix-functions/pthread_getcpuclockid.texi
25582         (pthread_getcpuclockid): Likewise.
25583         * doc/glibc-functions/error.texi (error): Likewise.
25584         * doc/glibc-functions/error_at_line.texi (error_at_line):
25585         Likewise.
25586         * doc/glibc-functions/error_message_count.texi
25587         (error_message_count): Likewise.
25588         * doc/glibc-functions/error_one_per_line.texi
25589         (error_one_per_line): Likewise.
25590         * doc/glibc-functions/error_print_progname.texi
25591         (error_print_progname): Likewise.
25592         * doc/posix-functions/pthread_condattr_getclock.texi
25593         (pthread_condattr_getclock): Likewise.
25594         * doc/posix-functions/pthread_condattr_setclock.texi
25595         (pthread_condattr_setclock): Likewise.
25596         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
25597         Likewise.
25598         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
25599         * doc/glibc-functions/getpt.texi (getpt): Likewise.
25600         * doc/glibc-functions/get_current_dir_name.texi
25601         (get_current_dir_name): Likewise.
25602         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
25603         Likewise.
25604         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
25605         wrong return type.
25606         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
25607         1.7.11.
25609 2012-02-29  Bruno Haible  <bruno@clisp.org>
25611         Tests for module 'hypotf'.
25612         * modules/hypotf-tests: New file.
25613         * tests/test-hypotf.c: New file.
25615         New module 'hypotf'.
25616         * lib/math.in.h (hypotf): New declaration.
25617         * lib/hypotf.c: New file.
25618         * m4/hypotf.m4: New file.
25619         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
25620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
25621         REPLACE_HYPOTF.
25622         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
25623         REPLACE_HYPOTF.
25624         * modules/hypotf: New file.
25625         * tests/test-math-c++.cc: Check the hypotf declaration.
25626         * doc/posix-functions/hypotf.texi: Mention the new module.
25628         hypot: Prepare for hypotf module.
25629         * m4/hypot.m4: New file.
25630         * modules/hypot (Files): Add m4/hypot.m4.
25631         (configure.ac): Invoke gl_FUNC_HYPOT.
25633 2012-02-29  Bruno Haible  <bruno@clisp.org>
25635         hypot tests: More tests.
25636         * tests/test-hypot.c: Include <float.h>.
25637         (main): Add tests about overflow and underflow.
25639 2012-02-29  Bruno Haible  <bruno@clisp.org>
25641         math code: Add comments.
25642         * lib/acosl.c: Add comment about related glibc source files.
25643         * lib/asinl.c: Likewise.
25644         * lib/atanl.c: Likewise.
25645         * lib/expl.c: Likewise.
25646         * lib/logl.c: Likewise.
25647         * lib/sincosl.c: Likewise.
25648         * lib/sinl.c: Likewise.
25649         * lib/tanl.c: Likewise.
25650         * lib/trigl.c: Likewise.
25651         * lib/cosl.c: Likewise. Fix comments.
25653 2012-02-28  Bruno Haible  <bruno@clisp.org>
25655         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
25656         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
25657         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
25658         HUGE_VALL are defined.
25659         (numeric_equald): Renamed from numeric_equal.
25660         (numeric_equalf, numeric_equall): New functions.
25661         (main): Check also HUGE_VALF, HUGE_VALL.
25662         * modules/math-tests (Files): Add tests/macros.h.
25663         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
25664         HUGE_VALL.
25666 2012-02-28  Bruno Haible  <bruno@clisp.org>
25668         doc: Move ISO C11 feature notes into POSIX chapters.
25669         * doc/posix-functions/aligned_alloc.texi: Renamed from
25670         doc/glibc-functions/aligned_alloc.texi.
25671         * doc/posix-functions/quick_exit.texi: Renamed from
25672         doc/glibc-functions/quick_exit.texi.
25673         * doc/posix-headers/uchar.texi: Renamed from
25674         doc/glibc-headers/uchar.texi.
25675         * doc/posix-functions/c16rtomb.texi: Renamed from
25676         doc/glibc-functions/c16rtomb.texi.
25677         * doc/posix-functions/c32rtomb.texi: Renamed from
25678         doc/glibc-functions/c32rtomb.texi.
25679         * doc/posix-functions/mbrtoc16.texi: Renamed from
25680         doc/glibc-functions/mbrtoc16.texi.
25681         * doc/posix-functions/mbrtoc32.texi: Renamed from
25682         doc/glibc-functions/mbrtoc32.texi.
25683         * doc/gnulib.texi: Update.
25684         (Glibc uchar.h): Remove section.
25685         Suggested by Eric Blake.
25687 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
25689         stdnoreturn: port to MSVC better
25690         MSVC standard headers use __declspec(noreturn), so #define noreturn
25691         to empty on that platform.  Reported by Bruno Haible in
25692         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
25693         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
25694         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
25696 2012-02-28  Bruno Haible  <bruno@clisp.org>
25698         doc: Mention new glibc headers and functions.
25699         * doc/glibc-headers/uchar.texi: New file.
25700         * doc/glibc-functions/aligned_alloc.texi: New file.
25701         * doc/glibc-functions/c16rtomb.texi: New file.
25702         * doc/glibc-functions/c32rtomb.texi: New file.
25703         * doc/glibc-functions/clock_adjtime.texi: New file.
25704         * doc/glibc-functions/fanotify_init.texi: New file.
25705         * doc/glibc-functions/fanotify_mark.texi: New file.
25706         * doc/glibc-functions/inet6_opt_append.texi: New file.
25707         * doc/glibc-functions/inet6_opt_find.texi: New file.
25708         * doc/glibc-functions/inet6_opt_finish.texi: New file.
25709         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
25710         * doc/glibc-functions/inet6_opt_init.texi: New file.
25711         * doc/glibc-functions/inet6_opt_next.texi: New file.
25712         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
25713         * doc/glibc-functions/inet6_rth_add.texi: New file.
25714         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
25715         * doc/glibc-functions/inet6_rth_init.texi: New file.
25716         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
25717         * doc/glibc-functions/inet6_rth_segments.texi: New file.
25718         * doc/glibc-functions/inet6_rth_space.texi: New file.
25719         * doc/glibc-functions/login.texi: New file.
25720         * doc/glibc-functions/mbrtoc16.texi: New file.
25721         * doc/glibc-functions/mbrtoc32.texi: New file.
25722         * doc/glibc-functions/name_to_handle_at.texi: New file.
25723         * doc/glibc-functions/ntp_gettimex.texi: New file.
25724         * doc/glibc-functions/open_by_handle_at.texi: New file.
25725         * doc/glibc-functions/prlimit.texi: New file.
25726         * doc/glibc-functions/process_vm_readv.texi: New file.
25727         * doc/glibc-functions/process_vm_writev.texi: New file.
25728         * doc/glibc-functions/recvmmsg.texi: New file.
25729         * doc/glibc-functions/scandirat.texi: New file.
25730         * doc/glibc-functions/sendmmsg.texi: New file.
25731         * doc/glibc-functions/setns.texi: New file.
25732         * doc/glibc-functions/timespec_get.texi: New file.
25733         * doc/gnulib.texi: Include them.
25734         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
25735         sections.
25736         Reported by Eric Blake.
25738 2012-02-28  Bruno Haible  <bruno@clisp.org>
25740         Avoid compilation errors with MSVC option -fp:strict.
25741         * lib/floor.c: Use MSVC specific pragma fenv_access.
25742         * lib/ceil.c: Likewise.
25743         * lib/trunc.c: Likewise.
25744         * lib/round.c: Likewise.
25745         * lib/rint.c: Likewise.
25746         * lib/fma.c: Likewise.
25747         * lib/integer_length.c: Likewise.
25748         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25749         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25750         * tests/test-floor2.c: Likewise.
25751         * tests/test-floorf2.c: Likewise.
25752         * tests/test-ceil2.c: Likewise.
25753         * tests/test-ceilf2.c: Likewise.
25754         * tests/test-trunc2.c: Likewise.
25755         * tests/test-truncf2.c: Likewise.
25756         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
25758 2012-02-27  Bruno Haible  <bruno@clisp.org>
25760         Tests for module 'sqrtl-ieee'.
25761         * modules/sqrtl-ieee-tests: New file.
25762         * tests/test-sqrtl-ieee.c: New file.
25764         New module 'sqrtl-ieee'.
25765         * modules/sqrtl-ieee: New file.
25767         Tests for module 'sqrt-ieee'.
25768         * modules/sqrt-ieee-tests: New file.
25769         * tests/test-sqrt-ieee.c: New file.
25771         New module 'sqrt-ieee'.
25772         * modules/sqrt-ieee: New file.
25774         Tests for module 'sqrtf-ieee'.
25775         * modules/sqrtf-ieee-tests: New file.
25776         * tests/test-sqrtf-ieee.c: New file.
25777         * tests/test-sqrt-ieee.h: New file.
25779         New module 'sqrtf-ieee'.
25780         * modules/sqrtf-ieee: New file.
25782 2012-02-27  Bruno Haible  <bruno@clisp.org>
25784         remainderl-ieee: Work around test failure on OSF/1.
25785         * m4/remainderl-ieee.m4: New file.
25786         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
25787         present, test whether remainderl works with a zero second argument.
25788         Replace it if not.
25789         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
25790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
25791         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
25792         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
25793         (Depends-on): Update conditions.
25794         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
25795         (Depends-on): Add remainder-ieee.
25796         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
25797         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
25798         module.
25800         remainderf-ieee: Work around test failure on OSF/1.
25801         * m4/remainderf-ieee.m4: New file.
25802         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
25803         present, test whether remainderf works with a zero second argument.
25804         Replace it if not.
25805         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
25806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
25807         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
25808         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
25809         (Depends-on): Update conditions.
25810         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
25811         (Depends-on): Add remainder-ieee.
25812         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
25813         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
25814         module.
25816         remainder-ieee: Work around test failure on OSF/1.
25817         * m4/remainder-ieee.m4: New file.
25818         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
25819         present, test whether remainder works with a zero second argument.
25820         Replace it if not.
25821         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
25822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
25823         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
25824         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
25825         (Depends-on): Update dependencies.
25826         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
25827         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
25828         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
25830         Tests for module 'remainderl-ieee'.
25831         * modules/remainderl-ieee-tests: New file.
25832         * tests/test-remainderl-ieee.c: New file.
25834         New module 'remainderl-ieee'.
25835         * modules/remainderl-ieee: New file.
25837         Tests for module 'remainder-ieee'.
25838         * modules/remainder-ieee-tests: New file.
25839         * tests/test-remainder-ieee.c: New file.
25841         New module 'remainder-ieee'.
25842         * modules/remainder-ieee: New file.
25844         Tests for module 'remainderf-ieee'.
25845         * modules/remainderf-ieee-tests: New file.
25846         * tests/test-remainderf-ieee.c: New file.
25847         * tests/test-remainder-ieee.h: New file.
25849         New module 'remainderf-ieee'.
25850         * modules/remainderf-ieee: New file.
25852 2012-02-27  Bruno Haible  <bruno@clisp.org>
25854         modff, modfl: Fix configure syntax error.
25855         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
25856         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
25858 2012-02-27  Bruno Haible  <bruno@clisp.org>
25860         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
25861         * m4/fmodl-ieee.m4: New file.
25862         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
25863         whether fmodl works with zero arguments. Replace it if not.
25864         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
25865         (Depends-on): Add fmod-ieee.
25866         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
25867         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
25869         fmodf-ieee: Work around test failure on OSF/1.
25870         * m4/fmodf-ieee.m4: New file.
25871         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
25872         whether fmodf works with zero arguments. Replace it if not.
25873         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
25874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
25875         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
25876         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
25877         (Depends-on): Update dependencies.
25878         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
25879         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
25880         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
25882         fmodf-ieee: Work around test failure on MSVC 9.
25883         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
25884         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
25886         fmod-ieee: Work around test failures on OSF/1, mingw.
25887         * m4/fmod-ieee.m4: New file.
25888         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
25889         whether fmod works with zero arguments. Replace it if not.
25890         * lib/math.in.h (fmod): New declaration.
25891         * lib/fmod.c: New file.
25892         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
25893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
25894         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
25895         * modules/fmod (Files): Add lib/fmod.c.
25896         (Depends-on): Add math, isinf, trunc, fma.
25897         (configure.ac): Arrange to compile lib/fmod.c if needed.
25898         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
25899         m4/signbit.m4.
25900         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
25901         * tests/test-math-c++.cc: Check the declaration of fmod.
25902         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
25904         fmodl-ieee: Fix test failures.
25905         * lib/fmodl.c (fmodl): Treat Inf specially.
25906         * modules/fmodl (Depends-on): Add isinf.
25908         Tests for module 'fmodl-ieee'.
25909         * modules/fmodl-ieee-tests: New file.
25910         * tests/test-fmodl-ieee.c: New file.
25912         New module 'fmodl-ieee'.
25913         * modules/fmodl-ieee: New file.
25915         Tests for module 'fmod-ieee'.
25916         * modules/fmod-ieee-tests: New file.
25917         * tests/test-fmod-ieee.c: New file.
25919         New module 'fmod-ieee'.
25920         * modules/fmod-ieee: New file.
25922         Tests for module 'fmodf-ieee'.
25923         * modules/fmodf-ieee-tests: New file.
25924         * tests/test-fmodf-ieee.c: New file.
25925         * tests/test-fmod-ieee.h: New file.
25927         New module 'fmodf-ieee'.
25928         * modules/fmodf-ieee: New file.
25930 2012-02-27  Bruno Haible  <bruno@clisp.org>
25932         Tests for module 'rintl-ieee'.
25933         * modules/rintl-ieee-tests: New file.
25934         * tests/test-rintl-ieee.c: New file.
25936         New module 'rintl-ieee'.
25937         * modules/rintl-ieee: New file.
25939         Tests for module 'rint-ieee'.
25940         * modules/rint-ieee-tests: New file.
25941         * tests/test-rint-ieee.c: New file.
25943         New module 'rint-ieee'.
25944         * modules/rint-ieee: New file.
25946         Tests for module 'rintf-ieee'.
25947         * modules/rintf-ieee-tests: New file.
25948         * tests/test-rintf-ieee.c: New file.
25949         * tests/test-rint-ieee.h: New file.
25951         New module 'rintf-ieee'.
25952         * modules/rintf-ieee: New file.
25954 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
25956         regex: re_search etc. should return -2 when memory exhausted
25957         This bug was uncovered when testing 'grep'.  Without the fix,
25958         re_search and friends return -1 when memory is exhausted, but -1
25959         means no match, and this causes grep to falsely report no-match
25960         instead of memory-exhaustion.  See
25961         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
25962         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
25963         trouble; this can occur if re_search_internal ran out of memory.
25965 2012-02-26  Bruno Haible  <bruno@clisp.org>
25967         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
25968         * m4/modfl-ieee.m4: New file.
25969         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
25970         whether modfl works with Inf. Replace it if not.
25971         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
25972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
25973         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
25974         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
25975         (Depends-on): Update dependencies.
25976         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
25977         m4/signbit.m4.
25978         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
25979         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
25981         modfl-ieee: Fix dependencies.
25982         * modules/modfl-ieee (Depends-on): Add modf-ieee.
25984         modfl-ieee: Fix test failures.
25985         * lib/modfl.c (modfl): Treat NaN and Inf specially.
25986         * modules/modfl (Depends-on): Add isfinite, isinf.
25988         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
25989         * m4/modff-ieee.m4: New file.
25990         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
25991         whether modff works with NaN and Inf. Replace it if not.
25992         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
25993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
25994         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
25995         * modules/modff (configure.ac): Consider REPLACE_MODFF.
25996         (Depends-on): Update dependencies.
25997         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
25998         m4/signbit.m4.
25999         (Depends-on): Add modf-ieee.
26000         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
26001         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
26003         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
26004         * m4/modf-ieee.m4: New file.
26005         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
26006         whether modf works with NaN and Inf. Replace it if not.
26007         * lib/math.in.h (modf): New declaration.
26008         * lib/modf.c: New file.
26009         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
26010         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
26011         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
26012         * modules/modf (Files): Add lib/modf.c.
26013         (Depends-on): Add math, isfinite, trunc, isinf.
26014         (configure.ac): Addrange to compile lib/modf.c if needed.
26015         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
26016         m4/signbit.m4.
26017         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
26018         * tests/test-math-c++.cc: Check the declaration of modf.
26019         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
26021         Tests for module 'modfl-ieee'.
26022         * modules/modfl-ieee-tests: New file.
26023         * tests/test-modfl-ieee.c: New file.
26025         New module 'modfl-ieee'.
26026         * modules/modfl-ieee: New file.
26028         Tests for module 'modf-ieee'.
26029         * modules/modf-ieee-tests: New file.
26030         * tests/test-modf-ieee.c: New file.
26032         New module 'modf-ieee'.
26033         * modules/modf-ieee: New file.
26035         Tests for module 'modff-ieee'.
26036         * modules/modff-ieee-tests: New file.
26037         * tests/test-modff-ieee.c: New file.
26038         * tests/test-modf-ieee.h: New file.
26040         New module 'modff-ieee'.
26041         * modules/modff-ieee: New file.
26043 2012-02-26  Bruno Haible  <bruno@clisp.org>
26045         Tests for module 'fabsl-ieee'.
26046         * modules/fabsl-ieee-tests: New file.
26047         * tests/test-fabsl-ieee.c: New file.
26049         New module 'fabsl-ieee'.
26050         * modules/fabsl-ieee: New file.
26052         Tests for module 'fabs-ieee'.
26053         * modules/fabs-ieee-tests: New file.
26054         * tests/test-fabs-ieee.c: New file.
26056         New module 'fabs-ieee'.
26057         * modules/fabs-ieee: New file.
26059         Tests for module 'fabsf-ieee'.
26060         * modules/fabsf-ieee-tests: New file.
26061         * tests/test-fabsf-ieee.c: New file.
26062         * tests/test-fabs-ieee.h: New file.
26064         New module 'fabsf-ieee'.
26065         * modules/fabsf-ieee: New file.
26067 2012-02-26  Bruno Haible  <bruno@clisp.org>
26069         Tests for module 'fmal-ieee'.
26070         * modules/fmal-ieee-tests: New file.
26071         * tests/test-fmal-ieee.c: New file.
26073         New module 'fmal-ieee'.
26074         * modules/fmal-ieee: New file.
26076         Tests for module 'fma-ieee'.
26077         * modules/fma-ieee-tests: New file.
26078         * tests/test-fma-ieee.c: New file.
26080         New module 'fma-ieee'.
26081         * modules/fma-ieee: New file.
26083         Tests for module 'fmaf-ieee'.
26084         * modules/fmaf-ieee-tests: New file.
26085         * tests/test-fmaf-ieee.c: New file.
26086         * tests/test-fma-ieee.h: New file.
26088         New module 'fmaf-ieee'.
26089         * modules/fmaf-ieee: New file.
26091 2012-02-26  Bruno Haible  <bruno@clisp.org>
26093         Tests for module 'ldexpl-ieee'.
26094         * modules/ldexpl-ieee-tests: New file.
26095         * tests/test-ldexpl-ieee.c: New file.
26097         New module 'ldexpl-ieee'.
26098         * modules/ldexpl-ieee: New file.
26100         Tests for module 'ldexp-ieee'.
26101         * modules/ldexp-ieee-tests: New file.
26102         * tests/test-ldexp-ieee.c: New file.
26104         New module 'ldexp-ieee'.
26105         * modules/ldexp-ieee: New file.
26107         Tests for module 'ldexpf-ieee'.
26108         * modules/ldexpf-ieee-tests: New file.
26109         * tests/test-ldexpf-ieee.c: New file.
26110         * tests/test-ldexp-ieee.h: New file.
26112         New module 'ldexpf-ieee'.
26113         * modules/ldexpf-ieee: New file.
26115 2012-02-26  Bruno Haible  <bruno@clisp.org>
26117         Refactor frexp*-ieee tests.
26118         * tests/test-frexp-ieee.h: New file.
26119         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
26120         (main): Just call test_function.
26121         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
26122         (main): Just call test_function.
26123         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
26124         (main): Just call test_function.
26125         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
26126         * modules/frexp-ieee-tests (Files): Likewise.
26127         * modules/frexpl-ieee-tests (Files): Likewise.
26129         Tests for module 'frexpl-ieee'.
26130         * modules/frexpl-ieee-tests: New file.
26131         * tests/test-frexpl-ieee.c: New file.
26133         New module 'frexpl-ieee'.
26134         * modules/frexpl-ieee: New file.
26136         Tests for module 'frexp-ieee'.
26137         * modules/frexp-ieee-tests: New file.
26138         * tests/test-frexp-ieee.c: New file.
26140         New module 'frexp-ieee'.
26141         * modules/frexp-ieee: New file.
26143         Tests for module 'frexpf-ieee'.
26144         * modules/frexpf-ieee-tests: New file.
26145         * tests/test-frexpf-ieee.c: New file.
26147         New module 'frexpf-ieee'.
26148         * modules/frexpf-ieee: New file.
26150 2012-02-26  Bruno Haible  <bruno@clisp.org>
26152         roundl-ieee tests: More tests.
26153         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26154         (main): Add tests for [MX] shaded specification in POSIX.
26155         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26156         (Depends-on): Add isnanl-nolibm.
26158         round-ieee tests: More tests.
26159         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26160         (main): Add tests for [MX] shaded specification in POSIX.
26161         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26162         (Depends-on): Add isnand-nolibm.
26164         roundf-ieee tests: More tests.
26165         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26166         (main): Add tests for [MX] shaded specification in POSIX.
26167         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26168         (Depends-on): Add isnanf-nolibm.
26170         truncl-ieee tests: More tests.
26171         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26172         (main): Add tests for [MX] shaded specification in POSIX.
26173         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26174         (Depends-on): Add isnanl-nolibm.
26176         trunc-ieee tests: More tests.
26177         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26178         (main): Add tests for [MX] shaded specification in POSIX.
26179         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26180         (Depends-on): Add isnand-nolibm.
26182         truncf-ieee tests: More tests.
26183         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26184         (main): Add tests for [MX] shaded specification in POSIX.
26185         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26186         (Depends-on): Add isnanf-nolibm.
26188         ceill-ieee tests: More tests.
26189         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26190         (main): Add tests for [MX] shaded specification in POSIX.
26191         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26192         (Depends-on): Add isnanl-nolibm.
26194         ceil-ieee tests: More tests.
26195         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26196         (main): Add tests for [MX] shaded specification in POSIX.
26197         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26198         (Depends-on): Add isnand-nolibm.
26200         ceilf-ieee tests: More tests.
26201         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26202         (main): Add tests for [MX] shaded specification in POSIX.
26203         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26204         (Depends-on): Add isnanf-nolibm.
26206         floorl-ieee tests: More tests.
26207         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26208         (main): Add tests for [MX] shaded specification in POSIX.
26209         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26210         (Depends-on): Add isnanl-nolibm.
26212         floor-ieee tests: More tests.
26213         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26214         (main): Add tests for [MX] shaded specification in POSIX.
26215         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26216         (Depends-on): Add isnand-nolibm.
26218         floorf-ieee tests: More tests.
26219         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26220         (main): Add tests for [MX] shaded specification in POSIX.
26221         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26222         (Depends-on): Add isnanf-nolibm.
26224 2012-02-26  Bruno Haible  <bruno@clisp.org>
26226         fpieee: More comments.
26227         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
26229 2012-02-25  Bruno Haible  <bruno@clisp.org>
26231         Tests for module 'log10l'.
26232         * modules/log10l-tests: New file.
26233         * tests/test-log10l.c: New file.
26234         * tests/test-math-c++.cc: Check the declaration of log10l.
26236         New module 'log10l'.
26237         * lib/math.in.h (log10l): New declaration.
26238         * lib/log10l.c: New file.
26239         * m4/log10l.m4: New file.
26240         * modules/log10l: New file.
26241         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
26242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
26243         HAVE_DECL_LOG10L.
26244         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
26245         HAVE_DECL_LOG10L.
26246         * doc/posix-functions/log10l.texi: Mention the new module.
26248 2012-02-25  Bruno Haible  <bruno@clisp.org>
26250         fmodl, remainder*: Avoid wrong results due to rounding errors.
26251         * lib/fmodl.c (fmodl): Correct the result if it is not within the
26252         expected bounds.
26253         * lib/remainderf.c (remainderf): Likewise.
26254         * lib/remainder.c (remainder): Likewise.
26255         * lib/remainderl.c (remainderl): Likewise.
26257 2012-02-25  Bruno Haible  <bruno@clisp.org>
26259         Tests for module 'remainderl'.
26260         * modules/remainderl-tests: New file.
26261         * tests/test-remainderl.c: New file.
26262         * tests/test-math-c++.cc: Check the declaration of remainderl.
26264         New module 'remainderl'.
26265         * lib/math.in.h (remainderl): New declaration.
26266         * lib/remainderl.c: New file.
26267         * m4/remainderl.m4: New file.
26268         * modules/remainderl: New file.
26269         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
26270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
26271         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
26272         HAVE_REMAINDERL.
26273         * doc/posix-functions/remainderl.texi: Mention the new module.
26275 2012-02-25  Bruno Haible  <bruno@clisp.org>
26277         Tests for module 'remainderf'.
26278         * modules/remainderf-tests: New file.
26279         * tests/test-remainderf.c: New file.
26280         * tests/test-math-c++.cc: Check the declaration of remainderf.
26282         New module 'remainderf'.
26283         * lib/math.in.h (remainderf): New declaration.
26284         * lib/remainderf.c: New file.
26285         * m4/remainderf.m4: New file.
26286         * modules/remainderf: New file.
26287         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
26288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
26289         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
26290         HAVE_REMAINDERF.
26291         * doc/posix-functions/remainderf.texi: Mention the new module.
26293 2012-02-25  Bruno Haible  <bruno@clisp.org>
26295         remainder: Support for MSVC.
26296         * lib/math.in.h (remainder): New declaration.
26297         * lib/remainder.c: New file.
26298         * m4/remainder.m4: New file.
26299         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
26300         (Depends-on): Add math, round, fma.
26301         (configure.ac): Use results of gl_FUNC_REMAINDER.
26302         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
26303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
26304         HAVE_DECL_REMAINDER.
26305         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
26306         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
26307         * tests/test-math-c++.cc: Check the declaration of remainder.
26308         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
26309         problems are fixed.
26311 2012-02-25  Bruno Haible  <bruno@clisp.org>
26313         Tests for module 'fmodl'.
26314         * modules/fmodl-tests: New file.
26315         * tests/test-fmodl.c: New file.
26316         * tests/test-math-c++.cc: Check the declaration of fmodl.
26318         New module 'fmodl'.
26319         * lib/math.in.h (fmodl): New declaration.
26320         * lib/fmodl.c: New file.
26321         * m4/fmodl.m4: New file.
26322         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
26323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
26324         REPLACE_FMODL.
26325         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
26326         REPLACE_FMODL.
26327         * modules/fmodl: New file.
26328         * doc/posix-functions/fmodl.texi: Mention the new module.
26330 2012-02-25  Bruno Haible  <bruno@clisp.org>
26332         Tests for module 'modfl'.
26333         * modules/modfl-tests: New file.
26334         * tests/test-modfl.c: New file.
26335         * tests/test-math-c++.cc: Check the declaration of modfl.
26337         New module 'modfl'.
26338         * lib/math.in.h (modfl): New declaration.
26339         * lib/modfl.c: New file.
26340         * m4/modfl.m4: New file.
26341         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
26342         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
26343         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
26344         * modules/modfl: New file.
26345         * doc/posix-functions/modfl.texi: Mention the new module.
26347 2012-02-25  Bruno Haible  <bruno@clisp.org>
26349         Tests for module 'fabsl'.
26350         * modules/fabsl-tests: New file.
26351         * tests/test-fabsl.c: New file.
26352         * tests/test-math-c++.cc: Check the declaration of fabsl.
26354         New module 'fabsl'.
26355         * lib/math.in.h (fabsl): New declaration.
26356         * lib/fabsl.c: New file.
26357         * m4/fabsl.m4: New file.
26358         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
26359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
26360         REPLACE_FABSL.
26361         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
26362         REPLACE_FABSL.
26363         * modules/fabsl: New file.
26364         * doc/posix-functions/fabsl.texi: Mention the new module.
26366 2012-02-25  Bruno Haible  <bruno@clisp.org>
26368         fabs tests: More tests.
26369         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
26370         (zero): New variable.
26371         (main): Add tests for signed zero.
26372         * modules/fabs-tests (Files): Add tests/minus-zero.h.
26374         fabsf tests: More tests.
26375         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
26376         (zero): New variable.
26377         (main): Add tests for signed zero.
26378         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
26380 2012-02-24  Bruno Haible  <bruno@clisp.org>
26382         atanl: Provide function definition on MSVC.
26383         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
26384         function pointer.
26385         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
26387 2012-02-24  Bruno Haible  <bruno@clisp.org>
26389         acosl: Provide function definition on MSVC.
26390         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
26391         function pointer.
26392         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
26394 2012-02-24  Bruno Haible  <bruno@clisp.org>
26396         asinl: Provide function definition on MSVC.
26397         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
26398         function pointer.
26399         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
26401 2012-02-24  Bruno Haible  <bruno@clisp.org>
26403         tanl: Provide function definition on MSVC.
26404         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
26405         function pointer.
26406         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
26408 2012-02-24  Bruno Haible  <bruno@clisp.org>
26410         cosl: Provide function definition on MSVC.
26411         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
26412         function pointer.
26413         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
26415 2012-02-24  Bruno Haible  <bruno@clisp.org>
26417         sinl: Provide function definition on MSVC.
26418         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
26419         function pointer.
26420         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
26422 2012-02-24  Bruno Haible  <bruno@clisp.org>
26424         logl: Provide function definition on MSVC.
26425         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
26426         function pointer.
26427         * lib/math.in.h (logl): Undefine if it does not exist as a function.
26429 2012-02-24  Bruno Haible  <bruno@clisp.org>
26431         expl: Provide function definition on MSVC.
26432         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
26433         function pointer.
26434         * lib/math.in.h (expl): Undefine if it does not exist as a function.
26436 2012-02-24  Bruno Haible  <bruno@clisp.org>
26438         sqrtl: Provide function definition on MSVC.
26439         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
26440         a function pointer.
26441         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
26443 2012-02-24  Bruno Haible  <bruno@clisp.org>
26445         ceill: Provide function definition on MSVC.
26446         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
26447         used as a function pointer.
26448         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
26450 2012-02-24  Bruno Haible  <bruno@clisp.org>
26452         floorl: Provide function definition on MSVC.
26453         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
26454         used as a function pointer.
26455         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
26457 2012-02-24  Bruno Haible  <bruno@clisp.org>
26459         ceilf: Provide function definition on MSVC.
26460         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
26461         used as a function pointer.
26462         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
26464 2012-02-24  Bruno Haible  <bruno@clisp.org>
26466         floorf: Provide function definition on MSVC.
26467         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
26468         used as a function pointer.
26469         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
26471 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26473         stdnoreturn: new module
26474         This implements a replacement for C11's <stdnoreturn.h>.
26475         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
26476         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
26477         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
26478         * tests/test-stdnoreturn.c: New files.
26480 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
26482         regex: fix false multibyte matches in some regular expressions
26483         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
26484         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
26485         * lib/regex_internal.c (re_string_skip_chars):
26486         Fix miscomputation of remain_len that may cause incomplete
26487         multi-byte character and false match.
26489 2012-02-24  Jim Meyering  <meyering@redhat.com>
26491         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
26492         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
26493         uses with "==" *before* the call, e.g., 0 == strcmp (...)
26494         Remove now-unnecessary str''cmp obfuscation.
26495         Suggested by Akim Demaille.
26497 2012-02-24  Bruno Haible  <bruno@clisp.org>
26499         streq: Rename macro.
26500         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
26501         * NEWS: Mention the change.
26502         * lib/mbrtowc.c (mbrtowc): Update.
26503         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
26504         * lib/wcwidth.c (wcwidth): Update.
26505         Suggested by Akim Demaille and Jim Meyering.
26507 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26509         regex: fix typo in definition of MIN
26510         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
26511         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
26513 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26514             Bruno Haible  <bruno@clisp.org>
26516         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
26517         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
26518         entries into a stack-allocated buffer directly.
26519         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
26521 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
26522             Bruno Haible  <bruno@clisp.org>
26524         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
26526          - There were several instances of this pattern:
26528              for (;;) {
26529                n = acl (f, GETACLCNT, 0, NULL);
26530                [ allocate an array A of size N ]
26531                if (acl (f, GETACL, n, a) == n)
26532                  break;
26533              }
26535            This loop might never terminate if some other process is constantly
26536            manipulating the file's ACL.  The loop should be rewritten to
26537            terminate.
26539          - The acl (... GETACLNT ...) call is merely an optimization; its value
26540            is merely a hint as to how big to make the array.  A better
26541            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
26542            and just guess a reasonably-big size, growing the size and trying
26543            again if it's not large enough.  This guarantees termination, and
26544            saves a system call.
26546         * lib/acl-internal.h: Include <limits.h>.
26547         (MIN, SIZE_MAX): New macros.
26548         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
26549         a stack-allocated buffer, and use malloc if it does not fit. Don't
26550         use GETACLCNT.
26551         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26553 2012-02-19  Bruno Haible  <bruno@clisp.org>
26555         acl: Fix endless loop on Solaris with vxfs.
26556         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
26557         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
26558         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
26559         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
26560         * tests/test-sameacls.c (main)[Solaris]: Likewise.
26561         Reported by Bill Jones in
26562         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
26564 2012-02-19  Bruno Haible  <bruno@clisp.org>
26566         acl: Fix copy-acl test failure on Solaris 11.0.
26567         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
26568         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
26569         that this function returns 0 in some more cases.
26571 2012-02-19  Bruno Haible  <bruno@clisp.org>
26573         acl: Update doc references.
26574         * doc/acl-resources.txt: Update links to Solaris documentation.
26576 2012-02-19  Bruno Haible  <bruno@clisp.org>
26578         Fix test failure in many locales on Solaris 11.
26579         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
26580         'tr' arguments.
26581         * tests/test-pipe-filter-ii1.c (main): Likewise.
26582         * build-aux/bootstrap (check_versions): Run 'tr' command with range
26583         expressions in the C locale.
26584         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26585         * m4/host-os.m4 (gl_HOST_OS): Likewise.
26587 2012-02-19  Bruno Haible  <bruno@clisp.org>
26589         gnulib-tool: Improve usage message.
26590         * gnulib-tool (func_usage): Move doc of --help and --version to the
26591         section "Operation modes".
26593 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
26595         README-release: make it easier to execute commands
26596         * top/README-release: break commands out on to separate lines.
26598 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
26600         GNUmakefile: simplify detection of unconfigured trees
26601         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
26602         whether the tree make is being run from is already configured or
26603         not.  Related simplifications.
26605 2012-02-13  Simon Josefsson  <simon@josefsson.org>
26607         * gnulib-tool (func_usage): Document --help and --version.
26609 2012-02-11  Jim Meyering  <meyering@redhat.com>
26611         bootstrap: don't exit 0 upon gnulib-tool failure
26612         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
26613         its exit status, not 0.
26615 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
26617         README-release: various improvements
26618         * top/README-release: Give a command to push changes for the
26619         release.  Add "distcheck" to list of other pre-release checks.
26620         Fix instance of "make stable" which should be "make TYPE".
26622 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26624         maint: replace FSF snail-mail addresses with URLs
26625         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
26626         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
26627         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
26628         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
26629         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
26630         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
26631         * lib/check-version.c, lib/check-version.h, lib/config.charset:
26632         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
26633         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
26634         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
26635         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
26636         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
26637         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
26638         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
26639         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
26640         * lib/glthread/thread.c, lib/glthread/thread.h:
26641         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
26642         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
26643         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
26644         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
26645         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
26646         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
26647         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
26648         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
26649         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
26650         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
26651         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
26652         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
26653         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
26654         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
26655         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
26656         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
26657         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
26658         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
26659         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
26660         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
26661         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
26662         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
26663         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
26664         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
26665         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
26666         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
26667         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
26668         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
26669         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
26670         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
26671         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
26672         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
26673         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
26674         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
26675         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
26676         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
26677         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
26678         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
26679         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
26680         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
26681         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
26682         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
26683         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
26684         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
26685         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
26686         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
26687         * tests/test-poll.c, tests/test-quotearg-simple.c:
26688         * tests/test-quotearg.c, tests/test-quotearg.h:
26689         * tests/test-round-ieee.c, tests/test-round1.c:
26690         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
26691         * tests/test-roundl-ieee.c, tests/test-roundl.c:
26692         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
26693         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
26694         * tests/test-strerror.c, tests/test-strerror_r.c:
26695         * tests/test-strsignal.c, tests/test-strverscmp.c:
26696         * tests/test-xmemdup0.c:
26697         Replace FSF snail mail addresses with URLs, as per GNU coding
26698         standards.  See glibc bug
26699         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
26701 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
26703         README-release: capitalize a word and split a line
26704         * top/README-release: Fix punctuation and spacing.
26706 2012-02-08  Akim Demaille  <demaille@gostai.com>
26708         fatal-signal: use C prototypes (with explicit void).
26709         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
26710         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
26712 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26714         regex: spelling fix
26715         * lib/regexec.c: spelling fix
26717         regex: rely on stdint.h for SIZE_MAX
26718         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
26720 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
26722         regex: merge glibc changes
26724         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
26725         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
26726         (init_word_char): Work even if bitset words are not exactly 32 or
26727         64 bits wide.  Don't assume there are no padding bits.
26728         * lib/regex.c [_LIBC]: Do not include <config.h>.
26729         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
26730         and -Wtype-limits.
26731         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
26732         needless disagreement with glibc.  All uses changed.  Define it to
26733         1 only if _GNU_SOURCE, to match glibc.
26734         (_REG_RM_NAME): Remove; no longer needed, since the names in
26735         question are now all protected by __USE_GNU.
26736         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
26737         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
26738         * lib/regex_internal.h (MIN): New macro.
26740         2012-01-03 Ulrich Drepper <drepper@gmail.com>
26741         * lib/regcomp.c (init_word_char): Optimize regex a bit.
26743         2011-12-30 Jakub Jelinek <jakub@redhat.com>
26744         * lib/regex_internal.c (re_string_fetch_byte_case):
26745         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
26746         is miscompiled, and it turns out it is because of an incorrect
26747         attribute on re_string_fetch_byte_case.  Unlike
26748         re_string_peek_byte_case, this one is really not pure, it modifies
26749         memory (increments pstr->cur_idx), and with the pure attribute GCC
26750         assumed it doesn't and it cached the presumed value of
26751         regexp->cur_idx in a variable across the
26752          for (;; ++i)
26753            {
26754              if (i >= BRACKET_NAME_BUF_SIZE)
26755                return REG_EBRACK;
26756              if (token->type == OP_OPEN_CHAR_CLASS)
26757                ch = re_string_fetch_byte_case (regexp);
26758              else
26759                ch = re_string_fetch_byte (regexp);
26760              if (re_string_eoi(regexp))
26761                return REG_EBRACK;
26762              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
26763                break;
26764              elem->opr.name[i] = ch;
26765            }
26767         2011-11-29 Andreas Schwab <schwab@redhat.com>
26768         * lib/regcomp.c (build_equiv_class):
26769         Fix access after end of search string in regex matcher.
26771         2011-11-12 Ulrich Drepper <drepper@redhat.com>
26772         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
26774         2011-10-12 Ulrich Drepper <drepper@redhat.com>
26775         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
26777         2011-10-11 Ulrich Drepper <drepper@redhat.com>
26778         * lib/regcomp.c (parse_branch, parse_sub_exp):
26779         More regex memory leak fixes and tests.
26780         (parse_sub_exp, parse_bracket_exp):
26781         Fix memory leak for some invalid regular expressions.
26783         2011-05-28 Ulrich Drepper <drepper@gmail.com>
26784         * lib/regex_internal.c, lib/regexec.c:
26785         Fix unnecessary overallocation due to incomplete character.  When
26786         incomplete characters are found at the end of a string the code
26787         ran amok and allocated lots of memory.  Stricter limits are now in
26788         place.
26790         2011-05-20 Reuben Thomas <rrt@sc3d.org>
26791         * lib/regex.h: Update documentation.
26793         2011-05-16 Aharon Robbins <arnold@skeeve.com>
26794         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
26796         2010-05-05 Andreas Schwab <schwab@redhat.com>
26797         * lib/regexec.c (find_collation_sequence_value):
26798         Fix lookup of collation sequence value during regexp matching.
26800         2010-01-22 Ulrich Drepper <drepper@redhat.com>
26801         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
26803         2008-01-16 Ulrich Drepper <drepper@redhat.com>
26804         * lib/regex.h: Cleanup namespace.
26806         2007-11-26 Ulrich Drepper <drepper@redhat.com>
26807         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
26809         2007-08-26 Ulrich Drepper <drepper@redhat.com>
26810         * lib/regex_internal.h: Prevent some declarations and definitions
26811         to be seen when used in tests.
26813         2005-05-06 Ulrich Drepper <drepper@redhat.com>
26814         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
26815         __libc_lock_* macros if not _LIBC.
26816         (struct re_dfa_t): Add lock.
26818 2012-02-07  Eric Blake  <eblake@redhat.com>
26820         maint.mk: also prohibit lower-case @var@
26821         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
26822         lower case, like @top_srcdir@.
26824 2012-02-04  Eric Blake  <eblake@redhat.com>
26826         canonicalize: avoid uninitialized memory use
26827         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
26828         random '/' left in dest.
26829         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
26831 2012-02-04  Bruno Haible  <bruno@clisp.org>
26833         isatty: Fix test failure of ptsname_r on native Windows.
26834         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
26835         and don't set errno.
26836         (isatty): Test first whether fd is valid. Set errno when returning 0.
26838 2012-02-04  Bruno Haible  <bruno@clisp.org>
26840         spawn-pipe tests: Fix a NULL program name in a diagnostic.
26841         * tests/test-spawn-pipe-main.c: Include progname.h.
26842         (main): Invoke set_program_name.
26843         * modules/spawn-pipe-tests (Depends-on): Add progname.
26845         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
26846         * tests/test-nonblocking-socket-main.c: Include progname.h.
26847         (main): Invoke set_program_name.
26848         * modules/nonblocking-socket-tests (Depends-on): Add progname.
26850         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
26851         * tests/test-nonblocking-pipe-main.c: Include progname.h.
26852         (main): Invoke set_program_name.
26853         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
26855 2012-02-04  Eric Blake  <eblake@redhat.com>
26857         canonicalize-lgpl: fix // handling
26858         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
26860         canonicalize: fix // handling
26861         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
26862         /// to //, since only // is special.
26864 2012-02-04  Bruno Haible  <bruno@clisp.org>
26866         ioctl: Fix test failure on native Windows.
26867         * lib/ioctl.c: Include msvc-nothrow.h.
26868         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
26870 2012-02-04  Bruno Haible  <bruno@clisp.org>
26872         fsync: Avoid test failure on native Windows.
26873         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
26874         read-only.
26876 2012-02-04  Bruno Haible  <bruno@clisp.org>
26878         sys_select: Avoid syntax error on OpenBSD 5.0.
26879         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
26880         currently being included, just include the system's <sys/select.h>.
26882 2012-02-04  Bruno Haible  <bruno@clisp.org>
26884         sys_select: Avoid syntax error on OpenBSD 5.0.
26885         * lib/sys_select.in.h: Include <signal.h> only after the include_next
26886         <sys/select.h>, not before.
26887         Reported by Jiri B <jirib@devio.us>.
26889 2012-02-04  Bruno Haible  <bruno@clisp.org>
26891         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
26892         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
26893         global variables.
26894         * tests/test-get-rusage-data.c (main): Likewise.
26895         Reported by Jim Meyering.
26897 2012-02-04  Bruno Haible  <bruno@clisp.org>
26899         stdioext: Fix last commit.
26900         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
26902 2012-02-03  Bruno Haible  <bruno@clisp.org>
26904         stdioext: Add tentative support for Plan9.
26905         * lib/stdio-impl.h: Include <errno.h>.
26906         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
26907         * lib/freadable.c (freadable): Likewise.
26908         * lib/fwritable.c (fwritable): Likewise.
26909         * lib/fbufmode.c (fbufmode): Likewise.
26910         * lib/freading.c (freading): Likewise.
26911         * lib/fwriting.c (fwriting): Likewise.
26912         * lib/freadptr.c (freadptr): Likewise.
26913         * lib/freadseek.c (freadptrinc): Likewise.
26914         * lib/freadahead.c (freadahead): Likewise.
26915         * lib/fpurge.c (fpurge): Likewise.
26916         * lib/fseeko.c (rpl_fseeko): Likewise.
26917         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
26918         Reported by Jens Staal <staal1978@gmail.com>.
26920 2012-02-02  Jim Meyering  <meyering@redhat.com>
26922         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
26923         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
26924         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
26925         not even to try to add the attribute.  Instead, add a pragma to suppress
26926         the suggestion/warning.
26928 2012-01-31  Karl Berry  <karl@gnu.org>
26930         setstate doc: typo.
26931         * doc/posix-functions/setstate.texi (setstate): { not (.
26933 2012-01-31  Bruno Haible  <bruno@clisp.org>
26935         popen: Make more robust on Windows.
26936         * lib/popen.c: On native Windows, use the _popen based code even if
26937         HAVE_POPEN is set.
26938         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
26939         environment variable on native Windows.
26941 2012-01-30  Bruno Haible  <bruno@clisp.org>
26943         pclose: Fix typo.
26944         * lib/stdio.in.h (pclose): Fix typo in warning message.
26946 2012-01-30  Bruno Haible  <bruno@clisp.org>
26948         doc about getlogin_r, setstate.
26949         * doc/posix-functions/getlogin_r.texi: List the incompatible
26950         declaration problem under "not fixed by gnulib".
26951         * doc/posix-functions/setstate.texi: Mention incompatible declaration
26952         problem on Solaris 11 and other platforms.
26954 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
26955             Bruno Haible  <bruno@clisp.org>
26957         poll tests: Make test more robust.
26958         * tests/test-poll.c: Include macros.h.
26959         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
26960         return value of various I/O operations.
26961         * modules/poll-tests (Files): Add tests/macros.h.
26963 2012-01-30  Bruno Haible  <bruno@clisp.org>
26965         sys_stat: Fix support for mingw64 and MSVC.
26966         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
26967         header files already do it.
26968         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
26969         stat itself.
26970         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
26972 2012-01-30  Bruno Haible  <bruno@clisp.org>
26974         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
26975         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
26976         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
26978 2012-01-29  Bruno Haible  <bruno@clisp.org>
26980         quotearg: Fix test failure on MacOS X 10.5.
26981         * tests/test-quotearg-simple.c: Include localcharset.h.
26982         (main): If the locale encoding is not ASCII, bypass the tests of
26983         locale_quoting_style and clocale_quoting_style.
26984         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
26986 2012-01-29  Jim Meyering  <meyering@redhat.com>
26988         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
26989         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
26990         detect uses of canonicalize_file_name.
26992 2012-01-28  Bruno Haible  <bruno@clisp.org>
26994         test-framework-sh: Fix test failure with AIX 7.1 diff.
26995         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
26996         in column 1, like 'diff -c' does.
26997         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
26998         whether 'diff -u' is used. Instead, test whether the output contains
26999         some '@' character.
27001 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27003         strtoimax: eliminate need for stdint.h, inttypes.h checks
27004         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
27005         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
27006         the prerequisites for a recently-introduced strtoimax test.
27007         I guess this might cause strtoimax to be replaced when not
27008         strictly necessary on older hosts, but this shouldn't introduce
27009         any bugs and it should make Emacs 'configure' faster on typical
27010         modern hosts.  Problem discovered when importing the latest gnulib
27011         to an Emacs test version.
27012         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
27014 2012-01-28  Bruno Haible  <bruno@clisp.org>
27016         sys_time: Override 'struct timeval' on some native Windows platforms.
27017         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
27018         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
27019         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
27020         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
27021         needs to be overridden.
27022         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
27023         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
27024         * tests/test-sys_select.c: Check that the tv_sec member has the same
27025         size as a 'time_t'.
27026         * tests/test-sys_time.c: Likewise.
27027         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
27028         is set, set also REPLACE_GETTIMEOFDAY.
27029         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
27030         convert the resulting 'struct timeval' before returning.
27031         * lib/select.c: Include <sys/time.h>.
27032         (select, timeval): Undefine at the right place.
27033         * modules/select (Depends-on): Add sys_time.
27034         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
27035         some Windows platforms.
27036         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27038 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27040         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
27041         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
27042         an integer.
27043         * lib/fcntl.c (dupfd): Likewise.
27044         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
27046 2012-01-28  Bruno Haible  <bruno@clisp.org>
27048         fcntl: Avoid compilation error on native Windows.
27049         * modules/fcntl (Depends-on): Add 'close'.
27051 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27053         select, poll, isatty: Avoid warnings on x86_64 mingw64.
27054         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
27055         pointer to an integer.
27056         * lib/poll.c (IsConsoleHandle): Likewise.
27057         * lib/isatty.c (IsConsoleHandle): Likewise.
27059 2012-01-28  Jim Meyering  <meyering@redhat.com>
27061         doc: clarify README-release
27062         * top/README-release: Clarify: you should make a point to have
27063         the latest stable versions of build tools in your PATH, and the
27064         reference to buildreq is solely for its list of tool names, not
27065         for its minimal-functional version numbers.
27066         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
27068         maint.mk: use more readable (yet functionally equivalent) quoting
27069         It is common to quote a single quote in a single quoted string like
27070         this:  '...'\''...'.  Unless you know the idiom, that looks like
27071         gibberish, so prefer to double-quote the string when possible.
27072         Then you can use a more readable, lone single quote: "...'..."
27073         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
27074         "don't" is more readable than the equivalent 'don'\''t'.
27075         (sc_cast_of_x_alloc_return_value): Likewise.
27076         (sc_cast_of_alloca_return_value): Likewise.
27077         (sc_makefile_path_separator_check): Similar: use ":" in '...',
27078         rather than '\'':'\''.
27080 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27082         stdalign: relax _Alignof and tighten _Alignas test
27083         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
27084         as it was too strict: alignof must divide offsetof, but it need
27085         not equal offsetof.  Inspired by Joseph S. Myers's comment
27086         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
27087         Conversely, tighten the _Alignas test a bit, as the resulting
27088         alignment must be exactly 8.
27090 2012-01-27  Bruno Haible  <bruno@clisp.org>
27092         stdalign: Document the last change.
27093         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
27095 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27097         stdalign: check that alignof and offsetof are consistent
27098         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
27099         Problem reported for gnulib by Richard W.M. Jones in
27100         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
27102 2012-01-27  Jim Meyering  <meyering@redhat.com>
27104         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
27105         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
27106         convert a sequence with gaps to the minimal containing range.
27107         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
27108         * tests/test-update-copyright.sh: Test for this.
27109         The FSF confirmed it is ok to do this, assuming there is at
27110         least one significant change per year in the affected range:
27111         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
27113 2012-01-26  Bruno Haible  <bruno@clisp.org>
27115         pipe2: refine doc about thread-safety
27116         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
27117         multithread-safety problem.
27118         * doc/glibc-functions/accept4.texi: Likewise.
27120 2012-01-26  Bruno Haible  <bruno@clisp.org>
27122         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
27123         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
27124         In the test program, include <fcntl.h>, for O_RDONLY.
27126 2012-01-26  Eric Blake  <eblake@redhat.com>
27128         pipe2: document lack of thread-safety in replacement
27129         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
27130         issue in replacement.
27131         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27132         Based on a report by Eric Wong.
27134 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27135             Bruno Haible  <bruno@clisp.org>
27137         malloca: Avoid warnings on x86_64 mingw64.
27138         * lib/malloca.c: Include <stdint.h>.
27139         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
27140         * modules/malloca (Depends-on): Add stdint.
27141         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
27143 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27145         obstack: remove __STDC__ conditionals
27146         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
27147         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
27148         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
27149         m4/include_next.m4 as the only gnulib-maintained places that still
27150         refer to __STDC__.
27152 2012-01-24  Bruno Haible  <bruno@clisp.org>
27154         havelib: Modern quoting.
27155         * build-aux/config.rpath: Quote 'like this', not `like this', as per
27156         the recent change to the GNU coding standards.
27158 2012-01-24  Bruno Haible  <bruno@clisp.org>
27160         stdint: Improve support for Android.
27161         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
27162         Reported by Simon Josefsson <simon@josefsson.org>.
27164 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27166         doc: omit trailing empty lines from INSTALL etc.
27167         * doc/Makefile (INSTALL): Omit trailing empty lines.
27168         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
27169         omit trailing empty lines.  This simplifies the build procedure.
27171 2012-01-23  Jim Meyering  <meyering@redhat.com>
27173         tests: avoid spurious warnings about gl_sockets_startup
27174         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
27175         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
27176         reporting a "statement with no effect".
27177         * tests/test-accept.c (main): Mark as "(void)".
27178         * tests/test-accept4.c (main): Likewise.
27179         * tests/test-bind.c (main): Likewise.
27180         * tests/test-connect.c (main): Likewise.
27181         * tests/test-getpeername.c (main): Likewise.
27182         * tests/test-getsockname.c (main): Likewise.
27183         * tests/test-getsockopt.c (main): Likewise.
27184         * tests/test-listen.c (main): Likewise.
27185         * tests/test-recv.c (main): Likewise.
27186         * tests/test-recvfrom.c (main): Likewise.
27187         * tests/test-send.c (main): Likewise.
27188         * tests/test-sendto.c (main): Likewise.
27189         * tests/test-setsockopt.c (main): Likewise.
27190         * tests/test-shutdown.c (main): Likewise.
27192 2012-01-21  Bruno Haible  <bruno@clisp.org>
27194         locale-fr.m4: Fix for Android.
27195         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
27196         failure of the test program on Bionic libc.
27198 2012-01-21  Jim Meyering  <meyering@redhat.com>
27200         bootstrap: fail when bootstrap_post_import_hook fails
27201         Otherwise, it's far too easy to miss diagnostics emitted
27202         between gnulib-tool's output and that of running configure.
27203         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
27205 2012-01-17  Jim Meyering  <meyering@redhat.com>
27207         maint: enable sc_trailing_blank
27208         * build-aux/pmccabe.css: Remove trailing blanks.
27209         * doc/acl-cygwin.txt: Likewise.
27210         * doc/gnu-oids.texi: Likewise
27211         * cfg.mk: Enable sc_trailing_blank.
27212         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
27214 2012-01-17  Jim Meyering  <meyering@redhat.com>
27216         maint: enable sc_prohibit_openat_without_use
27217         * cfg.mk: Enable sc_prohibit_openat_without_use.
27218         Exempt lib/selinux-at.c.
27220 2012-01-17  Jim Meyering  <meyering@redhat.com>
27222         maint: enable sc_prohibit_cloexec_without_use
27223         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
27224         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
27226 2012-01-17  Jim Meyering  <meyering@redhat.com>
27228         maint: enable sc_prohibit_intprops_without_use
27229         * cfg.mk: Enable sc_prohibit_intprops_without_use
27230         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
27232 2012-01-17  Jim Meyering  <meyering@redhat.com>
27234         maint: enable sc_prohibit_hash_pjw_without_use
27235         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
27236         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
27237         to match any use of \<hash_pjw\>, i.e., not necessarily with a
27238         following " (".
27240 2012-01-17  Jim Meyering  <meyering@redhat.com>
27242         maint: enable double-word-prohibiting rule
27243         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
27244         Exempt three files.
27246 2012-01-17  Jim Meyering  <meyering@redhat.com>
27248         maint: remove empty lines at EOF, but excluding modules/*
27249         Apply syntax rules at home as well as abroad.  Most changes
27250         were induced by running this:
27251           make srcdir=. _build-aux=build-aux -f top/maint.mk \
27252             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
27253             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
27254         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
27255         Exempt modules/* and two binary files.
27256         Also exempt doc/INSTALL*, per request from Bruno Haible.
27257         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
27258         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
27259         * doc/Copyright/request-assign.future: Likewise.
27260         * doc/Copyright/request-disclaim.changes: Likewise.
27261         * doc/INSTALL: Likewise.
27262         * doc/INSTALL.ISO: Likewise.
27263         * doc/INSTALL.UTF-8: Likewise.
27264         * doc/acl-cygwin.txt: Likewise.
27265         * doc/acl-resources.txt: Likewise.
27266         * doc/fdl-1.2.texi: Likewise.
27267         * doc/fdl-1.3.texi: Likewise.
27268         * doc/fdl.texi: Likewise.
27269         * lib/argp-pin.c: Likewise.
27270         * lib/round.c: Likewise.
27271         * lib/unicase/u16-totitle.c: Likewise.
27272         * lib/unictype/block_test.c: Likewise.
27273         * lib/uninorm/canonical-decomposition.c: Likewise.
27274         * m4/README: Likewise.
27275         * m4/relocatable-lib.m4: Likewise.
27276         * tests/test-isnand-nolibm.c: Likewise.
27277         * tests/test-isnand.c: Likewise.
27278         * tests/uninorm/NormalizationTest.txt: Likewise.
27280 2012-01-17  Jim Meyering  <meyering@redhat.com>
27282         maint: add framework to run syntax-check rules against gnulib sources
27283         * cfg.mk: New file, to disable all currently-failing tests.
27284         We'll enable them one by one, as they are made to pass.
27285         * Makefile (sc_maint): New rule.
27287 2012-01-21  Bruno Haible  <bruno@clisp.org>
27289         stdint: Add support for Android.
27290         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
27291         include the system's <stdint.h>.
27292         Reported by Simon Josefsson <simon@josefsson.org>.
27294 2012-01-19  Jim Meyering  <meyering@redhat.com>
27296         bootstrap: add bootstrap_post_import_hook
27297         Bison does still need something like the gnulib_mk_hook whose
27298         invocation I had to remove along with slurp in commit 767ccd40.
27299         Technically, we could get along without it, but doing so would
27300         have required living with a warning and a mandatory post-bootstrap
27301         automake rerun.
27302         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
27303         (bootstrap_post_import_hook): New function.
27304         Invoke it after gnulib-tool --import and before autoreconf.
27306 2012-01-18  Jim Meyering  <meyering@redhat.com>
27308         gitlog-to-changelog: don't use "no_"-prefixed variable name
27309         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
27310         to enable both --cluster and --no-cluster.  Change variable name,
27311         s/\$no_cluster/$cluster/, and reverse usage to match.
27313         gitlog-to-changelog: use "||", not "or" in expressions
27314         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
27315         expressions.
27317 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
27319         gitlog-to-changelog: new option --no-cluster
27320         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
27321         clustering of adjacent commit messages.
27323 2012-01-17  Jim Meyering  <meyering@redhat.com>
27325         maint: spell file systems with two words, not one
27326         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
27327         two words, not one.
27329 2012-01-16  Jim Meyering  <meyering@redhat.com>
27331         bootstrap: add a FIXME comment to ensure we eventually remove the hack
27332         * build-aux/bootstrap (gnulib_tool_options): Add comment.
27334 2012-01-16  Eric Blake  <eblake@redhat.com>
27336         bootstrap: cater to autoconf 2.59
27337         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
27338         is not available.
27340         bootstrap: properly check for libtool
27341         * build-aux/bootstrap (libtoolize): Also run libtool when older
27342         usage is detected.
27344 2012-01-15  Bruno Haible  <bruno@clisp.org>
27346         Improve support for MSVC 9.
27347         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
27348         clashes on MSVC.
27349         * lib/fcntl.in.h: Likewise.
27350         * lib/stdlib.in.h: Likewise.
27351         * lib/sys_stat.in.h: Likewise.
27353 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
27355         gnupload: we hold the master copy of this script now
27356         For motivation and more information, see:
27357         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
27358         * build-aux/gnupload: Make it clear in the heading comments that the
27359         master copy of this file is maintained by gnulib.  Since we are at
27360         it, bump its copyright year and ...
27361         ($scriptversion): ... the date in its version.
27362         ($usage): Patches and bug reports should be sent to the gnulib list,
27363         not the automake one.
27364         * config/srclist.txt: Don't try to sync 'gnupload' from automake
27365         anymore.
27367 2012-01-15  Bruno Haible  <bruno@clisp.org>
27369         Fix module 'random'.
27370         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
27371         initstate, setstate are declared.
27373 2012-01-14  Bruno Haible  <bruno@clisp.org>
27375         Tests for module 'random'.
27376         * modules/random-tests: New file.
27377         * tests/test-random.c: New file, based on tests/test-random_r.c.
27379         New module 'random'.
27380         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
27381         declarations.
27382         * lib/random.c: New file, based on glibc/stdlib/random.c.
27383         * m4/random.m4: New file.
27384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
27385         HAVE_RANDOM.
27386         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
27387         * modules/random: New file.
27388         * config/srclist.txt: Add an entry for random.c.
27389         * doc/posix-functions/random.texi: Mention the 'random' module.
27390         * doc/posix-functions/initstate.texi: Likewise.
27391         * doc/posix-functions/setstate.texi: Likewise.
27392         * doc/posix-functions/srandom.texi: Likewise.
27394 2012-01-12  Bruno Haible  <bruno@clisp.org>
27396         random_r: Use common idioms.
27397         * lib/random_r.c: Include <stdlib.h> first.
27399         random_r: Override incompatible API on AIX, OSF/1.
27400         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
27401         Override the system function if REPLACE_RANDOM_R is 1.
27402         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
27403         and OSF/1, set REPLACE_RANDOM_R.
27404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
27405         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
27406         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
27407         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
27408         * doc/glibc-functions/random_r.texi: Likewise.
27409         * doc/glibc-functions/setstate_r.texi: Likewise.
27411         random_r: Support for MSVC 9.
27412         * lib/random_r.c: Include stdint.h, not inttypes.h.
27414 2012-01-12  Eric Blake  <eblake@redhat.com>
27416         inet_ntop: guard extra work by IF_LINT
27417         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
27418         better code generation when not checking for warnings.
27419         Suggested by Paul Eggert and Jim Meyering.
27421         strptime: fix regression on mingw
27422         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
27423         Fix regression.  Reported by Bruno Haible.
27425 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
27426             Bruno Haible  <bruno@clisp.org>
27428         copy-file: add error-code-returning variant.
27429         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
27430         (qcopy_file_preserving): New declaration.
27431         * lib/copy-file.c (qcopy_file_preserving): Renamed from
27432         copy_file_preserving. Change return type to 'int'. Don't emit an error
27433         message here.
27434         (copy_file_preserving): New function.
27435         * tests/test-copy-file.c: Include <stdlib.h>.
27436         (main): Test qcopy_file_preserving if the environment variable
27437         NO_STDERR_OUTPUT is set.
27438         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
27439         with NO_STDERR_OUTPUT
27440         * tests/test-copy-file-2.sh: Likewise.
27442 2012-01-10  Bruno Haible  <bruno@clisp.org>
27444         copy-file: Use 'quote' module consistently.
27445         * lib/copy-file.c (copy_file_preserving): Use quote().
27447         copy-file: Refactor.
27448         * lib/copy-file.c: Include quote.h.
27449         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
27450         message here.
27451         * modules/copy-file (Depends-on): Add quote.
27453         acl: Export qcopy_acl.
27454         * lib/acl.h (qcopy_acl): New declaration.
27455         * lib/copy-acl.c (qcopy_acl): Make non-static.
27457         acl: Rename a local variable.
27458         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
27460         acl: Align return values of copy_acl and qcopy_acl.
27461         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
27462         maybe < -1.
27464 2012-01-11  Eric Blake  <eblake@redhat.com>
27466         strptime: silence gcc warnings
27467         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
27468         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
27469         Reported by Daniel P. Berrange.
27471         inet_ntop: silence gcc warning
27472         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
27473         Reported by Daniel P. Berrange.
27475 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
27477         getloadavg test: skip the test on GNU/Linux without /proc mounted
27478         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
27479         file.  When /proc is not mounted, it always fails with ENOENT.
27480         * tests/test-getloadavg.c (main): Treat ENOENT return code from
27481         getloadavg(3) the same way as ENOSYS and ENOTSUP.
27483 2012-01-10  Bruno Haible  <bruno@clisp.org>
27485         regex: Avoid link error on MSVC 9.
27486         * modules/regex (Depends-on): Add wctype.
27488 2012-01-10  Bruno Haible  <bruno@clisp.org>
27490         doc: Mention --with-tests option.
27491         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
27492         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
27493         --with-tests.
27494         Reported by Reuben Thomas.
27496 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
27498         users.txt: order package names lexicographically.
27499         * users.txt: Order package names lexicographically.
27501 2012-01-10  Jim Meyering  <meyering@redhat.com>
27503         maint.mk: fix description in comment
27504         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
27506         ignore-value: remove deprecated ignore_ptr function
27507         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
27508         * NEWS: Note this.
27510 2012-01-09  Jim Meyering  <meyering@redhat.com>
27512         test-init.sh: avoid a subshell
27513         * tests/test-init.sh: Remove protective subshell.
27514         Suggested by Bernhard Voelker.  While a subshell is normally
27515         required to protect against older shells (Solaris, FreeBSD) that
27516         warn about a missing program before performing redirection, the
27517         shell-selection tests performed by init.sh probably exclude any
27518         offending shell.
27520 2012-01-08  Bruno Haible  <bruno@clisp.org>
27522         setlocale tests: Avoid test failure on Solaris 11.0.
27523         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
27524         variable.
27526 2012-01-08  Bruno Haible  <bruno@clisp.org>
27528         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
27529         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27530         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27531         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
27532         macro.
27533         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
27534         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27535         * lib/spawn_faction_addopen.c: Add workaround implementation if
27536         HAVE_WORKING_POSIX_SPAWN.
27537         * modules/spawn (Makefile): Substitute
27538         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
27539         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
27540         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
27541         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
27542         (Depends-on): Update conditions.
27543         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
27544         the Solaris 11 bug.
27546 2012-01-08  Bruno Haible  <bruno@clisp.org>
27548         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
27549         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27550         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27551         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
27552         macro.
27553         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
27554         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27555         * lib/spawn_faction_adddup2.c: Add workaround implementation if
27556         HAVE_WORKING_POSIX_SPAWN.
27557         * modules/spawn (Makefile): Substitute
27558         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
27559         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
27560         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
27561         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
27562         (Depends-on): Update conditions.
27563         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
27564         the Solaris 11 bug.
27566 2012-01-08  Bruno Haible  <bruno@clisp.org>
27568         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
27569         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
27570         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
27571         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
27572         HAVE_WORKING_POSIX_SPAWN.
27573         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
27574         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
27575         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
27576         * lib/spawn_faction_addclose.c: Add workaround implementation if
27577         HAVE_WORKING_POSIX_SPAWN.
27578         * modules/spawn (Makefile): Substitute
27579         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
27580         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
27581         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
27582         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
27583         (Depends-on): Update conditions.
27584         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
27585         the Solaris 11 bug.
27587 2012-01-08  Bruno Haible  <bruno@clisp.org>
27589         doc: Update for Solaris 11.0.
27590         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
27591         * m4/printf.m4: Update comments.
27593 2012-01-08  Bruno Haible  <bruno@clisp.org>
27595         mktime: Avoid compilation error on Solaris 11.
27596         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
27598 2012-01-08  Bruno Haible  <bruno@clisp.org>
27600         doc: Small fix.
27601         * doc/posix-headers/nl_types.texi: Correct platforms list.
27603 2012-01-08  Simon Josefsson  <simon@josefsson.org>
27605         Add lgpl-3.0 module.
27606         * MODULES.html.sh (Support for building documentation): Add
27607         lgpl-3.0.
27608         * modules/lgpl-3.0: New file.
27610 2012-01-08  Jim Meyering  <meyering@redhat.com>
27612         select.c: indent with spaces, not TABs
27613         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
27615 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27617         quotearg: do not use grave accent for left quote
27618         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
27619         locale_quoting_style.
27620         (quotearg_buffer_restyled): Fix example.
27621         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
27623 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27625         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
27626         Most programs do not have translation catalogs for English and much
27627         less separate catalogs for British and American English.  Drop the
27628         suggestion to translators about these two, and provide it
27629         automatically for Unicode locales.  Like most programs, even those
27630         using American English, we use single quotation marks.  This conflicts
27631         with the American typographic convention, but works better when you
27632         cite the entire error message within double quotes.  It also tries not
27633         to clash with established practice and with what non-gnulib programs
27634         will usually do.
27635         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
27636         using an UTF-8 or GB-18030 locale.  The list of other locales with
27637         quotes was provided by Bruno Haible.
27638         (quotearg_buffer_restyled): Adjust instructions to translators.
27639         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
27640         text, since this would be wrong when using Unicode.
27641         * modules/quotearg: Depend on c-strcaseeq.
27643 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
27645         quotearg: fix Wikipedia link
27646         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
27648 2012-01-07  Simon Josefsson  <simon@josefsson.org>
27650         Fix for mingw with MSVC9.
27651         * m4/ld-version-script.m4: Check that compiler rejects version
27652         scripts with syntax errors.  Reported by Bruno Haible
27653         <bruno@clisp.org>.
27655 2012-01-06  Bruno Haible  <bruno@clisp.org>
27657         Talk about "native Windows API", not "Woe32".
27658         * lib/accept4.c: Update comments to mention native Windows.
27659         * lib/execute.c: Likewise.
27660         * lib/fatal-signal.c: Likewise.
27661         * lib/localcharset.c: Likewise.
27662         * lib/nanosleep.c: Likewise.
27663         * lib/nl_langinfo.c: Likewise.
27664         * lib/pclose.c: Likewise.
27665         * lib/pipe-filter-gi.c: Likewise.
27666         * lib/pipe-filter-ii.c: Likewise.
27667         * lib/pipe.c: Likewise.
27668         * lib/pipe2.c: Likewise.
27669         * lib/popen.c: Likewise.
27670         * lib/progreloc.c: Likewise.
27671         * lib/relocatable.c: Likewise.
27672         * lib/sigaction.c: Likewise.
27673         * lib/sigprocmask.c: Likewise.
27674         * lib/spawn-pipe.h: Likewise.
27675         * lib/spawn-pipe.c: Likewise.
27676         * lib/spawni.c: Likewise.
27677         * lib/stat-time.h: Likewise.
27678         * lib/w32spawn.h: Likewise.
27679         * tests/test-isatty.c: Likewise.
27680         * lib/config.charset: More comments.
27681         * doc/gnulib-intro.texi: Mention native Windows.
27682         * doc/posix-functions/_Exit_C99.texi: Likewise.
27683         * doc/posix-headers/fcntl.texi: Likewise.
27685 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
27687         argp: Avoid crash if translator uses % characters in a translation.
27688         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
27689         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
27691 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27693         doc: C11 and C++11 are now official
27694         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
27695         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
27696         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
27697         * modules/stdalign:
27698         Replace references to draft C1X to C11, and to draft C++0X to C++11.
27700 2012-01-06  Bruno Haible  <bruno@clisp.org>
27702         uc-is-grapheme-break tests: Tweak.
27703         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
27704         message.
27706 2012-01-06  Bruno Haible  <bruno@clisp.org>
27708         test-init.sh: correct the test for diff -u
27709         * tests/test-init.sh: Also redirect stdout to /dev/null.
27711 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
27713         Use ', not `, for quoting output.
27714         * build-aux/announce-gen (usage, sizes, print_news_deltas)
27715         (print_changelog_deltas, get_tool_versions, main program):
27716         * build-aux/git-version-gen:
27717         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
27718         * build-aux/move-if-change (help):
27719         * build-aux/useless-if-before-free (usage, main program):
27720         * check-module (parse_module_file, usage)
27721         (find_included_lib_files, check_module):
27722         * lib/argmatch.c (main) [TEST]:
27723         * lib/argp-help.c (_help):
27724         * lib/getopt1.c (main) [TEST]:
27725         * lib/git-merge-changelog.c (usage):
27726         * lib/xstrtol-error.c (xstrtol_error):
27727         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
27728         * m4/argz.m4 (gl_FUNC_ARGZ):
27729         * m4/bison.m4 (gl_BISON):
27730         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
27731         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27732         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
27733         * m4/fpending.m4 (gl_PREREQ_FPENDING):
27734         * m4/gc-random.m4 (gl_GC_RANDOM):
27735         * m4/intl.m4 (gt_CHECK_DECL):
27736         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
27737         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
27738         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
27739         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
27740         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
27741         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
27742         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
27743         * tests/test-dirname.c (main):
27744         * tests/test-getpass.c (main):
27745         * tests/test-iconvme.c (main):
27746         * tests/test-parse-datetime.c (LOG):
27747         * tests/test-xstrtoimax.sh:
27748         * tests/test-xstrtol.sh:
27749         * tests/test-xstrtoll.sh:
27750         * tests/test-xstrtoumax.sh:
27751         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
27752         * top/GNUmakefile (abort-due-to-no-makefile):
27753         Quote 'like this', not `like this', as per the recent change to
27754         the GNU coding standards.
27756 2012-01-05  Bruno Haible  <bruno@clisp.org>
27758         strtoimax: Don't force a replacement on systems where intmax_t is int.
27759         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
27760         'intmax_t' is not larger than 'int'.
27761         Reported by Pádraig Brady <P@draigBrady.com>.
27763 2012-01-05  Bruno Haible  <bruno@clisp.org>
27765         doc: Mention NetBSD bugs.
27766         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
27767         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
27769 2012-01-05  Bruno Haible  <bruno@clisp.org>
27771         strtoumax tests: Enhance tests.
27772         * tests/test-strtoumax.c (main): Add tests for large values.
27774 2012-01-05  Bruno Haible  <bruno@clisp.org>
27776         strtoimax: Work around AIX 5.1 bug.
27777         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
27778         definition.
27779         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
27780         Set HAVE_STRTOIMAX.
27781         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
27782         REPLACE_STRTOIMAX.
27783         * modules/inttypes-incomplete (Makefile.am): Substitute
27784         REPLACE_STRTOIMAX.
27785         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
27786         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
27787         (Depends-on): Update conditions.
27788         * tests/test-strtoimax.c (main): Add tests for large values.
27789         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
27791 2012-01-05  Bruno Haible  <bruno@clisp.org>
27793         inttypes: Modernize.
27794         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
27795         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
27796         (Makefile.am): Update inttypes.h rule.
27798 2012-01-05  Jim Meyering  <meyering@redhat.com>
27800         init.sh: don't waste a subshell just to redirect stderr
27801         * tests/init.sh: In testing for diff -u and diff -c, use a
27802         stderr-redirecting exec inside `...` rather than a subshell.
27804         test-init.sh: avoid failure on HP-UX 11.00
27805         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
27806         resolves to diff -c or cmp.  Reported by Bruno Haible.
27808 2012-01-05  Bruno Haible  <bruno@clisp.org>
27810         Tests for module 'strtoull'.
27811         * modules/strtoull-tests: New file.
27812         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
27814 2012-01-05  Bruno Haible  <bruno@clisp.org>
27816         Tests for module 'strtoll'.
27817         * modules/strtoll-tests: New file.
27818         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
27820 2012-01-05  Bruno Haible  <bruno@clisp.org>
27822         Tests for module 'strtoul'.
27823         * modules/strtoul-tests: New file.
27824         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
27826 2012-01-05  Bruno Haible  <bruno@clisp.org>
27828         Tests for module 'strtol'.
27829         * modules/strtol-tests: New file.
27830         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
27832 2012-01-04  Jim Meyering  <meyering@redhat.com>
27834         test-init.sh: accommodate Solaris 5.10's different diff -u output
27835         * tests/test-init.sh: Also exempt @@ lines from the comparison
27836         of diff output, since Solaris 5.10 and GNU diff formats differ.
27837         Reported by Stefano Lattarini.
27839 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27841         test-posixtm: don't assume signed integer wraparound
27842         * tests/test-posixtm.c (main): Don't assume wraparound semantics
27843         after signed integer overflow.  Inspired by (though it may not
27844         fix) Bruno Haible's bug report in
27845         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
27847         Spell out "Windows 9x" and "Windows XP".
27848         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
27849         "Windows 9x" and "WinXP" with "Windows XP".
27851 2012-01-04  Jim Meyering  <meyering@redhat.com>
27853         test-vc-list-files-cvs.sh: remove obsolete comment
27854         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
27855         double exit.  Now that's all encapsulated via skip_ and Exit.
27857 2012-01-04  Bruno Haible  <bruno@clisp.org>
27859         Talk about "native Windows API", not "Win32".
27860         * lib/classpath.c: Update comments to mention native Windows.
27861         * lib/csharpexec.c: Likewise.
27862         * lib/dup2.c: Likewise.
27863         * lib/error.c: Likewise.
27864         * lib/fcntl.c: Likewise.
27865         * lib/filename.h: Likewise.
27866         * lib/findprog.c: Likewise.
27867         * lib/get-rusage-as.c: Likewise.
27868         * lib/get-rusage-data.c: Likewise.
27869         * lib/getpagesize.c: Likewise.
27870         * lib/javaexec.c: Likewise.
27871         * lib/msvc-inval.c: Likewise.
27872         * lib/msvc-nothrow.c: Likewise.
27873         * lib/nanosleep.c: Likewise.
27874         * lib/nonblocking.c: Likewise.
27875         * lib/printf-parse.c: Likewise.
27876         * lib/setlocale.c: Likewise.
27877         * lib/sigaction.c: Likewise.
27878         * lib/strerror_r.c: Likewise.
27879         * lib/tmpdir.c: Likewise.
27880         * lib/vasnprintf.c: Likewise.
27881         * lib/w32spawn.h: Likewise.
27882         * lib/waitpid.c: Likewise.
27883         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
27884         * m4/locale-ar.m4: Likewise.
27885         * m4/locale-fr.m4: Likewise.
27886         * m4/locale-ja.m4: Likewise.
27887         * m4/locale-tr.m4: Likewise.
27888         * m4/locale-zh.m4: Likewise.
27889         * m4/printf.m4: Likewise.
27890         * tests/test-cloexec.c: Likewise.
27891         * tests/test-copy-acl.sh: Likewise.
27892         * tests/test-copy-file.sh: Likewise.
27893         * tests/test-file-has-acl.sh: Likewise.
27894         * tests/test-set-mode-acl.sh: Likewise.
27895         * tests/test-dup-safer.c: Likewise.
27896         * tests/test-dup2.c: Likewise.
27897         * tests/test-dup3.c: Likewise.
27898         * tests/test-fcntl.c: Likewise.
27899         * tests/test-nonblocking-pipe.h: Likewise.
27900         * tests/test-nonblocking-socket.h: Likewise.
27901         * tests/test-pipe.c: Likewise.
27902         * tests/test-pipe2.c: Likewise.
27903         * tests/test-spawn-pipe-child.c: Likewise.
27904         * doc/acl-resources.txt: Likewise.
27905         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
27906         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
27907         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
27908         * lib/localcharset.c: Update comments to mention native Windows.
27909         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
27910         * lib/localename.c: Likewise.
27911         * lib/progreloc.c: Likewise.
27912         * lib/relocatable.c: Likewise.
27913         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
27914         (windows_compute_revents): Renamed from win32_compute_revents.
27915         (windows_compute_revents_socket): Renamed from
27916         win32_compute_revents_socket.
27917         * lib/select.c: Update comments to mention native Windows.
27918         (windows_poll_handle): Renamed from win32_poll_handle.
27919         * m4/threadlib.m4: Update comments to mention native Windows.
27920         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
27921         --enable-threads=windows instead of --enable-threads=win32. Set
27922         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
27923         * lib/glthread/lock.h: Update comments to mention native Windows.
27924         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
27925         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
27926         USE_WIN32_THREADS.
27927         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
27928         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
27929         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
27930         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
27931         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
27932         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
27933         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
27934         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
27935         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
27936         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
27937         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
27938         * tests/test-tls.c: Likewise.
27939         Rationale:
27940         Microsoft renamed the "Win32 API" to "Windows API", as it is available
27941         on both 32-bit and 64-bit Windows systems.
27942         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
27943         line of distinction is between "native Windows" on one side and Unix/
27944         POSIX systems on the other side. More details in
27945         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
27946         Suggested by Paul Eggert.
27948 2012-01-03  Bruno Haible  <bruno@clisp.org>
27950         isatty: Support for MSVC 9.
27951         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
27952         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
27953         (_isatty_nothrow): New function.
27954         (isatty): Use it instead of _isatty.
27955         (IsConsoleHandle): Add comment, from Paolo Bonzini.
27956         * lib/poll.c (IsConsoleHandle): Likewise.
27957         * lib/select.c (IsConsoleHandle): Likewise.
27958         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
27959         (gl_PREREQ_ISATTY): New macro.
27960         * modules/isatty (Depends-on): Add msvc-inval.
27961         (configure.ac): Invoke gl_PREREQ_ISATTY.
27963 2012-01-03  Jim Meyering  <meyering@redhat.com>
27965         maint.mk: remove temporary transition aid from over 1.5 years ago
27966         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
27967         purpose was to aid in the transition (avoiding silent malfunction)
27968         from that old name to the new _sc_search_regexp.  This shim was
27969         added by commit 219c504b.
27971         init.sh: do not try to accommodate compare arguments starting with "-"
27972         * tests/init.sh (compare_dev_null_): Do not try to accommodate
27973         compare arguments that start with "-".  Besides, we do not worry
27974         about this when invoking diff or cmp; why start now with sed?
27975         Using "--" to separate options from argument would trigger sed
27976         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
27977         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
27979 2012-01-02  Bruno Haible  <bruno@clisp.org>
27981         Enhance tests for module 'isatty'.
27982         * modules/isatty-tests (Depends-on): Add pipe-posix.
27983         * tests/test-isatty.c: Include <fcntl.h>.
27984         (DEV_NULL): New macro.
27985         (main): Test the resut of isatty() also on regular files, pipes, and
27986         /dev/null.
27988         New module 'isatty'.
27989         * lib/unistd.in.h (isatty): New declaration.
27990         * lib/isatty.c: New file, based on an idea of
27991         Bastien Roucariès <roucaries.bastien@gmail.com>.
27992         * m4/isatty.m4: New file.
27993         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
27994         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
27995         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
27996         REPLACE_ISATTY.
27997         * modules/isatty: New file.
27998         * doc/posix-functions/isatty.texi: Mention the new module.
27999         Suggested by Paolo Bonzini.
28001 2012-01-02  Bruno Haible  <bruno@clisp.org>
28003         canonicalize: Tweak 2011-12-29 commit.
28004         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
28005         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
28007 2012-01-02  Jim Meyering  <meyering@redhat.com>
28009         gitlog-to-changelog: describe input syntax in --help output
28010         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
28012         gitlog-to-changelog: fix typo in --help: show backslash before email @
28013         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
28014         in sources, but not in actual output.
28016 2011-12-30  Jim Meyering  <meyering@redhat.com>
28018         gitlog-to-changelog: don't malfunction when name contains %-directive
28019         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
28020         in a name string cause trouble.  E.g., with a user name of "%s",
28021         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
28023 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
28025         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
28026         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
28027         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
28028         the "  (tiny change)" notation that is appended to the standard
28029         ChangeLog "date  name  email" header line.
28031 2012-01-01  Jim Meyering  <meyering@redhat.com>
28033         test-framework-sh: init.sh: fix "make dist" failure
28034         When using gnulib-tool's --with-tests option and any module that
28035         depends on test-framework-sh, "make dist" would fail due to the
28036         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
28037         in the gltests directory, and not in the gllib/ directory.
28038         One way to work around that is to move the EXTRA_DIST += init.sh
28039         from the primary module to the -tests one:
28040         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
28041         * modules/test-framework-sh (Makefile.am): ...not here.
28042         Reported by Tom G. Christensen in
28043         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
28045         version-etc: update copyright year reported by --version
28046         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
28048 2011-12-31  Pádraig Brady  <P@draigBrady.com>
28050         canonicalize: only stat() if required
28051         * lib/canonicalize.c (canonicalize_filename_mode):
28052         Avoid calling l?stat() when both CAN_MISSING,
28053         and CAN_NOLINKS are set, as we neither need
28054         to resolve symlinks or test component existence.
28056 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28058         doc: cover st_ino issues once; add OpenVMS etc.
28059         * doc/posix-functions/stat.texi (stat):
28060         * doc/posix-functions/lstat.texi (lstat):
28061         * doc/posix-functions/fstatat.texi (fstatat):
28062         * doc/posix-functions/fstat.texi (fstat):
28063         Move general 'struct stat' stuff to sys_stat.texi,
28064         leaving behind a pointer.
28065         * doc/posix-headers/sys_stat.texi (sys/stat.h):
28066         Merge duplicate info about 'struct stat' problems into here.
28067         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
28068         and suggest partial workarounds.
28070         same-inode: port to OpenVMS
28071         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
28072         three st_ino values.
28074 2011-12-30  Pádraig Brady  <P@draigBrady.com>
28076         canonicalize: fix references to stat() and lstat()
28077         * lib/canonicalize.c (canonicalize_filename_mode):
28078         Ensure references always resolve to a replacement
28079         function if required (even via a macro).
28081 2011-12-30  Jim Meyering  <meyering@redhat.com>
28083         gitlog-to-changelog: remove a little duplication
28084         * build-aux/gitlog-to-changelog (main): Grep @lines once,
28085         rather than twice.
28087 2011-12-29  Pádraig Brady  <P@draigBrady.com>
28089         canonicalize: add support for not resolving symlinks
28090         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
28091         indicate we don't want to follow symlinks.  Also
28092         provide CAN_MODE_MASK to aid setting these existing
28093         mutually exclusive values.
28094         * lib/canonicalize.c (canonicalize_filename_mode):
28095         Extract the flags from can_mode parameter, which
28096         are currently just used to select between stat()
28097         and lstat().  Also ensure that mutually exclusive
28098         values are flagged immediately as invalid.
28099         * tests/test-canonicalize.c: Verify symlinks are
28100         not followed, and that invalid flag combinations
28101         are diagnosed.
28103 2011-12-25  Jim Meyering  <meyering@redhat.com>
28105         gitlog-to-changelog: do not clump multi-paragraph entries
28106         Identical header lines (date,name,email+coauthors) are suppressed,
28107         thus putting all entries with those same characteristics under
28108         a single header.  However, when a log entry consists of two or
28109         more paragraphs, it may not be clear where it starts and ends.
28110         This change makes it so that such an entry is always separated
28111         from others by a header line, even when that header would
28112         otherwise be suppressed.
28113         * build-aux/gitlog-to-changelog: Implement the above.
28114         Inspired by a related request from Stefano Lattarini in
28115         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
28117 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28119         announce-gen: fix `cmd' typo in diagnostic
28120         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
28121         diagnostic: a missing '$' meant that the command was not output.
28123 2011-12-23  Jim Meyering  <meyering@redhat.com>
28125         test-framework-sh: distribute init.sh
28126         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
28127         Otherwise, "make -C gnulib-tests check" (at least in grep) would
28128         fail due to the lack of init.sh.
28130         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
28131         * modules/atexit-tests: Rather than listing tests/init.sh,
28132         now that there's a module for it, simply depend on that new module.
28133         * modules/closein-tests: Likewise.
28134         * modules/exclude-tests: Likewise.
28135         * modules/getcwd-tests: Likewise.
28136         * modules/perror-tests: Likewise.
28137         * modules/pread-tests: Likewise.
28138         * modules/pwrite-tests: Likewise.
28139         * modules/vc-list-files-tests: Likewise.
28140         * modules/verify-tests: Likewise.
28141         * modules/xalloc-die-tests: Likewise.
28142         * modules/xstrtoimax-tests: Likewise.
28143         * modules/xstrtol-tests: Likewise.
28144         * modules/xstrtoll-tests: Likewise.
28145         * modules/xstrtoumax-tests: Likewise.
28146         * modules/yesno-tests: Likewise.
28148 2011-12-22  Jim Meyering  <meyering@redhat.com>
28150         test-framework-sh: add minimal tests of init.sh's compare function
28151         * modules/test-framework-sh-tests: New file.
28152         * tests/test-init.sh: New file.
28154         test-framework-sh: new module
28155         * modules/test-framework-sh: New file.
28156         * MODULES.html.sh (Support for maintaining and releasing projects):
28157         List it.
28159         init.sh: do not emit simulated diff output to stderr
28160         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
28162 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
28164         .gitignore: ignore gnulib.dvi and regex.info
28165         * doc/.gitignore:add gnulib.dvi and regex.info
28167 2011-12-22  Jim Meyering  <meyering@redhat.com>
28169         init.sh: correct previous change
28170         * tests/init.sh (compare): My previous change was wrong.
28171         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
28173         init.sh: avoid unwarranted test failure when using "set -e"
28174         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
28175         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
28176         a use like "compare exp out" would get evoke an unconditional failure.
28178 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
28180         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
28181         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
28182         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
28183         autoreconf that did not.
28184         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
28185         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28187 2011-12-17  Jim Meyering  <meyering@redhat.com>
28189         bootstrap: remove some now-unneeded code
28190         This script arose back when gnulib-tool was young.
28191         Since then, it has seen improvements that render much of this
28192         script unnecessary.  In particular, it can now make symlinks
28193         to the files it uses.  Also, I no longer see as much value in
28194         marking files as read-only via comments.
28195         If you relied on the symlink-creation feature of the preceding
28196         version of this script, you can get most of that functionality
28197         by adding the --symlink option to the definition of
28198         gnulib_tool_option_extras in your bootstrap.conf file.
28199         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
28200         Run autopoint and libtoolize *before* gnulib-tool.
28201         After it, run an abbreviated autoreconf, rather than a loop around
28202         all tools.
28203         (slirp, bt_mark_as_generated): Remove functions.
28205 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28207         ftoastr: fix typo
28208         * lib/ftoastr.h: Fix misspelling in comment.
28210 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
28212         * top/README-release: fix punctuation.
28214 2011-12-17  Jim Meyering  <meyering@redhat.com>
28216         bootstrap: correct the recent buildreq change
28217         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
28218         had no effect.
28219         * build-aux/bootstrap (buildreq): Bracket each search term with
28220         "*...*", so that the shell "case" statement works as intended.
28221         Add comments.
28223 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
28225         build: let bootstrap resort to wget when downloading .po files
28226         * build-aux/bootstrap (download_po_files): Fallback to wget when
28227         downloading the .po files via rsync fails.  This is necessary to
28228         bootstrap from behind a strict firewall.
28230 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28232         stdint: don't assume C++11 when compiling with g++
28233         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
28234         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
28235         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
28236         work also in C++ before C++11, as that improperly inhibits
28237         generating a substitute stdint.h for that case.
28239 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28241         alloca: protect comment from gnulib-tool
28242         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
28243         that gnulib-tool doesn't think it's a license, and munge it to
28244         say "GCC version 3".
28246 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
28248         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
28249         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
28250         $(abs_top_builddir) instead of $(top_builddir).
28252 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
28254         strftime-tests: also test nanoseconds
28255         * tests/test-strftime.c (T): Add a test of %N.
28257 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
28259         inttypes, stdint: add C++11 support
28260         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
28261         when including inttypes.h and stdint.h.  Support this change to
28262         the standard.
28263         * doc/posix-headers/inttypes.texi (inttypes.h):
28264         * doc/posix-headers/stdint.texi (stdint.h): Document this.
28265         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
28266         Define if not defined already, for the benefit of pre-C++11 hosts.
28267         Define the standard format macros (e.g., PRId8) always.
28268         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
28269         Likewise, if __cpluspus.  Define the standard constant and limit
28270         macros (e.g., INT8_C, INT8_MAX) always.
28271         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
28272         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
28273         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
28274         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
28275         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
28276         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
28277         Likewise.
28279 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28281         nonblocking tests: Fix test failure on Linux/PPC.
28282         Suggested by Prerna Saxena in
28283         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
28284         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
28285         Set to 1100000.
28287 2011-12-12  Jim Meyering  <meyering@redhat.com>
28289         argmatch: don't hard-code `' when listing valid option arguments
28290         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
28291         use the quote function to add quotes.  Use fputs rather than
28292         fprintf for the format string with no format directive.
28294 2011-12-07  Eric Blake  <eblake@redhat.com>
28296         bootstrap: detect tools required by gnulib-tool
28297         * build-aux/bootstrap (buildreq): Provide minimum implicit
28298         dependencies.
28299         * DEPENDENCIES: Mention patch as a prereq.
28301 2011-12-04  Bruno Haible  <bruno@clisp.org>
28303         sethostname: Port to Windows platforms.
28304         * lib/sethostname.c: Provide an alternate implementation for Windows
28305         platforms.
28306         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
28307         (main): Skip the test if sethostname() fails with EPERM. On Windows
28308         platforms, don't check the result of gethostname().
28310 2011-12-04  Bruno Haible  <bruno@clisp.org>
28311             Jim Meyering  <meyering@redhat.com>
28313         tests: Avoid spurious error message on platforms without mktemp program.
28314         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
28316 2011-12-04  Bruno Haible  <bruno@clisp.org>
28318         sethostname: Fix documentation.
28319         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
28320         "not fixed" section.
28322 2011-12-03  Bruno Haible  <bruno@clisp.org>
28324         gnulib-tool: Verify that the License field is present and non-empty.
28325         * gnulib-tool (func_get_license_raw): New function, extracted from
28326         func_get_license.
28327         (func_get_license): Use it. Warn if the module is not a test module and
28328         has no license.
28329         Suggested by Jim Meyering.
28331 2011-12-03  Bruno Haible  <bruno@clisp.org>
28333         sethostname tests: Fix link error on mingw.
28334         * tests/test-sethostname1.c: New file, extracted from
28335         tests/test-sethostname.c.
28336         * tests/test-sethostname2.c: New file, extracted from
28337         tests/test-sethostname.c.
28338         * tests/test-sethostname.c: Remove file.
28339         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
28340         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
28341         (Depends-on): Add gethostname.
28342         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
28343         Link the latter with $(GETHOSTNAME_LIB).
28345         sethostname tests: Fix compilation error on mingw.
28346         * tests/test-sethostname.c: Don't include <sys/types.h>.
28347         (geteuid): Use a dummy value without uid_t.
28348         * modules/sethostname-tests (Depends-on): Remove sys_types.
28350         sethostname tests: Avoid a gcc warning.
28351         * tests/test-sethostname.c (main): Remove an unused variable.
28353         Tweak last commit.
28354         * modules/sethostname-tests (Files): Sort by decreasing importance.
28355         (configure.ac): Check for geteuid.
28356         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
28357         the test when there's nothing to test. Drop an unnecessary cast.
28358         Improve an error message. Verify that the final sethostname() call
28359         succeeds.
28361 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28363         Add a test suite for the sethostname module.
28364         * modules/sethostname-tests: New file.  A test program
28365         for the sethostname module.
28366         * tests/test-sethostname.c: Likewise.
28368 2011-12-03  Bruno Haible  <bruno@clisp.org>
28370         Tweak last commit.
28371         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
28372         Fix preprocessor directives indentation. Fix typos.
28373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
28374         * modules/unistd (Makefile): Likewise.
28376 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28378         Integrate the sethostname module into unistd.
28379         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
28380         into the unistd.h header.
28381         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
28382         preprocessor directives.
28383         * modules/unistd: Setup the Makefile substitutions of the
28384         SETHOSTNAME preprocessor directives.
28386 2011-12-03  Bruno Haible  <bruno@clisp.org>
28388         Tweak last commit.
28389         * lib/sethostname.c: Don't include <string.h>.
28390         (sethostname): No need to copy the argument string to the stack. Don't
28391         call clearerr. Preserve errno when fprintf failed.
28392         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
28393         Don't invoke AC_REPLACE_FUNCS.
28394         * modules/sethostname (Link): Remove empty section.
28395         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
28396         failure problem.
28398 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28400         New module 'sethostname'.
28401         * lib/sethostname.c (sethostname): New file.  Provide sethostname
28402         for systems that lack it.
28403         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
28404         sethostname declaration and function.
28405         * modules/sethostname: New file.  Define the sethostname module.
28407 2011-12-03  Bruno Haible  <bruno@clisp.org>
28409         Tweak last commit.
28410         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
28412 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
28414         Split the HOST_NAME_MAX detection into a separate m4 macro.
28415         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
28416         macro so it can be used by the pending sethostname module.
28418 2011-12-03  Bruno Haible  <bruno@clisp.org>
28420         Fix module descriptions syntax.
28421         * modules/argv-iter (License): Fix syntax.
28422         * modules/di-set (License): Likewise.
28423         * modules/ino-map (License): Likewise.
28424         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
28426 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
28428         stdalign: port to Clang 3.0
28429         Problem reported by Simon Josefsson in
28430         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
28431         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
28432         which has <stdalign.h> but which does not define alignof.
28433         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
28435 2011-12-01  Eric Blake  <eblake@redhat.com>
28437         mktempd: silence dd usage
28438         * build-aux/mktempd (rand_bytes): Silence dd.
28440 2011-11-30  Simon Josefsson  <simon@josefsson.org>
28442         manywarnings: Don't mention gcc version in docstring.
28443         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
28444         Jim Meyering <meyering@redhat.com>.
28446 2011-11-30  Jim Meyering  <meyering@redhat.com>
28448         hash: mark a few floating point constants with "f" suffix
28449         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
28450         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
28451         floating point constants with "f", since they're destined to be
28452         saved/used as "float"s.
28454 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
28456         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
28457         * tests/test-float.c (test_long_double): Correct and re-enable the
28458         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
28460 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
28462         Avoid subtracting two pointers that don't point into the same block.
28463         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
28464         only pointers into the same memory block are subtracted. We cannot
28465         assume that sizeof (ptrdiff_t) == sizeof (void *).
28467 2011-11-29  Eric Blake  <eblake@redhat.com>
28469         maint.mk: add syntax check for use of compare from init.sh
28470         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
28471         moved here from coreutils.
28473         manywarnings: drop -Wunsuffixed-float-constants
28474         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
28475         '1.0D', which is the only way to silence this warning for 'double'.
28477 2011-11-29  Jim Meyering  <meyering@redhat.com>
28479         hash: mark compute_bucket_size with the pure attribute
28480         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
28482         quotearg, propername: correct pragma guard expression
28483         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
28484         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
28486 2011-11-28  Jim Meyering  <meyering@redhat.com>
28488         propername: do not mark proper_name with the const attribute
28489         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
28490         since it examines data pointed to by its parameter.
28491         * lib/propername.c (proper_name): Instead, add a pragma to suppress
28492         the suggestion from -Wsuggest-attribute=const.
28494         propername: mark one more function as const
28495         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
28497 2011-11-27  Jim Meyering  <meyering@redhat.com>
28499         mark functions with const and pure attributes
28501         Mark functions per suggestions from gcc-4.6 when using these options:
28502         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
28503         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
28504         Follow these guidelines: when possible, apply the attribute to
28505         an extern declaration, not to its definition.  Apply it to the
28506         definition only when the definition is static.
28507         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
28508         * lib/argv-iter.h (argv_iter_n_args): Likewise.
28509         * lib/base64.h (isbase64): Likewise.
28510         * lib/basename-lgpl.c (last_component, base_len): Likewise.
28511         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
28512         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
28513         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
28514         (c_tolower, c_toupper): Likewise.
28515         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
28516         * lib/chdir-long.c (find_non_slash): Likewise.
28517         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
28518         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
28519         * lib/file-type.h (file_type): Likewise.
28520         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
28521         * lib/filevercmp.c (verrevcmp): Likewise.
28522         * lib/freadahead.h (freadahead): Likewise.
28523         * lib/fts.c (fts_maxarglen): Likewise.
28524         * lib/hash-pjw.h (hash_pjw): Likewise.
28525         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
28526         * lib/hash.c (is_prime, next_prime): Likewise.
28527         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
28528         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
28529         (hash_table_ok, hash_get_first, hash_string): Likewise.
28530         (compute_bucket_size): Likewise.
28531         * lib/i-ring.h (i_ring_empty): Likewise.
28532         * lib/isnan.c (isnanl): Likewise.
28533         * lib/math.h (isnanl, rpl_isnanl): Likewise.
28534         * lib/memcasecmp.h (memcasecmp): Likewise.
28535         * lib/memchr2.h (memchr2): Likewise.
28536         * lib/memcmp2.h (memcmp2): Likewise.
28537         * lib/parse-datetime.y (lookup_zone): Likewise.
28538         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
28539         [!WINDOWS_SOCKETS]: Likewise.
28540         * lib/strnlen1.h (strnlen1): Likewise.
28541         * lib/uniwidth.in.h (uc_width): Likewise.
28542         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
28543         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
28544         (quoting_options_from_style): Add a comment.
28545         * lib/propername.h (proper_name): Add a comment.
28547 2011-11-27  Bruno Haible  <bruno@clisp.org>
28549         Remove unused macros from !_LIBC code in glibc-borrowed files.
28550         * lib/fnmatch.c (STRCOLL): Remove macro.
28551         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
28552         * lib/glob.c (__stat, __readdir64): Remove macros.
28553         * lib/tempname.c (__open64, __xstat64): Remove macros.
28554         Suggested by Paul Eggert.
28556 2011-11-27  Bruno Haible  <bruno@clisp.org>
28558         getcwd: Fix link error on MSVC 9.
28559         * modules/getcwd (Depends-on): Add readdir, rewinddir.
28561 2011-11-27  Bruno Haible  <bruno@clisp.org>
28563         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
28564         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
28565         HAVE_OPENDIR is 0.
28566         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
28567         HAVE_CLOSEDIR is 0.
28568         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
28569         is 0.
28570         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
28572 2011-11-27  Bruno Haible  <bruno@clisp.org>
28574         getcwd: Fix bug from 2011-08-17.
28575         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
28576         platforms that need it.
28577         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
28578         code of 4 to be a failure, not a success. This ensures that
28579         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
28581 2011-11-27  Bruno Haible  <bruno@clisp.org>
28583         binary-io tests: Avoid test failure on mingw when libtool is used.
28584         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
28585         Don't verify the size of t-bin-out1.tmp here.
28586         * tests/test-binary-io.sh: Verify it here.
28587         Reported by Simon Josefsson.
28589 2011-11-26  Bruno Haible  <bruno@clisp.org>
28591         Fix conflict between two instantiations of module 'unistd'.
28592         * gnulib-tool (func_emit_autoconf_snippet): Substitute
28593         ${include_guard_prefix} also in the autoconf snippet.
28594         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
28595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
28596         GNULIB_UNISTD_H_GETOPT.
28597         * modules/getopt-posix (configure.ac): Set the
28598         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
28599         * modules/getopt-gnu (configure.ac): Likewise.
28600         * modules/unistd (Makefile.am): Change the substitution value of
28601         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
28602         Reported by Simon Josefsson.
28604 2011-11-25  Bruno Haible  <bruno@clisp.org>
28606         pagealign_alloc: Doc and comments.
28607         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
28608         module.
28609         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
28611 2011-11-25  Jim Meyering  <meyering@redhat.com>
28613         test-update-copyright.sh: avoid false-positive failure
28614         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
28615         around false positive failure on Cygwin/Windows.  The latter was
28616         matching erroneously-created files with names like
28617         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
28619 2011-11-25  Simon Josefsson  <simon@josefsson.org>
28621         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
28622         * m4/valgrind-tests.m4: Check that the parameters that will be
28623         used works, not just a subset of them.  Reported by Bruno Haible
28624         <bruno@clisp.org>.
28626 2011-11-24  Jim Meyering  <meyering@redhat.com>
28628         test-stdalign.c: comment out long double tests
28629         * tests/test-stdalign.c: Don't try to reduce alignment of long double
28630         variables.  That provokes errors like this from gcc-4.7.0 20111124:
28631         error: '_Alignas' specifiers cannot reduce alignment of \
28632         'static_longdouble_alignas'.
28634 2011-11-22  Jim Meyering  <meyering@redhat.com>
28636         init.sh: make "compare /dev/null FILE" output more readable
28637         * tests/init.sh (compare_): Document the preferred order of arguments.
28638         (emit_diff_u_header_): New function.
28639         (compare_dev_null_): Emit a simulated diff, rather than just the
28640         contents of the unexpected file.  Suggestion from Bruno Haible.
28642 2011-11-21  Jim Meyering  <meyering@redhat.com>
28643             Eric Blake  <eblake@redhat.com>
28645         init.sh: work around OSF/1 5.1's mishandling of /dev/null
28646         * tests/init.sh: Make our compare function slightly more portable.
28647         Reported by Bruno Haible in
28648         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
28650 2011-11-21  Simon Josefsson  <simon@josefsson.org>
28652         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
28653         before using it, in code that ends up in config.h.
28655 2011-11-20  Bruno Haible  <bruno@clisp.org>
28657         getcwd: Work around getcwd bug on AIX 5..7.
28658         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
28659         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
28660         Use a different value for gl_cv_func_getcwd_path_max. Move the
28661         definition of HAVE_PARTLY_WORKING_GETCWD from here...
28662         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
28663         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
28664         Define HAVE_MINIMALLY_WORKING_GETCWD.
28665         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
28666         where it is not even minimally working, that is, on AIX.
28667         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
28668         m4/getcwd-path-max.m4.
28669         (main): Update exit code computation.
28670         * doc/posix-functions/getcwd.texi: Mention list of platforms where
28671         getcwd does not handle long file names.
28673 2011-11-20  Bruno Haible  <bruno@clisp.org>
28675         getcwd: Fix bug from 2009-09-10.
28676         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
28677         like "no".
28679 2011-11-20  Simon Josefsson  <simon@josefsson.org>
28681         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
28683 2011-11-20  Bruno Haible  <bruno@clisp.org>
28685         fma tests: Avoid shadowing local variables.
28686         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
28687         expected.
28689 2011-11-20  Bruno Haible  <bruno@clisp.org>
28691         copysignf tests: Fix.
28692         * tests/test-copysignf.c: Fix signature check.
28694 2011-11-20  Bruno Haible  <bruno@clisp.org>
28696         fma: Remove unused code.
28697         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
28698         unused macros.
28700 2011-11-20  Bruno Haible  <bruno@clisp.org>
28702         sethostname: Fix doc about AIX.
28703         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
28704         sethostname; it has it.
28706         sethostname: Mention more portability problems.
28707         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
28708         problem.
28709         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28711 2011-11-19  Bruno Haible  <bruno@clisp.org>
28713         Depend on module fcntl-h when AT_FDCWD is used.
28714         * modules/utimens (Depends-on): Add fcntl-h.
28715         * modules/areadlinkat (Depends-on): Likewise.
28716         * modules/areadlinkat-with-size (Depends-on): Likewise.
28717         * modules/faccessat (Depends-on): Likewise.
28718         * modules/fchmodat (Depends-on): Likewise.
28719         * modules/fchownat (Depends-on): Likewise.
28720         * modules/getcwd (Depends-on): Likewise.
28721         * modules/mkdirat (Depends-on): Likewise.
28722         * modules/mkfifoat (Depends-on): Likewise.
28723         * modules/readlinkat (Depends-on): Likewise.
28724         * modules/symlinkat (Depends-on): Likewise.
28725         * modules/dup2-tests (Depends-on): Likewise.
28726         * modules/fdutimensat-tests (Depends-on): Likewise.
28727         * modules/futimens-tests (Depends-on): Likewise.
28729 2011-11-19  Bruno Haible  <bruno@clisp.org>
28731         euidaccess: Update a comment.
28732         * lib/euidaccess.c: Update comment about platforms with faccessat.
28734 2011-11-19  Bruno Haible  <bruno@clisp.org>
28736         openat: Fix file list.
28737         * modules/openat (Files): Remove lib/at-func.c.
28739 2011-11-19  Bruno Haible  <bruno@clisp.org>
28741         fstatat: Simplify.
28742         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
28743         gnulib should define rpl_fstatat, there is a
28744         "#define fstatat rpl_fstatat" in <sys/stat.h>.
28746 2011-11-19  Bruno Haible  <bruno@clisp.org>
28748         Ensure 'inline' can be used in tests/test-utimens-common.h.
28749         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
28750         * modules/futimens-tests (configure.ac): Likewise.
28751         * modules/utimens-tests (configure.ac): Likewise.
28752         * modules/utimensat-tests (configure.ac): Likewise.
28754 2011-11-19  Simon Josefsson  <simon@josefsson.org>
28756         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
28757         not hash_insert0.
28758         (hash_insert_if_absent): Doc fix.
28760 2011-11-19  Simon Josefsson  <simon@josefsson.org>
28762         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
28764 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28766         test-getcwd: disambiguate exit status
28767         * tests/test-getcwd.c (test_long_name): Return 0..7.
28768         (main): Exit with an unambiguous exit status.  The old
28769         code yielded a mysterious mixture of two failure codes.
28771         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
28772         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
28773         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
28774         rpl_fstatat or fstatat.  This should fix the other problem
28775         reported by Kai Habel in
28776         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
28777         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
28778         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
28779         and I reproduced it on a Solaris 8 host we still have in production.
28781 2011-11-18  Jim Meyering  <meyering@redhat.com>
28783         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
28784         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
28785         Add a sentence to the comment.
28786         (hash_insert0): New function that simply calls hash_insert_if_absent.
28787         * lib/hash.h (hash_insert_if_absent): Declare it.
28788         (hash_insert0): Add deprecation attribute.
28789         (_GL_ATTRIBUTE_DEPRECATED): Define.
28790         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
28791         not hash_insert0.
28792         * NEWS: Mention it, even though it's not really an incompatible change.
28794 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
28796         openat: avoid compilation failure due to lack of <errno.h> inclusion
28797         * lib/openat.c: Include <errno.h>.
28799 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28801         * modules/getcwd (Depends-on): Add fdopendir.
28802         This fixes one of the two problems reported by Kai Habel in
28803         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
28805         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
28806         stdalign problem reported by Ian Beckwith in
28807         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
28808         * modules/crypto/gc-arcfour (Depends-on):
28809         Depend conditionally on crypto/arcfour.
28810         * modules/crypto/gc-arctwo (Depends-on):
28811         Depend conditionally on crypto/arctwo.
28812         * modules/crypto/gc-des (Depends-on):
28813         Depend conditionally on crypto/des.
28814         * modules/crypto/gc-hmac-md5 (Depends-on):
28815         Depend conditionally on crypto/hmac-md5.
28816         * modules/crypto/gc-hmac-sha1 (Depends-on):
28817         Depend conditionally on crypto/hmac-sha1.
28818         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
28819         * modules/crypto/gc-md4 (Depends-on):
28820         Depend conditionally on crypto/md4.
28821         * modules/crypto/gc-md5 (Depends-on):
28822         Depend conditionally on crypto/md5.
28823         * modules/crypto/gc-rijndael (Depends-on):
28824         Depend conditionally on crypto/rijndael.
28825         * modules/crypto/gc-sha1 (Depends-on):
28826         Depend conditionally on crypto/sha1.
28827         * modules/crypto/gc-arcfour:
28828         * modules/crypto/gc-arctwo:
28829         * modules/crypto/gc-des:
28830         * modules/crypto/gc-hmac-md5:
28831         * modules/crypto/gc-hmac-sha1:
28832         * modules/crypto/gc-md2:
28833         * modules/crypto/gc-md4:
28834         * modules/crypto/gc-md5:
28835         * modules/crypto/gc-rijndael:
28836         * modules/crypto/gc-sha1:
28837         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
28838         now that the conditional dependencies do the work for us.
28840 2011-11-17  Jim Meyering  <meyering@redhat.com>
28842         tests: factor st_ctime-comparison out of two headers
28843         * tests/test-utimens-common.h (ctime_compare): Define.
28844         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
28845         * tests/test-lutimens.h (test_lutimens): Likewise.
28846         * tests/test-utimens.h (test_utimens): Likewise.
28848         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
28849         Invoke the test program via an init.sh-using wrapper.
28850         * tests/test-getcwd.sh: New file.
28851         * modules/getcwd-tests (Files): Add it.
28852         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
28854 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
28856         gitlog-to-changelog: support multi-author commits.
28857         The FSF cares about keeping track of all authors of patches to its
28858         projects, but Git doesn't provide obvious support for multi-author
28859         changesets. Consensus seems to be forming around the use of extra
28860         Signed-off-by inspired lines in the log message formatted as
28861         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
28862         multi-author commits between version control systems.
28863         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
28864         log message and output in standard ChangeLog multi-author format.
28865         Reported by Peter Rosin <peda@lysator.liu.se>
28867 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28868             Bruno Haible  <bruno@clisp.org>
28870         Fix some modules' file list.
28871         * modules/fstatat (Files): Add m4/lstat.m4.
28872         * modules/openat (Files): Likewise.
28873         * modules/unlinkat (Files): Likewise.
28875 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
28877         maint.mk: fix tight-scope.mk generation in VPATH builds.
28878         * top/maint.mk (tight-scope.mk): Make sure to prefix file
28879         reference with $(srcdir) so that the file is found correctly even
28880         when running `make syntax-check' in a VPATH build.
28882 2011-11-13  Bruno Haible  <bruno@clisp.org>
28883             Jim Meyering  <meyering@redhat.com>
28885         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
28886         * tests/init.sh (compare): Remove "No differences encountered" or
28887         synonymous output from the 'diff' program.
28889 2011-11-13  Bruno Haible  <bruno@clisp.org>
28891         Makefile: Tweak indentation.
28892         * Makefile: Use tab as first character in every line that contains rule
28893         commands.
28895 2011-11-13  Bruno Haible  <bruno@clisp.org>
28897         Syntax check for copyright statements.
28898         * check-copyright: New file.
28899         * Makefile (sc_check_copyright): New rule.
28901 2011-11-13  Simon Josefsson  <simon@josefsson.org>
28903         * build-aux/git-version-gen: Add --prefix to configure the tag
28904         match string.
28906 2011-11-13  Simon Josefsson  <simon@josefsson.org>
28908         * build-aux/git-version-gen: Add --help and --version.
28910 2011-11-12  Jim Meyering  <meyering@redhat.com>
28912         revamp the other test-exclude?.sh scripts to use init.sh, too
28913         * tests/test-exclude1.sh: Use init.sh.
28914         * tests/test-exclude2.sh: Likewise.
28915         * tests/test-exclude3.sh: Likewise.
28916         * tests/test-exclude4.sh: Likewise.
28917         * tests/test-exclude5.sh: Likewise.
28918         * tests/test-exclude6.sh: Likewise.
28919         * tests/test-exclude7.sh: Likewise.
28920         * tests/test-exclude8.sh: Likewise.
28921         * modules/exclude-tests (Files): List init.sh.
28923         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
28924         These shell scripts ignored failure of the binary test-exclude,
28925         so making the latter return 77 didn't cause them to be skipped.
28926         * tests/test-exclude5.sh: Exit with test-exclude's error status
28927         when that program fails.  Revamp to use init.sh.
28928         * tests/test-exclude2.sh: Likewise.
28930         test-exclude: fix a typo
28931         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
28933 2011-11-11  Bruno Haible  <bruno@clisp.org>
28935         obstack: Fix compilation error on MSVC 9.
28936         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
28938 2011-11-11  Jim Meyering  <meyering@redhat.com>
28940         test-exclude: skip tests rather than failing on deficient systems
28941         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
28942         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
28943         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
28944         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
28946 2011-11-10  Bruno Haible  <bruno@clisp.org>
28948         ptsname_r test: Avoid gcc warning on glibc systems.
28949         * tests/test-ptsname_r.c (null_ptr): New function.
28950         (test_errors): Use it.
28952 2011-11-10  Bruno Haible  <bruno@clisp.org>
28954         ptsname_r: Avoid compilation error on OSF/1 5.1.
28955         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
28956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
28957         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
28958         function is not declared or incompatibly declared.
28959         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
28960         * modules/ptsname_r (Depends-on, configure.ac): Update.
28961         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
28963 2011-11-10  Bruno Haible  <bruno@clisp.org>
28965         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
28966         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
28967         When cross-compiling, guess yes on all platforms except AIX.
28968         Reported by Ludovic Courtès <ludo@gnu.org>.
28970 2011-11-09  Bruno Haible  <bruno@clisp.org>
28972         ptsname_r tests: Fix bugs.
28973         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
28974         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
28976 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28978         fstatat: work with cross-compilation
28979         Problem reported by Ludovic Courtès in
28980         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
28981         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
28982         "cross-compiling" and assume the bug is present.  Replace
28983         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
28984         an inverted sense, to be more conservative about our assumptions.
28985         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
28987 2011-11-09  Bruno Haible  <bruno@clisp.org>
28989         Improve MODULES.html output.
28990         * modules/mkfifoat (Description): Use the word "function".
28991         * modules/readlinkat (Description): Likewise.
28992         * modules/symlinkat (Description): Likewise.
28994 2011-11-09  Eric Blake  <eblake@redhat.com>
28996         ptsname_r-tests: new test module
28997         * modules/ptsname_r-tests: New module.
28998         * tests/test-ptsname_r.c: New file.
29000         ptsname_r: new module
29001         * modules/ptsname_r: New module.
29002         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
29003         * lib/ptsname.c (__ptsname_r): Split...
29004         * lib/ptsname_r.c: ...into new file.
29005         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
29006         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
29007         * modules/stdlib (Makefile.am): Substitute witnesses.
29008         * lib/stdlib.in.h (ptsname_r): Declare it.
29009         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
29010         * MODULES.html.sh (Misc): Likewise.
29011         * modules/ptsname (Depends-on): Alter dependency.
29012         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
29014 2011-11-09  Jim Meyering  <meyering@redhat.com>
29016         announce-gen: be more concise when there's only one URL+tarball
29017         * build-aux/announce-gen (get_tool_versions): When you distribute
29018         only one type of tarball, combine the first two "Here are..."
29019         sections and make the key-checking grammar independent of
29020         how many tarballs there are.
29022 2011-11-09  Eric Blake  <eblake@redhat.com>
29024         openpty: provide a stub on mingw
29025         * lib/pty.in.h (includes): Provide forward declarations.
29026         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
29028         raise: fix mingw handling of SIGPIPE
29029         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
29031 2011-11-08  Bruno Haible  <bruno@clisp.org>
29033         More conditional dependencies.
29034         * modules/faccessat (Depends-on): Add conditions.
29035         * modules/fchmodat (Depends-on): Likewise.
29036         * modules/fchownat (Depends-on): Likewise.
29037         * modules/fstatat (Depends-on): Likewise.
29038         * modules/mkfifoat (Depends-on): Likewise.
29039         * modules/readlinkat (Depends-on): Likewise.
29040         * modules/symlinkat (Depends-on): Likewise.
29041         * modules/unlinkat (Depends-on): Likewise.
29042         * modules/utimensat (Depends-on): Likewise.
29043         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
29044         * modules/linkat (Depends-on): Refine the conditions.
29045         * modules/renameat (Depends-on): Likewise.
29047 2011-11-08  Bruno Haible  <bruno@clisp.org>
29049         faccessat: Move AC_LIBOBJ invocation to module description.
29050         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
29051         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
29052         invocation from here...
29053         * modules/faccessat (configure.ac): ... to here. Invoke
29054         gl_PREREQ_FACCESSAT.
29056 2011-11-08  Bruno Haible  <bruno@clisp.org>
29058         faccessat: Simplify autoconf macro.
29059         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
29060         gl_FUNC_EUIDACCESS.
29062 2011-11-08  Bruno Haible  <bruno@clisp.org>
29064         renameat: Fix dependencies.
29065         * modules/renameat (Depends-on): Add stdbool.
29067 2011-11-08  Bruno Haible  <bruno@clisp.org>
29069         mkfifoat: Fix module description.
29070         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
29071         not gl_UNISTD_MODULE_INDICATOR.
29073 2011-11-08  Bruno Haible  <bruno@clisp.org>
29075         fstatat: Remove unused dependency.
29076         * modules/fstatat (Depends-on): Remove fstat.
29078 2011-11-08  Simon Josefsson  <simon@josefsson.org>
29080         GNUmakefile: behave when Makefile is missing.
29081         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
29083 2011-11-08  Bruno Haible  <bruno@clisp.org>
29085         openat: Conditionalize dependencies.
29086         * lib/openat.c: Reduce the scope of some #includes.
29087         * modules/openat (Depends-on): Add conditions.
29089 2011-11-07  Jim Meyering  <meyering@redhat.com>
29091         maint.mk: extract GPG key ID without using a temporary file
29092         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
29093         without using a temporary file.  Based on a suggestion from Werner Koch
29094         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
29096 2011-11-07  Eric Blake  <eblake@redhat.com>
29098         grantpt: fix typo
29099         * lib/stdlib.in.h (grantpt): Check correct function.
29101         maint.mk: silence new syntax check
29102         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
29104 2011-11-06  Bruno Haible  <bruno@clisp.org>
29106         Doc about floating-point and math API.
29107         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
29108         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
29110 2011-11-06  Bruno Haible  <bruno@clisp.org>
29112         stdalign tests: Skip the test when compiled by Sun C.
29113         * tests/test-stdalign.c (main): Skip the test on Sun C.
29115 2011-11-06  Bruno Haible  <bruno@clisp.org>
29117         ansi-c++-opt: Complete the 2011-06-05 change.
29118         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
29119         does not support namespaces, set the variable to "no", not to ":".
29121 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29123         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
29125 2011-11-06  Bruno Haible  <bruno@clisp.org>
29127         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
29128         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
29129         (minus_zerol) [HP-UX]: New macro.
29130         (unary_minus) [HP-UX]: New function.
29131         (copysignl) [HP-UX]: Use unary_minus function.
29133 2011-11-06  Bruno Haible  <bruno@clisp.org>
29135         ldexp, ldexpf, ldexpl: Enhance tests.
29136         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
29137         and tests/test-ldexpl.c.
29138         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
29139         LDEXP, MIN_EXP, MAX_EXP): New macros.
29140         Include test-ldexp.h.
29141         (main): Just call test_function.
29142         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
29143         infinity.h, nan.h.
29144         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29145         MAX_EXP): New macros.
29146         Include test-ldexp.h.
29147         (x, y): Remove variables.
29148         (main): Just call test_function.
29149         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
29150         infinity.h, nan.h.
29151         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29152         MAX_EXP): New macros.
29153         Include test-ldexp.h.
29154         (x, y): Remove variables.
29155         (main): Just call test_function.
29156         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
29157         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
29158         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29159         (Depends-on): Add isnand-nolibm, signbit, float.
29160         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
29161         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29162         (Depends-on): Add isnanf-nolibm, signbit, float.
29164 2011-11-06  Bruno Haible  <bruno@clisp.org>
29166         math tests: Cosmetics.
29167         * tests/test-math-c++.cc: Reorder declarations.
29169 2011-11-05  Bruno Haible  <bruno@clisp.org>
29171         fma*: Simplify test.
29172         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
29173         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
29175         Tests for module 'fmal'.
29176         * modules/fmal-tests: New file.
29177         * tests/test-fmal1.c: New file.
29178         * tests/test-fmal2.c: New file.
29180         New module 'fmal'.
29181         * lib/math.in.h (fmal): New declaration.
29182         * lib/fmal.c: New file.
29183         * m4/fmal.m4: New file.
29184         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
29185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
29186         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
29187         REPLACE_FMAL.
29188         * modules/fmal: New file.
29189         * doc/posix-functions/fmal.texi: Mention the new module and the various
29190         bugs.
29192         Tests for module 'fmaf'.
29193         * modules/fmaf-tests: New file.
29194         * tests/test-fmaf1.c: New file.
29195         * tests/test-fmaf2.c: New file.
29197         New module 'fmaf'.
29198         * lib/math.in.h (fmaf): New declaration.
29199         * lib/fmaf.c: New file.
29200         * m4/fmaf.m4: New file.
29201         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
29202         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
29203         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
29204         REPLACE_FMAF.
29205         * modules/fmaf: New file.
29206         * doc/posix-functions/fmaf.texi: Mention the new module and the various
29207         bugs.
29209         Tests for module 'fma'.
29210         * modules/fma-tests: New file.
29211         * tests/test-fma1.c: New file.
29212         * tests/test-fma1.h: New file.
29213         * tests/test-fma2.c: New file.
29214         * tests/test-fma2.h: New file.
29216         New module 'fma'.
29217         * lib/math.in.h (fma): New declaration.
29218         * lib/fma.c: New file.
29219         * m4/fma.m4: New file.
29220         * m4/fegetround.m4: New file.
29221         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
29222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
29223         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
29224         REPLACE_FMA.
29225         * modules/fma: New file.
29226         * doc/posix-functions/fma.texi: Mention the new module and the various
29227         bugs.
29229         Extend gl_MATHFUNC.
29230         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
29231         Support 'void' as argument type.
29232         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
29234 2011-11-05  Jim Meyering  <meyering@redhat.com>
29236         maint.mk: also prohibit inclusion of dirent.h without use
29237         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
29239 2011-11-05  Bruno Haible  <bruno@clisp.org>
29241         ldexpl tests: Avoid test failure on MSVC 9.
29242         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
29243         value. Needed in order to enforce the conversion from a value greater
29244         than LDBL_MAX to Infinity.
29246 2011-11-05  Bruno Haible  <bruno@clisp.org>
29248         New modules 'at-internal', 'openat-h', split off from module 'openat'.
29249         * modules/at-internal: New file, extracted from modules/openat.
29250         * modules/openat-h: New file.
29251         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
29252         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
29253         * modules/openat (Description): Add reference to POSIX function.
29254         (Files): Remove lib/openat.h, lib/openat-proc.c.
29255         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
29256         intprops, unistd.
29257         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
29258         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
29259         gl_FCNTL_MODULE_INDICATOR.
29260         (Include): Remove unistd.h, openat.h.
29261         * modules/areadlinkat (Files): Add lib/at-func.c.
29262         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29263         openat-die, openat-h, save-cwd.
29264         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
29265         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29266         openat-die, openat-h, save-cwd, unistd.
29267         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
29268         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29269         openat-h, save-cwd. Remove fcntl-h, openat.
29270         * modules/fchmodat (Files): Remove lib/openat.h.
29271         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29272         openat, stdbool, unistd.
29273         * modules/fchownat (Files): Remove lib/openat.h.
29274         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29275         openat, stdbool, sys_stat.
29276         * modules/fdopendir (Files): Remove lib/openat-priv.h,
29277         lib/openat-proc.c.
29278         (Depends-on): Add at-internal.
29279         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
29280         * modules/fstatat (Files): Remove lib/openat.h.
29281         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29282         stdbool, unistd.
29283         * modules/fts (Depends-on): Add openat-h.
29284         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
29285         openat.
29286         * modules/mkdirat (Files): Remove lib/openat.h.
29287         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
29288         openat, stdbool, sys_stat.
29289         * modules/mkfifoat (Files): Add lib/at-func.c.
29290         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29291         openat-h, save-cwd. Remove fcntl-h, openat.
29292         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
29293         * modules/readlinkat (Files): Add lib/at-func.c.
29294         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29295         openat-h, save-cwd. Remove fcntl-h, openat.
29296         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
29297         openat.
29298         * modules/selinux-at (Files): Add lib/at-func.c.
29299         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
29300         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
29301         * modules/symlinkat (Files): Add lib/at-func.c.
29302         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
29303         openat-h, save-cwd. Remove fcntl-h, openat.
29304         * modules/unlinkat (Files): Remove lib/openat.h.
29305         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
29306         stdbool.
29307         * modules/utimensat (Files): Add lib/at-func.c.
29308         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
29309         openat-die, openat-h, save-cwd.
29310         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
29311         * modules/fdutimensat-tests (Depends-on): Add openat.
29312         * modules/fstatat-tests (Depends-on): Add openat-h.
29313         * modules/readlinkat-tests (Depends-on): Add openat.
29314         * modules/symlinkat-tests (Depends-on): Add openat.
29316 2011-11-05  Bruno Haible  <bruno@clisp.org>
29318         openat: Include <stdbool.h>.
29319         * lib/openat.c: Include <stdbool.h>.
29321 2011-11-04  Bruno Haible  <bruno@clisp.org>
29323         fchownat, renameat, unlinkat: Fix dependencies.
29324         * modules/fchownat (Depends-on): Add fstatat.
29325         * modules/renameat (Depends-on): Likewise.
29326         * modules/unlinkat (Depends-on): Likewise.
29328 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29330         openat: remove direct dependency on dirent
29331         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
29332         and hasn't been needed ever since fdopendir was split into its own
29333         module on 2009-08-31.
29334         * modules/openat (Depends-on): Remove dirent.
29336 2011-11-04  Bruno Haible  <bruno@clisp.org>
29338         renameat: Optimize code size.
29339         * modules/renameat (configure.ac): Don't compile at-func2.c if
29340         REPLACE_RENAMEAT is 1.
29342 2011-11-04  Bruno Haible  <bruno@clisp.org>
29344         openat tests: Fix file list.
29345         * modules/openat-tests (Files): Add tests/test-open.h.
29347 2011-11-04  Bruno Haible  <bruno@clisp.org>
29349         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
29350         * modules/fchmodat (Depends-on): Add openat-die.
29351         * modules/fchownat (Depends-on): Likewise.
29352         * modules/linkat (Depends-on): Likewise.
29353         * modules/renameat (Depends-on): Likewise.
29354         * modules/openat (Depends-on): Add dirent.
29356 2011-11-04  Jim Meyering  <meyering@redhat.com>
29358         at-func*.c: fix comments
29359         * lib/at-func2.c: Correct/improve first-line comment.
29360         * lib/at-func.c: Correct grammar in first-line comment.
29362 2011-11-04  Bruno Haible  <bruno@clisp.org>
29364         New module 'mkdirat', split off from module 'openat'.
29365         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
29366         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
29367         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
29368         * modules/mkdirat: New file, extracted from modules/openat.
29369         * modules/openat (Files): Remove lib/mkdirat.c.
29370         (Depends-on): Remove mkdir.
29371         (configure.ac): Remove AC_LIBOBJ of mkdirat.
29372         (Include): Remove <sys/stat.h>.
29373         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
29374         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
29375         tests/test-mkdir.h.
29376         (Depends-on): Remove ignore-value.
29377         (Makefile.am): Remove rules for test-mkdirat.
29378         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
29379         of module 'openat'.
29380         * NEWS: Mention the change.
29382 2011-11-04  Bruno Haible  <bruno@clisp.org>
29384         closedir: Avoid warning on mingw.
29385         * lib/closedir.c: Include <unistd.h>.
29387 2011-11-04  Bruno Haible  <bruno@clisp.org>
29389         New module 'fstatat', split off from module 'openat'.
29390         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
29391         defined.
29392         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
29393         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
29394         gl_FUNC_FSTATAT.
29395         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
29396         * modules/fstatat: New file, extracted from modules/openat.
29397         * modules/openat (Files): Remove lib/fstatat.c.
29398         (Depends-on): Remove lstat.
29399         (configure.ac): Remove AC_LIBOBJ of fstatat.
29400         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
29401         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
29402         tests/test-lstat.h, tests/test-stat.h.
29403         (Depends-on): Remove getcwd-lgpl.
29404         (Makefile.am): Remove rules for test-fstatat.
29405         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
29406         of module 'openat'.
29407         * NEWS: Mention the change.
29408         * modules/getcwd (Depends-on): Add fstatat.
29409         * modules/linkat (Depends-on): Likewise.
29410         * modules/mkfifoat-tests (Depends-on): Likewise.
29411         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
29413 2011-11-03  Bruno Haible  <bruno@clisp.org>
29415         New module 'unlinkat', split off from module 'openat'.
29416         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
29417         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
29418         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
29419         * modules/unlinkat: New file, extracted from modules/openat. Correct
29420         the dependency conditions.
29421         * modules/openat (Files): Remove lib/unlinkat.c.
29422         (Depends-on): Remove rmdir, unlink.
29423         (configure.ac): Remove AC_LIBOBJ of unlinkat.
29424         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
29425         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
29426         tests/test-rmdir.h, tests/test-unlink.h.
29427         (Depends-on): Remove unlinkdir.
29428         (Makefile.am): Remove rules for test-unlinkat.
29429         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
29430         of module 'openat'.
29431         * NEWS: Mention the change.
29432         * modules/linkat-tests (Depends-on): Add unlinkat.
29433         * modules/mkfifoat-tests (Depends-on): Likewise.
29434         * modules/readlinkat-tests (Depends-on): Likewise.
29436 2011-11-02  Bruno Haible  <bruno@clisp.org>
29438         New module 'fchmodat', split off from module 'openat'.
29439         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
29440         defined.
29441         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
29442         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
29443         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
29444         * modules/fchmodat: New file, extracted from modules/openat.
29445         * modules/openat (Files): Remove lib/fchmodat.c.
29446         (configure.ac): Remove AC_LIBOBJ of fchmodat.
29447         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
29448         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
29449         (Makefile.am): Remove rules for test-fchmodat.
29450         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
29451         of module 'openat'.
29452         * NEWS: Mention the change.
29454 2011-11-02  Jim Meyering  <meyering@redhat.com>
29456         putenv: indent #definition of "environ" to placate cppi
29457         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
29459         gitlog-to-changelog: provide a ChangeLog-repair mechanism
29460         Git logs are often treated as immutable, because editing them
29461         changes the SHA1 checksums of all descendants.  Thus, errors in
29462         git logs tend to stay there forever.  However, when we generate
29463         a ChangeLog file -- typically for distribution -- from that git log,
29464         we can actually make corrections in the generated file.  The key
29465         lies in recording in machine-readable/applicable form the desired
29466         corrections.  See --help for description and an example.
29467         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
29468         (usage): Describe it; alphabetize option descriptions.
29469         (main): Honor the new option, carefully.
29471 2011-11-01  Jim Meyering  <meyering@redhat.com>
29473         gitlog-to-changelog: avoid an infloop
29474         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
29475         that ends up being empty.
29477 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29479         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
29480         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
29481         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
29482         contains (possibly-quoted) backslashes.  This should avoid
29483         all-too-common shell bugs if COMPLICATED contains backslashes in
29484         the "wrong" places.  Reported by David Evans in
29485         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
29486         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
29487         because we want ASCII ranges.  Is there some reason we don't use
29488         the C locale everywhere in this script?
29489         (func_module, top level): Avoid unwanted pathname expansion when
29490         $repo_url_prefix or $repo_url_suffix_repl contain shell
29491         metacharacters like '?' and '*'.
29493 2011-11-01  Bruno Haible  <bruno@clisp.org>
29495         fchownat: Improve description.
29496         * modules/fchownat (Description): Add link to function.
29498 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29500         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
29501         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
29502         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
29503         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
29505 2011-11-01  Bruno Haible  <bruno@clisp.org>
29507         alignof: Avoid collision with stdalign module.
29508         * lib/alignof.h (alignof): Remove macro.
29509         * NEWS: Mention the change.
29510         Reported by Paul Eggert.
29512 2011-11-01  Bruno Haible  <bruno@clisp.org>
29514         New module 'fchownat', split off from module 'openat'.
29515         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
29516         defined.
29517         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
29518         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
29519         invoke gl_FUNC_FCHOWNAT.
29520         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
29521         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
29522         * modules/fchownat: New file, extracted from modules/openat.
29523         * modules/openat (Files): Remove lib/fchownat.c.
29524         (Depends-on): Remove lchown.
29525         (configure.ac): Remove AC_LIBOBJ of fchownat.
29526         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
29527         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
29528         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
29529         (Depends-on): Remove mgetgroups, usleep, stat-time.
29530         (configure.ac): Remove test for getegid.
29531         (Makefile.am): Remove rules for test-fchownat.
29532         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
29533         of module 'openat'.
29534         * NEWS: Mention the change.
29536 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29538         stdalign: port better to MSVC and to Sun C 5.11
29539         This fixes some of the problems reported by Bruno Haible in
29540         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
29541         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
29542         shortcomings of MSVC and of Sun C 5.11.
29543         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
29544         around __declspec arg.
29545         * modules/stdalign-tests (Files): Add tests/macros.h.
29546         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
29547         Include macros.h, for ASSERT.
29548         (DECLARE_ALIGNED): Remove.
29549         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
29550         to catch bug), and to 1 if not (simplifies the rest of the code).
29551         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
29552         (CHECK_AUTO): Remove.
29553         (CHECK_ALIGNED): Check only the alignment of the static vars,
29554         since auto var alignment isn't supported by Sun C 5.11.
29555         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
29556         ASSERT failures are easier to diagnose.
29558 2011-10-31  Bruno Haible  <bruno@clisp.org>
29560         doc about some IRIX 5.3 problems.
29561         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
29562         on IRIX 5.3.
29563         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
29564         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
29565         5.3.
29566         * doc/posix-functions/grantpt.texi: Likewise.
29567         * doc/posix-functions/unlockpt.texi: Likewise.
29568         * doc/posix-functions/lgamma.texi: Likewise.
29569         * doc/posix-functions/nextafter.texi: Likewise.
29570         * doc/posix-functions/remainder.texi: Likewise.
29571         * doc/posix-functions/select.texi: Mention misplaced declaration on
29572         IRIX 5.3.
29573         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29575 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
29577         gitlog-to-changelog: fix git-log invocation.
29578         git-log mishandles date strings before 1970-01-01 UTC, and there is
29579         no use to specify --since=1970-01-01 by default anyway.
29580         * build-aux/gitlog-to-changelog: By default, when no --since option
29581         was given, do not specify explicit --since option to git-log.
29583 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
29585         gitlog-to-changelog: new option --append-dot.
29586         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
29587         first non-blank line of each commit message terminated with a dot.
29589 2011-10-30  Bruno Haible  <bruno@clisp.org>
29591         ffsl, ffsll: Avoid compilation error due to 'restrict'.
29592         * lib/ffsl.h: Include <config.h>.
29593         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
29595 2011-10-30  Jim Meyering  <meyering@redhat.com>
29597         GNUmakefile: reenable "make syntax-check" for most projects
29598         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
29599         build-aux variable", "syntax-check" would do nothing but succeed with
29600         the "No version control files detected..." diagnostic (unless you
29601         happened to override _build-aux via cfg.mk).
29602         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
29603         to precede inclusion of maint.mk.  Otherwise, these variables would
29604         be used undefined in any project that does not override the default.
29606 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
29608         gitlog-to-changelog: treat a message with only blank lines as empty.
29609         * build-aux/gitlog-to-changelog: Move the code that removes leading and
29610         trailing blank lines before the code that issues a warning about an
29611         empty commit message.
29613 2011-10-30  Jim Meyering  <meyering@redhat.com>
29615         test-parse-datetime.c: avoid new DST-related false positive test failure
29616         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
29617         based on the time/date we'll convert, not the current time.
29618         Otherwise, the moment we cross a DST boundary like today's in
29619         Europe, (CEST to CET), that offset ends up being one hour off.
29621 2011-10-27  Bruno Haible  <bruno@clisp.org>
29623         fstat: Tweak documentation.
29624         * modules/fstat (Description): More precise description.
29626 2011-10-27  Bruno Haible  <bruno@clisp.org>
29628         Update documentation regarding 'largefile' module.
29629         * doc/posix-functions/fstat.texi: Tweak wording.
29630         * doc/posix-functions/opendir.texi: Mention that the module fixes the
29631         problems with huge directories and/or small ino_t types.
29632         * doc/posix-functions/readdir.texi: Likewise.
29633         * doc/posix-functions/rewinddir.texi: Likewise.
29635 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
29637         maint.mk: don't maintain a second build-aux variable.
29638         * maint.mk (build_aux): Removed.  The maintainer-makefile module
29639         depends on GNUmakefile, which already maintains a cfg.mk
29640         overridable $(_build-aux) for projects with a non-standard
29641         build-aux directory location, although without the $(srcdir)
29642         prefix.  Use that variable consistently instead of introducing a
29643         second one.  Adjust all call sites.
29645 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29647         Add stdalign module and use it in other modules.
29648         This is based on a previous proposal by Bruno Haible
29649         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
29651         stdalign: new module
29652         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
29653         * modules/stdalign: New files.
29654         * MODULES.html.sh (c1x_core_properties): Add stdalign.
29655         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
29657         stdalign-tests: new module
29658         * modules/stdalign-tests, tests/test-stdalign.c: New files.
29660         argp: use stdalign
29661         * lib/argp-parse.c: Include <stdalign.h>.
29662         (alignof): Remove.
29663         * modules/argp (Depends-on): Add stdalign.
29665         crypto libraries: use stdalign
29666         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
29667         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
29668         Do not include <stdlib.h> twice, in md4.c.
29669         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
29670         because we are accessing a pointer's bit-pattern, not a size.
29671         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
29672         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
29673         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
29674         * modules/crypto/sha512: Likewise.
29676         sys_socket: use stdalign, not alignof
29677         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
29678         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
29680 2011-10-27  Bruno Haible  <bruno@clisp.org>
29682         raise test: Avoid a test failure on Linux/MIPS.
29683         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
29684         because 99 is a valid signal on Linux/MIPS.
29686 2011-10-27  Bruno Haible  <bruno@clisp.org>
29688         nonblocking tests: Fix test failure on Linux/MIPS.
29689         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
29690         Set to 270000.
29692 2011-10-27  Bruno Haible  <bruno@clisp.org>
29694         utimensat: Work around problem on Linux/hppa.
29695         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
29696         values.
29697         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
29699 2011-10-25  Jim Meyering  <meyering@redhat.com>
29701         maint.mk: fix a bug in sc_prohibit_stddef_without_use
29702         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
29703         after symbols like NULL, size_t, etc.
29704         Reported by Alfred M. Szmidt.
29706         maint.mk: exempt ENODATA from a syntax-check rule
29707         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
29708         from the sc_prohibit_always-defined_macros syntax-check rule.
29709         Add a comment.  See this for more details:
29710         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
29712 2011-10-23  Jim Meyering  <meyering@redhat.com>
29714         fts: close parent dir FD before returning from post-traversal fts_read
29715         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
29716         unlink A, even though an FD open on A remained.  This is suboptimal
29717         (holding a file descriptor open longer than needed), but otherwise not
29718         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
29719         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
29720         that represents a real problem: it causes the removal of A to fail
29721         with e.g., "rm: cannot remove `A': Device or resource busy"
29723         fts visits each directory twice and keeps a cache (fts_fd_ring) of
29724         directory file descriptors.  After completing the final, FTS_DP,
29725         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
29726         cache, but then proceeded to add a new FD to it via the subsequent
29727         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
29728         final file descriptor would be closed only via fts_close's call to
29729         fd_ring_clear.  Now, it is usually closed earlier, via the final
29730         FTS_DP-returning fts_read call.
29731         * lib/fts.c (restore_initial_cwd): New function, converted from
29732         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
29733         Update callers.
29734         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
29735         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
29737 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
29738             Bruno Haible  <bruno@clisp.org>
29739             Jim Meyering  <jim@meyering.net>
29741         readme-release: improve safety of release prep instructions.
29742         * README-release: Don't git pull all branches when only master
29743         is needed for the release process.
29744         Run make maintainer-clean before changing trees and merging.
29745         Don't try to run ./configure right after git pull in case files
29746         that influence the bootstrap process have changed, move the
29747         ./configure step to after running ./bootstrap.
29748         Don't bootstrap "one last time"... it's the first time!
29750 2011-10-22  Bruno Haible  <bruno@clisp.org>
29752         errno, strerror-override: Support for MSVC 10.
29753         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
29754         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
29755         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
29756         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
29757         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
29758         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
29759         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
29760         Assign values compatible with MSVC 10.
29761         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
29762         New macros.
29763         (GNULIB_defined_EWINSOCK): New macro.
29764         * lib/strerror-override.c (strerror_override): Update accordingly.
29765         * lib/strerror-override.h: Likewise.
29766         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
29767         longer equal to the corresponding errno value.
29768         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
29770 2011-10-22  Bruno Haible  <bruno@clisp.org>
29772         perror: Recognize when test program crashes.
29773         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
29774         strerror, set gl_cv_func_perror_works to no.
29775         Reported by Daniel Richard G. <skunk@iskunk.org>.
29777         perror: Fix indentation.
29778         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
29780 2011-10-22  Bruno Haible  <bruno@clisp.org>
29782         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
29783         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
29784         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
29785         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
29786         functions, not as a macro.
29787         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
29788         macros.
29789         (isfinite, isinf, isnan, signbit): Check overloaded functions and
29790         absence of macro.
29791         Suggested by Eric Blake.
29792         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
29794 2011-10-21  Bruno Haible  <bruno@clisp.org>
29796         relocatable-prog-wrapper: Don't leave object files behind.
29797         * build-aux/install-reloc: Re-synchronize list of .o files to be
29798         removed with list of compilation units.
29800 2011-10-20  Bruno Haible  <bruno@clisp.org>
29802         openpty, posix_openpt: Remove code duplication.
29803         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
29804         * lib/openpty.c: Include <stdlib.h>.
29805         (openpty): Use posix_openpt on all platforms except IRIX.
29806         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
29808 2011-10-20  Bruno Haible  <bruno@clisp.org>
29810         unlockpt: Detect invalid argument.
29811         * lib/unlockpt.c: Include <fcntl.h>.
29812         (unlockpt): Check whether fd is valid, using fcntl().
29813         * modules/unlockpt (Depends-on): Add fcntl-h.
29815 2011-10-20  Bruno Haible  <bruno@clisp.org>
29817         openpty: Avoid compilation error on AIX 6.1.
29818         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
29820 2011-10-20  Bruno Haible  <bruno@clisp.org>
29822         posix_openpt: Support for OpenBSD.
29823         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
29824         (posix_openpt) [OpenBSD]: New code.
29825         * lib/grantpt.c: Include <fcntl.h>.
29826         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
29827         * modules/grantpt (Depends-on): Add fcntl-h.
29829 2011-10-20  Bruno Haible  <bruno@clisp.org>
29831         posix_openpt test: Coding style.
29832         * tests/test-posix_openpt.c: Use GNU coding style.
29834 2011-10-20  Bruno Haible  <bruno@clisp.org>
29836         grantpt: Support --avoid=pt_chown.
29837         * modules/grantpt (Files): Add lib/pty-private.h.
29839 2011-10-20  Bruno Haible  <bruno@clisp.org>
29841         posix_openpt: Fix autoconf macro.
29842         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
29843         unneeded check for _getpty.
29845 2011-10-20  Bruno Haible  <bruno@clisp.org>
29847         openpty: Update comments.
29848         * lib/openpty.c: Add comments about Minix.
29850 2011-10-19  Eric Blake  <eblake@redhat.com>
29852         openpty: relax license
29853         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
29855         pt_chown: use configmake to simplify build
29856         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
29858         ptsname and others: relax license
29859         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
29860         * modules/unlockpt (License): Likewise.
29861         * modules/pt_chown (License): Likewise.
29862         * modules/ptsname (License): Likewise.
29863         * modules/ttyname_r (License): Likewise.
29865 2011-10-19  Jim Meyering  <meyering@redhat.com>
29867         posix_openpt: remove spurious #endif
29868         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
29870 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
29872         maint.mk: Respect $(build_aux) in web-manual rule.
29873         * top/maint.mk (web-manual): Find gen-announce script in user's
29874         $(build_aux) directory instead of hard-coding 'build-aux'.
29876 2011-10-19  Bruno Haible  <bruno@clisp.org>
29878         posix_openpt: Fix compilation error.
29879         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
29880         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
29881         Mention the openpty module as an alternative.
29883 2011-10-19  Bruno Haible  <bruno@clisp.org>
29885         Support for old NeXTstep 3.3 frexp().
29886         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
29887         execution time of the test to 5 seconds.
29888         Reported by Daniel Richard G. <skunk@iskunk.org>.
29890 2011-10-19  Bruno Haible  <bruno@clisp.org>
29892         Support for old NeXTstep 3.3 sed.
29893         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
29894         part, use /.../, not \|...|. Escape periods in the header file name.
29895         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
29896         Reported by Daniel Richard G. <skunk@iskunk.org>.
29898 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
29900         Support for old NeXTstep 3.3 gcc.
29901         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
29902         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
29903         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
29904         * lib/spawn.in.h (_Restrict_arr_): Likewise.
29905         * lib/regex.h (_Restrict_arr_): Likewise.
29906         * lib/regex_internal.h (re_token_t): Likewise.
29907         * lib/regexec.c (check_node_accept_bytes): Likewise.
29908         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
29910 2011-10-18  Eric Blake  <eblake@redhat.com>
29912         posix_openpt: new module
29913         * modules/posix_openpt: New module.
29914         * m4/posix_openpt.m4: New file.
29915         * lib/posix_openpt.c: Likewise.
29916         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
29917         (gl_STDLIB_H_DEFAULTS): Set defaults.
29918         * modules/stdlib (Makefile.am): Substitute macros.
29919         * lib/stdlib.in.h (posix_openpt): Declare.
29920         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
29921         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
29922         * modules/posix_openpt-tests: New test module.
29923         * tests/test-posix_openpt.c: New test.
29925 2011-10-15  Bruno Haible  <bruno@clisp.org>
29927         xstrtoll: Fix compilation failure.
29928         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
29929         from lib/strtol.c.
29930         * doc/posix-headers/limits.texi: Mention missing numerical limits on
29931         some platforms.
29932         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29934 2011-10-15  Bruno Haible  <bruno@clisp.org>
29936         vasnprintf: Optimize bit search operation.
29937         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
29938         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
29939         gl_DOUBLE_EXPONENT_LOCATION.
29940         * modules/vasnprintf (Files): Add m4/exponentd.m4.
29941         * modules/unistdio/u8-vasnprintf (Files): Likewise.
29942         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
29943         * modules/unistdio/u16-vasnprintf (Files): Likewise.
29944         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
29945         * modules/unistdio/u32-vasnprintf (Files): Likewise.
29946         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
29947         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
29948         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
29950 2011-10-15  Bruno Haible  <bruno@clisp.org>
29952         vasnprintf: Fix comments.
29953         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
29955 2011-10-14  Bruno Haible  <bruno@clisp.org>
29957         Tests for module 'integer_length_ll'.
29958         * modules/integer_length_ll-tests: New file.
29959         * tests/test-integer_length_ll.c: New file.
29961         New module 'integer_length_ll'.
29962         * lib/integer_length_ll.c: New file.
29963         * modules/integer_length_ll: New file.
29965 2011-10-14  Bruno Haible  <bruno@clisp.org>
29967         Tests for module 'integer_length_l'.
29968         * modules/integer_length_l-tests: New file.
29969         * tests/test-integer_length_l.c: New file.
29971         New module 'integer_length_l'.
29972         * lib/integer_length_l.c: New file.
29973         * modules/integer_length_l: New file.
29975 2011-10-14  Bruno Haible  <bruno@clisp.org>
29977         Tests for module 'integer_length'.
29978         * modules/integer_length-tests: New file.
29979         * tests/test-integer_length.c: New file.
29981         New module 'integer_length'.
29982         * lib/integer_length.h: New file.
29983         * lib/integer_length.c: New file.
29984         * modules/integer_length: New file.
29986 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
29988         popen: Fix dependency conditions.
29989         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
29991 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
29993         perror: Fix autoconf test.
29994         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
29995         <stdlib.h> and <string.h>.
29997 2011-10-14  Bruno Haible  <bruno@clisp.org>
29999         ffsl: Optimize on 64-bit platforms.
30000         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
30001         unrolling.
30003 2011-10-13  Bruno Haible  <bruno@clisp.org>
30005         ffsl: Optimize on 32-bit platforms.
30006         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
30007         use ffs() without a loop.
30009         ffsl, ffsll: Optimize for GCC.
30010         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
30011         * lib/ffsl.c (GCC_BUILTIN): New macro.
30012         * lib/ffsll.c (GCC_BUILTIN): Likewise.
30014 2011-10-13  Bruno Haible  <bruno@clisp.org>
30016         ffs, bcopy, memset: Support symbol renaming via config.h.
30017         * lib/ffs.c: Include <config.h>.
30018         * lib/bcopy.c: Likewise.
30019         * lib/memset.c: Likewise.
30021 2011-10-10  Bruno Haible  <bruno@clisp.org>
30023         atanl: Simplify for platforms where 'long double' == 'double'.
30024         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30025         alternative implementation.
30026         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30027         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30028         * modules/atanl (Depends-on): Add atan. Update conditions.
30030 2011-10-10  Bruno Haible  <bruno@clisp.org>
30032         acosl: Simplify for platforms where 'long double' == 'double'.
30033         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30034         alternative implementation.
30035         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30036         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30037         * modules/acosl (Depends-on): Add acos. Update conditions.
30039 2011-10-10  Bruno Haible  <bruno@clisp.org>
30041         asinl: Simplify for platforms where 'long double' == 'double'.
30042         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30043         alternative implementation.
30044         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30045         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30046         * modules/asinl (Depends-on): Add asin. Update conditions.
30048 2011-10-10  Bruno Haible  <bruno@clisp.org>
30050         tanl: Simplify for platforms where 'long double' == 'double'.
30051         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30052         implementation.
30053         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30054         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30055         * modules/tanl (Depends-on): Add tan. Update conditions.
30056         (configure.ac): Don't compile trigl.c if
30057         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30059 2011-10-10  Bruno Haible  <bruno@clisp.org>
30061         cosl: Simplify for platforms where 'long double' == 'double'.
30062         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30063         implementation.
30064         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30065         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30066         * modules/cosl (Depends-on): Add cos. Update conditions.
30067         (configure.ac): Don't compile sincosl.c and trigl.c if
30068         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30070 2011-10-10  Bruno Haible  <bruno@clisp.org>
30072         sinl: Simplify for platforms where 'long double' == 'double'.
30073         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30074         implementation.
30075         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30076         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30077         * modules/sinl (Depends-on): Add sin. Update conditions.
30078         (configure.ac): Don't compile sincosl.c and trigl.c if
30079         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30081 2011-10-10  Bruno Haible  <bruno@clisp.org>
30083         logl: Simplify for platforms where 'long double' == 'double'.
30084         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30085         implementation.
30086         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30087         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30088         * modules/logl (Depends-on): Add log. Update conditions.
30090 2011-10-10  Bruno Haible  <bruno@clisp.org>
30092         expl: Simplify for platforms where 'long double' == 'double'.
30093         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30094         implementation.
30095         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30096         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30097         * modules/expl (Depends-on): Add exp. Update conditions.
30099 2011-10-10  Bruno Haible  <bruno@clisp.org>
30101         sqrtl: Simplify for platforms where 'long double' == 'double'.
30102         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30103         alternative implementation.
30104         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30105         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30106         * modules/sqrtl (Depends-on): Update conditions.
30108 2011-10-10  Bruno Haible  <bruno@clisp.org>
30110         ldexpl: Simplify for platforms where 'long double' == 'double'.
30111         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30112         alternative implementation.
30113         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30114         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30115         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
30117 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
30119         ffsll: set correct witness
30120         * modules/ffsll (configure.ac): Fix typo.
30122 2011-10-10  Bruno Haible  <bruno@clisp.org>
30124         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
30125         * lib/printf-frexpl.c: Include <config.h>.
30126         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30127         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
30128         second time.
30129         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
30130         gl_LONG_DOUBLE_VS_DOUBLE.
30131         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
30132         conditions.
30134 2011-10-10  Bruno Haible  <bruno@clisp.org>
30136         frexpl: Simplify for platforms where 'long double' == 'double'.
30137         * lib/frexpl.c: Include <config.h>.
30138         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30139         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30140         time.
30141         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30142         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30143         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
30144         * modules/frexpl (Depends-on): Add frexp. Update conditions.
30145         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
30146         conditions.
30148 2011-10-10  Jim Meyering  <meyering@redhat.com>
30150         test-renameat: don't leave behind a temporary file
30151         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
30152           ERROR: files left in build directory after distclean:
30153           ./gltests/test-renameat.too
30154           make[1]: *** [distcleancheck] Error 1
30155         Reported by Tom G. Christensen.
30157 2011-10-09  Bruno Haible  <bruno@clisp.org>
30159         rint: Determine RINT_LIBM correctly on AIX 7.
30160         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
30161         directly, not only through a function pointer. Also accept an optional
30162         4th argument with extra code.
30163         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
30164         rintf() call by gcc when optimizing.
30166         mathfunc.m4: Refactor.
30167         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
30168         m4 variable.
30170 2011-10-09  Bruno Haible  <bruno@clisp.org>
30172         rintl: Simplify for platforms where 'long double' == 'double'.
30173         * lib/rintl.c: Include <config.h>.
30174         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30175         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30176         time.
30177         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30178         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30179         * modules/rintl (Depends-on): Add rint. Update conditions.
30181 2011-10-09  Bruno Haible  <bruno@clisp.org>
30183         roundl: Simplify for platforms where 'long double' == 'double'.
30184         * lib/roundl.c: Include <config.h>.
30185         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30186         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30187         time.
30188         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30189         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30190         * modules/roundl (Depends-on): Add round. Update conditions.
30192 2011-10-09  Bruno Haible  <bruno@clisp.org>
30194         truncl: Simplify for platforms where 'long double' == 'double'.
30195         * lib/truncl.c: Include <config.h>.
30196         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30197         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30198         time.
30199         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30200         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30201         * modules/truncl (Depends-on): Add trunc. Update conditions.
30203 2011-10-09  Bruno Haible  <bruno@clisp.org>
30205         ceill: Simplify for platforms where 'long double' == 'double'.
30206         * lib/ceill.c: Include <config.h>.
30207         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30208         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30209         time.
30210         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30211         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30212         * modules/ceill (Depends-on): Add ceil. Update conditions.
30214 2011-10-09  Bruno Haible  <bruno@clisp.org>
30216         floorl: Simplify for platforms where 'long double' == 'double'.
30217         * lib/floorl.c: Include <config.h>.
30218         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30219         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30220         time.
30221         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30222         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30223         * modules/floorl (Depends-on): Add floor. Update conditions.
30225 2011-10-09  Bruno Haible  <bruno@clisp.org>
30227         rint: Fix ordering constraints.
30228         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
30229         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
30230         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
30232 2011-10-09  Bruno Haible  <bruno@clisp.org>
30234         copysignl: Simplify for platforms where 'long double' == 'double'.
30235         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30236         alternative.
30237         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30238         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30239         * modules/copysignl (Depends-on): Add copysign. Update conditions.
30241 2011-10-09  Bruno Haible  <bruno@clisp.org>
30243         Tests for module 'rintl'.
30244         * modules/rintl-tests: New file.
30245         * tests/test-rintl.c: New file.
30247         New module 'rintl'.
30248         * lib/math.in.h (rintl): New declaration.
30249         * lib/rintl.c: New file.
30250         * m4/rintl.m4: New file.
30251         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
30252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
30253         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
30254         * modules/rintl: New file.
30255         * tests/test-math-c++.cc: Check the declaration of rintl.
30256         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30257         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
30258         * doc/posix-functions/rintl.texi: Mention the new module.
30260 2011-10-09  Bruno Haible  <bruno@clisp.org>
30262         Tests for module 'rintf'.
30263         * modules/rintf-tests: New file.
30264         * tests/test-rintf.c: New file.
30266         New module 'rintf'.
30267         * lib/math.in.h (rintf): New declaration.
30268         * lib/rintf.c: New file.
30269         * m4/rintf.m4: New file.
30270         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
30271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
30272         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
30273         * modules/rintf: New file.
30274         * tests/test-math-c++.cc: Check the declaration of rintf.
30275         * doc/posix-functions/rintf.texi: Mention the new module.
30277 2011-10-09  Bruno Haible  <bruno@clisp.org>
30279         rint: Support for MSVC.
30280         * lib/math.in.h (rint): New declaration.
30281         * lib/rint.c: New file.
30282         * m4/rint.m4: New file.
30283         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
30284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
30285         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
30286         * modules/rint (Description): Fix.
30287         (Files): Add lib/rint.c, m4/rint.m4.
30288         (Depends-on): Add math.
30289         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
30290         gl_MATH_MODULE_INDICATOR.
30291         * tests/test-math-c++.cc: Check the declaration of rint.
30292         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30293         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
30294         * doc/posix-functions/rint.texi: Mention the replacement provided by
30295         the module.
30297         rint tests: More tests.
30298         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
30299         minus-zero.h, infinity.h, nan.h.
30300         (main): Skip the test if the current rounding mode is not standard. Add
30301         tests for negative numbers, minus zero, infinity, NaN.
30302         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
30303         tests/nan.h.
30304         (Depends-on): Add isnand-nolibm.
30306 2011-10-09  Bruno Haible  <bruno@clisp.org>
30308         Tests for module 'copysignl'.
30309         * modules/copysignl-tests: New file.
30310         * tests/test-copysignl.c: New file.
30312         New module 'copysignl'.
30313         * lib/math.in.h (copysignl): New declaration.
30314         * lib/copysignl.c: New file.
30315         * m4/copysignl.m4: New file.
30316         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
30317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
30318         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
30319         HAVE_COPYSIGNL.
30320         * modules/copysignl: New file.
30321         * tests/test-math-c++.cc: Check the declaration of copysignl.
30322         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
30323         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
30324         * doc/posix-functions/copysignl.texi: Mention the new module.
30326 2011-10-09  Bruno Haible  <bruno@clisp.org>
30328         Tests for module 'copysignf'.
30329         * modules/copysignf-tests: New file.
30330         * tests/test-copysignf.c: New file.
30332         New module 'copysignf'.
30333         * lib/math.in.h (copysignf): New declaration.
30334         * lib/copysignf.c: New file.
30335         * m4/copysignf.m4: New file.
30336         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
30337         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
30338         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
30339         HAVE_COPYSIGNF.
30340         * modules/copysignf: New file.
30341         * tests/test-math-c++.cc: Check the declaration of copysignf.
30342         * doc/posix-functions/copysignf.texi: Mention the new module.
30344 2011-10-09  Bruno Haible  <bruno@clisp.org>
30346         Ensure that HAVE_* variables are set to 1 before they are set to 0.
30347         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
30348         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
30349         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30350         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
30351         gl_SIGNAL_H_DEFAULTS.
30353 2011-10-09  Bruno Haible  <bruno@clisp.org>
30355         poll: Make macro safer.
30356         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
30357         ac_cv_header_poll_h is not set.
30359 2011-10-09  Bruno Haible  <bruno@clisp.org>
30361         copysign: Provide replacement.
30362         * lib/math.in.h (copysign): New declaration.
30363         * lib/copysign.c: New file.
30364         * m4/copysign.m4: New file.
30365         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
30366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
30367         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
30368         HAVE_COPYSIGN.
30369         * modules/copysign (Description): Clarify.
30370         (Files): Add lib/copysign.c, m4/copysign.m4.
30371         (Depends-on): Add math, signbit.
30372         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
30373         gl_MATH_MODULE_INDICATOR.
30374         * tests/test-math-c++.cc: Check the declaration of copysign.
30375         * doc/posix-functions/copysign.texi: Mention the effects of the module
30376         on Minix and MSVC.
30378 2011-10-09  Bruno Haible  <bruno@clisp.org>
30380         isinf: Ensure macro on AIX 5.1.
30381         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
30382         macro.
30383         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
30385 2011-10-09  Bruno Haible  <bruno@clisp.org>
30387         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
30388         * modules/snprintf-posix-tests (configure.ac): Require
30389         gl_LONG_DOUBLE_VS_DOUBLE.
30390         * modules/sprintf-posix-tests (configure.ac): Likewise.
30391         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
30392         * modules/vasprintf-posix-tests (configure.ac): Likewise.
30393         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
30394         * modules/vsprintf-posix-tests (configure.ac): Likewise.
30395         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
30396         tests on platforms where 'long double' is the same as 'double'.
30397         * tests/test-sprintf-posix.h (test_function): Likewise.
30398         * tests/test-vasnprintf-posix.c (test_function): Likewise.
30399         * tests/test-vasprintf-posix.c (test_function): Likewise.
30401         *printf: Fix for platforms where 'long double' == 'double'.
30402         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30403         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
30404         * modules/dprintf-posix (Files): Add m4/math_h.m4.
30405         * modules/fprintf-posix (Files): Likewise.
30406         * modules/obstack-printf-posix (Files): Likewise.
30407         * modules/snprintf-posix (Files): Likewise.
30408         * modules/sprintf-posix (Files): Likewise.
30409         * modules/vasnprintf (Files): Likewise.
30410         * modules/vasnprintf-posix (Files): Likewise.
30411         * modules/vasprintf-posix (Files): Likewise.
30412         * modules/vdprintf-posix (Files): Likewise.
30413         * modules/vfprintf-posix (Files): Likewise.
30414         * modules/vsnprintf-posix (Files): Likewise.
30415         * modules/vsprintf-posix (Files): Likewise.
30416         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30417         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30418         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30419         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30420         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30421         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30422         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30424         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
30425         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
30426         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30427         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
30428         'long double'.
30429         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
30431         isinf: Fix for platforms where 'long double' == 'double'.
30432         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30433         Don't blindly assume 80-bit 'long double'.
30435         isfinite: Fix for platforms where 'long double' == 'double'.
30436         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
30437         Don't blindly assume 80-bit 'long double'.
30439         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
30440         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
30441         * modules/isfinite-tests (configure.ac): Require
30442         gl_LONG_DOUBLE_VS_DOUBLE.
30443         * modules/isinf-tests (configure.ac): Likewise.
30444         * modules/isnan-tests (configure.ac): Likewise.
30445         * modules/isnanl-tests (configure.ac): Likewise.
30446         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
30447         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
30448         tests on platforms where 'long double' is the same as 'double'.
30449         * tests/test-isinf.c (test_isinfl): Likewise.
30450         * tests/test-isnan.c (test_long_double): Likewise.
30451         * tests/test-isnanl.h (main): Likewise.
30453 2011-10-08  Bruno Haible  <bruno@clisp.org>
30455         Tests for module 'tanhf'.
30456         * modules/tanhf-tests: New file.
30457         * tests/test-tanhf.c: New file.
30459         New module 'tanhf'.
30460         * lib/math.in.h (tanhf): New declaration.
30461         * lib/tanhf.c: New file.
30462         * m4/tanhf.m4: New file.
30463         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
30464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
30465         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
30466         * modules/tanhf: New file.
30467         * tests/test-math-c++.cc: Check the declaration of tanhf.
30468         * doc/posix-functions/tanhf.texi: Mention the new module.
30470         tanh: Use a .m4 file.
30471         * m4/tanh.m4: New file.
30472         * modules/tanh (Files): Add it.
30473         (configure.ac): Just invoke gl_FUNC_TANH.
30475 2011-10-08  Bruno Haible  <bruno@clisp.org>
30477         Tests for module 'coshf'.
30478         * modules/coshf-tests: New file.
30479         * tests/test-coshf.c: New file.
30481         New module 'coshf'.
30482         * lib/math.in.h (coshf): New declaration.
30483         * lib/coshf.c: New file.
30484         * m4/coshf.m4: New file.
30485         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
30486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
30487         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
30488         * modules/coshf: New file.
30489         * tests/test-math-c++.cc: Check the declaration of coshf.
30490         * doc/posix-functions/coshf.texi: Mention the new module.
30492         cosh: Use a .m4 file.
30493         * m4/cosh.m4: New file.
30494         * modules/cosh (Files): Add it.
30495         (configure.ac): Just invoke gl_FUNC_COSH.
30497 2011-10-08  Bruno Haible  <bruno@clisp.org>
30499         Tests for module 'sinhf'.
30500         * modules/sinhf-tests: New file.
30501         * tests/test-sinhf.c: New file.
30503         New module 'sinhf'.
30504         * lib/math.in.h (sinhf): New declaration.
30505         * lib/sinhf.c: New file.
30506         * m4/sinhf.m4: New file.
30507         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
30508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
30509         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
30510         * modules/sinhf: New file.
30511         * tests/test-math-c++.cc: Check the declaration of sinhf.
30512         * doc/posix-functions/sinhf.texi: Mention the new module.
30514         sinh: Use a .m4 file.
30515         * m4/sinh.m4: New file.
30516         * modules/sinh (Files): Add it.
30517         (configure.ac): Just invoke gl_FUNC_SINH.
30519 2011-10-08  Bruno Haible  <bruno@clisp.org>
30521         Tests for module 'atan2f'.
30522         * modules/atan2f-tests: New file.
30523         * tests/test-atan2f.c: New file.
30525         New module 'atan2f'.
30526         * lib/math.in.h (atan2f): New declaration.
30527         * lib/atan2f.c: New file.
30528         * m4/atan2f.m4: New file.
30529         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
30530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
30531         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
30532         * modules/atan2f: New file.
30533         * tests/test-math-c++.cc: Check the declaration of atan2f.
30534         * doc/posix-functions/atan2f.texi: Mention the new module.
30536         atan2: Use a .m4 file.
30537         * m4/atan2.m4: New file.
30538         * modules/atan2 (Files): Add it.
30539         (configure.ac): Just invoke gl_FUNC_ATAN2.
30541 2011-10-08  Bruno Haible  <bruno@clisp.org>
30543         Tests for module 'atanf'.
30544         * modules/atanf-tests: New file.
30545         * tests/test-atanf.c: New file.
30547         New module 'atanf'.
30548         * lib/math.in.h (atanf): New declaration.
30549         * lib/atanf.c: New file.
30550         * m4/atanf.m4: New file.
30551         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
30552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
30553         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
30554         * modules/atanf: New file.
30555         * tests/test-math-c++.cc: Check the declaration of atanf.
30556         * doc/posix-functions/atanf.texi: Mention the new module.
30558         atan: Use a .m4 file.
30559         * m4/atan.m4: New file.
30560         * modules/atan (Files): Add it.
30561         (configure.ac): Just invoke gl_FUNC_ATAN.
30563 2011-10-08  Bruno Haible  <bruno@clisp.org>
30565         Tests for module 'acosf'.
30566         * modules/acosf-tests: New file.
30567         * tests/test-acosf.c: New file.
30569         New module 'acosf'.
30570         * lib/math.in.h (acosf): New declaration.
30571         * lib/acosf.c: New file.
30572         * m4/acosf.m4: New file.
30573         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
30574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
30575         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
30576         * modules/acosf: New file.
30577         * tests/test-math-c++.cc: Check the declaration of acosf.
30578         * doc/posix-functions/acosf.texi: Mention the new module.
30580         acos: Use a .m4 file.
30581         * m4/acos.m4: New file.
30582         * modules/acos (Files): Add it.
30583         (configure.ac): Just invoke gl_FUNC_ACOS.
30585 2011-10-08  Bruno Haible  <bruno@clisp.org>
30587         Tests for module 'asinf'.
30588         * modules/asinf-tests: New file.
30589         * tests/test-asinf.c: New file.
30591         New module 'asinf'.
30592         * lib/math.in.h (asinf): New declaration.
30593         * lib/asinf.c: New file.
30594         * m4/asinf.m4: New file.
30595         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
30596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
30597         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
30598         * modules/asinf: New file.
30599         * tests/test-math-c++.cc: Check the declaration of asinf.
30600         * doc/posix-functions/asinf.texi: Mention the new module.
30602         asin: Use a .m4 file.
30603         * m4/asin.m4: New file.
30604         * modules/asin (Files): Add it.
30605         (configure.ac): Just invoke gl_FUNC_ASIN.
30607 2011-10-08  Bruno Haible  <bruno@clisp.org>
30609         Tests for module 'tanf'.
30610         * modules/tanf-tests: New file.
30611         * tests/test-tanf.c: New file.
30613         New module 'tanf'.
30614         * lib/math.in.h (tanf): New declaration.
30615         * lib/tanf.c: New file.
30616         * m4/tanf.m4: New file.
30617         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
30618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
30619         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
30620         * modules/tanf: New file.
30621         * tests/test-math-c++.cc: Check the declaration of tanf.
30622         * doc/posix-functions/tanf.texi: Mention the new module.
30624         tan: Use a .m4 file.
30625         * m4/tan.m4: New file.
30626         * modules/tan (Files): Add it.
30627         (configure.ac): Just invoke gl_FUNC_TAN.
30629 2011-10-08  Bruno Haible  <bruno@clisp.org>
30631         Tests for module 'cosf'.
30632         * modules/cosf-tests: New file.
30633         * tests/test-cosf.c: New file.
30635         New module 'cosf'.
30636         * lib/math.in.h (cosf): New declaration.
30637         * lib/cosf.c: New file.
30638         * m4/cosf.m4: New file.
30639         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
30640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
30641         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
30642         * modules/cosf: New file.
30643         * tests/test-math-c++.cc: Check the declaration of cosf.
30644         * doc/posix-functions/cosf.texi: Mention the new module.
30646         cos: Use a .m4 file.
30647         * m4/cos.m4: New file.
30648         * modules/cos (Files): Add it.
30649         (configure.ac): Just invoke gl_FUNC_COS.
30651 2011-10-08  Bruno Haible  <bruno@clisp.org>
30653         Tests for module 'sinf'.
30654         * modules/sinf-tests: New file.
30655         * tests/test-sinf.c: New file.
30657         New module 'sinf'.
30658         * lib/math.in.h (sinf): New declaration.
30659         * lib/sinf.c: New file.
30660         * m4/sinf.m4: New file.
30661         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
30662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
30663         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
30664         * modules/sinf: New file.
30665         * tests/test-math-c++.cc: Check the declaration of sinf.
30666         * doc/posix-functions/sinf.texi: Mention the new module.
30668         sin: Use a .m4 file.
30669         * m4/sin.m4: New file.
30670         * modules/sin (Files): Add it.
30671         (configure.ac): Just invoke gl_FUNC_SIN.
30673 2011-10-08  Bruno Haible  <bruno@clisp.org>
30675         Tests for module 'powf'.
30676         * modules/powf-tests: New file.
30677         * tests/test-powf.c: New file.
30679         New module 'powf'.
30680         * lib/math.in.h (powf): New declaration.
30681         * lib/powf.c: New file.
30682         * m4/powf.m4: New file.
30683         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
30684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
30685         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
30686         * modules/powf: New file.
30687         * tests/test-math-c++.cc: Check the declaration of powf.
30688         * doc/posix-functions/powf.texi: Mention the new module.
30690         pow: Use a .m4 file.
30691         * m4/pow.m4: New file.
30692         * modules/pow (Files): Add it.
30693         (configure.ac): Just invoke gl_FUNC_POW.
30695 2011-10-08  Bruno Haible  <bruno@clisp.org>
30697         Tests for module 'log10f'.
30698         * modules/log10f-tests: New file.
30699         * tests/test-log10f.c: New file.
30701         New module 'log10f'.
30702         * lib/math.in.h (log10f): New declaration.
30703         * lib/log10f.c: New file.
30704         * m4/log10f.m4: New file.
30705         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
30706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
30707         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
30708         * modules/log10f: New file.
30709         * tests/test-math-c++.cc: Check the declaration of log10f.
30710         * doc/posix-functions/log10f.texi: Mention the new module.
30712         log10: Use a .m4 file.
30713         * m4/log10.m4: New file.
30714         * modules/log10 (Files): Add it.
30715         (configure.ac): Just invoke gl_FUNC_LOG10.
30717 2011-10-08  Bruno Haible  <bruno@clisp.org>
30719         Tests for module 'logf'.
30720         * modules/logf-tests: New file.
30721         * tests/test-logf.c: New file.
30723         New module 'logf'.
30724         * lib/math.in.h (logf): New declaration.
30725         * lib/logf.c: New file.
30726         * m4/logf.m4: New file.
30727         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
30728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
30729         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
30730         * modules/logf: New file.
30731         * tests/test-math-c++.cc: Check the declaration of logf.
30732         * doc/posix-functions/logf.texi: Mention the new module.
30734         log: Use a .m4 file.
30735         * m4/log.m4: New file.
30736         * modules/log (Files): Add it.
30737         (configure.ac): Just invoke gl_FUNC_LOG.
30739 2011-10-08  Bruno Haible  <bruno@clisp.org>
30741         Tests for module 'expf'.
30742         * modules/expf-tests: New file.
30743         * tests/test-expf.c: New file.
30745         New module 'expf'.
30746         * lib/math.in.h (expf): New declaration.
30747         * lib/expf.c: New file.
30748         * m4/expf.m4: New file.
30749         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
30750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
30751         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
30752         * modules/expf: New file.
30753         * tests/test-math-c++.cc: Check the declaration of expf.
30754         * doc/posix-functions/expf.texi: Mention the new module.
30756         exp: Use a .m4 file.
30757         * m4/exp.m4: New file.
30758         * modules/exp (Files): Add it.
30759         (configure.ac): Just invoke gl_FUNC_EXP.
30761 2011-10-08  Bruno Haible  <bruno@clisp.org>
30763         Tests for module 'sqrtf'.
30764         * modules/sqrtf-tests: New file.
30765         * tests/test-sqrtf.c: New file.
30767         New module 'sqrtf'.
30768         * lib/math.in.h (sqrtf): New declaration.
30769         * lib/sqrtf.c: New file.
30770         * m4/sqrtf.m4: New file.
30771         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
30772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
30773         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
30774         * modules/sqrtf: New file.
30775         * tests/test-math-c++.cc: Check the declaration of sqrtf.
30776         * doc/posix-functions/sqrtf.texi: Mention the new module.
30778 2011-10-08  Bruno Haible  <bruno@clisp.org>
30780         Tests: Avoid link failures w.r.t. libintl.
30781         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
30782         $(LIBINTL).
30783         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
30784         $(LIBINTL).
30785         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
30786         against $(LIBINTL).
30787         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
30788         $(LIBINTL).
30789         * modules/openat-tests (Makefile.am): Link test-fchmodat against
30790         $(LIBINTL).
30791         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
30793 2011-10-08  Bruno Haible  <bruno@clisp.org>
30795         pow tests: Defeat compiler optimizations.
30796         * tests/test-pow.c (main): Assign arguments to x and y before use.
30798 2011-10-08  Bruno Haible  <bruno@clisp.org>
30800         gnulib-tool: Improve last commit.
30801         * gnulib-tool (func_modules_transitive_closure): Simplify code.
30802         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
30803         ignore dependencies that are not among the modules list.
30805 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
30807         gnulib-tool: don't follow dependencies to avoided modules
30808         This fixes a bug that is related to the previous one.
30809         * gnulib-tool (func_modules_transitive_closure)
30810         (func_emit_autoconf_snippets):
30811         Check whether a dependency is acceptable before using it.
30812         (--extract-dependencies): Report an error if --avoid is also used,
30813         since this combination of options is not yet supported.
30815         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
30816         Problem reported by Peter Dyballa in
30817         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
30818         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
30819         when echoing "$condition".
30821 2011-10-07  Bruno Haible  <bruno@clisp.org>
30823         Fix documentation about math functions on MacOS X.
30824         * doc/posix-functions/exp2.texi: Don't say the function is missing on
30825         MacOS X 10.5.
30826         * doc/posix-functions/fdim.texi: Likewise.
30827         * doc/posix-functions/feclearexcept.texi: Likewise.
30828         * doc/posix-functions/fegetenv.texi: Likewise.
30829         * doc/posix-functions/fegetround.texi: Likewise.
30830         * doc/posix-functions/feholdexcept.texi: Likewise.
30831         * doc/posix-functions/feraiseexcept.texi: Likewise.
30832         * doc/posix-functions/fesetenv.texi: Likewise.
30833         * doc/posix-functions/fesetround.texi: Likewise.
30834         * doc/posix-functions/fetestexcept.texi: Likewise.
30835         * doc/posix-functions/feupdateenv.texi: Likewise.
30836         * doc/posix-functions/fmax.texi: Likewise.
30837         * doc/posix-functions/fmin.texi: Likewise.
30838         * doc/posix-functions/log2.texi: Likewise.
30839         * doc/posix-functions/modff.texi: Likewise.
30840         * doc/posix-functions/nan.texi: Likewise.
30841         * doc/posix-functions/nanf.texi: Likewise.
30842         * doc/posix-functions/nextafterf.texi: Likewise.
30843         * doc/posix-functions/remquo.texi: Likewise.
30845 2011-10-07  Bruno Haible  <bruno@clisp.org>
30847         modff: Drop assumption about library that defines modff.
30848         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
30849         AC_CHECK_FUNCS.
30850         * modules/modff (Files): Add m4/mathfunc.m4.
30852 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
30854         raise tests: Avoid a GCC warning.
30855         * tests/test-raise.c (handler): Use _Noreturn.
30857 2011-10-07  Bruno Haible  <bruno@clisp.org>
30859         Tests for module 'ldexpf'.
30860         * modules/ldexpf-tests: New file.
30861         * tests/test-ldexpf.c: New file.
30863         New module 'ldexpf'.
30864         * lib/math.in.h (ldexpf): New declaration.
30865         * lib/ldexpf.c: New file.
30866         * m4/ldexpf.m4: New file.
30867         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
30868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
30869         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
30870         * modules/ldexpf: New file.
30871         * tests/test-math-c++.cc: Check the declaration of ldexpf.
30872         * doc/posix-functions/ldexpf.texi: Mention the new module.
30874 2011-10-06  Bruno Haible  <bruno@clisp.org>
30876         frexpf: Work around problems on IRIX and mingw.
30877         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
30878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
30879         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
30880         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
30881         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
30882         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
30883         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
30885 2011-10-06  Bruno Haible  <bruno@clisp.org>
30887         fabsf: Drop assumption about library that defines fabsf.
30888         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
30889         AC_CHECK_FUNCS.
30890         * modules/fabsf (Files): Add m4/mathfunc.m4.
30892 2011-10-06  Bruno Haible  <bruno@clisp.org>
30894         frexpf: Drop assumption about library that defines frexpf.
30895         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
30896         'int *', 'float *', 'long double *', 'float', 'long double'.
30897         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
30898         AC_CHECK_FUNCS.
30899         * modules/frexpf (Files): Add m4/mathfunc.m4.
30901         Tests for module 'frexpf'.
30902         * modules/frexpf-tests: New file.
30903         * tests/test-frexpf.c: New file.
30905         New module 'frexpf'.
30906         * lib/math.in.h (frexpf): New declaration.
30907         * lib/frexpf.c: New file.
30908         * m4/frexpf.m4: New file.
30909         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
30910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
30911         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
30912         * modules/frexpf: New file.
30913         * tests/test-math-c++.cc: Check the declaration of frexpf.
30914         * doc/posix-functions/frexpf.texi: Mention the new module.
30916 2011-10-06  Bruno Haible  <bruno@clisp.org>
30918         math: Sort function declarations of math.in.h.
30919         * lib/math.in.h (frexp, logb): Move declarations.
30921 2011-10-05  Bruno Haible  <bruno@clisp.org>
30923         Tests for module 'modff'.
30924         * modules/modff-tests: New file.
30925         * tests/test-modff.c: New file.
30927         New module 'modff'.
30928         * lib/math.in.h (modff): New declaration.
30929         * lib/modff.c: New file.
30930         * m4/modff.m4: New file.
30931         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
30932         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
30933         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
30934         * modules/modff: New file.
30935         * tests/test-math-c++.cc: Check the declaration of modff.
30936         * doc/posix-functions/modff.texi: Mention the new module.
30938         modf tests: Make test sharper.
30939         * tests/test-modf.c (main): Strengthen upper bound.
30941         modf: Use a .m4 file.
30942         * m4/modf.m4: New file.
30943         * modules/modf (Files): Add it.
30944         (configure.ac): Just invoke gl_FUNC_MODF.
30946 2011-10-05  Bruno Haible  <bruno@clisp.org>
30948         Tests for module 'fmodf'.
30949         * modules/fmodf-tests: New file.
30950         * tests/test-fmodf.c: New file.
30952         New module 'fmodf'.
30953         * lib/math.in.h (fmodf): New declaration.
30954         * lib/fmodf.c: New file.
30955         * m4/fmodf.m4: New file.
30956         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
30957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
30958         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
30959         * modules/fmodf: New file.
30960         * tests/test-math-c++.cc: Check the declaration of fmodf.
30961         * doc/posix-functions/fmodf.texi: Mention the new module.
30963         fmod: Use a .m4 file.
30964         * m4/fmod.m4: New file.
30965         * modules/fmod (Files): Add it.
30966         (configure.ac): Just invoke gl_FUNC_FMOD.
30968 2011-10-05  Bruno Haible  <bruno@clisp.org>
30970         Tests for module 'fabsf'.
30971         * modules/fabsf-tests: New file.
30972         * tests/test-fabsf.c: New file.
30974         New module 'fabsf'.
30975         * lib/math.in.h (fabsf): New declaration.
30976         * lib/fabsf.c: New file.
30977         * m4/fabsf.m4: New file.
30978         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
30979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
30980         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
30981         * modules/fabsf: New file.
30982         * tests/test-math-c++.cc: Check the declaration of fabsf.
30983         * doc/posix-functions/fabsf.texi: Mention the new module.
30985         fabs: Use a .m4 file.
30986         * m4/fabs.m4: New file.
30987         * modules/fabs (Files): Add it.
30988         (configure.ac): Just invoke gl_FUNC_FABS.
30990 2011-10-05  Jim Meyering  <meyering@redhat.com>
30992         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
30993         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
30994         ls -lL regression introduced in coreutils-8.12, it does so at the
30995         cost of an additional stat call in the common case.  Besides, now
30996         that the kernel change that prompted commit 95f7c57f has been reverted
30997         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
30998         we have no use for commit 95f7c57f, "file-has-acl: use
30999         acl_extended_file_nofollow if available".
31001 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
31003         file-has-acl: revert unintended change in behavior of ls -L
31004         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
31005         derived from...
31006         (file_has_acl): ...code here.  Call it.
31007         This problem was introduced with 2011-07-22 commit 95f7c57f,
31008         "file-has-acl: use acl_extended_file_nofollow if available".
31009         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
31011 2011-10-03  Bruno Haible  <bruno@clisp.org>
31013         poll: Avoid link errors on MSVC.
31014         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
31015         * modules/poll (Depends-on): Add sockets.
31016         (Link): New section.
31017         * NEWS: Mention the change.
31018         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
31019         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
31020         $(LIB_POLL) instead of $(LIBSOCKET).
31022 2011-10-03  Bruno Haible  <bruno@clisp.org>
31024         sys_select tests: Fix link error on MSVC 9.
31025         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
31026         with $(LIB_SELECT) instead of $(LIBSOCKET).
31028 2011-10-03  Bruno Haible  <bruno@clisp.org>
31030         sys_select: Fix compilation error on mingw.
31031         * lib/sys_select.in.h: On native Windows, include <io.h>.
31033 2011-10-03  Bruno Haible  <bruno@clisp.org>
31035         wmemset: Support for MSVC.
31036         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
31037         whether wmemset() exists.
31039 2011-10-03  Bruno Haible  <bruno@clisp.org>
31041         wmemmove: Support for MSVC.
31042         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
31043         whether wmemmove() exists.
31045 2011-10-03  Bruno Haible  <bruno@clisp.org>
31047         wmemcpy: Support for MSVC.
31048         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
31049         whether wmemcpy() exists.
31051 2011-10-03  Bruno Haible  <bruno@clisp.org>
31053         wmemcmp: Support for MSVC.
31054         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
31055         whether wmemcmp() exists.
31057 2011-10-03  Bruno Haible  <bruno@clisp.org>
31059         wmemchr: Support for MSVC.
31060         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
31061         whether wmemchr() exists.
31063 2011-10-03  Bruno Haible  <bruno@clisp.org>
31065         glthread/*, strsignal: Support for MSVC.
31066         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
31067         including <winsock.h> on MSVC 9.
31068         * lib/glthread/lock.h: Likewise.
31069         * lib/glthread/thread.h: Likewise.
31070         * lib/glthread/tls.h: Likewise.
31071         * lib/glthread/yield.h: Likewise.
31072         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
31073         if HAVE_UNISTD_H is false.
31074         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
31076 2011-10-03  Bruno Haible  <bruno@clisp.org>
31078         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
31079         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
31080         Set to 100000.
31082 2011-10-03  Bruno Haible  <bruno@clisp.org>
31084         acl: Fix specification.
31085         * lib/file-has-acl.c (file_has_acl): Fix specification.
31087 2011-10-03  Bruno Haible  <bruno@clisp.org>
31089         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
31090         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
31091         (compute_curr_prefix, shared_library_fullname,
31092         find_shared_library_fullname, get_shared_library_fullname, relocate):
31093         Use it together with PIC && INSTALLDIR.
31094         Reported by <jojelino@gmail.com>
31095         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
31097 2011-10-01  Jim Meyering  <meyering@redhat.com>
31099         maint.mk: adjust a release-related rule not to require use of gzip
31100         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
31101         Instead, check each file in $(DIST_ARCHIVES).  This is better for
31102         projects that build only .tar.xz files.  Also fix an erroneous test.
31104         test-linkat: don't leave behind a temporary file
31105         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
31106         Otherwise, coreutils' "make distcheck" would fail with this:
31107           Only in /c/cu/tests/torture/coreutils/test/\
31108             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
31109           make[2]: *** [my-distcheck] Error 1
31111         float, math: add omitted file
31112         * lib/itold.c: Add file, required for yesterday's float change.
31114 2011-10-01  Bruno Haible  <bruno@clisp.org>
31116         isinf: Fix for OpenBSD/x86.
31117         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
31118         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
31119         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
31121 2011-10-01  Bruno Haible  <bruno@clisp.org>
31123         isfinite: Fix syntax error in configure test.
31124         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
31126         isfinite: Fix typo.
31127         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
31128         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
31130 2011-10-01  Bruno Haible  <bruno@clisp.org>
31132         nonblocking tests: Fix test failure on Linux/IA-64.
31133         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
31134         Set to 270000.
31136 2011-10-01  Bruno Haible  <bruno@clisp.org>
31138         mkfifoat tests: Fix a test failure on mingw.
31139         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
31140         with error ENOSYS.
31142 2011-09-30  Bruno Haible  <bruno@clisp.org>
31144         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
31145         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
31146         'long double'. Set REPLACE_ITOLD.
31147         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
31148         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
31149         * lib/itold.c: New file.
31150         * modules/float (Files): Add lib/itold.c.
31151         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
31152         (Makefile.am): Substitute REPLACE_ITOLD.
31153         * modules/math (Depends-on): Add float.
31154         (Makefile.am): Substitute REPLACE_ITOLD.
31155         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
31156         * doc/posix-headers/math.texi: Likewise.
31157         * doc/posix-functions/logl.texi: Likewise.
31159 2011-09-30  Bruno Haible  <bruno@clisp.org>
31161         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
31162         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
31163         Set to 140000.
31165 2011-09-30  Bruno Haible  <bruno@clisp.org>
31167         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
31168         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
31169         invocation, say "right after AC_PROG_CC_STDC", not "right after
31170         AC_PROG_CC".
31171         Reported by Gary V. Vaughan <gary@gnu.org>.
31173 2011-09-30  Bruno Haible  <bruno@clisp.org>
31175         Centralize C99 requirement.
31176         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
31177         * modules/stdarg (configure.ac-early): Invoke it instead of
31178         AC_PROG_CC_STDC.
31179         Reported by Gary V. Vaughan and Paul Eggert.
31181 2011-09-29  Bruno Haible  <bruno@clisp.org>
31183         float: Fix LDBL_MAX value on Linux/PowerPC.
31184         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
31185         on Linux/PowerPC.
31186         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
31187         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
31188         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
31189         platform.
31190         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
31192 2011-09-29  Bruno Haible  <bruno@clisp.org>
31194         doc: Improve doc about gl_EARLY.
31195         * doc/gnulib-tool.texi (Initial import): Mention where to place an
31196         AC_PROG_CC_STDC invocation.
31197         Reported by Gary V. Vaughan <gary@gnu.org>.
31199 2011-09-28  Bruno Haible  <bruno@clisp.org>
31201         fgetc, fputc, fread, fwrite tests: Fix link error.
31202         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
31203         on non-MSVC platforms.
31204         * tests/test-fputc.c (main): Likewise.
31205         * tests/test-fread.c (main): Likewise.
31206         * tests/test-fwrite.c (main): Likewise.
31207         Reported by Jim Meyering.
31209 2011-09-27  Bruno Haible  <bruno@clisp.org>
31211         fputc, fwrite tests: Avoid test failure on MSVC.
31212         * tests/test-fgetc.c: Include msvc-inval.h.
31213         (main): Invoke gl_msvc_inval_ensure_handler.
31214         * tests/test-fputc.c: Include msvc-inval.h.
31215         (main): Invoke gl_msvc_inval_ensure_handler.
31216         * tests/test-fread.c: Include msvc-inval.h.
31217         (main): Invoke gl_msvc_inval_ensure_handler.
31218         * tests/test-fwrite.c: Include msvc-inval.h.
31219         (main): Invoke gl_msvc_inval_ensure_handler.
31220         * modules/fgetc-tests (Depends-on): Add msvc-inval.
31221         * modules/fputc-tests (Depends-on): Likewise.
31222         * modules/fread-tests (Depends-on): Likewise.
31223         * modules/fwrite-tests (Depends-on): Likewise.
31225 2011-09-27  Bruno Haible  <bruno@clisp.org>
31227         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
31228         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
31229         (raise): Remove older, duplicated declaration.
31230         (_gl_raise_SIGPIPE): New declaration.
31231         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
31232         (rpl_raise): Remove function.
31233         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
31234         a gnulib-defined SIGPIPE here.
31235         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
31236         'sigprocmask' has detected missing signal-blocking and the module
31237         'sigpipe' is enabled.
31238         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
31240 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
31242         base64-tests: avoid memory leak
31243         * tests/test-base64.c (main): Plug memory leak.
31245         base32: new module
31246         * modules/base32: New module.
31247         * lib/base32.c: New file.
31248         * lib/base32.h: Likewise.
31249         * m4/base32.m4: Likewise.
31250         * modules/base32-tests: New test.
31251         * tests/test-base32.c: Likewise.
31252         * MODULES.html.sh (Misc): Mention it.
31254 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31256         gnulib: use more-standard license notice wording
31257         * gnulib-tool (func_emit_copyright_notice): When emitting a
31258         license notice into a file, use the standard wording as suggested
31259         by the current information for GNU maintainers, except say "file"
31260         rather than "program".  The new wording gives a license version
31261         number, which addresses an issue raised by Glenn Morris in
31262         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
31263         * m4/onceonly.m4: Use that same wording here, too.
31265         dup2: minor simplification
31266         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
31267         as lib/dup2.c no longer uses 'inline'.
31269 2011-09-25  Bruno Haible  <bruno@clisp.org>
31271         strings: Fix compilation error on MSVC.
31272         * lib/strings.in.h: Include <stddef.h> for size_t.
31274 2011-09-25  Bruno Haible  <bruno@clisp.org>
31276         fflush et al.: Document limitation on MSVC.
31277         * doc/posix-functions/fflush.texi: Document possible crash in handling
31278         mode other than DEFAULT_HANDLING.
31279         * doc/posix-functions/fgetc.texi: Likewise.
31280         * doc/posix-functions/fputc.texi: Likewise.
31281         * doc/posix-functions/fread.texi: Likewise.
31282         * doc/posix-functions/fwrite.texi: Likewise.
31284 2011-09-25  Bruno Haible  <bruno@clisp.org>
31286         msvc-inval: Allow three invalid parameter handling modes.
31287         * lib/msvc-inval.h: Don't include <stdlib.h> here.
31288         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
31289         macros.
31290         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
31291         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
31292         SANE_LIBRARY_HANDLING as a no-op.
31293         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
31294         <stdlib.h>.
31295         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
31297 2011-09-25  Bruno Haible  <bruno@clisp.org>
31299         msvc-inval: Make handler multithread-safe.
31300         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
31301         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
31302         declarations.
31303         (gl_msvc_inval_current): New declaration.
31304         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31305         Operate on the structure returned by gl_msvc_inval_current().
31306         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
31307         Remove varaiables.
31308         (tls_index, tls_initialized): New variables.
31309         (not_per_thread): New variable.
31310         (gl_msvc_inval_current): New function.
31311         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
31312         returned by gl_msvc_inval_current().
31314 2011-09-25  Bruno Haible  <bruno@clisp.org>
31316         msvc-inval: Install handler globally.
31317         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
31318         !_MSC_VER.
31319         (gl_msvc_invalid_parameter_handler): Remove declaration.
31320         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
31321         declarations.
31322         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
31323         Install the handler globally, don't uninstall it.
31324         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
31325         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
31326         currently valid, call RaiseException instead.
31327         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
31328         for !_MSC_VER.
31330 2011-09-25  Bruno Haible  <bruno@clisp.org>
31332         strerror_r-posix: Fix for MSVC 9.
31333         * lib/strerror_r.c (local_snprintf): New function.
31334         (snprintf): Define to local_snprintf, not to _snprintf.
31336 2011-09-25  Bruno Haible  <bruno@clisp.org>
31338         ftruncate: Support for MSVC 9.
31339         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
31340         (chsize_nothrow): New function.
31341         (chsize): Redefine as a macro.
31342         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
31343         * modules/ftruncate (Depends-on): Add msvc-inval.
31345 2011-09-25  Bruno Haible  <bruno@clisp.org>
31347         New module 'fstat'.
31348         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
31349         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
31350         * lib/fchdir.c (rpl_fstat): Remove function.
31351         * m4/fstat.m4: New file.
31352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
31353         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
31354         declared.
31355         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
31356         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
31357         * modules/fstat: New file.
31358         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
31359         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
31360         is set.
31361         * doc/posix-functions/fstat.texi: Mention the new module and the
31362         problem on MSVC.
31363         * NEWS: Mention the change.
31364         * modules/acl (Depends-on): Add fstat.
31365         * modules/chdir-safer (Depends-on): Likewise.
31366         * modules/chown (Depends-on): Likewise.
31367         * modules/copy-file (Depends-on): Likewise.
31368         * modules/fchdir (Depends-on): Likewise.
31369         * modules/fdopendir (Depends-on): Likewise.
31370         * modules/fopen (Depends-on): Likewise.
31371         * modules/fts (Depends-on): Likewise.
31372         * modules/getcwd (Depends-on): Likewise.
31373         * modules/isapipe (Depends-on): Likewise.
31374         * modules/linkat (Depends-on): Likewise.
31375         * modules/lseek (Depends-on): Likewise.
31376         * modules/mkdir-p (Depends-on): Likewise.
31377         * modules/open (Depends-on): Likewise.
31378         * modules/openat (Depends-on): Likewise.
31379         * modules/read-file (Depends-on): Likewise.
31380         * modules/renameat (Depends-on): Likewise.
31381         * modules/utimens (Depends-on): Likewise.
31383 2011-09-25  Bruno Haible  <bruno@clisp.org>
31385         linkat: Fix compilation on MSVC 9.
31386         * lib/linkat.c: Don't include <stdint.h>.
31388 2011-09-25  Bruno Haible  <bruno@clisp.org>
31390         fclose: Support for MSVC 9.
31391         * lib/fclose.c: Include msvc-inval.h.
31392         (fclose_nothrow): New function.
31393         (rpl_fclose): Use it.
31394         * modules/fclose (Depends-on): Add msvc-inval.
31395         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
31397 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
31399         dup2: minor simplifications
31400         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
31401         that it's a performance win.
31402         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
31403         ! defined __CYGWIN__)" to "ifdef F_GETFL".
31405 2011-09-24  Jim Meyering  <meyering@redhat.com>
31407         test-futimens: avoid a warning from gcc -Wshadow
31408         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
31409         to avoid a shadowing warning.
31411 2011-09-24  Bruno Haible  <bruno@clisp.org>
31413         fdopen: Support for MSVC 9.
31414         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
31415         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
31416         * lib/fdopen.c: Include msvc-inval.h.
31417         (fdopen_nothrow): New function.
31418         (rpl_fdopen): Use it.
31419         * modules/fdopen (Depends-on): Add msvc-inval.
31420         * modules/fclose-tests (Depends-on): Add fdopen.
31421         * modules/fflush-tests (Depends-on): Likewise.
31422         * modules/fgetc-tests (Depends-on): Likewise.
31423         * modules/fputc-tests (Depends-on): Likewise.
31424         * modules/fread-tests (Depends-on): Likewise.
31425         * modules/freopen-tests (Depends-on): Likewise.
31426         * modules/fseeko-tests (Depends-on): Likewise.
31427         * modules/ftello-tests (Depends-on): Likewise.
31428         * modules/fwrite-tests  (Depends-on): Likewise.
31429         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
31431 2011-09-24  Bruno Haible  <bruno@clisp.org>
31433         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
31434         * modules/fgetc-tests (Depends-on): Add unistd.
31435         * modules/fputc-tests (Depends-on): Likewise.
31436         * modules/fread-tests (Depends-on): Likewise.
31437         * modules/fwrite-tests (Depends-on): Likewise.
31439 2011-09-24  Bruno Haible  <bruno@clisp.org>
31441         dup: Simplify autoconf test.
31442         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
31443         on gl_MSVC_INVAL's result.
31445 2011-09-24  Bruno Haible  <bruno@clisp.org>
31447         Tests for function fwrite().
31448         * modules/fwrite-tests: New file.
31449         * tests/test-fwrite.c: New file.
31450         * modules/stdio-tests (Depends-on): Add fwrite-tests.
31452         Tests for function fread().
31453         * modules/fread-tests: New file.
31454         * tests/test-fread.c: New file.
31455         * modules/stdio-tests (Depends-on): Add fread-tests.
31457         Activate fputc tests.
31458         * modules/stdio-tests (Depends-on): Add fputc-tests.
31460         Enhance fgetc, fputc tests.
31461         * tests/test-fgetc.c (main): Also test the stream's error indicator.
31462         * tests/test-fputc.c (main): Likewise.
31464 2011-09-24  Bruno Haible  <bruno@clisp.org>
31466         write: Support for MSVC 9.
31467         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31468         is not 1.
31469         * lib/write.c (write_nothrow): New function.
31470         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
31471         not 1. Use write_nothrow.
31472         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
31473         invalid parameter handler.
31474         (gl_PREREQ_WRITE): New macro.
31475         * modules/write (Depends-on): Add msvc-inval.
31476         (configure.ac): Invoke gl_PREREQ_WRITE.
31477         * doc/posix-functions/write.texi: Mention the problem on MSVC.
31479 2011-09-24  Bruno Haible  <bruno@clisp.org>
31481         read: Fix last commit.
31482         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
31484 2011-09-24  Bruno Haible  <bruno@clisp.org>
31486         dup2: Fix last commit.
31487         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
31488         (rpl_dup2): Disable fcntl workaround on native Windows.
31490         sigprocmask: Make code safer.
31491         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
31492         section that changes macro definitions for this compilation unit.
31494 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
31496         dup2: clarify by coalescing Windows-specific material
31497         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
31498         "msvc-nothrow.h"' to the Windows-specific section, so that the
31499         Emacs source need not contain these include files.
31500         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
31501         Windows-specific fixes into this function rather than just the
31502         nothrow fix, as this shortens and clarifies the code.  Always
31503         define as a function, as that's a bit cleaner than having it be
31504         sometimes a function and sometimes a macro.
31505         (rpl_dup2): Move the Windows-specific stuff out of here and into
31506         ms_windows_dup2.  Don't protect the Haiku-related fix with
31507         "#if !defined __linux__", as the same code also works around
31508         a Linux kernel bug, and it doesn't add any system calls on any
31509         platform.  Add comment about FreeBSD 6.1.
31511         sigprocmask: move #include directive
31512         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
31513         Windows-specific section, so that the Emacs source need not
31514         contain msvc-inval.h.
31516 2011-09-23  Bruno Haible  <bruno@clisp.org>
31518         read: Support for MSVC 9.
31519         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
31520         is not 1.
31521         * lib/read.c (read_nothrow): New function.
31522         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
31523         read_nothrow.
31524         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
31525         invalid parameter handler.
31526         (gl_PREREQ_READ): New macro.
31527         * modules/read (Depends-on): Add msvc-inval.
31528         (configure.ac): Invoke gl_PREREQ_READ.
31529         * doc/posix-functions/read.texi: Mention the problem on MSVC.
31531 2011-09-23  Bruno Haible  <bruno@clisp.org>
31533         close: Support for MSVC 9.
31534         * lib/close.c: Include <errno.h>, msvc-inval.h.
31535         (close_nothrow): New function.
31536         (rpl_close): Use it.
31537         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
31538         invalid parameter handler.
31539         * modules/close (Depends-on): Add msvc-inval.
31540         * modules/dup2-tests (Depends-on): Add close.
31541         * modules/dup3-tests (Depends-on): Likewise.
31542         * modules/fcntl-tests (Depends-on): Likewise.
31543         * modules/spawn-pipe-tests (Depends-on): Likewise.
31544         * modules/unistd-safer-tests (Depends-on): Likewise.
31545         * doc/posix-functions/close.texi: Mention the problem on MSVC.
31547 2011-09-23  Bruno Haible  <bruno@clisp.org>
31549         New module 'dup'.
31550         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
31551         Allow replacement.
31552         * lib/dup.c: New file.
31553         * lib/fchdir.c (rpl_dup): Remove function.
31554         * m4/dup.m4: New file.
31555         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
31556         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
31557         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
31558         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
31559         * modules/dup: New file.
31560         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
31561         'dup' module is in use.
31562         * modules/fdopendir (Depends-on): Add dup.
31563         * modules/fdutimensat-tests (Depends-on): Likewise.
31564         * modules/fts (Depends-on): Likewise.
31565         * modules/futimens-tests (Depends-on): Likewise.
31566         * modules/posix_spawnp-tests (Depends-on): Likewise.
31567         * modules/unistd-safer-tests (Depends-on): Likewise.
31568         * modules/utimens-tests (Depends-on): Likewise.
31569         * doc/posix-functions/dup.texi: Mention the new module and the problem
31570         on MSVC.
31572 2011-09-23  Bruno Haible  <bruno@clisp.org>
31574         getdtablesize: Support for MSVC 9.
31575         * lib/getdtablesize.c: Include msvc-inval.h.
31576         (_setmaxstdio_nothrow): New function.
31577         (_setmaxstdio): Redefine it.
31578         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
31579         * modules/getdtablesize (Depends-on): Add msvc-inval.
31580         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
31582 2011-09-23  Bruno Haible  <bruno@clisp.org>
31584         signal-h: Rename from signal.
31585         * modules/signal-h: Renamed from modules/signal.
31586         * modules/pthread_sigmask (Depends-on): Update.
31587         * modules/raise (Depends-on): Likewise.
31588         * modules/sigaction (Depends-on): Likewise.
31589         * modules/sigpipe (Depends-on): Likewise.
31590         * modules/sigprocmask (Depends-on): Likewise.
31591         * modules/sys_select (Depends-on): Likewise.
31592         * modules/signal-h-tests: Renamed from modules/signal-tests.
31593         (Files, Depends-on, Makefile.am): Update.
31594         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
31595         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
31596         (Files, Makefile.am): Update.
31597         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
31598         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
31599         * modules/signal: New placeholder file.
31600         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
31601         * doc/posix-headers/signal.texi: Update.
31602         * NEWS: Mention the change.
31604 2011-09-23  Bruno Haible  <bruno@clisp.org>
31606         sigprocmask: Avoid crashes through signal() on MSVC 9.
31607         * lib/sigprocmask.c: Include msvc-inval.h.
31608         (signal_nothrow): New function.
31609         (signal): Redefine it.
31610         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
31611         * modules/sigprocmask (Depends-on): Add msvc-inval.
31612         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
31614 2011-09-23  Bruno Haible  <bruno@clisp.org>
31616         Tests for module 'raise'.
31617         * modules/raise-tests: New file.
31618         * tests/test-raise.c: New file.
31620         raise: Support for MSVC.
31621         * lib/signal.in.h (raise): New declaration.
31622         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
31623         for native Windows platforms.
31624         * m4/raise.m4: New file.
31625         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
31626         HAVE_RAISE, REPLACE_RAISE.
31627         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
31628         REPLACE_RAISE.
31629         * modules/raise (Status, Notice): Remove fields.
31630         (Files): Add m4/raise.m4.
31631         (Depends-on): Add signal, msvc-inval.
31632         (configure.ac): Use the common idioms.
31633         (Maintainer): Add me.
31634         * tests/test-signal-c++.cc: Check the signature of raise.
31635         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
31637 2011-09-23  Bruno Haible  <bruno@clisp.org>
31639         pipe2: Fix compilation on pre-C99 compilers.
31640         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
31642 2011-09-23  Bruno Haible  <bruno@clisp.org>
31644         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
31645         * lib/msvc-nothrow.h: New file.
31646         * lib/msvc-nothrow.c: New file.
31647         * m4/msvc-nothrow.m4: New file.
31648         * modules/msvc-nothrow: New file.
31649         * lib/dup2.c: Include msvc-nothrow.h.
31650         (rpl_dup2): No need to protect _get_osfhandle call here.
31651         * lib/accept4.c: Include msvc-nothrow.h.
31652         * lib/error.c: Likewise.
31653         * lib/fcntl.c: Likewise.
31654         * lib/lseek.c: Likewise.
31655         * lib/nonblocking.c: Likewise.
31656         * lib/poll.c: Likewise.
31657         * lib/read.c: Likewise.
31658         * lib/select.c: Likewise.
31659         * lib/sockets.h: Likewise.
31660         * lib/sockets.c: Likewise.
31661         * lib/stdio-read.c: Likewise.
31662         * lib/stdio-write.c: Likewise.
31663         * lib/write.c: Likewise.
31664         * lib/w32sock.h: Likewise.
31665         * lib/w32spawn.h: Likewise.
31666         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
31667         * lib/fsync.c: Likewise.
31668         * lib/isapipe.c: Likewise.
31669         * modules/dup2 (Depends-on): Add msvc-nothrow.
31670         * modules/accept4 (Depends-on): Likewise.
31671         * modules/error (Depends-on): Likewise.
31672         * modules/fcntl (Depends-on): Likewise.
31673         * modules/lseek (Depends-on): Likewise.
31674         * modules/nonblocking (Depends-on): Likewise.
31675         * modules/poll (Depends-on): Likewise.
31676         * modules/read (Depends-on): Likewise.
31677         * modules/select (Depends-on): Likewise.
31678         * modules/sockets (Depends-on): Likewise.
31679         * modules/sigpipe (Depends-on): Likewise.
31680         * modules/write (Depends-on): Likewise.
31681         * modules/accept (Depends-on): Likewise.
31682         * modules/bind (Depends-on): Likewise.
31683         * modules/connect (Depends-on): Likewise.
31684         * modules/gethostname (Depends-on): Likewise.
31685         * modules/getpeername (Depends-on): Likewise.
31686         * modules/getsockname (Depends-on): Likewise.
31687         * modules/getsockopt (Depends-on): Likewise.
31688         * modules/ioctl (Depends-on): Likewise.
31689         * modules/listen (Depends-on): Likewise.
31690         * modules/recv (Depends-on): Likewise.
31691         * modules/recvfrom (Depends-on): Likewise.
31692         * modules/send (Depends-on): Likewise.
31693         * modules/sendto (Depends-on): Likewise.
31694         * modules/setsockopt (Depends-on): Likewise.
31695         * modules/shutdown (Depends-on): Likewise.
31696         * modules/socket (Depends-on): Likewise.
31697         * modules/execute (Depends-on): Likewise.
31698         * modules/spawn-pipe (Depends-on): Likewise.
31699         * modules/flock (Depends-on): Likewise.
31700         * modules/fsync (Depends-on): Likewise.
31701         * modules/isapipe (Depends-on): Likewise.
31702         * tests/test-cloexec.c: Include msvc-nothrow.h.
31703         * tests/test-dup-safer.c: Likewise.
31704         * tests/test-dup2.c: Likewise.
31705         * tests/test-dup3.c: Likewise.
31706         * tests/test-fcntl.c: Likewise.
31707         * tests/test-pipe.c: Likewise.
31708         * tests/test-pipe2.c: Likewise.
31709         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
31710         * modules/unistd-safer-tests (Depends-on): Likewise.
31711         * modules/dup2-tests (Depends-on): Likewise.
31712         * modules/dup3-tests (Depends-on): Likewise.
31713         * modules/fcntl-tests (Depends-on): Likewise.
31714         * modules/pipe-posix-tests (Depends-on): Likewise.
31715         * modules/pipe2-tests (Depends-on): Likewise.
31717 2011-09-23  Bruno Haible  <bruno@clisp.org>
31719         dup2: Make code more maintainable.
31720         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
31721         (rpl_dup2): Use it.
31722         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
31723         * modules/dup2 (configure.ac): Invoke it.
31724         Reported by Paul Eggert.
31726 2011-09-23  Bruno Haible  <bruno@clisp.org>
31728         msvc-inval: Fix compilation error.
31729         * lib/msvc-inval.h: Include <excpt.h>.
31731 2011-09-23  Bruno Haible  <bruno@clisp.org>
31733         mkdir: Tweak for MSVC 9.
31734         * lib/sys_stat.in.h: Update comments.
31735         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
31737         Tests for module 'chdir'.
31738         * modules/chdir-tests: New file.
31739         * tests/test-chdir.c: New file.
31741         New module 'chdir'.
31742         * modules/chdir: New file.
31743         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
31744         (chdir): New declaration.
31745         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
31746         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
31747         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
31748         * tests/test-unistd-c++.cc: Check signature of chdir.
31749         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
31750         * modules/chdir-long (Depends-on): Add chdir.
31751         * modules/fchdir (Depends-on): Likewise.
31752         * modules/rename (Depends-on): Likewise.
31753         * modules/savewd (Depends-on): Likewise.
31755         rmdir: Support for mingw, MSVC 9.
31756         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
31757         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
31759         getcwd: Tweak for MSVC 9.
31760         * lib/unistd.in.h: Update comments.
31761         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
31763 2011-09-22  Bruno Haible  <bruno@clisp.org>
31765         strerror_r-posix: Avoid a link error on MSVC.
31766         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
31767         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
31769 2011-09-22  Bruno Haible  <bruno@clisp.org>
31771         select: Avoid link errors on MSVC.
31772         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
31773         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
31774         * modules/pselect (Link): Likewise.
31775         * NEWS: Mention the change.
31776         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
31777         test-select-stdin against $(LIB_SELECT).
31778         * modules/pselect-tests (Makefile.am): Link test-pselect against
31779         $(LIB_SELECT).
31781 2011-09-22  Bruno Haible  <bruno@clisp.org>
31783         select: Avoid compilation error on MSVC.
31784         * lib/select.c: Don't include <stdbool.h>.
31786 2011-09-21  Bruno Haible  <bruno@clisp.org>
31788         Consolidate all uses of PATH_MAX in *.m4 files.
31789         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
31790         macros.
31791         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
31792         and gl_PATHMAX_SNIPPET.
31793         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
31794         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
31795         * modules/chdir-long (Files): Add m4/pathmax.m4.
31796         * modules/getcwd (Files): Likewise.
31798 2011-09-21  Bruno Haible  <bruno@clisp.org>
31800         ftruncate: Un-deprecate, concentrate on Win32 support.
31801         * modules/ftruncate (Status, Notice): Remove sections.
31802         (Depends-on): Add largefile.
31803         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
31804         non-mingw platforms.
31805         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
31806         include <io.h>.
31807         * modules/perror-tests (Depends-on): Add ftruncate.
31808         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
31809         'ftruncate' module.
31811 2011-09-21  Bruno Haible  <bruno@clisp.org>
31813         Add dependencies to new dirent related modules.
31814         * modules/opendir (Depends-on): Add closedir.
31815         * modules/getcwd (Depends-on): Add opendir, closedir.
31816         * modules/dirent-safer-tests (Depends-on): Likewise.
31817         * modules/fdopendir-tests (Depends-on): Likewise.
31818         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
31819         * modules/renameat-tests (Depends-on): Likewise.
31821 2011-09-21  Bruno Haible  <bruno@clisp.org>
31823         opendir: Avoid compilation error on mingw.
31824         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
31825         * modules/opendir (Depends-on): Add unistd.
31827 2011-09-21  Bruno Haible  <bruno@clisp.org>
31829         ftruncate tests: Avoid a test failure on mingw.
31830         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
31832 2011-09-21  Bruno Haible  <bruno@clisp.org>
31834         select tests: Avoid test failures on OSF/1 5.1 and mingw.
31835         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
31836         native Windows.
31838 2011-09-21  Bruno Haible  <bruno@clisp.org>
31840         New module 'fdopen'.
31841         * lib/stdio.in.h (fdopen): New declaration.
31842         * lib/fdopen.c: New file.
31843         * m4/fdopen.m4: New file.
31844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
31845         REPLACE_FDOPEN.
31846         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
31847         REPLACE_FDOPEN.
31848         * modules/fdopen: New file.
31849         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
31850         * tests/test-stdio-c++.cc: Check signature of fdopen.
31851         * doc/posix-functions/fdopen.texi: Mention the new module.
31853 2011-09-21  Bruno Haible  <bruno@clisp.org>
31855         unlockpt tests: Avoid test failure on NetBSD 5.1.
31856         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
31857         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
31859 2011-09-21  Bruno Haible  <bruno@clisp.org>
31861         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
31862         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
31863         * tests/test-getlogin_r.c (main): Likewise.
31865 2011-09-20  Bruno Haible  <bruno@clisp.org>
31867         time tests: Don't require pid_t.
31868         * doc/posix-headers/time.texi: Revert last change.
31869         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
31870         * tests/test-time.c: Comment out the check for pid_t.
31872 2011-09-20  Bruno Haible  <bruno@clisp.org>
31874         fsync tests: Avoid a test failure on mingw.
31875         * tests/test-fsync.c (main): Allow a failure with EIO.
31877 2011-09-20  Bruno Haible  <bruno@clisp.org>
31879         euidaccess: Update comments.
31880         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
31882 2011-09-20  Bruno Haible  <bruno@clisp.org>
31884         Ensure EBADF returns for socket functions on mingw.
31885         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
31886         descriptor is invalid.
31887         * lib/bind.c (rpl_bind): Likewise.
31888         * lib/connect.c (rpl_connect): Likewise.
31889         * lib/getpeername.c (rpl_getpeername): Likewise.
31890         * lib/getsockname.c (rpl_getsockname): Likewise.
31891         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31892         * lib/listen.c (rpl_listen): Likewise.
31893         * lib/recv.c (rpl_recv): Likewise.
31894         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31895         * lib/send.c (rpl_send): Likewise.
31896         * lib/sendto.c (rpl_sendto): Likewise.
31897         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31898         * lib/shutdown.c (rpl_shutdown): Likewise.
31900 2011-09-20  Bruno Haible  <bruno@clisp.org>
31902         select tests: EBADF tests.
31903         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
31904         test_bad_fd): New functions.
31905         (test_function): Invoke also test_bad_fd.
31907 2011-09-20  Bruno Haible  <bruno@clisp.org>
31909         Tests for module 'posix_spawn_file_actions_addopen.
31910         * modules/posix_spawn_file_actions_addopen-tests: New file.
31911         * tests/test-posix_spawn_file_actions_addopen.c: New file.
31913         Tests for module 'posix_spawn_file_actions_adddup2'.
31914         * modules/posix_spawn_file_actions_adddup2-tests: New file.
31915         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
31917         Tests for module 'posix_spawn_file_actions_addclose'.
31918         * modules/posix_spawn_file_actions_addclose-tests: New file.
31919         * tests/test-posix_spawn_file_actions_addclose.c: New file.
31921 2011-09-20  Bruno Haible  <bruno@clisp.org>
31923         Tests for module 'unlockpt'.
31924         * modules/unlockpt-tests: New file.
31925         * tests/test-unlockpt.c: New file.
31926         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
31928         Tests for module 'grantpt'.
31929         * modules/grantpt-tests: New file.
31930         * tests/test-grantpt.c: New file.
31931         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
31933 2011-09-20  Bruno Haible  <bruno@clisp.org>
31935         freopen tests: EBADF tests.
31936         * tests/test-freopen.c: Include errno.h, unistd.h.
31937         (main): Add tests for EBADF, commented out for the moment.
31939         fclose tests: EBADF tests.
31940         * tests/test-fclose.c (main): Add tests for EBADF.
31942         fflush tests: EBADF tests.
31943         * tests/test-fflush.c: Include errno.h, macros.h.
31944         (main): Add tests for EBADF.
31946         ftello tests: EBADF tests.
31947         * tests/test-ftello4.sh: New file.
31948         * tests/test-ftello4.c: New file.
31949         * modules/ftello-tests (Files): Add them.
31950         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
31952         fseeko tests: EBADF tests.
31953         * tests/test-fseeko4.sh: New file.
31954         * tests/test-fseeko4.c: New file.
31955         * modules/fseeko-tests (Files): Add them.
31956         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
31958         Tests for function fputc().
31959         * modules/fputc-tests: New file.
31960         * tests/test-fputc.c: New file.
31961         * modules/stdio-tests (Depends-on): Add fputc-tests.
31963         Tests for function fgetc().
31964         * modules/fgetc-tests: New file.
31965         * tests/test-fgetc.c: New file.
31966         * modules/stdio-tests (Depends-on): Add fgetc-tests.
31968         Tests for function fdopen().
31969         * modules/fdopen-tests: New file.
31970         * tests/test-fdopen.c: New file.
31971         * modules/stdio-tests (Depends-on): Add fdopen-tests.
31973         Tests for module 'vdprintf'.
31974         * modules/vdprintf-tests: New file.
31975         * tests/test-vdprintf.c: New file.
31977         Tests for module 'dprintf'.
31978         * modules/dprintf-tests: New file.
31979         * tests/test-dprintf.c: New file.
31981 2011-09-20  Bruno Haible  <bruno@clisp.org>
31983         Tests for module 'ioctl'.
31984         * modules/ioctl-tests: New file.
31985         * tests/test-ioctl.c: New file.
31987 2011-09-20  Bruno Haible  <bruno@clisp.org>
31989         fcntl tests: EBADF tests.
31990         * tests/test-fcntl.c (main): Add more tests for EBADF.
31992 2011-09-20  Bruno Haible  <bruno@clisp.org>
31994         utimensat tests: EBADF tests.
31995         * tests/test-utimensat.c (main): Add tests for EBADF.
31997         renameat tests: EBADF tests.
31998         * tests/test-renameat.c (main): Add tests for EBADF.
32000         mkfifoat tests: EBADF tests.
32001         * tests/test-mkfifoat.c (main): Add tests for EBADF.
32003         readlinkat tests: EBADF tests.
32004         * tests/test-readlinkat.c (main): Add tests for EBADF.
32006         symlinkat tests: EBADF tests.
32007         * tests/test-symlinkat.c (main): Add tests for EBADF.
32009         linkat tests: EBADF tests.
32010         * tests/test-linkat.c (main): Add tests for EBADF.
32012         Tests for module 'faccessat'.
32013         * modules/faccessat-tests: New file.
32014         * tests/test-faccessat.c: New file.
32016         fdopendir tests: EBADF tests.
32017         * tests/test-fdopendir.c (main): Add more tests for EBADF.
32019         openat tests: EBADF tests.
32020         * tests/test-fchownat.c (main): Add tests for EBADF.
32021         * tests/test-fstatat.c (main): Likewise.
32022         * tests/test-mkdirat.c (main): Likewise.
32023         * tests/test-openat.c (main): Likewise.
32024         * tests/test-unlinkat.c (main): Likewise.
32025         * tests/test-fchmodat.c: New file.
32026         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
32027         (Makefile.am): Also run 'test-fchmodat'.
32029 2011-09-20  Bruno Haible  <bruno@clisp.org>
32031         utimens, futimens, fdutimensat tests: EBADF tests.
32032         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
32034         Tests for function fstat().
32035         * modules/fstat-tests: New file.
32036         * tests/test-fstat.c: New file.
32037         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
32039 2011-09-20  Bruno Haible  <bruno@clisp.org>
32041         test-ttyname_r tests: EBADF tests.
32042         * tests/test-ttyname_r.c (main): Add tests for EBADF.
32044         Tests for module 'isatty'.
32045         * modules/isatty-tests: New file.
32046         * tests/test-isatty.c: New file.
32048         Tests for module 'write'.
32049         * modules/write-tests: New file.
32050         * tests/test-write.c: New file.
32052         Tests for module 'read'.
32053         * modules/read-tests: New file.
32054         * tests/test-read.c: New file.
32056         pwrite tests: EBADF tests.
32057         * tests/test-pwrite.c (main): Add tests for EBADF.
32059         pread tests: EBADF tests.
32060         * tests/test-pread.c (main): Add tests for EBADF.
32062         lseek tests: EBADF tests.
32063         * tests/test-lseek.c (main): Add more tests for EBADF.
32065         Tests for module 'ftruncate'.
32066         * modules/ftruncate-tests: New file.
32067         * tests/test-ftruncate.sh: New file.
32068         * tests/test-ftruncate.c: New file.
32070         fsync tests: EBADF tests.
32071         * tests/test-fsync.c (main): Add more tests for EBADF.
32073         fdatasync tests: EBADF tests.
32074         * tests/test-fdatasync.c (main): Add more tests for EBADF.
32076         Tests for module 'fchown'.
32077         * modules/fchown-tests: New file.
32078         * tests/test-fchown.c: New file.
32080         Tests for module 'fchmod'.
32081         * modules/fchmod-tests: New file.
32082         * tests/test-fchmod.c: New file.
32084         fchdir tests: EBADF tests.
32085         * tests/test-fchdir.c (main): Add more tests for EBADF.
32087         dup2 tests: EBADF tests.
32088         * tests/test-dup2.c (main): Add more tests for EBADF.
32090         Tests for module 'dup'.
32091         * modules/dup-tests: New file.
32092         * tests/test-dup.c: New file.
32094         Tests for module 'close'.
32095         * modules/close-tests: New file.
32096         * tests/test-close.c: New file.
32098 2011-09-20  Bruno Haible  <bruno@clisp.org>
32100         Tests for module 'shutdown'.
32101         * modules/shutdown-tests: New file.
32102         * tests/test-shutdown.c: New file.
32104         Tests for module 'setsockopt'.
32105         * modules/setsockopt-tests: New file.
32106         * tests/test-setsockopt.c: New file.
32108         Tests for module 'sendto'.
32109         * modules/sendto-tests: New file.
32110         * tests/test-sendto.c: New file.
32112         Tests for module 'send'.
32113         * modules/send-tests: New file.
32114         * tests/test-send.c: New file.
32116         Tests for module 'recvfrom'.
32117         * modules/recvfrom-tests: New file.
32118         * tests/test-recvfrom.c: New file.
32120         Tests for module 'recv'.
32121         * modules/recv-tests: New file.
32122         * tests/test-recv.c: New file.
32124         Tests for module 'listen'.
32125         * modules/listen-tests: New file.
32126         * tests/test-listen.c: New file.
32128         Tests for module 'getsockopt'.
32129         * modules/getsockopt-tests: New file.
32130         * tests/test-getsockopt.c: New file.
32132         Tests for module 'getsockname'.
32133         * modules/getsockname-tests: New file.
32134         * tests/test-getsockname.c: New file.
32136         Tests for module 'getpeername'.
32137         * modules/getpeername-tests: New file.
32138         * tests/test-getpeername.c: New file.
32140         Tests for module 'connect'.
32141         * modules/connect-tests: New file.
32142         * tests/test-connect.c: New file.
32144         Tests for module 'bind'.
32145         * modules/bind-tests: New file.
32146         * tests/test-bind.c: New file.
32148         accept4 tests: Fix for native Windows.
32149         * tests/test-accept4.c: Include sockets.h.
32150         (main): Invoke gl_sockets_startup.
32151         * modules/accept4-tests (Depends-on): Add sockets.
32153         accept tests: Fix for native Windows.
32154         * tests/test-accept.c: Include sockets.h.
32155         (main): Invoke gl_sockets_startup.
32156         * modules/accept-tests (Depends-on): Add sockets.
32158 2011-09-19  Bruno Haible  <bruno@clisp.org>
32160         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
32161         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
32162         do...while(0).
32163         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
32164         Suggested by Paul Eggert.
32166 2011-09-19  Bruno Haible  <bruno@clisp.org>
32168         sched: Ensure pid_t is defined.
32169         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
32170         not define pid_t.
32171         * lib/sched.in.h: Include <sys/types.h>.
32172         * doc/posix-headers/sched.texi: Mention the pid_t problem.
32173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32175 2011-09-19  Bruno Haible  <bruno@clisp.org>
32177         msvc-inval: Ensure the entire expansion is a single statement.
32178         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
32179         of braces.
32181 2011-09-19  Jim Meyering  <meyering@redhat.com>
32183         tests: use printf, not echo in init.sh's warn_ function
32184         * tests/init.sh (warn_): Use printf, not echo.  The latter would
32185         misbehave when given strings containing a backslash or starting
32186         with e.g., -n.  James Youngman suggested setting IFS.
32188 2011-09-19  Eric Blake  <eblake@redhat.com>
32190         futimens: enhance test
32191         * tests/test-futimens.h (test_futimens): Also check for EBADF on
32192         closed non-negative fd.
32194         date: accept 'hence' as opposite of 'ago'
32195         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
32196         * tests/test-parse-datetime.c (main): Enhance test.
32197         Suggested by Jesse Wilson.
32199 2011-09-19  Jim Meyering  <meyering@redhat.com>
32201         getcwd: don't fail in a deep directory on a system without openat
32202         Before this change, getcwd would fail when called from a directory
32203         of depth PATH_MAX / 3 or greater.  That was due to the fact that
32204         the non-openat implementation used "..", "../..", "../../..", etc.
32205         to access ancestor directories.  With too many, that string would
32206         be longer than PATH_MAX.
32207         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
32208         using gnulib's openat replacement.
32209         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
32210         we're using the replacement function.
32212 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
32214         maint.mk: avoid warnings from perl about missing files
32215         * top/maint.mk (def_sym_regex): Ignore files listed in
32216         $(gl_other_headers_) that do not exist, say because a project
32217         does not use a corresponding module.
32219 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32221         stat: use pathmax.h only if needed
32222         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
32223         This is better for Emacs, which does not have a mingw port and
32224         therefore can avoid the pathmax module.
32226         utimens: remove dependency on dup2
32227         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
32228         to work around the Linux kernel bug.
32229         * modules/utimens (Depends-on): Remove dup2.
32231 2011-09-18  Bruno Haible  <bruno@clisp.org>
32233         inet_ntop, inet_pton: Look for it also in libresolv.
32234         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
32235         libnsl, search for it in libresolv.
32236         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32237         Needed on Solaris 7.
32239 2011-09-18  Bruno Haible  <bruno@clisp.org>
32241         accept, accept4 tests: Avoid link error on Solaris.
32242         * modules/accept-tests (Makefile.am): Link test-accept against
32243         $(LIBSOCKET).
32244         * modules/accept4-tests (Makefile.am): Link test-accept4 against
32245         $(LIBSOCKET).
32247         accept4: Avoid link error on Solaris.
32248         * modules/accept4 (Link): New section.
32250         socket functions: Avoid link errors on Solaris.
32251         * modules/accept (Depends-on): Add socketlib.
32252         (Link): New section.
32253         * modules/bind (Depends-on): Add socketlib.
32254         (Link): New section.
32255         * modules/connect (Depends-on): Add socketlib.
32256         (Link): New section.
32257         * modules/getpeername (Depends-on): Add socketlib.
32258         (Link): New section.
32259         * modules/getsockname (Depends-on): Add socketlib.
32260         (Link): New section.
32261         * modules/getsockopt (Depends-on): Add socketlib.
32262         (Link): New section.
32263         * modules/listen (Depends-on): Add socketlib.
32264         (Link): New section.
32265         * modules/recv (Depends-on): Add socketlib.
32266         (Link): New section.
32267         * modules/recvfrom (Depends-on): Add socketlib.
32268         (Link): New section.
32269         * modules/send (Depends-on): Add socketlib.
32270         (Link): New section.
32271         * modules/sendto (Depends-on): Add socketlib.
32272         (Link): New section.
32273         * modules/setsockopt (Depends-on): Add socketlib.
32274         (Link): New section.
32275         * modules/shutdown (Depends-on): Add socketlib.
32276         (Link): New section.
32277         * modules/socket (Depends-on): Add socketlib.
32278         (Link): New section.
32280 2011-09-18  Bruno Haible  <bruno@clisp.org>
32282         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
32283         * tests/test-ptsname.c (main): Terminate the test if it takes longer
32284         than 5 seconds.
32285         * modules/ptsname-tests (configure.ac): Test for alarm.
32287 2011-09-18  Bruno Haible  <bruno@clisp.org>
32289         posix_spawn_file_actions_add*: Fix module dependencies.
32290         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
32291         posix_spawn_file_actions_init.
32292         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
32293         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
32295 2011-09-18  Bruno Haible  <bruno@clisp.org>
32297         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
32298         * tests/test-rename.h (test_rename): Allow error code EEXIST.
32299         * tests/test-renameat.c (main): Likewise.
32301 2011-09-18  Bruno Haible  <bruno@clisp.org>
32303         Tests for module 'accept4'.
32304         * modules/accept4-tests: New file.
32305         * tests/test-accept4.c: New file.
32307 2011-09-18  Bruno Haible  <bruno@clisp.org>
32309         Tests for module 'accept'.
32310         * modules/accept-tests: New file.
32311         * tests/test-accept.c: New file.
32313 2011-09-18  Bruno Haible  <bruno@clisp.org>
32315         dup2: Support for MSVC.
32316         * lib/dup2.c: Include msvc-inval.h.
32317         (rpl_dup2): Handle invalid parameter notifications during dup2 and
32318         _get_osfhandle calls.
32319         * modules/dup2 (Depends-on): Add msvc-inval.
32320         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
32322         New module 'msvc-inval'.
32323         * lib/msvc-inval.h: New file.
32324         * lib/msvc-inval.c: New file.
32325         * m4/msvc-inval.m4: New file.
32326         * modules/msvc-inval: New file.
32328 2011-09-17  Bruno Haible  <bruno@clisp.org>
32330         Tests for module 'pclose'.
32331         * modules/pclose-tests: New file.
32333         New module 'pclose'.
32334         * lib/stdio.in.h (pclose): New declaration.
32335         * lib/pclose.c: New file.
32336         * m4/pclose.m4: New file.
32337         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
32338         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
32339         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
32340         * modules/pclose: New file.
32341         * modules/popen-tests (Depends-on): Add pclose.
32342         * modules/popen-safer-tests (Depends-on): Likewise.
32343         * doc/posix-functions/pclose.texi: Mention the new module.
32345 2011-09-17  Bruno Haible  <bruno@clisp.org>
32347         popen: Support for MSVC.
32348         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
32349         * lib/popen.c (popen): Provide alternate definition for native Windows.
32350         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
32351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
32352         * modules/popen (Depends-on, configure.ac): Update condition.
32353         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
32354         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
32355         fixed.
32357 2011-09-17  Bruno Haible  <bruno@clisp.org>
32359         isnanl, isnand, isnanf: Work around MSVC bug.
32360         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
32362 2011-09-17  Bruno Haible  <bruno@clisp.org>
32364         sys_socket tests: Fix recent mistake.
32365         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
32367 2011-09-17  Bruno Haible  <bruno@clisp.org>
32369         putenv: Support for MSVC.
32370         * modules/putenv (Depends-on): Add environ.
32371         * lib/putenv.c (environ): Disable declaration.
32372         * lib/unistd.in.h: Update comment.
32374 2011-09-17  Bruno Haible  <bruno@clisp.org>
32376         math: Avoid macro redefinition warnings on MSVC.
32377         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
32378         Undefine before redefining.
32380 2011-09-17  Bruno Haible  <bruno@clisp.org>
32382         doc: Mention functions which are declared as macros.
32383         * doc/posix-functions/*[fl].texi: Mention that some functions are
32384         defined as macros with arguments only.
32386 2011-09-17  Bruno Haible  <bruno@clisp.org>
32388         Add dependencies to new dirent related modules.
32389         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
32390         * modules/fts (Depends-on): Likewise.
32391         * modules/glob (Depends-on): Likewise.
32392         * modules/savedir (Depends-on): Likewise.
32393         * modules/scandir (Depends-on): Likewise.
32394         * modules/dirent-safer (Depends-on): Add opendir, closedir.
32395         * modules/fdopendir (Depends-on): Add opendir.
32397 2011-09-17  Bruno Haible  <bruno@clisp.org>
32399         inet_pton: Support for MSVC on Windows Vista or newer.
32400         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
32401         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
32402         HAVE_DECL_INET_PTON is defined.
32403         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32404         On platforms with <winsock2.h>, test whether inet_pton is declared in
32405         <ws2tcpip.h>. If so, arrange to replace it.
32406         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32407         REPLACE_INET_PTON.
32408         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
32409         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
32410         (Depends-on, configure.ac): Update condition.
32411         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
32413 2011-09-17  Bruno Haible  <bruno@clisp.org>
32415         inet_ntop: Support for MSVC on Windows Vista or newer.
32416         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
32417         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
32418         HAVE_DECL_INET_NTOP is defined.
32419         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
32420         On platforms with <winsock2.h>, test whether inet_ntop is declared in
32421         <ws2tcpip.h>. If so, arrange to replace it.
32422         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
32423         REPLACE_INET_NTOP.
32424         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
32425         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
32426         (Depends-on, configure.ac): Update condition.
32427         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
32429 2011-09-16  Eric Blake  <eblake@redhat.com>
32431         test-fsync: yet another enhancement
32432         * tests/test-fsync.c (main): Also test behavior on read-only text
32433         file.
32435 2011-09-16  Bruno Haible  <bruno@clisp.org>
32437         Enhance fsync, fdatasync tests.
32438         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
32439         * tests/test-fdatasync.c (main): Likewise.
32441 2011-09-16  Bruno Haible  <bruno@clisp.org>
32443         Support for MSVC compiler: Ensure mode_t gets defined.
32444         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
32445         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32446         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32447         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
32448         * tests/test-fcntl-h.c: Check that mode_t is defined.
32449         * tests/test-sys_stat.c: Likewise.
32450         * tests/test-sys_types.c: Likewise.
32451         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
32452         * doc/posix-headers/sys_stat.texi: Likewise.
32453         * doc/posix-headers/sys_types.texi: Likewise.
32455 2011-09-16  Bruno Haible  <bruno@clisp.org>
32457         sys_stat: Support for MSVC.
32458         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
32459         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
32460         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
32461         MSVC.
32463 2011-09-16  Bruno Haible  <bruno@clisp.org>
32465         Support for MSVC compiler: Ensure off_t gets defined.
32466         * lib/unistd.in.h: Include <sys/types.h>.
32467         * tests/test-fcntl-h.c: Check that off_t is defined.
32468         * tests/test-sys_stat.c: Likewise.
32469         * tests/test-sys_types.c: Likewise.
32471 2011-09-16  Eric Blake  <eblake@redhat.com>
32473         fdatasync: port to Solaris
32474         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
32475         * modules/fdatasync (Link): Document it.
32476         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
32478         fdatasync: port to MacOS X 10.7
32479         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
32480         declared.
32481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
32482         * modules/unistd (Makefile.am): Substitute it.
32483         * lib/unistd.in.h (fdatasync): Declare on MacOS.
32484         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
32486         fdatasync: minor improvements
32487         * modules/fdatasync (Depends-on): Add condition for fsync.
32488         * lib/fdatasync.c (fdatasync): Add comment.
32489         * tests/test-unistd-c++.cc: Test fdatasync.
32491         unistd: update refs to newer POSIX
32492         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
32493         Suggested by Bruno Haible.
32495         fdatasync: new module
32496         * modules/fsync (Description): Document difference to fdatasync.
32497         * modules/fdatasync: New module.
32498         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
32499         * lib/fdatasync.c (fdatasync): Likewise.
32500         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
32501         defaults.
32502         * modules/unistd (Makefile.am): Set witnesses.
32503         * lib/unistd.in.h (fdatasync): Declare.
32504         * MODULES.html.sh: Document it.
32505         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
32506         * modules/fdatasync-tests: New test.
32507         * tests/test-fdatasync.c: Likewise.
32509 2011-09-16  Eric Blake  <eblake@redhat.com>
32511         test-fsync: enhance tests
32512         * modules/fsync-tests (Depends-on): Add errno, for mingw.
32513         * tests/test-fsync.c (main): Enhance test.
32515 2011-09-15  Bruno Haible  <bruno@clisp.org>
32517         Support for MSVC compiler: Ensure ssize_t gets defined.
32518         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
32519         * doc/posix-headers/stdio.texi: Likewise.
32520         * modules/stdio (Depends-on): Add ssize_t.
32521         * modules/sys_socket (Depends-on): Likewise.
32522         * modules/sys_types (Depends-on): Likewise.
32523         * modules/sys_uio (Depends-on): Likewise.
32524         * modules/unistd (Depends-on): Likewise.
32525         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
32526         * tests/test-sys_types.c: Check that ssize_t is defined.
32528 2011-09-14  Bruno Haible  <bruno@clisp.org>
32530         Avoid using #, the m4 comment starter character, near brackets.
32531         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
32532         delimiter character in sed expressions.
32533         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
32534         Suggested by Eric Blake.
32536         Properly quote AC_CHECK_DECLS' 4th argument.
32537         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
32538         argument.
32539         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
32540         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32541         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32542         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32543         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32544         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
32545         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
32546         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
32547         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
32548         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32549         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
32550         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32551         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32552         * m4/isinf.m4 (gl_ISINF): Likewise.
32553         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
32554         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32555         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32556         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32557         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32558         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
32559         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
32560         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
32561         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
32562         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32563         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32564         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
32566         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32567         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32568         Reported by Eric Blake.
32570         Properly quote AC_CHECK_DECL's 4th argument.
32571         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
32572         argument.
32573         * m4/argp.m4 (gl_ARGP): Likewise.
32574         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
32575         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32576         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
32577         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
32578         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
32579         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
32580         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
32581         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
32582         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32583         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
32584         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
32585         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
32586         Reported by Eric Blake.
32588 2011-09-14  Eric Blake  <eblake@redhat.com>
32590         opendir: avoid compile warning
32591         * lib/opendir.c (includes): Always include errno.h.
32592         Reported by Tatsuro MATSUOKA.
32594 2011-09-14  Jim Meyering  <meyering@redhat.com>
32596         maint.mk: sc_tight_scope: propagate failure from sub-make
32597         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
32598         Reported by Martin von Gagern.
32600 2011-09-13  Bruno Haible  <bruno@clisp.org>
32602         tempname: Support for MSVC.
32603         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
32604         MSVC.
32605         * modules/tempname (Depends-on): Add fcntl-h.
32607 2011-09-13  Bruno Haible  <bruno@clisp.org>
32609         sys_time: Support for MSVC.
32610         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
32611         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
32612         include <winsock2.h>.
32613         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
32614         function declarations that collide with POSIX.
32615         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
32616         (Makefile.am): Substitute HAVE_WINSOCK2_H.
32618 2011-09-13  Bruno Haible  <bruno@clisp.org>
32620         stat: Support for MSVC.
32621         * lib/stat.c: Include pathmax.h.
32622         * modules/stat (Depends-on): Add pathmax.
32624         pathmax: Support for native Windows.
32625         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
32627 2011-09-12  Bruno Haible  <bruno@clisp.org>
32629         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
32630         * lib/dirent.in.h (struct dirent): New type.
32631         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
32632         DT_WHT): New macros.
32633         (DIR): New type.
32634         (opendir, closedir): Declare only if the module 'opendir' is enabled.
32635         (readdir, rewinddir): New declarations.
32636         * lib/dirent-private.h: New file.
32637         * lib/opendir.c: New file.
32638         * lib/readdir.c: New file.
32639         * lib/rewinddir.c: New file.
32640         * lib/closedir.c: New file.
32641         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
32642         * m4/opendir.m4: New file.
32643         * m4/readdir.m4: New file.
32644         * m4/rewinddir.m4: New file.
32645         * m4/closedir.m4: New file.
32646         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
32647         REPLACE_CLOSEDIR here.
32648         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
32649         readdir, rewinddir are declared.
32650         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
32651         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
32652         HAVE_REWINDDIR, HAVE_CLOSEDIR.
32653         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
32654         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
32655         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
32656         * modules/opendir: New file.
32657         * modules/readdir: New file.
32658         * modules/rewinddir: New file.
32659         * modules/closedir: New file.
32660         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
32661         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
32662         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
32663         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
32664         * NEWS: Mention the 'fchdir' change.
32666 2011-09-11  Bruno Haible  <bruno@clisp.org>
32668         asm-underscore.m4: Support for MSVC.
32669         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
32670         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
32672 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
32674         Doc about crypt functions.
32675         * doc/posix-functions/crypt.texi: Expand range of glibc versions
32676         needing for _GNU_SOURCE to get crypt.
32677         * doc/posix-functions/encrypt.texi: Likewise.
32678         * doc/posix-functions/setkey.texi: Likewise.
32680 2011-09-11  Bruno Haible  <bruno@clisp.org>
32682         doc: Update regarding MSVC 9.
32683         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
32684         tested".
32685         * doc/posix-functions/*.texi: Update with info about MSVC 9.
32686         * doc/posix-headers/*.texi: Likewise.
32687         * doc/pastposix-functions/*.texi: Likewise.
32688         * doc/glibc-functions/*.texi: Likewise.
32689         * doc/glibc-headers/*.texi: Likewise.
32691 2011-09-11  Bruno Haible  <bruno@clisp.org>
32693         unistd et al.: Don't assume <unistd.h> exists.
32694         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
32695         does not exist.
32696         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
32697         exist. But include <stdlib.h>.
32698         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
32699         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
32700         symlink() does not exist.
32701         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
32702         include <io.h> instead.
32703         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
32704         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
32705         include <direct.h> instead.
32706         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
32707         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32708         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
32709         <io.h> instead.
32710         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
32711         correctly if the system does not have hard links.
32712         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
32713         <direct.h> instead.
32714         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
32715         it when looking for function declarations.
32716         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
32717         <direct.h> and <io.h> instead.
32718         * doc/posix-headers/unistd.texi: More details about MSVC problem.
32720 2011-09-11  Bruno Haible  <bruno@clisp.org>
32722         strcase: Support for MSVC.
32723         * modules/strcase (Status, Notice): Remove obsoletion mark.
32724         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
32725         * doc/posix-functions/strncasecmp.texi: Likewise.
32727         strings: Don't assume <strings.h> exists.
32728         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
32729         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
32730         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
32731         * doc/posix-headers/strings.texi: Mention the MSVC problem.
32733 2011-09-11  Bruno Haible  <bruno@clisp.org>
32735         dirent: Don't assume <dirent.h> exists.
32736         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
32737         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
32738         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
32739         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
32741 2011-09-11  Bruno Haible  <bruno@clisp.org>
32743         Fix wint_t on MSVC.
32744         * lib/wchar.in.h (wint_t): On MSVC, override it.
32745         * lib/wctype.in.h (wint_t): Likewise.
32746         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
32747         MSVC.
32748         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
32749         * doc/posix-headers/wctype.texi: Likewise.
32751 2011-09-11  Bruno Haible  <bruno@clisp.org>
32753         sys_types: Fix typo.
32754         * lib/sys_types.in.h: Fix typo in comment.
32755         Reported by Paul Eggert.
32757         Support for MSVC compiler: Ensure size_t gets defined.
32758         * modules/strings (Depends-on): Add 'sys_types'.
32759         * modules/sys_uio (Depends-on): Likewise.
32760         * lib/sys_uio.in.h: Update comment.
32762         C++ tests for module 'sys_types'.
32763         * modules/sys_types-c++-tests: New file.
32764         * tests/test-sys_types-c++.cc: New file.
32766         Tests for module 'sys_types'.
32767         * modules/sys_types-tests: New file.
32768         * tests/test-sys_types.c: New file.
32770         New module 'sys_types'.
32771         * lib/sys_types.in.h: New file.
32772         * m4/sys_types_h.m4: New file.
32773         * modules/sys_types: New file.
32774         * doc/posix-headers/sys_types.texi: Mention the new module and the
32775         size_t problem on MSVC 9.
32777 2011-09-11  Bruno Haible  <bruno@clisp.org>
32779         Support for MSVC compiler: Avoid division by a literal 0.
32780         * lib/math.in.h (NAN): Define through a function call also on MSVC.
32781         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
32782         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
32783         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
32784         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
32785         * tests/infinity.h: New file.
32786         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
32787         on MSVC.
32788         * tests/test-ceilf1.c: Include infinity.h.
32789         (main): Use Infinityf.
32790         * tests/test-ceil1.c: Include infinity.h.
32791         (main): Use Infinityd.
32792         * tests/test-ceill.c: Include infinity.h.
32793         (main): Use Infinityl.
32794         * tests/test-dprintf-posix.c: Include infinity.h.
32795         (test_function): Use Infinityd.
32796         * tests/test-floorf1.c: Include infinity.h.
32797         (main): Use Infinityf.
32798         * tests/test-floor1.c: Include infinity.h.
32799         (main): Use Infinityd.
32800         * tests/test-floorl.c: Include infinity.h.
32801         (main): Use Infinityl.
32802         * tests/test-fprintf-posix.c: Include infinity.h.
32803         (test_function): Use Infinityd.
32804         * tests/test-frexp.c: Include infinity.h.
32805         (main): Use Infinityd.
32806         * tests/test-frexpl.c: Include infinity.h.
32807         (main): Use Infinityl.
32808         * tests/test-isfinite.c: Include infinity.h.
32809         (test_isfinitef): Use Infinityf.
32810         (test_isfinited): Use Infinityd.
32811         (test_isfinitel): Use Infinityl.
32812         * tests/test-isinf.c: Include infinity.h.
32813         (test_isinff): Use Infinityf.
32814         (test_isinfd): Use Infinityd.
32815         (test_isinfl): Use Infinityl.
32816         * tests/test-isnan.c: Include infinity.h.
32817         (test_float): Use Infinityf.
32818         (test_double): Use Infinityd.
32819         (test_long_double): Use Infinityl.
32820         * tests/test-isnanf.h: Include infinity.h.
32821         (main): Use Infinityf.
32822         * tests/test-isnand.h: Include infinity.h.
32823         (main): Use Infinityd.
32824         * tests/test-isnanl.h: Include infinity.h.
32825         (main): Use Infinityl.
32826         * tests/test-ldexpl.c: Include infinity.h.
32827         (main): Use Infinityl.
32828         * tests/test-printf-posix.h: Include infinity.h.
32829         (test_function): Use Infinityd.
32830         * tests/test-roundf1.c: Include infinity.h.
32831         (main): Use Infinityf.
32832         * tests/test-round1.c: Include infinity.h.
32833         (main): Use Infinityd.
32834         * tests/test-roundl.c: Include infinity.h.
32835         (main): Use Infinityl.
32836         * tests/test-signbit.c: Include infinity.h.
32837         (test_signbitf): Use Infinityf.
32838         (test_signbitd): Use Infinityd.
32839         (test_signbitl): Use Infinityl.
32840         * tests/test-snprintf-posix.h: Include infinity.h.
32841         (test_function): Use Infinityd, Infinityl.
32842         * tests/test-sprintf-posix.h: Include infinity.h.
32843         (test_function): Use Infinityd, Infinityl.
32844         * tests/test-truncf1.c: Include infinity.h.
32845         (main): Use Infinityf.
32846         * tests/test-trunc1.c: Include infinity.h.
32847         (main): Use Infinityd.
32848         * tests/test-truncl.c: Include infinity.h.
32849         (main): Use Infinityl.
32850         * tests/test-vasnprintf-posix.c: Include infinity.h.
32851         (test_function): Use Infinityd, Infinityl.
32852         * tests/test-vasprintf-posix.c: Include infinity.h.
32853         (test_function): Use Infinityd, Infinityl.
32854         * modules/ceilf-tests (Files): Add tests/infinity.h.
32855         * modules/ceil-tests (Files): Likewise.
32856         * modules/ceill-tests (Files): Likewise.
32857         * modules/dprintf-posix-tests (Files): Likewise.
32858         * modules/floorf-tests (Files): Likewise.
32859         * modules/floor-tests (Files): Likewise.
32860         * modules/floorl-tests (Files): Likewise.
32861         * modules/fprintf-posix-tests (Files): Likewise.
32862         * modules/frexp-tests (Files): Likewise.
32863         * modules/frexp-nolibm-tests (Files): Likewise.
32864         * modules/frexpl-tests (Files): Likewise.
32865         * modules/frexpl-nolibm-tests (Files): Likewise.
32866         * modules/isfinite-tests (Files): Likewise.
32867         * modules/isinf-tests (Files): Likewise.
32868         * modules/isnan-tests (Files): Likewise.
32869         * modules/isnanf-tests (Files): Likewise.
32870         * modules/isnanf-nolibm-tests (Files): Likewise.
32871         * modules/isnand-tests (Files): Likewise.
32872         * modules/isnand-nolibm-tests (Files): Likewise.
32873         * modules/isnanl-tests (Files): Likewise.
32874         * modules/isnanl-nolibm-tests (Files): Likewise.
32875         * modules/ldexpl-tests (Files): Likewise.
32876         * modules/printf-posix-tests (Files): Likewise.
32877         * modules/roundf-tests (Files): Likewise.
32878         * modules/round-tests (Files): Likewise.
32879         * modules/roundl-tests (Files): Likewise.
32880         * modules/signbit-tests (Files): Likewise.
32881         * modules/snprintf-posix-tests (Files): Likewise.
32882         * modules/sprintf-posix-tests (Files): Likewise.
32883         * modules/truncf-tests (Files): Likewise.
32884         * modules/trunc-tests (Files): Likewise.
32885         * modules/truncl-tests (Files): Likewise.
32886         * modules/vasnprintf-posix-tests (Files): Likewise.
32887         * modules/vasprintf-posix-tests (Files): Likewise.
32888         * modules/vdprintf-posix-tests (Files): Likewise.
32889         * modules/vfprintf-posix-tests (Files): Likewise.
32890         * modules/vprintf-posix-tests (Files): Likewise.
32891         * modules/vsnprintf-posix-tests (Files): Likewise.
32892         * modules/vsprintf-posix-tests (Files): Likewise.
32893         * modules/xprintf-posix-tests (Files): Likewise.
32895 2011-09-11  Bruno Haible  <bruno@clisp.org>
32897         Ensure pid_t gets defined.
32898         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
32899         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
32900         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32901         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32902         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32903         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
32904         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32905         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32906         * tests/test-fcntl-h.c: Check that pid_t is defined.
32907         * tests/test-sched.c: Likewise.
32908         * tests/test-termios.c: Likewise.
32909         * tests/test-time.c: Likewise.
32910         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
32911         * doc/posix-headers/signal.texi: Likewise.
32912         * doc/posix-headers/sys_types.texi: Likewise.
32913         * doc/posix-headers/time.texi: Likewise.
32915 2011-09-11  Bruno Haible  <bruno@clisp.org>
32917         acl: Fix compilation on Solaris 10 (older version).
32918         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
32919         of ACE_EVERYONE.
32920         * lib/set-mode-acl.c (qset_acl): Likewise.
32921         Reported by Christian Jullien <eligis@orange.fr>.
32923 2011-09-10  Bruno Haible  <bruno@clisp.org>
32925         iconv, unsetenv: Add support for MSVC compiler.
32926         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
32927         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
32929 2011-09-10  Bruno Haible  <bruno@clisp.org>
32931         *printf: Add support for MSVC compiler.
32932         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
32933         handles the exception caused by the %n directive. When cross-compiling,
32934         guess no on native Windows.
32935         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
32936         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
32937         emulate it through vsnprintf.
32938         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
32939         * doc/posix-functions/dprintf.texi: Update documentation regarding
32940         MSVC 9.
32941         * doc/posix-functions/fprintf.texi: Likewise.
32942         * doc/posix-functions/printf.texi: Likewise.
32943         * doc/posix-functions/snprintf.texi: Likewise.
32944         * doc/posix-functions/sprintf.texi: Likewise.
32945         * doc/posix-functions/swprintf.texi: Likewise.
32946         * doc/posix-functions/vdprintf.texi: Likewise.
32947         * doc/posix-functions/vfprintf.texi: Likewise.
32948         * doc/posix-functions/vprintf.texi: Likewise.
32949         * doc/posix-functions/vsnprintf.texi: Likewise.
32950         * doc/posix-functions/vsprintf.texi: Likewise.
32951         * doc/glibc-functions/asprintf.texi: Likewise.
32952         * doc/glibc-functions/obstack_printf.texi: Likewise.
32953         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
32954         * doc/glibc-functions/vasprintf.texi: Likewise.
32956 2011-09-10  Bruno Haible  <bruno@clisp.org>
32958         nocrash: Add support for native Windows.
32959         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
32961 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
32962             Bruno Haible  <bruno@clisp.org>
32964         absolute-header, include-next: Add support for MSVC compiler.
32965         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
32966         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
32967         directory separator in #line directives.
32968         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
32969         recognize also backslash as directory separator in #line directives.
32971 2011-09-08  Jim Meyering  <meyering@redhat.com>
32973         maint.mk: mark the post-release commit log with "maint: " prefix
32974         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
32975         one-line commit-log summary.
32977 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
32978             Bruno Haible  <bruno@clisp.org>
32980         Doc about crypt functions.
32981         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
32982         systems.
32983         * doc/posix-functions/encrypt.texi: Likewise.
32984         * doc/posix-functions/setkey.texi: Likewise.
32986 2011-09-08  Simon Josefsson  <simon@josefsson.org>
32988         * lib/gc.h: Fix copyright header.
32990 2011-09-07  Bruno Haible  <bruno@clisp.org>
32992         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
32993         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
32994         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
32996 2011-09-07  Bruno Haible  <bruno@clisp.org>
32998         openat: Work around compilation error with OSF/1 5.1 DTK cc.
32999         * lib/fopen.c: Use different syntax for include of <stdio.h>.
33000         * lib/freopen.c: Likewise.
33001         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
33002         * lib/lstat.c: Likewise.
33003         * lib/stat.c: Likewise.
33004         * lib/open.c: Use different syntax for include of <fcntl.h>.
33005         * lib/openat.c: Include fcntl.h again, explicitly.
33007 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
33009         parse-datetime: document the newly accepted format
33010         * doc/parse-datetime.texi (Combined date and time of day items):
33011         New section.
33013 2011-09-06  Bruno Haible  <bruno@clisp.org>
33015         acl: Fix a test failure on newer Solaris 10 with ZFS.
33016         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
33017         ENOSYS as no ACL.
33018         Reported by Jim Meyering.
33020 2011-09-06  Bruno Haible  <bruno@clisp.org>
33022         acl: Update for AIX >= 5.3 with NFS.
33023         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
33024         ENOSYS as no ACL.
33026         acl: Fix a test failure on AIX >= 5.3 with NFS.
33027         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
33028         as no ACL.
33030 2011-09-06  Bruno Haible  <bruno@clisp.org>
33032         acl: Fix a test failure on IRIX 6.5 with NFS.
33033         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
33034         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
33035         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
33036         * lib/copy-acl.c (qcopy_acl): Likewise.
33038 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
33040         openat: port to AIX 7.1 with large files
33041         AIX 7.1 does a "#define openat open64at" if large files are in use,
33042         so we can't simply #undef openat.  Use the orig_openat trick (similar
33043         to orig_open in lib/open.c) to work around the problem.  Problem
33044         reported by Kevin Brott for GNU tar, in the thread containing
33045         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
33046         * lib/openat.c (__need_system_fcntl_h): Define first.
33047         Include <fcntl.h> and <sys/types.h> before undefining.
33048         (orig_openat) [HAVE_OPENAT]: New inline function.
33049         (openat) [HAVE_OPENAT]: Do not undef.
33050         (rpl_openat): Use orig_openat, not openat.
33052 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
33053             Bruno Haible  <bruno@clisp.org>
33055         acl: Avoid errors on NonStop Kernel.
33056         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
33057         ENOTSUP errors.
33059 2011-09-05  Bruno Haible  <bruno@clisp.org>
33061         acl: Clean up Solaris code.
33062         * lib/acl-internal.h: Remove no-op #if.
33063         * lib/file-has-acl.c: Likewise.
33064         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
33065         * lib/copy-acl.c (qcopy_acl): Likewise.
33067 2011-09-05  Bruno Haible  <bruno@clisp.org>
33069         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
33070         binaries built on the original Solaris 10.
33071         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
33072         trivial.
33074 2011-09-05  Bruno Haible  <bruno@clisp.org>
33076         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33077         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
33078         10.
33079         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
33080         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
33081         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
33082         instead of acl_get, facl_get, acl_set, facl_set.
33084 2011-09-05  Bruno Haible  <bruno@clisp.org>
33086         copy-file: Try unit tests on more file systems.
33087         * tests/test-copy-file-1.sh: New file.
33088         * tests/test-copy-file-2.sh: New file.
33089         * modules/copy-file-tests (Files): Add them.
33090         (Makefile.am): Add them to TESTS.
33092         acl: Try unit tests on more file systems.
33093         * tests/test-file-has-acl-1.sh: New file.
33094         * tests/test-file-has-acl-2.sh: New file.
33095         * tests/test-set-mode-acl-1.sh: New file.
33096         * tests/test-set-mode-acl-2.sh: New file.
33097         * tests/test-copy-acl-1.sh: New file.
33098         * tests/test-copy-acl-2.sh: New file.
33099         * modules/acl-tests (Files): Add them.
33100         (Makefile.am): Add them to TESTS.
33102 2011-09-04  Bruno Haible  <bruno@clisp.org>
33104         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33105         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
33106         10.
33107         (OLD_ALLOW, OLD_DENY): New macros.
33108         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
33109         ACE_ACCESS_ALLOWED_ACE_TYPE.
33110         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
33111         ACE_ACCESS_DENIED_ACE_TYPE.
33112         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
33113         (NEW_ACE_EXECUTE): Fix value.
33114         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
33115         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
33116         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
33117         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
33118         NEW_ACE_SYNCHRONIZE): New macros.
33119         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
33120         instead of acl_fromtext, acl_set, facl_set.
33121         Fixes a coreutils/tests/cp/perm failure.
33123 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
33125         openat: test for fstatat (..., 0) bug
33126         Further testing with tar suggests that fstatat (..., 0)
33127         does not work in general, on AIX 7.1; see
33128         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
33129         So, give up entirely on AIX 7.1's fstatat, and fall back on our
33130         replacement fstatat (which is what older AIX releases were using
33131         anyway).
33132         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
33133         use is now changed to orig_fstatat.  This was probably the right
33134         thing to do anyway.
33135         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
33136         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
33137         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
33138         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
33139         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
33140         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
33141         if the bug is found.
33143         openat: test for fstatat (AT_FDCWD, ..., 0) bug
33144         This tests for another fstatat bug on AIX 7.1:
33145         fstatat (AT_FDCWD, ..., 0) does not work.  See
33146         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
33147         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
33148         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
33149         (rpl_fstatat): Adjust so that it works around either (or both)
33150         bugs if present.
33151         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
33153 2011-09-03  Karl Berry  <karl@gnu.org>
33155         * doc/regex.texi (Character Class Operators): Avoid literal ":"
33156         in index entries.
33158 2011-09-02  Bruno Haible  <bruno@clisp.org>
33160         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
33161         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
33162         values of AR, ARFLAGS, RANLIB.
33163         Reported by John W. Eaton <jwe@gnu.org> for Octave.
33165 2011-09-02  Bruno Haible  <bruno@clisp.org>
33167         Find 'ar' program that fits with --host argument.
33168         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
33170 2011-09-02  Bruno Haible  <bruno@clisp.org>
33172         tests: init.sh: Support any non-GNU diff.
33173         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
33174         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
33175         Solaris 8.
33177 2011-09-02  Bruno Haible  <bruno@clisp.org>
33179         tests: init.sh: work also with any non-GNU diff that supports -u
33180         * tests/init.sh: Relax check for diff -u support.
33181         Rather than checking for GNU diff via --version, simply check
33182         for support for -u itself.  Useful at least on OpenBSD 4.9,
33183         AIX 7.1, IRIX 6.5, and Solaris 10.
33185 2011-09-01  Bruno Haible  <bruno@clisp.org>
33187         strtoimax, strtoumax: Document problem on HP-UX 11.
33188         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
33189         * doc/posix-functions/strtoumax.texi: Likewise.
33191 2011-09-01  Bruno Haible  <bruno@clisp.org>
33193         strtoumax: Avoid link error on OSF/1 with DTK cc.
33194         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
33195         defined as a function.
33196         * modules/strtoumax (Depends-on, configure.ac): Test only whether
33197         strtoumax is defined, not whether it is declared.
33199 2011-09-01  Bruno Haible  <bruno@clisp.org>
33201         strtoimax: Avoid link error on OSF/1 with DTK cc.
33202         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
33203         defined as a function.
33204         * modules/strtoimax (Depends-on, configure.ac): Test only whether
33205         strtoimax is defined, not whether it is declared.
33207 2011-09-01  Bruno Haible  <bruno@clisp.org>
33209         imaxdiv: Avoid link error on OSF/1 with DTK cc.
33210         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
33211         as a function.
33212         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
33213         whether it is declared.
33215 2011-09-01  Bruno Haible  <bruno@clisp.org>
33217         imaxabs: Avoid link error on OSF/1 with DTK cc.
33218         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
33219         as a function.
33220         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
33221         whether it is declared.
33223 2011-09-01  Bruno Haible  <bruno@clisp.org>
33225         Tests for module 'strtoumax'.
33226         * modules/strtoumax-tests: New file.
33227         * tests/test-strtoumax.c: New file.
33229         Tests for module 'strtoimax'.
33230         * modules/strtoimax-tests: New file.
33231         * tests/test-strtoimax.c: New file.
33233         Tests for module 'imaxdiv'.
33234         * modules/imaxdiv-tests: New file.
33235         * tests/test-imaxdiv.c: New file.
33237         Tests for module 'imaxabs'.
33238         * modules/imaxabs-tests: New file.
33239         * tests/test-imaxabs.c: New file.
33241 2011-09-01  Bruno Haible  <bruno@clisp.org>
33243         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
33244         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
33245         pthread_create.
33247 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33249         openat: work around AIX 7.1 fstatat issue
33250         This should fix the problem that was not properly fixed
33251         in the previous change, dated 2011-08-30.
33252         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
33253         __need_system_stat_h defined.
33254         (orig_fstatat) [HAVE_FSTATAT]: New function.
33255         (rpl_fstatat): Go back to the old way of doing things,
33256         except call orig_fstatat instead of fstatat.
33257         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
33258         Remove unnecessary check whether fstatat fills in st_size etc.
33260 2011-09-01  Bruno Haible  <bruno@clisp.org>
33262         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
33263         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
33264         just include the system's header.
33266 2011-08-31  Jim Meyering  <meyering@redhat.com>
33268         tests: avoid spurious assertion failure in test-float.c on ppc64
33269         * tests/test-float.c (test_long_double): Comment out an assertion,
33270         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
33271         with gcc-4.4.4.
33273         maint: indent with spaces, not TABs
33274         I need to get in the habit of running gnulib's "make check".
33275         Both of these would have been caught.
33276         * m4/largefile.m4: Indent with spaces, not TABs.
33277         * lib/parse-datetime.y (iso_8601_time): Likewise.
33278         Spotted by Pádraig Brady.
33280         test-parse-datetime.c: accommodate a relatively strict gcc warning
33281         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
33282         to avoid a warning from gcc's -Werror=missing-declarations.
33283         Insert a few spaces-before-funcall-parenthesis.
33285 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
33287         parse-datetime: accept ISO 8601 date and time rep with "T" separator
33288         The parser now accepts ISO 8601 date-time strings with "T" as the
33289         separator.  It has long parsed dates like "2004-02-29 16:21:42"
33290         with a space between the date and time strings.  Now it also parses
33291         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
33292         variants like "2004-02-29T16:21:42.333-07:00"
33293         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
33294         of day representation using the 'T' separator character.
33295         * doc/parse-datetime.texi (General date syntax): replace use of
33296         deprecated --iso-8601 option with --rfc-3339 in example of date
33297         command output formats that can be parsed.
33298         * tests/test-parse-datetime.c (tm_diff): New function, taken from
33299         lib/parse-datetime.y.
33300         (gmt_offset): New function.
33301         (main): Add additional test cases to validate ISO8601 extended
33302         date and time of day parsing.
33304 2011-08-31  Bruno Haible  <bruno@clisp.org>
33306         freopen: Documentation.
33307         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
33308         name.
33309         Reported by Claudio Bley <claudio.bley@gmail.com>.
33311 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
33313         freopen: Don't crash if the filename argument is NULL.
33314         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
33315         NULL.
33317 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
33319         openat: work around AIX 7.1 fstatat bug
33320         Problem reported by Kevin Brott for GNU tar, in the thread containing
33321         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
33322         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
33323         FSTATAT_ST_SIZE_ETC_BROKEN.
33324         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
33325         rpl_fstatat.
33326         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
33327         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
33328         AC_CHECK_FUNCS_ONCE for fstatat.
33329         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
33330         fchmodat, mkdirat, openat and unlinkat.
33332 2011-08-30  Bruno Haible  <bruno@clisp.org>
33334         Avoid endless recursions if config.h includes some header files.
33335         * lib/fopen.c (__need_FILE): Define already before including config.h.
33336         * lib/freopen.c (__need_FILE): Likewise.
33337         * lib/open.c (__need_system_fcntl_h): Likewise.
33338         * lib/stat.c (__need_system_sys_stat_h): Likewise.
33339         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
33340         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
33342 2011-08-25  Karl Berry  <karl@gnu.org>
33344         * config/srclist.txt (ylwrap): new try.
33345         * build-aux/ylwrap: new file.
33347 2011-08-23  Bruno Haible  <bruno@clisp.org>
33349         tmpdir: Use a good default directory on native Windows.
33350         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
33351         (P_tmpdir): Default to _P_tmpdir on native Windows.
33352         (path_search): On native Windows, try the value returned by GetTempPath
33353         before trying P_tmpdir.
33354         * modules/tmpdir (Depends-on): Add pathmax.
33355         Suggested by John Darrington <john@darrington.wattle.id.au>.
33357 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
33359         doc: fix typo in README-release
33360         * top/README-release: Capitalize first word of a sentence.
33362 2011-08-19  Jim Meyering  <meyering@redhat.com>
33364         fts: do not exhaust memory when processing million-entry directories
33365         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
33366         directory would require about 256*N bytes of memory.  Thus, it was
33367         easy to construct a directory too large to be processed by any of
33368         those tools.  With this change, fts' maximum memory utilization is
33369         now limited to around 30MB.
33370         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
33371         (fts_read): When we've processed the final entry (i.e., when
33372         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
33373         using the parent entry to read any remaining entries.  Dispatch
33374         depending on what fts_build returns:
33375         - NULL+stop, aka failure: stop
33376         - NULL otherwise: move up in the dir hierarchy
33377         - non-NULL: handle this new entry
33378         (fts_build): Declare and use new local, continue_readdir.
33379         Prepare to be called from fts_read, when the entries
33380         from a partially-read directory have just been exhausted.
33381         In that case, we'll skip the opendir and instead use the parent's
33382         fts_dirp and derive dir_fd from that.
33383         Finally, in the readdir loop, if we read max_entries entries,
33384         exit the loop ensuring *not* to call closedir.  This is required
33385         so that fts_dirp can be reused on a subsequent call.
33386         Prompted by Ben England's report of memory exhaustion in find
33387         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
33389         maint: fts: move decl of `dp' down into while loop; split a long line
33390         * lib/fts.c (fts_build): No semantic change.
33392         fts: add/use new struct member, fts_dirp
33393         We are about to use this to manage any directory with
33394         too many entries to read all of them into memory at once.
33395         To do that, we'll need to save the DIR* pointer in each
33396         affected FTSENT struct.
33397         * lib/fts_.h: Include <dirent.h>.
33398         (struct FTSENT) [fts_dirp]: New member.
33399         * lib/fts.c (closedir_and_clear): Define.
33400         Use it in place of closedir so that we are sure to
33401         clear the new fts_dirp member when done with it.
33402         (fts_alloc): Initialize the new member.
33403         (fts_lfree): Free, if needed.
33405         maint: fts: give __opendir2 a new parameter and rename
33406         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
33407         than surreptitiously using sole caller's "dir_fd".
33408         (fts_opendir): Rename from __opendir2.
33410         maint: fts.c: remove __opendir2's now-unused parameter, oflag
33411         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
33413         maint: fts.c: correct off-by-one indentation
33414         * lib/fts.c (fts_build): Correct indentation, change style
33415         of a couple of block comments, and bracing style.
33417         maint: fts.c: move __opendir2 #define "up" out of function body
33418         * lib/fts.c (__opendir2): Move "up".  No semantic change.
33420         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
33421         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
33422         out for a long time and besides was useful only on BSD systems.
33424 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
33426         regex: port to Stratus OpenVOS
33427         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
33428         define to empty, rather than attempting nonportable optimizations.
33429         Problem reported by Paul Green in:
33430         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
33431         and fix suggested by Eric Blake in:
33432         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
33434 2011-08-17  Eric Blake  <eblake@redhat.com>
33436         getcwd: fix test failures on mingw
33437         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
33438         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
33439         test if long directory cannot be created, and allow mingw errno.
33441         getcwd-lgpl: fix m4 to match relaxed test for BSD
33442         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
33443         (gl_FUNC_GETCWD_SIGNATURE): New macro.
33444         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
33445         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
33446         signature problem.
33448         getcwd: fix compilation on mingw64
33449         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
33450         getcwd.
33451         Reported by Marc-André Lureau.
33453         pipe2: silence compiler warning
33454         * lib/pipe2.c (pipe2): Hide label if it is not used.
33456 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
33458         relocatable-prog: fix link error
33459         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
33460         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
33461         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
33462         into modules/relocatable-lib without noticing that
33463         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
33464         also needs to build relocatable.c.
33466 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
33468         getaddrinfo: fix sh typo in gai_strerrorA decl checking
33469         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
33470         shell code: it contained a 'break' that was not in a loop.
33471         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
33472         via a shell-language loop; this may have been true in old Autoconf
33473         versions, but it's not true in Autoconf 2.68.  I found this bug
33474         when testing coreutils git on Solaris 8, whose shell complains
33475         about the syntax error.
33477 2011-08-12  Simon Josefsson  <simon@josefsson.org>
33479         * lib/base64.c: Fix comment to reference RFC 4648.
33480         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
33481         <gvtulder@gmail.com>.
33483 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33485         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
33487         po/Makefile.in.in: fix make -q problem
33488         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
33489         rule, since there's no file named 'check-macro-version' and its
33490         use as a file breaks make -q.
33491         (all): Don't depend on check-macro-version.
33492         (CHECK_MACRO_VERSION): New macro.
33493         (stamp-po): Use it.
33495         configmake: fix make -q problem
33496         * modules/configmake (configmake.h): Update configmake.h's time stamp
33497         even if the file does not change.  Otherwise, 'make -q' fails.
33498         Problem reported by Simon Josefsson in
33499         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
33501 2011-08-11  Jim Meyering  <meyering@redhat.com>
33503         git-version-gen: correct the advice in a comment
33504         * build-aux/git-version-gen: Correct comment.
33505         Don't recommend to list .tarball-version in .gitignore.
33507 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33509         base64: fix off-by-one buffer size bug
33510         Problem and (trivial) fix reported by Gijs van Tulder in
33511         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
33512         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
33513         * tests/test-base64.c (main): Catch the bug.
33515 2011-08-10  Eric Blake  <eblake@redhat.com>
33517         closein: correct comments
33518         * lib/closein.c (close_stdin): Improve comments.
33520 2011-08-09  Bruno Haible  <bruno@clisp.org>
33522         More tests for 'fseeko'.
33523         * tests/test-fseeko3.c: New file, from Eric Blake.
33524         * tests/test-fseeko3.sh: New file.
33525         * modules/fseeko-tests (Files): Add them.
33526         (TESTS): Add test-fseeko3.sh.
33527         (check_PROGRAMS): Add test-fseeko3.
33529 2011-08-09  Eric Blake  <eblake@redhat.com>
33531         fseeko: remove unneeded hack
33532         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
33534         fseeko: fix bug on glibc
33535         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
33536         Reported by John W. Eaton.
33538 2011-08-08  Bruno Haible  <bruno@clisp.org>
33540         unictype/base: Fix interoperability with preinstalled libunistring.
33541         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
33542         Reported by Simon Josefsson.
33544 2011-08-08  Bruno Haible  <bruno@clisp.org>
33546         iswblank: Detect declaration correctly.
33547         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
33548         AC_CHECK_DECLS invocation.
33550 2011-08-08  Bruno Haible  <bruno@clisp.org>
33552         tcgetsid: Detect declaration correctly.
33553         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
33554         AC_CHECK_DECLS invocation.
33555         Reported by Simon Josefsson.
33557 2011-08-08  Eric Blake  <eblake@redhat.com>
33559         largefile: fix typo that regressed large file support
33560         * modules/largefile (configure.ac-early): Fix section name.
33562 2011-08-06  Karl Berry  <karl@gnu.org>
33564         * MODULES.html.sh (func_all_files): _Noreturn is no longer
33565         a separate module.
33567 2011-08-05  Simon Josefsson  <simon@josefsson.org>
33569         openat: Fix warnings and commens when building unlinkat.c on Hurd.
33570         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
33571         get prototype for free.
33573 2011-08-04  Bruno Haible  <bruno@clisp.org>
33575         Tests for module 'pathmax'.
33576         * modules/pathmax-tests: New file.
33577         * tests/test-pathmax.c: New file.
33579         canonicalize-lgpl: Support larger filenames on the Hurd.
33580         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
33581         Reported by Paul Eggert.
33583         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
33584         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
33585         * lib/chdir-long.h: Include pathmax.h.
33586         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
33587         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
33588         (PATH_MAX): Remove code that is done by pathmax.h.
33589         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
33590         * lib/tmpfile.c: Add a comment.
33591         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
33592         * modules/chdir-long (Depends-on): Add pathmax.
33593         * modules/getcwd (Depends-on): Add pathmax.
33594         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
33595         is not defined.
33596         * doc/posix-headers/limits.texi: Mention the pathmax module.
33597         * NEWS: Mention the change.
33599 2011-08-02  Bruno Haible  <bruno@clisp.org>
33601         pthread_sigmask: Actually use results of gl_THREADLIB.
33602         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
33603         gl_THREADLIB, not gl_[]THREADLIB.
33604         Reported by Eric Blake.
33606 2011-08-02  Jim Meyering  <meyering@redhat.com>
33608         maint.mk: relax the default _gl_TS_function_match regexp
33609         * top/maint.mk (_gl_TS_function_match): Don't require at least one
33610         space between function name and "(" in an "extern" declaration.
33611         That would fail to match a decl with no space there: extern void foo();
33613 2011-07-31  Iain Nicol  <iain@thenicols.net>
33615         git-version-gen: document that EXTRA_DIST must include .version
33616         * build-aux/git-version-gen: In the how-to-use comment, document
33617         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
33618         will fail when run from an unpacked distribution tarball.
33620 2011-08-01  Bruno Haible  <bruno@clisp.org>
33622         wctype-h: Fix last change.
33623         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
33624         REPLACE_TOWLOWER to 0.
33625         Reported by Sam Steingold <sds@gnu.org>.
33627 2011-07-31  Bruno Haible  <bruno@clisp.org>
33629         frexpl: Update autoconf test.
33630         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
33631         according to changes of 2011-06-20.
33633 2011-07-31  Bruno Haible  <bruno@clisp.org>
33635         sys_utsname: Add support for Minix.
33636         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
33637         <sys/utsname.h>.
33638         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33639         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
33641 2011-07-31  Bruno Haible  <bruno@clisp.org>
33643         strings: Add support for Minix.
33644         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
33645         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33646         * doc/posix-headers/strings.texi: Document the Minix problem.
33648 2011-07-31  Bruno Haible  <bruno@clisp.org>
33650         wctype-h: Add support for Minix.
33651         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
33652         REPLACE_TOWLOWER.
33653         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
33654         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
33655         REPLACE_ISWCNTRL.
33657 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
33659         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
33660         This is a performance improvement for 64-bit hosts: it causes the
33661         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
33663 2011-07-31  Bruno Haible  <bruno@clisp.org>
33665         stdioext: Add support for Minix.
33666         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
33667         * lib/fpurge.c (fpurge): Likewise.
33668         * lib/freadahead.c (freadahead): Likewise.
33669         * lib/freadable.c (freadable): Likewise.
33670         * lib/freading.c (freading): Likewise.
33671         * lib/freadptr.c (freadptr): Likewise.
33672         * lib/freadseek.c (freadptrinc): Likewise.
33673         * lib/fseeko.c (rpl_fseeko): Likewise.
33674         * lib/fseterr.c (fseterr): Likewise.
33675         * lib/fwritable.c (fwritable): Likewise.
33676         * lib/fwriting.c (fwriting): Likewise.
33677         * lib/fflush.c (clear_ungetc_buffer): Update comment.
33678         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
33680 2011-07-31  Bruno Haible  <bruno@clisp.org>
33682         errno: Port to Minix.
33683         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
33684         ECONNABORTED are defined.
33685         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
33686         GNULIB_defined_ECONNABORTED): New macros.
33687         * lib/strerror-override.h (strerror_override): Test also
33688         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
33689         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
33690         ECONNABORTED.
33691         * doc/posix-headers/errno.texi: Mention the Minix problem.
33693 2011-07-31  Bruno Haible  <bruno@clisp.org>
33695         Work around declaration collisions on Minix.
33696         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
33697         defined, set REPLACE_MBSINIT.
33698         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
33699         defined, set REPLACE_MBRTOWC.
33700         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
33701         set REPLACE_MBRLEN.
33702         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
33703         defined, set REPLACE_MBSRTOWCS.
33704         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
33705         defined, set REPLACE_WCRTOMB.
33706         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
33707         defined, set REPLACE_WCSRTOMBS.
33709 2011-07-31  Bruno Haible  <bruno@clisp.org>
33711         Add support for Minix with ACK compiler.
33712         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
33713         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
33714         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
33716 2011-07-31  Bruno Haible  <bruno@clisp.org>
33718         Documentation about Minix.
33719         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
33720         * doc/glibc-headers/*.texi: Likewise.
33721         * doc/posix-functions/*.texi: Likewise.
33722         * doc/glibc-functions/*.texi: Likewise.
33724 2011-07-31  Bruno Haible  <bruno@clisp.org>
33726         snippet/warn-on-use: Fix indentation.
33727         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
33729 2011-07-25  Jim Meyering  <meyering@redhat.com>
33731         tests: test-update-copyright.sh: remove unnecessary "rm" commands
33732         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
33733         commands.
33735 2011-07-27  Jim Meyering  <meyering@redhat.com>
33737         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
33738         * top/maint.mk (gl_extract_significant_defines_): Now that
33739         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
33740         gnulib/lib/signal.in.h, and now that we recommend to
33741         define-if-undefined those two symbols in application code,
33742         we must filter them out of the "significant" list.
33743         This avoids a "make syntax-check" failure in coreutils.
33745 2011-07-26  Eric Blake  <eblake@redhat.com>
33747         warnings: add comments about previous patch
33748         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
33749         * m4/include_next.m4: Likewise.
33750         * m4/warn-on-use.m4: Likewise.
33751         * m4/warnings.m4: Likewise, and simplify use.
33752         Suggested by Stefano Lattarini.
33754         include-next, warnings: support older autoconf
33755         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
33756         AS_VAR_PUSHDEF in a way that works with older autoconf.
33757         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
33758         Reported by Daniel P. Berrange.
33760 2011-07-25  Bruno Haible  <bruno@clisp.org>
33762         fseek, ftell: Fix doc.
33763         * doc/posix-functions/fseek.texi: Reword statement about
33764         AC_SYS_LARGEFILE.
33765         * doc/posix-functions/ftell.texi: Likewise.
33767 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
33768             Bruno Haible  <bruno@clisp.org>
33770         Add dependencies to the 'largefile' module.
33771         * modules/fopen (Depends-on): Add 'largefile'.
33772         * modules/freopen (Depends-on): Likewise.
33773         * modules/fseeko (Depends-on): Likewise.
33774         * modules/ftello (Depends-on): Likewise.
33775         * modules/glob (Depends-on): Likewise.
33776         * modules/lseek (Depends-on): Likewise.
33777         * modules/lstat (Depends-on): Likewise.
33778         * modules/mkostemp (Depends-on): Likewise.
33779         * modules/mkostemps (Depends-on): Likewise.
33780         * modules/mkstemp (Depends-on): Likewise.
33781         * modules/mkstemps (Depends-on): Likewise.
33782         * modules/open (Depends-on): Likewise.
33783         * modules/openat (Depends-on): Likewise.
33784         * modules/pread (Depends-on): Likewise.
33785         * modules/pwrite (Depends-on): Likewise.
33786         * modules/scandir (Depends-on): Likewise.
33787         * modules/stat (Depends-on): Likewise.
33788         * modules/tmpfile (Depends-on): Likewise.
33789         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
33790         since the containing module now depends on the largefile module.
33791         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
33792         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
33793         off_t is fixed by gnulib.
33794         * doc/posix-functions/freopen.texi: Likewise.
33795         * doc/posix-functions/fseeko.texi: Likewise.
33796         * doc/posix-functions/fstatat.texi: Likewise.
33797         * doc/posix-functions/ftello.texi: Likewise.
33798         * doc/posix-functions/glob.texi: Likewise.
33799         * doc/posix-functions/lseek.texi: Likewise.
33800         * doc/posix-functions/lstat.texi: Likewise.
33801         * doc/posix-functions/mkstemp.texi: Likewise.
33802         * doc/posix-functions/open.texi: Likewise.
33803         * doc/posix-functions/openat.texi: Likewise.
33804         * doc/posix-functions/pread.texi: Likewise.
33805         * doc/posix-functions/pwrite.texi: Likewise.
33806         * doc/posix-functions/scandir.texi: Likewise.
33807         * doc/posix-functions/stat.texi: Likewise.
33808         * doc/posix-functions/tmpfile.texi: Likewise.
33809         * doc/glibc-functions/mkostemp.texi: Likewise.
33810         * doc/glibc-functions/mkostemps.texi: Likewise.
33811         * doc/glibc-functions/mkstemps.texi: Likewise.
33813 2011-07-25  Bruno Haible  <bruno@clisp.org>
33815         fcntl: Move AC_LIBOBJ invocation to module description.
33816         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
33817         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
33819         fcntl: Remove call-in from fchdir.m4.
33820         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
33821         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
33823         dup3: Remove potential call-in from fchdir.m4.
33824         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
33825         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
33827         dup2: Move AC_LIBOBJ invocation to module description.
33828         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
33829         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
33830         Don't invoke AC_LIBOBJ.
33831         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
33833         dup2: Remove call-in from fchdir.m4.
33834         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
33835         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
33837         fclose: Move AC_LIBOBJ invocation to module description.
33838         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
33839         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
33840         to 1.
33841         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
33843         fclose: Remove call-in from close.m4.
33844         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
33845         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
33847         close: Move AC_LIBOBJ invocation to module description.
33848         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
33849         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
33850         1.
33851         * modules/close (configure.ac): Invoke AC_LIBOBJ.
33853         close: Remove call-in from fchdir.m4.
33854         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
33855         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
33857         open: Move AC_LIBOBJ invocation to module description.
33858         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
33859         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
33860         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
33862         open: Remove call-in from fchdir.m4.
33863         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
33864         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
33866         fchdir: Start to remove gl_REPLACE_* idiom.
33867         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
33868         (gl_FUNC_FCHDIR): Invoke it.
33870 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
33872         * lib/ftell.c (ftell): Comment out cast.
33874         close: use gl_REPLACE_FCLOSE only if defined
33875         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
33876         is defined.  The close module doesn't depend on the fclose module
33877         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
33878         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
33879         I reproduced the problem with "./gnulib-tool --test close sys_socket".
33881 2011-07-24  Jim Meyering  <meyering@redhat.com>
33883         test-select.h: avoid warning when using gcc's -Wmissing-declarations
33884         * tests/test-select.h (test_function): Declare as "static".
33886 2011-07-24  Bruno Haible  <bruno@clisp.org>
33888         doc: Mention the effects of AC_SYS_LARGEFILE.
33889         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
33890         on this function.
33891         * doc/posix-functions/aio_error.texi: Likewise.
33892         * doc/posix-functions/aio_fsync.texi: Likewise.
33893         * doc/posix-functions/aio_read.texi: Likewise.
33894         * doc/posix-functions/aio_return.texi: Likewise.
33895         * doc/posix-functions/aio_suspend.texi: Likewise.
33896         * doc/posix-functions/aio_write.texi: Likewise.
33897         * doc/posix-functions/fgetpos.texi: Likewise.
33898         * doc/posix-functions/fopen.texi: Likewise.
33899         * doc/posix-functions/freopen.texi: Likewise.
33900         * doc/posix-functions/fsetpos.texi: Likewise.
33901         * doc/posix-functions/fstatvfs.texi: Likewise.
33902         * doc/posix-functions/ftruncate.texi: Likewise.
33903         * doc/posix-functions/ftw.texi: Likewise.
33904         * doc/posix-functions/getrlimit.texi: Likewise.
33905         * doc/posix-functions/glob.texi: Likewise.
33906         * doc/posix-functions/lio_listio.texi: Likewise.
33907         * doc/posix-functions/lockf.texi: Likewise.
33908         * doc/posix-functions/mkstemp.texi: Likewise.
33909         * doc/posix-functions/mmap.texi: Likewise.
33910         * doc/posix-functions/nftw.texi: Likewise.
33911         * doc/posix-functions/openat.texi: Likewise.
33912         * doc/posix-functions/opendir.texi: Likewise.
33913         * doc/posix-functions/posix_fadvise.texi: Likewise.
33914         * doc/posix-functions/posix_fallocate.texi: Likewise.
33915         * doc/posix-functions/pread.texi: Likewise.
33916         * doc/posix-functions/pwrite.texi: Likewise.
33917         * doc/posix-functions/readdir.texi: Likewise.
33918         * doc/posix-functions/readdir_r.texi: Likewise.
33919         * doc/posix-functions/rewinddir.texi: Likewise.
33920         * doc/posix-functions/scandir.texi: Likewise.
33921         * doc/posix-functions/seekdir.texi: Likewise.
33922         * doc/posix-functions/setrlimit.texi: Likewise.
33923         * doc/posix-functions/statvfs.texi: Likewise.
33924         * doc/posix-functions/telldir.texi: Likewise.
33925         * doc/posix-functions/tmpfile.texi: Likewise.
33926         * doc/posix-functions/truncate.texi: Likewise.
33927         * doc/glibc-functions/fallocate.texi: Likewise.
33928         * doc/glibc-functions/fstatfs.texi: Likewise.
33929         * doc/glibc-functions/fts_children.texi: Likewise.
33930         * doc/glibc-functions/fts_read.texi: Likewise.
33931         * doc/glibc-functions/getdirentries.texi: Likewise.
33932         * doc/glibc-functions/mkostemp.texi: Likewise.
33933         * doc/glibc-functions/mkostemps.texi: Likewise.
33934         * doc/glibc-functions/mkstemps.texi: Likewise.
33935         * doc/glibc-functions/preadv.texi: Likewise.
33936         * doc/glibc-functions/pwritev.texi: Likewise.
33937         * doc/glibc-functions/sendfile.texi: Likewise.
33938         * doc/glibc-functions/statfs.texi: Likewise.
33940 2011-07-24  Bruno Haible  <bruno@clisp.org>
33942         doc: Fix typo.
33943         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
33945 2011-07-24  Bruno Haible  <bruno@clisp.org>
33947         doc: Mention fsusage.
33948         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
33950 2011-07-24  Bruno Haible  <bruno@clisp.org>
33952         doc: Mention new glibc headers and functions.
33953         * doc/glibc-headers/gshadow.texi: New file.
33954         * doc/glibc-functions/endsgent.texi: New file.
33955         * doc/glibc-functions/fgetsgent.texi: New file.
33956         * doc/glibc-functions/fgetsgent_r.texi: New file.
33957         * doc/glibc-functions/getsgent.texi: New file.
33958         * doc/glibc-functions/getsgent_r.texi: New file.
33959         * doc/glibc-functions/getsgnam.texi: New file.
33960         * doc/glibc-functions/getsgnam_r.texi: New file.
33961         * doc/glibc-functions/putsgent.texi: New file.
33962         * doc/glibc-functions/setsgent.texi: New file.
33963         * doc/glibc-functions/sgetsgent.texi: New file.
33964         * doc/glibc-functions/sgetsgent_r.texi: New file.
33965         * doc/glibc-functions/malloc_info.texi: New file.
33966         * doc/glibc-functions/preadv.texi: New file.
33967         * doc/glibc-functions/pwritev.texi: New file.
33968         * doc/glibc-functions/register_printf_modifier.texi: New file.
33969         * doc/glibc-functions/register_printf_specifier.texi: New file.
33970         * doc/glibc-functions/register_printf_type.texi: New file.
33971         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
33972         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
33973         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
33974         * doc/glibc-functions/pthread_getname_np.texi: New file.
33975         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
33976         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
33977         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
33978         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
33979         * doc/glibc-functions/pthread_setname_np.texi: New file.
33980         * doc/glibc-functions/pthread_sigqueue.texi: New file.
33981         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
33982         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
33983         * doc/glibc-functions/qsort_r.texi: New file.
33984         * doc/glibc-functions/quick_exit.texi: New file.
33985         * doc/glibc-functions/syncfs.texi: New file.
33986         * doc/gnulib.texi: Include them.
33987         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
33988         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
33989         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
33990         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
33991         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
33992         * doc/glibc-functions/execvpe.texi: Likewise.
33994 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
33996         ftell: don't include <unistd.h>
33997         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
33998         guaranteed to define off_t, and the ftell module depends on the
33999         stdio module.
34001         ftell: do not assume wraparound signed arithmetic
34002         * lib/ftell.c: Include <limits.h>.
34003         (ftell): Don't assume wraparound signed arithmetic.
34005 2011-07-24  Bruno Haible  <bruno@clisp.org>
34007         close: No longer depend on module 'fclose'.
34008         * modules/close (Depends-on): Remove fclose.
34009         * NEWS: Mention the change.
34010         Suggested by Sam Steingold <sds@gnu.org>.
34012 2011-07-24  Bruno Haible  <bruno@clisp.org>
34014         fsusage: Enable large volume support on AIX >= 5.2.
34015         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
34016         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
34017         instead of STAT_STATVFS.
34018         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
34020         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
34021         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
34022         f_blocks field only on MacOS X.
34024         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
34025         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
34026         * modules/fsusage (Depends-on): Add largefile.
34028 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34030         * README: Modernize discussion of signed integers.
34031         Assuming overflow wraparound is no longer safe.
34032         Mention ones' complement and signed magnitude.
34034 2011-07-22  Bruno Haible  <bruno@clisp.org>
34036         select tests, pselect tests: Refactor.
34037         * tests/test-select.h: New file, extracted from tests/test-select.c.
34038         (select_fn): New type.
34039         (test, do_select, do_select_nowait, do_select_wait, test_tty,
34040         test_connect_first, test_accept_first, test_pair, test_socket_pair,
34041         test_pipe): Add my_select argument.
34042         (test_function): Renamed from main. Add my_select argument.
34043         * tests/test-select.c: Move most code to tests/test-select.h. Include
34044         test-select.h.
34045         * modules/select-tests (Files): Add tests/test-select.h.
34046         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
34047         (my_select, main): New functions.
34048         * modules/pselect-tests (Files): Add tests/test-select.h,
34049         tests/macros.h, tests/signature.h.
34050         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
34051         (configure.ac): Check for <sys/wait.h>.
34053 2011-07-22  Bruno Haible  <bruno@clisp.org>
34055         sys_select tests: Check the signature of FD_*.
34056         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
34057         signature tests from here...
34058         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
34059         here.
34060         * modules/sys_select-tests (Files): Add tests/signature.h.
34062 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34064         largefile: new module, replacing large-inode
34065         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
34066         * MODULES.html.sh: Add largefile, remove large-inode.
34067         * modules/largefile, m4/largefile.m4: New files.
34068         * modules/large-inode, m4/large-inode.m4: Remove.
34070         fsusage: port to MacOS X 10.7 with 4 TiB file systems
34071         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
34072         implementations that use only 32 bits to count blocks.
34073         On typical hosts with 1024-byte blocks, this fails with file
34074         systems as small as 4 TiB.  Problem reported by Herb Wartens
34075         <http://debbugs.gnu.org/9140> and this should also fix a similar
34076         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
34078         large-inode: New module
34079         * MODULES.html.sh: Add it.
34080         * modules/large-inode, m4/large-inode.m4: New files.
34082         extensions: Enable extensions on MacOS X 10.5 and later.
34083         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
34085 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
34087         file-has-acl: use acl_extended_file_nofollow if available
34088         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
34089         (acl_extended_file): New macro.
34090         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
34091         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
34093 2011-07-21  Bruno Haible  <bruno@clisp.org>
34095         Declare system functions in a way that works with C++.
34096         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
34097         declare fdopendir as extern "C".
34098         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
34099         declare frexpl as extern "C".
34100         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
34101         declare gai_strerror as extern "C".
34102         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
34103         programs, declare gai_strerror as extern "C".
34104         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
34105         declare getlogin_r as extern "C".
34106         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
34107         as extern "C".
34108         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
34109         declare ldexpl as extern "C".
34110         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
34111         as extern "C".
34112         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
34113         program, declare getmntinfo as extern "C".
34114         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
34115         stpncpy as extern "C".
34116         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
34117         program, declare __xpg_strerror_r as extern "C".
34118         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
34119         strndup as extern "C".
34120         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
34121         declare memset and bzero as extern "C".
34122         Reported by Sam Steingold <sds@gnu.org>.
34124 2011-07-12  Jim Meyering  <meyering@redhat.com>
34126         maint.mk: prohibit inclusion of "verify.h" without use
34127         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
34129 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34131         timer-time: A new module to check for timer_settime()
34132         * m4/timer_time.m4: Check for the posix function.
34133         * modules/timer-time: Add the new module.
34134         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
34135         Mention it.
34137 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
34138             Bruno Haible  <bruno@clisp.org>
34140         pthread_sigmask: assume POSIX threads if --avoid=threadlib
34141         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
34142         not defined, assume POSIX threads and look for pthread_sigmask in
34143         $LIBS, without changing $CPPFLAGS.
34145 2011-07-19  Bruno Haible  <bruno@clisp.org>
34147         strstr: Update cross-compilation guess.
34148         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
34149         CPUs, guess no, in view of glibc
34150         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
34151         Suggested by Eric Blake. Reported by Reuben Thomas.
34153 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34155         getopt-gnu: suppress core dumps from detection code
34156         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
34157         to suppress core dumps that may well occur on glibc systems.
34158         * modules/getopt-gnu: Depend on nocrash.
34160 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34162         pthread_sigmask: ensure usleep is declared
34163         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
34164         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
34166 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34168         doc: Document NonStop portability issues.
34169         * doc/posix-functions/sigaction.texi (sigaction):
34170         * doc/posix-headers/signal.texi (signal.h):
34171         Document NonStop.  See Joachim Schmitz in
34172         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
34174 2011-07-15  Bruno Haible  <bruno@clisp.org>
34176         ffsl, ffsll: Avoid unportable behaviour.
34177         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
34179 2011-07-15  Bruno Haible  <bruno@clisp.org>
34181         ffs: More tests.
34182         * tests/test-ffs.c (NBITS): New macro.
34183         (main): Add more tests.
34184         * tests/test-ffsl.c (NBITS): New macro.
34185         (main): Add more tests.
34186         * tests/test-ffsll.c (NBITS): New macro.
34187         (main): Add more tests.
34189 2011-07-15  Eric Blake  <eblake@redhat.com>
34191         ffsl, ffsll: new modules
34192         * modules/ffsl: New file.
34193         * modules/ffsll: Likewise.
34194         * m4/ffsl.m4: Likewise.
34195         * m4/ffsll.m4: Likewise.
34196         * lib/ffsl.c: Likewise.
34197         * lib/ffsl.h: Likewise.
34198         * lib/ffsll.c: Likewise.
34199         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
34200         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
34201         * modules/string (Makefile.am): Substitute witnesses.
34202         * lib/strings.in.h (ffsl, ffsll): Declare.
34203         * modules/ffsl-tests: New test file.
34204         * modules/ffsll-tests: Likewise.
34205         * tests/test-ffsl.c: Likewise.
34206         * tests/test-ffsll.c: Likewise.
34207         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34208         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
34209         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
34211         ffs: fix m4 prerequisite
34212         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
34214         ffs: avoid undefined behavior
34215         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
34216         * tests/test-ffs.c (naive, main): Avoid signed shifts.
34217         Reported by Bruno Haible.
34219 2011-07-12  Bruno Haible  <bruno@clisp.org>
34221         pthread_sigmask: Rely on module 'threadlib'.
34222         * modules/pthread_sigmask (Depends-on): Add threadlib.
34223         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
34224         is defined.
34226 2011-07-12  Bruno Haible  <bruno@clisp.org>
34228         regex: Depend on module 'strcase'.
34229         * modules/regex (Depends-on): Add strcase, for strcasecmp().
34231 2011-07-12  Jim Meyering  <meyering@redhat.com>
34233         warn-on-use: fix typo in file name
34234         * modules/snippet/warn-on-use (Files): Correct file name:
34235         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
34237 2011-07-12  Bruno Haible  <bruno@clisp.org>
34239         strings: Document module.
34240         * doc/posix-headers/strings.texi: Mention module 'strings'.
34242 2011-07-12  Bruno Haible  <bruno@clisp.org>
34244         Rename module '_Noreturn' to 'snippet/_Noreturn'.
34245         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
34246         (Files, Makefile.am): Update.
34247         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
34248         * modules/stdlib (Depends-on): Update.
34250 2011-07-12  Bruno Haible  <bruno@clisp.org>
34252         * NEWS: Mention the changes.
34254         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
34255         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
34256         (Files, Makefile.am): Update.
34257         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
34258         * modules/arpa_inet (Depends-on): Update.
34259         * modules/ctype (Depends-on): Update.
34260         * modules/dirent (Depends-on): Update.
34261         * modules/fcntl-h (Depends-on): Update.
34262         * modules/glob (Depends-on): Update.
34263         * modules/iconv-h (Depends-on): Update.
34264         * modules/inttypes-incomplete (Depends-on): Update.
34265         * modules/langinfo (Depends-on): Update.
34266         * modules/locale (Depends-on): Update.
34267         * modules/math (Depends-on): Update.
34268         * modules/netdb (Depends-on): Update.
34269         * modules/poll-h (Depends-on): Update.
34270         * modules/pty (Depends-on): Update.
34271         * modules/search (Depends-on): Update.
34272         * modules/signal (Depends-on): Update.
34273         * modules/spawn (Depends-on): Update.
34274         * modules/stdio (Depends-on): Update.
34275         * modules/stdlib (Depends-on): Update.
34276         * modules/string (Depends-on): Update.
34277         * modules/strings (Depends-on): Update.
34278         * modules/sys_file (Depends-on): Update.
34279         * modules/sys_ioctl (Depends-on): Update.
34280         * modules/sys_select (Depends-on): Update.
34281         * modules/sys_socket (Depends-on): Update.
34282         * modules/sys_stat (Depends-on): Update.
34283         * modules/sys_time (Depends-on): Update.
34284         * modules/sys_times (Depends-on): Update.
34285         * modules/sys_utsname (Depends-on): Update.
34286         * modules/sys_wait (Depends-on): Update.
34287         * modules/termios (Depends-on): Update.
34288         * modules/time (Depends-on): Update.
34289         * modules/unistd (Depends-on): Update.
34290         * modules/wchar (Depends-on): Update.
34291         * modules/wctype-h (Depends-on): Update.
34292         * MODULES.html.sh (Support for building libraries and executables):
34293         Update.
34295         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
34296         * modules/snippet/unused-parameter: Renamed from
34297         modules/unused-parameter.
34298         (Files, Makefile.am): Update.
34299         * build-aux/snippet/unused-parameter.h: Renamed from
34300         build-aux/unused-parameter.h.
34301         * modules/selinux-h (Depends-on): Update.
34302         * modules/unistr/base (Depends-on): Update.
34303         * MODULES.html.sh (Core language properties): Update.
34305         Rename module 'link-warning' to 'snippet/link-warning'.
34306         * modules/snippet/link-warning: Renamed from modules/link-warning.
34307         (Files, Makefile.am): Update.
34308         * build-aux/snippet/link-warning.h: Renamed from
34309         build-aux/link-warning.h.
34310         * MODULES.html.sh (Support for building libraries and executables):
34311         Update.
34313         Rename module 'c++defs' to 'snippet/c++defs'.
34314         * modules/snippet/c++defs: Renamed from modules/c++defs.
34315         (Files, Makefile.am): Update.
34316         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
34317         * modules/arpa_inet (Depends-on): Update.
34318         * modules/ctype (Depends-on): Update.
34319         * modules/dirent (Depends-on): Update.
34320         * modules/fcntl-h (Depends-on): Update.
34321         * modules/glob (Depends-on): Update.
34322         * modules/iconv-h (Depends-on): Update.
34323         * modules/langinfo (Depends-on): Update.
34324         * modules/locale (Depends-on): Update.
34325         * modules/math (Depends-on): Update.
34326         * modules/netdb (Depends-on): Update.
34327         * modules/poll-h (Depends-on): Update.
34328         * modules/pty (Depends-on): Update.
34329         * modules/search (Depends-on): Update.
34330         * modules/signal (Depends-on): Update.
34331         * modules/spawn (Depends-on): Update.
34332         * modules/stdio (Depends-on): Update.
34333         * modules/stdlib (Depends-on): Update.
34334         * modules/string (Depends-on): Update.
34335         * modules/strings (Depends-on): Update.
34336         * modules/sys_ioctl (Depends-on): Update.
34337         * modules/sys_select (Depends-on): Update.
34338         * modules/sys_socket (Depends-on): Update.
34339         * modules/sys_stat (Depends-on): Update.
34340         * modules/sys_time (Depends-on): Update.
34341         * modules/sys_wait (Depends-on): Update.
34342         * modules/termios (Depends-on): Update.
34343         * modules/time (Depends-on): Update.
34344         * modules/unistd (Depends-on): Update.
34345         * modules/wchar (Depends-on): Update.
34346         * modules/wctype-h (Depends-on): Update.
34348         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
34349         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
34350         (Files, Makefile.am): Update.
34351         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
34352         * modules/argv-iter (Depends-on): Update.
34353         * modules/arpa_inet (Depends-on): Update.
34354         * modules/dirent (Depends-on): Update.
34355         * modules/fcntl-h (Depends-on): Update.
34356         * modules/fnmatch (Depends-on): Update.
34357         * modules/getopt-posix (Depends-on): Update.
34358         * modules/glob (Depends-on): Update.
34359         * modules/iconv-h (Depends-on): Update.
34360         * modules/inttypes-incomplete (Depends-on): Update.
34361         * modules/locale (Depends-on): Update.
34362         * modules/math (Depends-on): Update.
34363         * modules/netdb (Depends-on): Update.
34364         * modules/search (Depends-on): Update.
34365         * modules/signal (Depends-on): Update.
34366         * modules/spawn (Depends-on): Update.
34367         * modules/stdio (Depends-on): Update.
34368         * modules/stdlib (Depends-on): Update.
34369         * modules/string (Depends-on): Update.
34370         * modules/strings (Depends-on): Update.
34371         * modules/sys_socket (Depends-on): Update.
34372         * modules/sys_stat (Depends-on): Update.
34373         * modules/sys_time (Depends-on): Update.
34374         * modules/sys_times (Depends-on): Update.
34375         * modules/sys_utsname (Depends-on): Update.
34376         * modules/time (Depends-on): Update.
34377         * modules/unistd (Depends-on): Update.
34378         * modules/wchar (Depends-on): Update.
34379         * MODULES.html.sh (Support for building libraries and executables):
34380         Update.
34382 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34384         Improvements on _Noreturn and related modules.
34386         modules/_Exit-tests: test _Noreturn too
34387         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
34388         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
34389         (main): Use them.
34391         stdnoreturn, stdnoreturn-tests: remove modules
34392         They're not needed here and a bit premature for use elsewhere.  See
34393         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
34394         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
34395         * tests/test-stdnoreturn.c: Remove files.
34396         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
34397         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
34398         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
34399         and using noreturn.
34400         * modules/openat, modules/sigpipe-die, modules/xalloc:
34401         * modules/xmemdup0, modules/xstrtol:
34402         Remove dependency on stdnoreturn.
34404         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
34405         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
34406         Reparenthesize to avoid GCC warning.
34407         Support Microsoft's syntax.
34408         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
34410         _Noreturn-tests: remove module
34411         * modules/_Noreturn-tests: Remove.
34412         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
34413         * tests/test-_Noreturn.c: Remove.
34414         * tests/test-stdnoreturn.c: Merge from the old
34415         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
34417 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
34419         _Noreturn, stdnoreturn, and related modules.
34421         * top/maint.mk: Adjust to new noreturn support.
34422         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
34423         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
34425         xalloc: use stdnoreturn.h
34426         * lib/xalloc.h: Include <stdnoreturn.h>.
34427         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34428         * modules/xalloc (Depends-on): Add stdnoreturn.
34430         xstrtol: use stdnoreturn.h
34431         * lib/xstrtol.h: Include <stdnoreturn.h>.
34432         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34433         * modules/xstrtol (Depends-on): Add stdnoreturn.
34435         xmemdup0: use stdnoreturn.h
34436         * lib/xmemdup0.h: Include <stdnoreturn.h>.
34437         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34438         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
34440         sigpipe-die: use stdnoreturn.h
34441         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
34442         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34443         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
34445         openat: use stdnoreturn.h
34446         * lib/openat.h: Include <stdnoreturn.h>.
34447         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
34448         * modules/openat (Depends-on): Add stdnoreturn.
34450         * lib/openat-die.c (openat_save_fail): Modernize comment.
34452         * lib/xalloc-die.c (xalloc_die): Modernize comment.
34454         * lib/glthread/thread.h: Modernize comment.
34456         obstack: use _Noreturn
34457         * lib/obstack.c (__attribute__): Remove macro.
34458         (print_and_abort): Use _Noreturn.
34460         c-stack: use _Noreturn
34461         * lib/c-stack.c (die, overflow_handler, segv_handler):
34462         Use _Noreturn rather than __attribute__((noreturn)).
34464         argmatch-tests, exclude_tests: use _Noreturn
34465         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
34466         Remove.
34467         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
34469         stdlib: use _Noreturn
34470         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
34471         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
34472         * modules/stdlib (Depends-on): Add _Noreturn.
34473         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
34475         stdnoreturn-tests: new module
34476         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
34478         stdnoreturn: new module
34479         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
34480         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
34482         _Noreturn-tests: new module
34483         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
34485         _Noreturn: new module
34486         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
34487         New section, mentioning it.
34488         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
34490         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
34492 2011-07-11  Eric Blake  <eblake@redhat.com>
34494         ffs: new module
34495         * modules/ffs: New file.
34496         * m4/ffs.m4: Likewise.
34497         * lib/ffs.c: Likewise.
34498         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
34499         * modules/strings (Makefile.am): Substitute witness.
34500         (Depends-on): Add c++defs.
34501         * lib/strings.in.h (ffs): Declare.
34502         * modules/ffs-tests: New test file.
34503         * tests/test-ffs.c: Test new module.
34504         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34505         * doc/posix-functions/ffs.texi (ffs): Likewise.
34507         regex: avoid compiler warning
34508         * lib/regex.c (includes): Include <strings.h>, for use of
34509         strcasecmp in regcomp.c.
34510         Reported by Joachim Schmitz.
34512 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34514         stdint: respect system's intmax_t if INTMAX_MAX
34515         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
34516         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
34517         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
34518         long but int64_t is long long, and where we will clash with the
34519         system intmax_t if we override it.  See
34520         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
34521         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
34522         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
34523         similarly for UINTMAX_C.
34525 2011-07-08  Bruno Haible  <bruno@clisp.org>
34527         pthread_sigmask tests: Avoid a compiler warning.
34528         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
34529         non-zero.
34531         sigprocmask tests: A better way to avoid a compiler warning.
34532         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
34533         (main): Complain if system() returns non-zero.
34534         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
34536 2011-07-08  Bruno Haible  <bruno@clisp.org>
34538         pthread_sigmask: Work around IRIX bug.
34539         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
34540         bug.
34541         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
34542         there may be unblocked pending signals.
34543         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
34545 2011-07-08  Bruno Haible  <bruno@clisp.org>
34547         pthread_sigmask: Work around Cygwin bug.
34548         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
34549         bug.
34550         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
34551         the system's pthread_sigmask function.
34552         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
34554 2011-07-08  Bruno Haible  <bruno@clisp.org>
34556         pthread_sigmask: Work around bug in single-threaded implementation.
34557         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
34558         FreeBSD, HP-UX, Solaris bug.
34559         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
34560         * lib/pthread_sigmask.c: Include <stddef.h>.
34561         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
34562         the system's pthread_sigmask function.
34563         * modules/pthread_sigmask (configure.ac): Invoke
34564         gl_PREREQ_PTHREAD_SIGMASK.
34565         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
34566         HP-UX, Solaris.
34568 2011-07-08  Eric Blake  <eblake@redhat.com>
34570         test-sigprocmask: avoid compiler warning
34571         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
34572         * tests/test-sigprocmask.c (main): Use it to silence warning.
34573         Reported by Jim Meyering.
34575         test-snprintf: avoid compiler warning
34576         * tests/test-snprintf.c (main): Avoid shadowed declaration.
34577         * tests/test-vsnprintf.c (main): Likewise.
34578         Reported by Jim Meyering.
34580 2011-07-08  Bruno Haible  <bruno@clisp.org>
34582         Tests for module 'pthread_sigmask'.
34583         * modules/pthread_sigmask-tests: New file.
34584         * tests/test-pthread_sigmask1.c: New file, based on
34585         tests/test-sigprocmask.c.
34586         * tests/test-pthread_sigmask2.c: New file.
34588 2011-07-08  Jim Meyering  <meyering@redhat.com>
34590         test-getopt.h: avoid warning about an unused variable
34591         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
34593 2011-07-07  Jim Meyering  <meyering@redhat.com>
34595         maint: reduce list of files exempt from sc_prohibit_leading_TABs
34596         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
34597         now that it no longer contains leading TABs.
34598         Remove unused "url=FIXME" statement.
34600 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
34602         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
34603         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
34604         When gl_THREADLIB is not in use, assume that the POSIX sematics
34605         are desired.  This is better for Emacs, which uses POSIX semantics
34606         on GNUish and/or POSIXish platforms, and does not use threads at
34607         all otherwise.
34609         pthread_sigmask: fix typo when testing for libraries
34610         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
34611         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
34613 2011-07-08  Eric Blake  <eblake@redhat.com>
34615         fts: introduce FTS_NOATIME
34616         * lib/fts_.h (FTS_NOATIME): New bit flag.
34617         (FTS_OPTIONMASK): Adjust.
34618         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
34619         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
34621 2011-07-08  Bruno Haible  <bruno@clisp.org>
34623         Tests for module 'thread'.
34624         * modules/thread-tests: New file.
34625         * tests/test-thread_self.c: New file.
34626         * tests/test-thread_create.cc: New file.
34628 2011-07-08  Bruno Haible  <bruno@clisp.org>
34630         thread: Avoid gcc warnings when using gl_thread_self().
34631         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
34632         'void *'.
34633         (gl_thread_self_pointer): Update.
34635 2011-07-07  Bruno Haible  <bruno@clisp.org>
34637         signal-c++-tests: Check declaration of pthread_sigmask.
34638         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
34639         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
34640         $(LIB_PTHREAD_SIGMASK).
34642 2011-07-07  Bruno Haible  <bruno@clisp.org>
34644         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
34645         * lib/signal.in.h (pthread_sigmask): Override if
34646         REPLACE_PTHREAD_SIGMASK is 1.
34647         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34648         REPLACE_PTHREAD_SIGMASK.
34649         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
34650         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
34651         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
34652         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
34653         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
34655 2011-07-07  Bruno Haible  <bruno@clisp.org>
34657         pthread_sigmask: Ensure declaration in <signal.h>.
34658         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
34659         include <pthread.h>.
34660         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
34661         problem.
34663 2011-07-07  Bruno Haible  <bruno@clisp.org>
34665         pthread_sigmask: Document the module.
34666         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
34668 2011-07-07  Bruno Haible  <bruno@clisp.org>
34670         pthread_sigmask: Follow gnulib conventions.
34671         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
34672         gl_PTHREAD_SIGMASK.
34673         * modules/pthread_sigmask (configure.ac): Update.
34675 2011-07-07  Bruno Haible  <bruno@clisp.org>
34677         pthread_sigmask: Make declaration C++ safe.
34678         * lib/signal.in.h: In two special conditions, just do an #include_next.
34679         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
34680         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
34681         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
34682         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
34683         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
34684         not REPLACE_PTHREAD_MASK.
34685         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
34686         not REPLACE_PTHREAD_MASK.
34687         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
34689 2011-07-07  Bruno Haible  <bruno@clisp.org>
34691         pthread_sigmask: Fix return value.
34692         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
34693         * lib/pthread_sigmask.c: New file.
34694         * modules/pthread_sigmask (Files): Add it.
34695         (configure.ac): Invoke AC_LIBOBJ.
34697 2011-07-07  Eric Blake  <eblake@redhat.com>
34699         getopt: more portable argv creation
34700         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
34701         const, use char arrays rather than strings.
34702         Suggested by Paul Eggert.
34704 2011-07-07  Bruno Haible  <bruno@clisp.org>
34706         Tests for module 'sigprocmask'.
34707         * modules/sigprocmask-tests: New file.
34708         * tests/test-sigprocmask.c: New file.
34710 2011-07-07  Bruno Haible  <bruno@clisp.org>
34712         float tests: Tweak.
34713         * tests/test-float.c (main): Tweak skip message.
34715 2011-07-07  Eric Blake  <eblake@redhat.com>
34717         getopt: avoid compiler warning during configure
34718         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
34719         assigning string literals to non-const pointer.
34721         getopt-gnu: avoid crash in glibc getopt
34722         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
34723         * tests/test-getopt.h (test_getopt): Enhance test.
34724         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34725         * doc/posix-functions/getopt.texi (getopt): Document it.
34726         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34727         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34728         Likewise.
34730 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
34732         getopt: handle W; without long options in getopt [BZ #12922]
34733         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
34734         but no long options are defined, just return 'W'.
34736 2011-07-07  Bruno Haible  <bruno@clisp.org>
34738         Avoid literal tabs.
34739         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
34740         variable containing a tab instead of a literal tab.
34741         Reported by Jim Meyering.
34743 2011-07-07  Bruno Haible  <bruno@clisp.org>
34745         Comments.
34746         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
34748 2011-07-06  Bruno Haible  <bruno@clisp.org>
34750         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
34751         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
34752         <winsock2.h>.
34753         (rpl_fd_isset, FD_ISSET): New definitions, copied from
34754         lib/sys_socket.in.h.
34755         (close, gethostname): Hide declarations from <winsock2.h>.
34756         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34757         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
34758         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
34759         (select): Don't override if gnulib's <sys/select.h> was already
34760         included.
34761         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34762         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34763         setsockopt, shutdown, select): Tweak indentation.
34765 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34767         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
34768         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
34769         in an application that does not use the sys_select module.
34771 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
34773         poll: do not return 0 on timeout=-1
34774         * lib/poll.c: Loop with yield if no events occurred.
34776 2011-07-06  Eric Blake  <eblake@redhat.com>
34778         pthread_sigmask: always replace when not using pthread
34779         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
34780         replacement when using some threading other than pthread.  Fix
34781         logic bug.
34783 2011-07-06  Bruno Haible  <bruno@clisp.org>
34785         Comments.
34786         * m4/printf.m4: Update comments about mingw.
34788 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34790         sys_select: define sigset_t more portably
34791         * lib/sys_select.in.h: Always include <sys/types.h>, since
34792         we now need sigset_t and mingw defines it there.
34793         Include <signal.h> before split inclusion guard, to avoid
34794         mishaps on Solaris, whose <signal.h> eventually includes us.
34795         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
34796         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
34797         which come from ...
34798         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
34799         gl_CHECK_TYPE_SIGSET_T.
34800         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
34801         does the real work.
34802         * modules/sys_select (Depends-on): Add 'signal'.
34804         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
34805         Suggested by Bruno Haible.
34807         pselect: Use pthread_sigmask, not sigprocmask.
34808         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
34809         multithreaded apps better than sigprocmask does.
34810         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
34811         sigprocmask directly.
34813 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34815         * lib/pselect.c (pselect): Use plain name, without "rpl_".
34816         Don't #undef,  since we don't need any underlying pselect.
34817         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
34818         (Depends-on): Add select.
34819         (Link): Add $(LIBSOCKET).
34820         These changes suggested by Bruno Haible.
34822         pselect: document better
34823         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
34824         * doc/posix-functions/pselect.texi (pselect): Document new module.
34826         pthread_sigmask: new module
34827         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
34828         * doc/posix-functions/pthread_sigmask.texi: Document new module.
34829         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
34830         This is done only as a macro; I don't know how well that'll
34831         work for C++.  Move <sys/types.h> include before the include_next,
34832         to avoid mishap on Solaris.
34833         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
34834         * modules/signal (Makefile.am): Substitute the check's results.
34835         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
34837         test-pselect: new module
34838         * modules/pselect-tests, tests/test-pselect.c: New files.
34839         * tests/test-select.c, tests/test-sys_select-c++.cc:
34840         If TEST_PSELECT is defined, test pselect instead of testing select.
34842         * tests/test-sys_select.c (sigset_t): Test for it, too.
34843         Suggested by Bruno Haible.
34845 2011-07-05  Eric Blake  <eblake@redhat.com>
34847         snprintf: guarantee %1$d, for libintl
34848         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
34849         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
34850         * doc/posix-functions/snprintf.texi (snprintf): Update.
34851         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34852         * tests/test-snprintf.c (main): Enhance test.
34853         * tests/test-vsnprintf.c (main): Likewise.
34855 2011-07-05  Jim Meyering  <meyering@redhat.com>
34857         maint: exempt stdio-read.c and stdio-write.c from the cppi check
34858         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
34859         per Bruno's request, to accommodate this idiom (no space after "#")
34860         even when the function is inside an #if block:
34861         char *
34862         gets (char *s)
34863         #undef gets
34864         {
34865           ...
34866         }
34868 2011-07-04  Jim Meyering  <meyering@redhat.com>
34870         maint: indent with spaces, not TABs, and add a rule to check this
34871         * tests/test-userspec.c: Indent with spaces, not TABs.
34872         * tests/test-argp.c: Likewise.
34873         * tests/test-c-stack2.sh: Likewise.
34874         * tests/test-parse-duration.sh: Likewise
34875         * m4/strtod.m4: Likewise.
34876         * m4/alloca.m4: Likewise.
34877         * m4/pselect.m4: Likewise.
34878         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
34880 2011-07-03  Jim Meyering  <meyering@redhat.com>
34882         maint.mk: correct omissions in prohibit_argmatch_without_use check
34883         This rule would mistakenly report that argmatch.h is included without
34884         use even when both the argmatch and invalid_arg macro were used.
34885         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
34886         of argmatch and invalid_arg.
34888 2011-07-03  Bruno Haible  <bruno@clisp.org>
34890         Comments about EINTR.
34891         * lib/safe-read.h: Explain the purpose of this module.
34892         * lib/safe-write.h: Likewise.
34893         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
34894         module.
34895         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
34896         module.
34897         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34899 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
34901         xnanosleep: Rewrite to use new dtotimespec module.
34902         It has the conversion code that used to be in xnanosleep.
34903         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
34904         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
34905         (TIME_T_MAX): Remove.
34906         (xnanosleep): Rewrite in terms of dtotimespec.
34907         * modules/xnanosleep (Depends-on): Add dtotimespec.
34908         Remove intprops, stdbool.
34910         timespec-add, timespec-sub: new modules
34911         * lib/timespec.h (timespec_add, timespec_sub): New decls.
34912         * lib/timespec-add.c, lib/timespec-sub.c:
34913         * modules/timespec-add, modules/timespec-sub: New files.
34915         dtotimespec: new module
34916         * lib/timespec.h (dtotimespec): New decl.
34917         * lib/dtotimespec.c, modules/dtotimespec: New files.
34919         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
34921         pselect: new module
34922         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
34923         (pselect): New decls.
34924         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
34925         since the standard pselect decl uses 'restrict'.
34926         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
34927         HAVE_PSELECT, REPLACE_PSELECT.
34928         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
34929         HAVE_PSELECT, REPLACE_PSELECT.
34930         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
34932         sys_select: don't depend on sys_socket
34933         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
34934         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
34935         This fix works on GNU and GNU-like platforms, but has not been tested
34936         on native Windows.
34937         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
34938         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
34939         gl_HEADER_SYS_SOCKET.
34940         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
34941         gl_PREREQ_SYS_H_WINSOCK2.
34943 2011-06-29  Eric Blake  <eblake@redhat.com>
34945         pipe2: fix C89 compile problem
34946         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
34947         Reported by Bruno Haible.
34949         pipe, pipe2: don't corrupt fd on error
34950         * lib/pipe.c (pipe): Leave fd unchanged on error.
34951         * lib/pipe2.c (pipe2): Likewise.
34952         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
34953         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34955 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
34957         mmap-anon: do not use regular expressions inadvertently
34958         * m4/mmap-anon.m4: Remove trailing period from strings sought
34959         in the output.
34961 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
34963         nanosleep: fix integer overflow problem
34964         * lib/nanosleep.c (my_usleep): Don't assume signed integer
34965         arithmetic wraps around on overflow.
34967         nanosleep: simplify carrying
34968         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
34969         first call to the underyling nanosleep, not for the last one.
34970         This doesn't fix any bugs, but it simplifies the computation of
34971         the remaining delay.  Found while auditing integer overflow issues.
34973         dup2: remove test for existence of fcntl
34974         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
34975         "#if HAVE_FCNTL", in the configure-time test program.
34976         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
34977         and therefore speeds up "configure" a bit.  Found while
34978         adding the dup2 module to Emacs.
34980 2011-06-24  Eric Blake  <eblake@redhat.com>
34982         maint.mk: enhance useless header checks
34983         * top/maint.mk (_sc_header_without_use): Check both include
34984         styles.
34985         (sc_prohibit_assert_without_use)
34986         (sc_prohibit_close_stream_without_use)
34987         (sc_prohibit_getopt_without_use)
34988         (sc_prohibit_quotearg_without_use)
34989         (sc_prohibit_quote_without_use)
34990         (sc_prohibit_long_options_without_use)
34991         (sc_prohibit_inttostr_without_use)
34992         (sc_prohibit_ignore_value_without_use)
34993         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
34994         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
34995         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
34996         (sc_prohibit_hash_pjw_without_use)
34997         (sc_prohibit_safe_read_without_use)
34998         (sc_prohibit_argmatch_without_use)
34999         (sc_prohibit_canonicalize_without_use)
35000         (sc_prohibit_root_dev_ino_without_use)
35001         (sc_prohibit_openat_without_use)
35002         (sc_prohibit_c_ctype_without_use)
35003         (sc_prohibit_signal_without_use)
35004         (sc_prohibit_stdio--_without_use)
35005         (sc_prohibit_stdio-safer_without_use)
35006         (sc_prohibit_strings_without_use)
35007         (sc_prohibit_intprops_without_use)
35008         (sc_prohibit_stddef_without_use)
35009         (sc_prohibit_xfreopen_without_use): Update clients.
35011 2011-06-24  Jim Meyering  <meyering@redhat.com>
35013         syntax-check: keep one maint.mk rule in sync with its header
35014         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
35015         of the bug Eric has just fixed, with today's commit 25e4c2ec.
35016         I prefer to avoid temporary files here, so use <(...), but that
35017         is not supported by /bin/sh, so...
35018         (SHELL): Define to /bin/bash.
35020 2011-06-24  Eric Blake  <eblake@redhat.com>
35022         maint.mk: update sc_prohibit_intprops_without_use
35023         * top/maint.mk (_intprops_names): Match recent changes.
35025 2011-06-24  Bruno Haible  <bruno@clisp.org>
35027         strerror-override: No-op tweak.
35028         * lib/strerror-override.h (strerror_override): Reorder conditions,
35029         for consistency with lib/strerror-override.c.
35031 2011-06-23  Eric Blake  <eblake@redhat.com>
35033         maint.mk: test further PATH_MAX issues
35034         * top/maint.mk (sc_prohibit_path_max_array): Rename...
35035         (sc_prohibit_path_max_allocation): ...and also test alloca.
35036         Suggested by Jim Meyering.
35038 2011-06-22  Eric Blake  <eblake@redhat.com>
35040         maint.mk: add syntax-check to avoid char[PATH_MAX]
35041         * top/maint.mk (sc_prohibit_path_max_array): New rule.
35043         stat: be robust to PATH_MAX definition
35044         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
35045         * modules/stat (Depends-on): Add verify.
35047         link: work around IRIX bug
35048         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
35049         * lib/link.c (rpl_link): Work around it.
35050         * tests/test-link.h (test_link): Enhance test.
35051         * doc/posix-functions/link.texi (link): Document the bug.
35053         getopt: silence clang warning
35054         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
35055         dereference.
35056         Reported by Gustavo Martin Domato.
35058 2011-06-22  Jim Meyering  <meyering@redhat.com>
35060         bootstrap: do not insert a blank line into each .gitignore file
35061         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
35063 2011-06-21  Eric Blake  <eblake@redhat.com>
35065         perror: test for output mismatch
35066         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
35067         perror on IRIX.
35069         strerror_r: fix OpenBSD behavior on out-of-range
35070         * lib/strerror_r.c (strerror_r): Always use maximal string.
35071         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35073         strerror_r: fix OpenBSD behavior on 0
35074         * lib/strerror-override.c (strerror_override): Also override 0
35075         when needed.
35076         * lib/strerror-override.h (strerror_override): Likewise.
35077         * lib/strerror.c (strerror): Simplify, now that 0 override is done
35078         earlier.
35079         * lib/strerror_r.c (strerror_r): Likewise.
35080         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
35081         behavior...
35082         (gl_FUNC_STRERROR_0): ...into new macro.
35083         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
35084         is overridden.
35085         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
35086         * modules/strerror-override (Files): Add strerror.m4.
35087         (configure.ac): Also provide override for 0 when needed.
35088         * doc/posix-functions/strerror.texi (strerror): Document this.
35089         * doc/posix-functions/perror.texi (perror): Likewise.
35091         perror: adjust array size
35092         * modules/perror (Depends-on): Add strerror-override.
35093         * lib/perror.c (perror): Use it to avoid magic number.
35095         strerror-override: reduce size
35096         * lib/strerror-override.c (strerror_override): Use fewer lines.
35098 2011-06-20  Bruno Haible  <bruno@clisp.org>
35100         pathmax: Ensure correct value for PATH_MAX on HP-UX.
35101         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
35103 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35105         alloca: port to compilers that can optimize like GCC 4.6.0
35106         * lib/alloca.c (find_stack_direction): New signature, taken from
35107         Autoconf git.  This works with GCC 4.6.0.  This code should never
35108         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
35109         be used with other compilers that optimize as well as GCC 4.6.0 does.
35110         (alloca): Adjust to new signature.
35111         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
35112         New macro, which patches Autoconf in a similar way.
35114         c-stack: stop worrying about stack direction
35115         * lib/c-stack.c (find_stack_direction): Remove.
35116         (segv_handler): Don't worry about stack direction growth, as it's
35117         too much of a pain to configure this correctly, given how compilers
35118         are optimizing-away our stack-growth detection code.  Instead, assume
35119         that any access to just before or just after the stack is OK.
35120         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35121         Don't require AC_FUNC_ALLOCA; no longer needed.
35123 2011-06-20  Eric Blake  <eblake@redhat.com>
35125         test-stat: don't allocate PATH_MAX bytes
35126         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
35127         PATH_MAX-sized buffer.
35128         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
35129         * modules/stat-tests (Depends-on): Likewise.
35130         * tests/test-fstatat.c (includes): Drop pathmax.h.
35131         * tests/test-stat.c (includes): Likewise.
35132         Reported by Bruno Haible.
35134 2011-06-20  Bruno Haible  <bruno@clisp.org>
35136         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
35137         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
35138         * lib/float.c: New file.
35139         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
35140         REPLACE_FLOAT_LDBL.
35141         * modules/float (Files): Add lib/float.c.
35142         (configure.ac): Invoke AC_LIBOBJ.
35143         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
35145 2011-06-20  Bruno Haible  <bruno@clisp.org>
35147         Tests for module 'float'.
35148         * modules/float-tests: New file.
35149         * tests/test-float.c: New file.
35151 2011-06-19  Bruno Haible  <bruno@clisp.org>
35153         isinf: Coding style.
35154         * lib/isinf.c: Use GNU coding style.
35156 2011-06-19  Bruno Haible  <bruno@clisp.org>
35158         linkat test: Avoid test failure on AIX 7.1.
35159         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
35160         * tests/test-link.h (test_link): Likewise.
35162 2011-06-19  Bruno Haible  <bruno@clisp.org>
35164         pread test: Avoid test failure on OpenBSD 4.9.
35165         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
35167 2011-06-19  Bruno Haible  <bruno@clisp.org>
35169         sprintf-posix: Fix test failure on AIX 7.1.
35170         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
35171         * doc/posix-functions/dprintf.texi: Mention limited precision problem
35172         on AIX.
35173         * doc/posix-functions/fprintf.texi: Likewise.
35174         * doc/posix-functions/printf.texi: Likewise.
35175         * doc/posix-functions/snprintf.texi: Likewise.
35176         * doc/posix-functions/sprintf.texi: Likewise.
35177         * doc/posix-functions/vdprintf.texi: Likewise.
35178         * doc/posix-functions/vfprintf.texi: Likewise.
35179         * doc/posix-functions/vprintf.texi: Likewise.
35180         * doc/posix-functions/vsnprintf.texi: Likewise.
35181         * doc/posix-functions/vsprintf.texi: Likewise.
35183 2011-06-19  Bruno Haible  <bruno@clisp.org>
35185         roundl-ieee: Fix test failure on AIX 7.1.
35186         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
35187         * doc/posix-functions/roundl.texi: Mention problem with negative
35188         arguments.
35190 2011-06-19  Bruno Haible  <bruno@clisp.org>
35192         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35193         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
35194         * doc/posix-functions/round.texi: Mention problem with negative
35195         arguments.
35196         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
35198 2011-06-19  Bruno Haible  <bruno@clisp.org>
35200         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35201         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
35202         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
35203         * doc/posix-functions/roundf.texi: Mention problem with negative
35204         arguments.
35205         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
35207 2011-06-19  Bruno Haible  <bruno@clisp.org>
35209         ceilf-ieee: Work around bug on MacOS X 10.5.
35210         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
35212         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
35213         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
35214         IEEE compliant, avoid compiler optimizations.
35215         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
35216         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35217         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
35218         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35219         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35220         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
35221         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35222         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35223         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35224         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
35226 2011-06-19  Bruno Haible  <bruno@clisp.org>
35228         ceilf-ieee: Work around bug on AIX 7.1.
35229         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
35230         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
35232 2011-06-19  Bruno Haible  <bruno@clisp.org>
35234         ceil-ieee: Work around bug on AIX 7.1.
35235         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
35236         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
35238 2011-06-18  Bruno Haible  <bruno@clisp.org>
35240         fsync test: Avoid test failure on MacOS X and AIX.
35241         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
35242         EINVAL.
35244 2011-06-18  Bruno Haible  <bruno@clisp.org>
35246         openat, fdopendir tests: Fix link errors.
35247         * modules/openat-tests (Depends-on): Add progname.
35248         * modules/fdopendir-tests (Depends-on): Likewise.
35249         * tests/test-fchownat.c: Include progname.h.
35250         (main): Call set_program_name.
35251         * tests/test-fstatat.c: Include progname.h.
35252         (main): Call set_program_name.
35253         * tests/test-mkdirat.c: Include progname.h.
35254         (main): Call set_program_name.
35255         * tests/test-openat.c: Include progname.h.
35256         (main): Call set_program_name.
35257         * tests/test-unlinkat.c: Include progname.h.
35258         (main): Call set_program_name.
35259         * tests/test-fdopendir.c: Include progname.h.
35260         (main): Call set_program_name.
35262 2011-06-18  Bruno Haible  <bruno@clisp.org>
35264         Doc update.
35265         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
35266         HP-UX.
35267         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
35269 2011-06-18  Bruno Haible  <bruno@clisp.org>
35271         getcwd tests: Avoid compilation error on HP-UX 11.31.
35272         * modules/getcwd-tests (Depends-on): Add pathmax.
35273         * tests/test-getcwd.c: Include pathmax.h.
35275 2011-06-18  Bruno Haible  <bruno@clisp.org>
35277         isfinite, isinf: Fix link error on AIX 6 and 7.
35278         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
35279         needed, also test the macro with a 'float' argument.
35280         * m4/isinf.m4 (gl_ISINF): Likewise.
35282 2011-06-18  Bruno Haible  <bruno@clisp.org>
35284         getloadavg: Don't clobber LIBS. Regression from previous commit.
35285         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
35286         AC_CHECK_LIB from here...
35287         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
35288         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
35289         gl_func_getloadavg_done.
35290         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35292 2011-06-18  Bruno Haible  <bruno@clisp.org>
35294         clean-temp: Improve documentation.
35295         * lib/clean-temp.h: Explain better how to use this module.
35296         Reported by John Darrington <john@darrington.wattle.id.au>.
35298 2011-06-17  Bruno Haible  <bruno@clisp.org>
35300         pread, pwrite: Avoid cc warning on AIX.
35301         * lib/unistd.in.h (pread): Undefine before defining as a macro.
35302         (pwrite): Likewise.
35304 2011-06-17  Bruno Haible  <bruno@clisp.org>
35306         spawn-pipe tests: Fix link error.
35307         * tests/test-spawn-pipe-child.c: Undefine fprintf.
35308         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35310 2011-06-17  Bruno Haible  <bruno@clisp.org>
35312         Tests: Remove unnecessary dependency.
35313         * modules/canonicalize-tests (Depends-on): Remove progname.
35314         * modules/chown-tests (Depends-on): Likewise.
35315         * modules/dirname-tests (Depends-on): Likewise.
35316         * modules/fdopendir-tests (Depends-on): Likewise.
35317         * modules/fdutimensat-tests (Depends-on): Likewise.
35318         * modules/hash-tests (Depends-on): Likewise.
35319         * modules/lchown-tests (Depends-on): Likewise.
35320         * modules/linkat-tests (Depends-on): Likewise.
35321         * modules/renameat-tests (Depends-on): Likewise.
35322         * modules/spawn-pipe-tests (Depends-on): Likewise.
35323         * modules/utimensat-tests (Depends-on): Likewise.
35325 2011-06-17  Bruno Haible  <bruno@clisp.org>
35327         spawn-pipe tests: Fix link error.
35328         * tests/test-spawn-pipe-child.c: Undefine fflush.
35330 2011-06-17  Bruno Haible  <bruno@clisp.org>
35332         Fix tests link errors.
35333         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
35334         * modules/chown-tests (Makefile.am): Don't link test-chown with
35335         LIBINTL.
35336         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
35337         LIBINTL.
35338         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
35339         LIBINTL.
35340         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
35341         LIBINTL.
35343 2011-06-16  Bruno Haible  <bruno@clisp.org>
35345         crypto/gc-sha1: Fix recent regression.
35346         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
35347         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
35349         crypto/gc-md5: Fix recent regression.
35350         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
35352         crypto/gc-md4: Fix recent regression.
35353         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
35354         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
35356         crypto/gc-arctwo: Fix recent regression.
35357         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
35358         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
35360         crypto/gc-rijndael: Fix recent regression.
35361         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
35362         (configure.ac): Invoke AC_LIBOBJ here.
35363         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
35364         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35366         crypto/gc-hmac-sha1: Fix recent regression.
35367         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
35368         (configure.ac): Invoke AC_LIBOBJ here.
35369         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
35370         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35372         crypto/gc-hmac-md5: Fix recent regression.
35373         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
35374         (configure.ac): Invoke AC_LIBOBJ here.
35375         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
35376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35378         crypto/gc-des: Fix recent regression.
35379         * modules/crypto/gc-des (Files): Remove m4/des.m4.
35380         (configure.ac): Invoke AC_LIBOBJ here.
35381         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
35382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35384         crypto/gc-arcfour: Fix recent regression.
35385         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
35386         (configure.ac): Invoke AC_LIBOBJ here.
35387         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
35388         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35390 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
35392         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
35393         After the 2011-05-21 change, this macro requires
35394         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
35395         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35397 2011-06-16  Bruno Haible  <bruno@clisp.org>
35399         fprintftime: Move AC_LIBOBJ invocations to module description.
35400         * m4/fprintftime.m4: Remove file.
35401         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
35402         (configure.ac): Remove gl_FPRINTFTIME call.
35403         (Makefile.am): Augment lib_SOURCES.
35404         Reported by Jim Meyering.
35406 2011-06-16  Bruno Haible  <bruno@clisp.org>
35408         tmpfile-safer: Finish 2011-05-23 commit.
35409         * m4/stdio-safer.m4: Really remove file.
35410         Reported by Jim Meyering.
35412 2011-06-16  Bruno Haible  <bruno@clisp.org>
35414         syntax-check: Fix typo.
35415         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
35416         printf-posix.m4.
35417         Reported by Jim Meyering.
35419 2011-06-13  Jim Meyering  <meyering@redhat.com>
35421         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
35422         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
35424 2011-05-23  Bruno Haible  <bruno@clisp.org>
35426         yesno: Move AC_LIBOBJ invocations to module description.
35427         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
35428         * modules/yesno (Makefile.am): Augment lib_SOURCES.
35430 2011-05-23  Bruno Haible  <bruno@clisp.org>
35432         xstrtol: Move AC_LIBOBJ invocations to module description.
35433         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
35434         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
35436 2011-05-23  Bruno Haible  <bruno@clisp.org>
35438         xstrtold: Move AC_LIBOBJ invocations to module description.
35439         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
35440         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
35442 2011-05-23  Bruno Haible  <bruno@clisp.org>
35444         xstrtod: Move AC_LIBOBJ invocations to module description.
35445         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
35446         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
35448 2011-05-23  Bruno Haible  <bruno@clisp.org>
35450         xnanosleep: Move AC_LIBOBJ invocations to module description.
35451         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
35452         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
35454 2011-05-23  Bruno Haible  <bruno@clisp.org>
35456         xgetcwd: Move AC_LIBOBJ invocations to module description.
35457         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
35458         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
35460 2011-05-23  Bruno Haible  <bruno@clisp.org>
35462         xalloc: Move AC_LIBOBJ invocations to module description.
35463         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
35464         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
35466 2011-05-23  Bruno Haible  <bruno@clisp.org>
35468         write-any-file: Move AC_LIBOBJ invocations to module description.
35469         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
35470         invocation.
35471         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
35473 2011-05-23  Bruno Haible  <bruno@clisp.org>
35475         utimens: Move AC_LIBOBJ invocations to module description.
35476         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
35477         * modules/utimens (Makefile.am): Augment lib_SOURCES.
35479 2011-05-23  Bruno Haible  <bruno@clisp.org>
35481         utimecmp: Move AC_LIBOBJ invocations to module description.
35482         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
35483         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
35485 2011-05-23  Bruno Haible  <bruno@clisp.org>
35487         userspec: Move AC_LIBOBJ invocations to module description.
35488         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
35489         * modules/userspec (Makefile.am): Augment lib_SOURCES.
35491 2011-05-23  Bruno Haible  <bruno@clisp.org>
35493         unlinkdir: Move AC_LIBOBJ invocations to module description.
35494         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
35495         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
35497 2011-05-23  Bruno Haible  <bruno@clisp.org>
35499         unistd-safer: Move AC_LIBOBJ invocations to module description.
35500         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
35501         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
35503 2011-05-23  Bruno Haible  <bruno@clisp.org>
35505         tempname: Move AC_LIBOBJ invocations to module description.
35506         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
35507         * modules/tempname (Makefile.am): Augment lib_SOURCES.
35509 2011-05-23  Bruno Haible  <bruno@clisp.org>
35511         strftime: Move AC_LIBOBJ invocations to module description.
35512         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
35513         * modules/strftime (Makefile.am): Augment lib_SOURCES.
35515 2011-05-23  Bruno Haible  <bruno@clisp.org>
35517         stdlib-safer: Move AC_LIBOBJ invocations to module description.
35518         * m4/stdlib-safer.m4: Remove file.
35519         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
35520         (configure.ac): Remove gl_STDLIB_SAFER call.
35521         (Makefile.am): Augment lib_SOURCES.
35523 2011-05-23  Bruno Haible  <bruno@clisp.org>
35525         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
35526         * m4/stdio-safer.m4: Remove file.
35527         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
35528         (configure.ac): Remove gl_TMPFILE_SAFER call.
35529         (Makefile.am): Augment lib_SOURCES.
35531 2011-05-23  Bruno Haible  <bruno@clisp.org>
35533         popen-safer: Move AC_LIBOBJ invocations to module description.
35534         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
35535         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
35536         (configure.ac): Remove gl_POPEN_SAFER call.
35537         (Makefile.am): Augment lib_SOURCES.
35539 2011-05-23  Bruno Haible  <bruno@clisp.org>
35541         freopen-safer: Move AC_LIBOBJ invocations to module description.
35542         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
35543         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
35544         (configure.ac): Remove gl_FREOPEN_SAFER call.
35545         (Makefile.am): Augment lib_SOURCES.
35547 2011-05-23  Bruno Haible  <bruno@clisp.org>
35549         fopen-safer: Move AC_LIBOBJ invocations to module description.
35550         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
35551         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
35552         (configure.ac): Remove gl_FOPEN_SAFER call.
35553         (Makefile.am): Augment lib_SOURCES.
35555 2011-05-23  Bruno Haible  <bruno@clisp.org>
35557         crypto/sha512: Move AC_LIBOBJ invocations to module description.
35558         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
35559         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
35561 2011-05-23  Bruno Haible  <bruno@clisp.org>
35563         crypto/sha256: Move AC_LIBOBJ invocations to module description.
35564         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
35565         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
35567 2011-05-23  Bruno Haible  <bruno@clisp.org>
35569         crypto/sha1: Move AC_LIBOBJ invocations to module description.
35570         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
35571         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
35573 2011-05-23  Bruno Haible  <bruno@clisp.org>
35575         settime: Move AC_LIBOBJ invocations to module description.
35576         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
35577         * modules/settime (Makefile.am): Augment lib_SOURCES.
35579 2011-05-23  Bruno Haible  <bruno@clisp.org>
35581         savedir: Move AC_LIBOBJ invocations to module description.
35582         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
35583         * modules/savedir (Makefile.am): Augment lib_SOURCES.
35585 2011-05-23  Bruno Haible  <bruno@clisp.org>
35587         save-cwd: Move AC_LIBOBJ invocations to module description.
35588         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
35589         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
35591 2011-05-23  Bruno Haible  <bruno@clisp.org>
35593         same: Move AC_LIBOBJ invocations to module description.
35594         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
35595         * modules/same (Makefile.am): Augment lib_SOURCES.
35597 2011-05-23  Bruno Haible  <bruno@clisp.org>
35599         safe-write: Move AC_LIBOBJ invocations to module description.
35600         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
35601         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
35602         instead of gl_SAFE_WRITE.
35603         (Makefile.am): Augment lib_SOURCES.
35605 2011-05-23  Bruno Haible  <bruno@clisp.org>
35607         safe-read: Move AC_LIBOBJ invocations to module description.
35608         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
35609         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
35610         of gl_SAFE_READ.
35611         (Makefile.am): Augment lib_SOURCES.
35613 2011-05-23  Bruno Haible  <bruno@clisp.org>
35615         safe-alloc: Move AC_LIBOBJ invocations to module description.
35616         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
35617         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
35619 2011-05-23  Bruno Haible  <bruno@clisp.org>
35621         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
35622         * m4/rijndael.m4: Remove file.
35623         * modules/crypto/rijndael (Files): Remove it.
35624         (configure.ac): Remove gl_RIJNDAEL call.
35625         (Makefile.am): Augment lib_SOURCES.
35627 2011-05-23  Bruno Haible  <bruno@clisp.org>
35629         readtokens: Move AC_LIBOBJ invocations to module description.
35630         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
35631         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
35633 2011-05-23  Bruno Haible  <bruno@clisp.org>
35635         read-file: Move AC_LIBOBJ invocations to module description.
35636         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
35637         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
35638         of gl_FUNC_READ_FILE.
35639         (Makefile.am): Augment lib_SOURCES.
35641 2011-05-23  Bruno Haible  <bruno@clisp.org>
35643         quotearg: Move AC_LIBOBJ invocations to module description.
35644         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
35645         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
35647 2011-05-23  Bruno Haible  <bruno@clisp.org>
35649         quote: Move AC_LIBOBJ invocations to module description.
35650         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
35651         * modules/quote (Makefile.am): Augment lib_SOURCES.
35653 2011-05-23  Bruno Haible  <bruno@clisp.org>
35655         posixver: Move AC_LIBOBJ invocations to module description.
35656         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
35657         * modules/posixver (Makefile.am): Augment lib_SOURCES.
35659 2011-05-23  Bruno Haible  <bruno@clisp.org>
35661         posixtm: Move AC_LIBOBJ invocations to module description.
35662         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
35663         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
35665 2011-05-23  Bruno Haible  <bruno@clisp.org>
35667         physmem: Move AC_LIBOBJ invocations to module description.
35668         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
35669         * modules/physmem (Makefile.am): Augment lib_SOURCES.
35671 2011-05-23  Bruno Haible  <bruno@clisp.org>
35673         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
35674         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
35675         invocation.
35676         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
35678 2011-05-23  Bruno Haible  <bruno@clisp.org>
35680         mpsort: Move AC_LIBOBJ invocations to module description.
35681         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
35682         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
35684 2011-05-23  Bruno Haible  <bruno@clisp.org>
35686         modechange: Move AC_LIBOBJ invocations to module description.
35687         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
35688         * modules/modechange (Makefile.am): Augment lib_SOURCES.
35690 2011-05-23  Bruno Haible  <bruno@clisp.org>
35692         mkdir-p: Move AC_LIBOBJ invocations to module description.
35693         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
35694         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
35696 2011-05-23  Bruno Haible  <bruno@clisp.org>
35698         mkancesdirs: Move AC_LIBOBJ invocations to module description.
35699         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
35700         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
35702 2011-05-23  Bruno Haible  <bruno@clisp.org>
35704         mgetgroups: Move AC_LIBOBJ invocations to module description.
35705         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
35706         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
35708 2011-05-23  Bruno Haible  <bruno@clisp.org>
35710         memxor: Move AC_LIBOBJ invocations to module description.
35711         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
35712         * modules/memxor (Makefile.am): Augment lib_SOURCES.
35714 2011-05-23  Bruno Haible  <bruno@clisp.org>
35716         memcoll: Move AC_LIBOBJ invocations to module description.
35717         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
35718         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
35720 2011-05-23  Bruno Haible  <bruno@clisp.org>
35722         memcasecmp: Move AC_LIBOBJ invocations to module description.
35723         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
35724         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
35726 2011-05-23  Bruno Haible  <bruno@clisp.org>
35728         crypto/md5: Move AC_LIBOBJ invocations to module description.
35729         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
35730         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
35732 2011-05-23  Bruno Haible  <bruno@clisp.org>
35734         crypto/md4: Move AC_LIBOBJ invocations to module description.
35735         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
35736         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
35738 2011-05-23  Bruno Haible  <bruno@clisp.org>
35740         crypto/md2: Move AC_LIBOBJ invocations to module description.
35741         * m4/md2.m4: Remove file.
35742         * modules/crypto/md2 (Files): Remove it.
35743         (configure.ac): Remove gl_MD2 call.
35744         (Makefile.am): Augment lib_SOURCES.
35746 2011-05-23  Bruno Haible  <bruno@clisp.org>
35748         long-options: Move AC_LIBOBJ invocations to module description.
35749         * m4/long-options.m4: Remove file.
35750         * modules/long-options (Files): Remove it.
35751         (configure.ac): Remove gl_LONG_OPTIONS call.
35752         (Makefile.am): Augment lib_SOURCES.
35754 2011-05-23  Bruno Haible  <bruno@clisp.org>
35756         i-ring: Move AC_LIBOBJ invocations to module description.
35757         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
35758         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
35760 2011-05-23  Bruno Haible  <bruno@clisp.org>
35762         idcache: Move AC_LIBOBJ invocations to module description.
35763         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
35764         * modules/idcache (Makefile.am): Augment lib_SOURCES.
35766 2011-05-23  Bruno Haible  <bruno@clisp.org>
35768         human: Move AC_LIBOBJ invocations to module description.
35769         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
35770         * modules/human (Makefile.am): Augment lib_SOURCES.
35772 2011-05-23  Bruno Haible  <bruno@clisp.org>
35774         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
35775         * m4/hmac-sha1.m4: Remove file.
35776         * modules/crypto/hmac-sha1 (Files): Remove it.
35777         (configure.ac): Remove gl_HMAC_SHA1 call.
35778         (Makefile.am): Augment lib_SOURCES.
35780 2011-05-23  Bruno Haible  <bruno@clisp.org>
35782         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
35783         * m4/hmac-md5.m4: Remove file.
35784         * modules/crypto/hmac-md5 (Files): Remove it.
35785         (configure.ac): Remove gl_HMAC_MD5 call.
35786         (Makefile.am): Augment lib_SOURCES.
35788 2011-05-23  Bruno Haible  <bruno@clisp.org>
35790         hash: Move AC_LIBOBJ invocations to module description.
35791         * m4/hash.m4: Remove file.
35792         * modules/hash (Files): Remove it.
35793         (configure.ac): Remove gl_HASH call.
35794         (Makefile.am): Augment lib_SOURCES.
35796 2011-05-23  Bruno Haible  <bruno@clisp.org>
35798         hard-locale: Move AC_LIBOBJ invocations to module description.
35799         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
35800         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
35802 2011-05-23  Bruno Haible  <bruno@clisp.org>
35804         getugroups: Move AC_LIBOBJ invocations to module description.
35805         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
35806         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
35808 2011-05-23  Bruno Haible  <bruno@clisp.org>
35810         gettime: Move AC_LIBOBJ invocations to module description.
35811         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
35812         * modules/gettime (Makefile.am): Augment lib_SOURCES.
35814 2011-05-23  Bruno Haible  <bruno@clisp.org>
35816         getndelim2: Move AC_LIBOBJ invocations to module description.
35817         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
35818         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
35820 2011-05-23  Bruno Haible  <bruno@clisp.org>
35822         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
35823         * m4/gc-pbkdf2-sha1.m4: Remove file.
35824         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
35825         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
35826         (Makefile.am): Augment lib_SOURCES.
35828 2011-05-23  Bruno Haible  <bruno@clisp.org>
35830         fts: Move AC_LIBOBJ invocations to module description.
35831         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
35832         * modules/fts (configure.ac): ... to here.
35834 2011-05-23  Bruno Haible  <bruno@clisp.org>
35836         file-type: Move AC_LIBOBJ invocations to module description.
35837         * m4/file-type.m4: Remove file.
35838         * modules/file-type (Files): Remove it.
35839         (configure.ac): Remove gl_FILE_TYPE call.
35840         (Makefile.am): Augment lib_SOURCES.
35842 2011-05-23  Bruno Haible  <bruno@clisp.org>
35844         filenamecat*: Respect rules for use of AC_LIBOBJ.
35845         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
35846         Remove AC_LIBOBJ invocation.
35847         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
35848         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
35850 2011-05-23  Bruno Haible  <bruno@clisp.org>
35852         filemode: Move AC_LIBOBJ invocations to module description.
35853         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
35854         * modules/filemode (Makefile.am): Augment lib_SOURCES.
35856 2011-05-23  Bruno Haible  <bruno@clisp.org>
35858         openat-safer: Move AC_LIBOBJ invocations to module description.
35859         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
35860         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
35862 2011-05-23  Bruno Haible  <bruno@clisp.org>
35864         fcntl-safer: Move AC_LIBOBJ invocations to module description.
35865         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
35866         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
35868 2011-05-23  Bruno Haible  <bruno@clisp.org>
35870         exclude: Move AC_LIBOBJ invocations to module description.
35871         * m4/exclude.m4: Remove file.
35872         * modules/exclude (Files): Remove it.
35873         (configure.ac): Remove gl_EXCLUDE call.
35874         (Makefile.am): Augment lib_SOURCES.
35876 2011-05-23  Bruno Haible  <bruno@clisp.org>
35878         dirname*: Respect rules for use of AC_LIBOBJ.
35879         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
35880         invocations.
35881         * modules/dirname (Makefile.am): Augment lib_SOURCES.
35882         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
35884 2011-05-23  Bruno Haible  <bruno@clisp.org>
35886         dirent-safer: Move AC_LIBOBJ invocations to module description.
35887         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
35888         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
35890 2011-05-23  Bruno Haible  <bruno@clisp.org>
35892         crypto/des: Move AC_LIBOBJ invocations to module description.
35893         * m4/des.m4: Remove file.
35894         * modules/crypto/des (Files): Remove it.
35895         (configure.ac): Remove gl_DES call.
35896         (Makefile.am): Augment lib_SOURCES.
35898 2011-05-23  Bruno Haible  <bruno@clisp.org>
35900         cycle-check: Move AC_LIBOBJ invocations to module description.
35901         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
35902         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
35904 2011-05-23  Bruno Haible  <bruno@clisp.org>
35906         c-strtold: Move AC_LIBOBJ invocations to module description.
35907         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
35908         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
35910 2011-05-23  Bruno Haible  <bruno@clisp.org>
35912         c-strtod: Move AC_LIBOBJ invocations to module description.
35913         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
35914         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
35916 2011-05-23  Bruno Haible  <bruno@clisp.org>
35918         crc: Move AC_LIBOBJ invocations to module description.
35919         * m4/crc.m4: Remove file.
35920         * modules/crc (Files): Remove it.
35921         (configure.ac): Remove gl_CRC call.
35922         (Makefile.am): Augment lib_SOURCES.
35924 2011-05-23  Bruno Haible  <bruno@clisp.org>
35926         close-stream: Move AC_LIBOBJ invocations to module description.
35927         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
35928         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
35930 2011-05-23  Bruno Haible  <bruno@clisp.org>
35932         closeout: Move AC_LIBOBJ invocations to module description.
35933         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
35934         * modules/closeout (Makefile.am): Augment lib_SOURCES.
35936 2011-05-23  Bruno Haible  <bruno@clisp.org>
35938         closein: Move AC_LIBOBJ invocations to module description.
35939         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
35940         * modules/closein (Makefile.am): Augment lib_SOURCES.
35942 2011-05-23  Bruno Haible  <bruno@clisp.org>
35944         cloexec: Move AC_LIBOBJ invocations to module description.
35945         * m4/cloexec.m4: Remove file.
35946         * modules/cloexec (Files): Remove it.
35947         (configure.ac): Remove gl_CLOEXEC call.
35948         (Makefile.am): Augment lib_SOURCES.
35950 2011-05-23  Bruno Haible  <bruno@clisp.org>
35952         check-version: Move AC_LIBOBJ invocations to module description.
35953         * m4/check-version.m4: Remove file.
35954         * modules/check-version (Files): Remove it.
35955         (configure.ac): Remove gl_CHECK_VERSION call.
35956         (Makefile.am): Augment lib_SOURCES.
35958 2011-05-23  Bruno Haible  <bruno@clisp.org>
35960         chdir-safer: Move AC_LIBOBJ invocations to module description.
35961         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
35962         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
35964 2011-05-23  Bruno Haible  <bruno@clisp.org>
35966         canonicalize: Move AC_LIBOBJ invocations to module description.
35967         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
35968         AC_LIBOBJ invocation.
35969         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
35971 2011-05-23  Bruno Haible  <bruno@clisp.org>
35973         canon-host: Move AC_LIBOBJ invocations to module description.
35974         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
35975         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
35976         instead of gl_CANON_HOST.
35977         (Makefile.am): Augment lib_SOURCES.
35979 2011-05-23  Bruno Haible  <bruno@clisp.org>
35981         backupfile: Move AC_LIBOBJ invocations to module description.
35982         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
35983         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
35985 2011-05-23  Bruno Haible  <bruno@clisp.org>
35987         argmatch: Move AC_LIBOBJ invocations to module description.
35988         * m4/argmatch.m4: Remove file.
35989         * modules/argmatch (Files): Remove it.
35990         (configure.ac): Remove gl_ARGMATCH call.
35991         (Makefile.am): Augment lib_SOURCES.
35993 2011-05-23  Bruno Haible  <bruno@clisp.org>
35995         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
35996         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
35997         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
35999 2011-05-23  Bruno Haible  <bruno@clisp.org>
36001         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
36002         * m4/arcfour.m4: Remove file.
36003         * modules/crypto/arcfour (Files): Remove it.
36004         (configure.ac): Remove gl_ARCFOUR call.
36005         (Makefile.am): Augment lib_SOURCES.
36007 2011-05-22  Bruno Haible  <bruno@clisp.org>
36009         write: Move AC_LIBOBJ invocations to module description.
36010         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
36011         * modules/write (configure.ac): ... to here.
36013 2011-05-22  Bruno Haible  <bruno@clisp.org>
36015         wmemset: Move AC_LIBOBJ invocations to module description.
36016         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
36017         here...
36018         * modules/wmemset (configure.ac): ... to here.
36020 2011-05-22  Bruno Haible  <bruno@clisp.org>
36022         wmemmove: Move AC_LIBOBJ invocations to module description.
36023         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
36024         here...
36025         * modules/wmemmove (configure.ac): ... to here.
36027 2011-05-22  Bruno Haible  <bruno@clisp.org>
36029         wmemcpy: Move AC_LIBOBJ invocations to module description.
36030         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
36031         here...
36032         * modules/wmemcpy (configure.ac): ... to here.
36034 2011-05-22  Bruno Haible  <bruno@clisp.org>
36036         wmemcmp: Move AC_LIBOBJ invocations to module description.
36037         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
36038         here...
36039         * modules/wmemcmp (configure.ac): ... to here.
36041 2011-05-22  Bruno Haible  <bruno@clisp.org>
36043         wmemchr: Move AC_LIBOBJ invocations to module description.
36044         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
36045         here...
36046         * modules/wmemchr (configure.ac): ... to here.
36048 2011-05-22  Bruno Haible  <bruno@clisp.org>
36050         wcswidth: Move AC_LIBOBJ invocations to module description.
36051         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
36052         here...
36053         * modules/wcswidth (configure.ac): ... to here.
36055 2011-05-22  Bruno Haible  <bruno@clisp.org>
36057         wcwidth: Respect rules for use of AC_LIBOBJ.
36058         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
36059         invocation from here...
36060         * modules/wcwidth (configure.ac): ... to here.
36061         (Depends-on): Update conditions.
36063 2011-05-22  Bruno Haible  <bruno@clisp.org>
36065         wctype: Move AC_LIBOBJ invocations to module description.
36066         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
36067         invocation from here...
36068         * modules/wctype (configure.ac): ... to here.
36069         (Depends-on): Update conditions.
36071 2011-05-22  Bruno Haible  <bruno@clisp.org>
36073         wctrans: Move AC_LIBOBJ invocations to module description.
36074         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
36075         invocation from here...
36076         * modules/wctrans (configure.ac): ... to here.
36078 2011-05-22  Bruno Haible  <bruno@clisp.org>
36080         wctomb: Move AC_LIBOBJ invocations to module description.
36081         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
36082         invocations from here...
36083         * modules/wctomb (configure.ac): ... to here.
36085 2011-05-22  Bruno Haible  <bruno@clisp.org>
36087         wctob: Move AC_LIBOBJ invocations to module description.
36088         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
36089         gl_PREREQ_WCTOB invocations from here...
36090         * modules/wctob (configure.ac): ... to here.
36091         (Depends-on): Update conditions.
36093 2011-05-22  Bruno Haible  <bruno@clisp.org>
36095         wcsxfrm: Move AC_LIBOBJ invocations to module description.
36096         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
36097         here...
36098         * modules/wcsxfrm (configure.ac): ... to here.
36100 2011-05-22  Bruno Haible  <bruno@clisp.org>
36102         wcstok: Move AC_LIBOBJ invocations to module description.
36103         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
36104         * modules/wcstok (configure.ac): ... to here.
36106 2011-05-22  Bruno Haible  <bruno@clisp.org>
36108         wcsstr: Move AC_LIBOBJ invocations to module description.
36109         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
36110         * modules/wcsstr (configure.ac): ... to here.
36112 2011-05-22  Bruno Haible  <bruno@clisp.org>
36114         wcsspn: Move AC_LIBOBJ invocations to module description.
36115         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
36116         * modules/wcsspn (configure.ac): ... to here.
36118 2011-05-22  Bruno Haible  <bruno@clisp.org>
36120         wcsrtombs: Move AC_LIBOBJ invocations to module description.
36121         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
36122         gl_PREREQ_WCSRTOMBS invocations from here...
36123         * modules/wcsrtombs (configure.ac): ... to here.
36125 2011-05-22  Bruno Haible  <bruno@clisp.org>
36127         wcsrchr: Move AC_LIBOBJ invocations to module description.
36128         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
36129         here...
36130         * modules/wcsrchr (configure.ac): ... to here.
36132 2011-05-22  Bruno Haible  <bruno@clisp.org>
36134         wcspbrk: Move AC_LIBOBJ invocations to module description.
36135         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
36136         here...
36137         * modules/wcspbrk (configure.ac): ... to here.
36139 2011-05-22  Bruno Haible  <bruno@clisp.org>
36141         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
36142         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
36143         gl_PREREQ_WCSNRTOMBS invocations from here...
36144         * modules/wcsnrtombs (configure.ac): ... to here.
36146 2011-05-22  Bruno Haible  <bruno@clisp.org>
36148         wcsnlen: Move AC_LIBOBJ invocations to module description.
36149         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
36150         here...
36151         * modules/wcsnlen (configure.ac): ... to here.
36153 2011-05-22  Bruno Haible  <bruno@clisp.org>
36155         wcsncpy: Move AC_LIBOBJ invocations to module description.
36156         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
36157         here...
36158         * modules/wcsncpy (configure.ac): ... to here.
36160 2011-05-22  Bruno Haible  <bruno@clisp.org>
36162         wcsncmp: Move AC_LIBOBJ invocations to module description.
36163         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
36164         here...
36165         * modules/wcsncmp (configure.ac): ... to here.
36167 2011-05-22  Bruno Haible  <bruno@clisp.org>
36169         wcsncat: Move AC_LIBOBJ invocations to module description.
36170         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
36171         here...
36172         * modules/wcsncat (configure.ac): ... to here.
36174 2011-05-22  Bruno Haible  <bruno@clisp.org>
36176         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
36177         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
36178         from here...
36179         * modules/wcsncasecmp (configure.ac): ... to here.
36181 2011-05-22  Bruno Haible  <bruno@clisp.org>
36183         wcslen: Move AC_LIBOBJ invocations to module description.
36184         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
36185         * modules/wcslen (configure.ac): ... to here.
36187 2011-05-22  Bruno Haible  <bruno@clisp.org>
36189         wcsdup: Move AC_LIBOBJ invocations to module description.
36190         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
36191         * modules/wcsdup (configure.ac): ... to here.
36193 2011-05-22  Bruno Haible  <bruno@clisp.org>
36195         wcscspn: Move AC_LIBOBJ invocations to module description.
36196         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
36197         here...
36198         * modules/wcscspn (configure.ac): ... to here.
36200 2011-05-22  Bruno Haible  <bruno@clisp.org>
36202         wcscpy: Move AC_LIBOBJ invocations to module description.
36203         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
36204         * modules/wcscpy (configure.ac): ... to here.
36206 2011-05-22  Bruno Haible  <bruno@clisp.org>
36208         wcscoll: Move AC_LIBOBJ invocations to module description.
36209         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
36210         here...
36211         * modules/wcscoll (configure.ac): ... to here.
36213 2011-05-22  Bruno Haible  <bruno@clisp.org>
36215         wcscmp: Move AC_LIBOBJ invocations to module description.
36216         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
36217         * modules/wcscmp (configure.ac): ... to here.
36219 2011-05-22  Bruno Haible  <bruno@clisp.org>
36221         wcschr: Move AC_LIBOBJ invocations to module description.
36222         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
36223         * modules/wcschr (configure.ac): ... to here.
36225 2011-05-22  Bruno Haible  <bruno@clisp.org>
36227         wcscat: Move AC_LIBOBJ invocations to module description.
36228         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
36229         * modules/wcscat (configure.ac): ... to here.
36231 2011-05-22  Bruno Haible  <bruno@clisp.org>
36233         wcscasecmp: Move AC_LIBOBJ invocations to module description.
36234         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
36235         here...
36236         * modules/wcscasecmp (configure.ac): ... to here.
36238 2011-05-22  Bruno Haible  <bruno@clisp.org>
36240         wcrtomb: Move AC_LIBOBJ invocations to module description.
36241         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
36242         invocations from here...
36243         * modules/wcrtomb (configure.ac): ... to here.
36245 2011-05-22  Bruno Haible  <bruno@clisp.org>
36247         wcpncpy: Move AC_LIBOBJ invocations to module description.
36248         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
36249         here...
36250         * modules/wcpncpy (configure.ac): ... to here.
36252 2011-05-22  Bruno Haible  <bruno@clisp.org>
36254         wcpcpy: Move AC_LIBOBJ invocations to module description.
36255         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
36256         * modules/wcpcpy (configure.ac): ... to here.
36258 2011-05-22  Bruno Haible  <bruno@clisp.org>
36260         waitpid: Move AC_LIBOBJ invocations to module description.
36261         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
36262         invocation from here...
36263         * modules/waitpid (configure.ac): ... to here.
36265 2011-05-22  Bruno Haible  <bruno@clisp.org>
36267         utimensat: Move AC_LIBOBJ invocations to module description.
36268         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
36269         here...
36270         * modules/utimensat (configure.ac): ... to here.
36272 2011-05-22  Bruno Haible  <bruno@clisp.org>
36274         usleep: Move AC_LIBOBJ invocations to module description.
36275         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
36276         here...
36277         * modules/usleep (configure.ac): ... to here.
36279 2011-05-22  Bruno Haible  <bruno@clisp.org>
36281         unlockpt: Move AC_LIBOBJ invocations to module description.
36282         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
36283         gl_PREREQ_UNLOCKPT invocations from here...
36284         * modules/unlockpt (configure.ac): ... to here.
36286 2011-05-22  Bruno Haible  <bruno@clisp.org>
36288         unlink: Respect rules for use of AC_LIBOBJ.
36289         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
36290         * modules/unlink (configure.ac): ... to here.
36292 2011-05-22  Bruno Haible  <bruno@clisp.org>
36294         uname: Move AC_LIBOBJ invocations to module description.
36295         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
36296         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
36297         here...
36298         * modules/uname (configure.ac): ... to here.
36300 2011-05-22  Bruno Haible  <bruno@clisp.org>
36302         ttyname_r: Move AC_LIBOBJ invocations to module description.
36303         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
36304         gl_PREREQ_TTYNAME_R invocations from here...
36305         * modules/ttyname_r (configure.ac): ... to here.
36307 2011-05-22  Bruno Haible  <bruno@clisp.org>
36309         tsearch: Move AC_LIBOBJ invocations to module description.
36310         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
36311         invocations from here...
36312         * modules/tsearch (configure.ac): ... to here.
36314 2011-05-22  Bruno Haible  <bruno@clisp.org>
36316         towctrans: Move AC_LIBOBJ invocations to module description.
36317         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
36318         AC_LIBOBJ invocation from here...
36319         * modules/towctrans (configure.ac): ... to here.
36321 2011-05-22  Bruno Haible  <bruno@clisp.org>
36323         tmpfile: Move AC_LIBOBJ invocations to module description.
36324         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
36325         invocations from here...
36326         * modules/tmpfile (configure.ac): ... to here.
36328 2011-05-22  Bruno Haible  <bruno@clisp.org>
36330         times: Move AC_LIBOBJ invocations to module description.
36331         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
36332         * modules/times (configure.ac): ... to here.
36334 2011-05-22  Bruno Haible  <bruno@clisp.org>
36336         time_r: Move AC_LIBOBJ invocations to module description.
36337         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
36338         invocations from here...
36339         * modules/time_r (configure.ac): ... to here.
36341 2011-05-22  Bruno Haible  <bruno@clisp.org>
36343         timegm: Move AC_LIBOBJ invocations to module description.
36344         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
36345         invocations from here...
36346         * modules/timegm (configure.ac): ... to here.
36348 2011-05-22  Bruno Haible  <bruno@clisp.org>
36350         tcgetsid: Move AC_LIBOBJ invocations to module description.
36351         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
36352         and gl_PREREQ_TCGETSID invocations from here...
36353         * modules/tcgetsid (configure.ac): ... to here.
36354         (Depends-on): Update conditions.
36356 2011-05-22  Bruno Haible  <bruno@clisp.org>
36358         symlinkat: Move AC_LIBOBJ invocations to module description.
36359         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
36360         here...
36361         * modules/symlinkat (configure.ac): ... to here.
36363 2011-05-22  Bruno Haible  <bruno@clisp.org>
36365         symlink: Move AC_LIBOBJ invocations to module description.
36366         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
36367         here...
36368         * modules/symlink (configure.ac): ... to here.
36370 2011-05-22  Bruno Haible  <bruno@clisp.org>
36372         strverscmp: Move AC_LIBOBJ invocations to module description.
36373         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
36374         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
36375         from here...
36376         * modules/strverscmp (configure.ac): ... to here.
36378 2011-05-22  Bruno Haible  <bruno@clisp.org>
36380         strtok_r: Move AC_LIBOBJ invocations to module description.
36381         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
36382         and gl_PREREQ_STRTOK_R invocations from here...
36383         * modules/strtok_r (configure.ac): ... to here.
36384         (Depends-on): Update conditions.
36386 2011-05-22  Bruno Haible  <bruno@clisp.org>
36388         strtoumax: Move AC_LIBOBJ invocations to module description.
36389         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
36390         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
36391         from here...
36392         * modules/strtoumax (configure.ac): ... to here.
36394 2011-05-22  Bruno Haible  <bruno@clisp.org>
36396         strtoimax: Move AC_LIBOBJ invocations to module description.
36397         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
36398         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
36399         from here...
36400         * modules/strtoimax (configure.ac): ... to here.
36402 2011-05-22  Bruno Haible  <bruno@clisp.org>
36404         strtoull: Move AC_LIBOBJ invocations to module description.
36405         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
36406         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
36407         from here...
36408         * modules/strtoull (configure.ac): ... to here.
36410 2011-05-22  Bruno Haible  <bruno@clisp.org>
36412         strtoll: Move AC_LIBOBJ invocations to module description.
36413         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
36414         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
36415         here...
36416         * modules/strtoll (configure.ac): ... to here.
36418 2011-05-22  Bruno Haible  <bruno@clisp.org>
36420         strtoul: Move AC_LIBOBJ invocations to module description.
36421         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
36422         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36423         * modules/strtoul (configure.ac): ... to here.
36425 2011-05-22  Bruno Haible  <bruno@clisp.org>
36427         strtol: Move AC_LIBOBJ invocations to module description.
36428         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
36429         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
36430         * modules/strtol (configure.ac): ... to here.
36432 2011-05-22  Bruno Haible  <bruno@clisp.org>
36434         strtod: Move AC_LIBOBJ invocations to module description.
36435         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
36436         invocations from here...
36437         * modules/strtod (configure.ac): ... to here.
36439 2011-05-22  Bruno Haible  <bruno@clisp.org>
36441         strstr*: Move AC_LIBOBJ invocations to module description.
36442         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
36443         invocations from here...
36444         * modules/strstr-simple (configure.ac): ... to here.
36445         * modules/strstr (configure.ac): ... and here.
36447 2011-05-22  Bruno Haible  <bruno@clisp.org>
36449         strsignal: Move AC_LIBOBJ invocations to module description.
36450         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
36451         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
36452         * modules/strsignal (configure.ac): ... to here.
36453         (Depends-on): Update conditions.
36455 2011-05-22  Bruno Haible  <bruno@clisp.org>
36457         strsep: Move AC_LIBOBJ invocations to module description.
36458         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
36459         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
36460         here...
36461         * modules/strsep (configure.ac): ... to here.
36463 2011-05-22  Bruno Haible  <bruno@clisp.org>
36465         strptime: Move AC_LIBOBJ invocations to module description.
36466         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
36467         gl_PREREQ_STRPTIME invocations from here...
36468         * modules/strptime (configure.ac): ... to here.
36470 2011-05-22  Bruno Haible  <bruno@clisp.org>
36472         strpbrk: Move AC_LIBOBJ invocations to module description.
36473         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
36474         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
36475         here...
36476         * modules/strpbrk (configure.ac): ... to here.
36478 2011-05-22  Bruno Haible  <bruno@clisp.org>
36480         strnlen: Move AC_LIBOBJ invocations to module description.
36481         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
36482         invocations from here...
36483         * modules/strnlen (configure.ac): ... to here.
36485 2011-05-22  Bruno Haible  <bruno@clisp.org>
36487         strndup: Move AC_LIBOBJ invocations to module description.
36488         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
36489         invocations from here...
36490         * modules/strndup (configure.ac): ... to here.
36491         (Depends-on): Update conditions.
36493 2011-05-22  Bruno Haible  <bruno@clisp.org>
36495         strncat: Move AC_LIBOBJ invocations to module description.
36496         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
36497         invocations from here...
36498         * modules/strncat (configure.ac): ... to here.
36500 2011-05-22  Bruno Haible  <bruno@clisp.org>
36502         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
36503         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
36504         invocations from here...
36505         * modules/strdup (configure.ac): ... to here.
36506         * modules/strdup-posix (configure.ac): ... and here.
36508 2011-05-22  Bruno Haible  <bruno@clisp.org>
36510         strcspn: Move AC_LIBOBJ invocations to module description.
36511         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
36512         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
36513         here...
36514         * modules/strcspn (configure.ac): ... to here.
36516 2011-05-22  Bruno Haible  <bruno@clisp.org>
36518         strchrnul: Move AC_LIBOBJ invocations to module description.
36519         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
36520         gl_PREREQ_STRCHRNUL invocations from here...
36521         * modules/strchrnul (configure.ac): ... to here.
36523 2011-05-22  Bruno Haible  <bruno@clisp.org>
36525         strcasestr*: Move AC_LIBOBJ invocations to module description.
36526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
36527         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
36528         * modules/strcasestr-simple (configure.ac): ... to here.
36529         * modules/strcasestr (configure.ac): ... and here.
36531 2011-05-22  Bruno Haible  <bruno@clisp.org>
36533         strcase: Move AC_LIBOBJ invocations to module description.
36534         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
36535         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
36536         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
36537         gl_PREREQ_STRNCASECMP invocations from here...
36538         * modules/strcase (configure.ac): ... to here.
36540 2011-05-22  Bruno Haible  <bruno@clisp.org>
36542         stpncpy: Move AC_LIBOBJ invocations to module description.
36543         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
36544         here...
36545         * modules/stpncpy (configure.ac): ... to here.
36547 2011-05-22  Bruno Haible  <bruno@clisp.org>
36549         stpcpy: Move AC_LIBOBJ invocations to module description.
36550         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
36551         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
36552         here...
36553         * modules/stpcpy (configure.ac): ... to here.
36555 2011-05-21  Bruno Haible  <bruno@clisp.org>
36557         stat: Move AC_LIBOBJ invocations to module description.
36558         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
36559         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
36560         here...
36561         * modules/stat (configure.ac): ... to here.
36563 2011-05-21  Bruno Haible  <bruno@clisp.org>
36565         sleep: Move AC_LIBOBJ invocations to module description.
36566         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
36567         * modules/sleep (configure.ac): ... to here.
36569 2011-05-21  Bruno Haible  <bruno@clisp.org>
36571         signbit: Move AC_LIBOBJ invocations to module description.
36572         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
36573         * modules/signbit (configure.ac): ... to here.
36575 2011-05-21  Bruno Haible  <bruno@clisp.org>
36577         sigprocmask: Move AC_LIBOBJ invocations to module description.
36578         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
36579         gl_PREREQ_SIGPROMASK invocations from here...
36580         * modules/sigprocmask (configure.ac): ... to here.
36582 2011-05-21  Bruno Haible  <bruno@clisp.org>
36584         sigaction: Move AC_LIBOBJ invocations to module description.
36585         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
36586         gl_PREREQ_SIGACTION invocations from here...
36587         * modules/sigaction (configure.ac): ... to here.
36589 2011-05-21  Bruno Haible  <bruno@clisp.org>
36591         sig2str: Move AC_LIBOBJ invocations to module description.
36592         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
36593         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
36594         here...
36595         * modules/sig2str (configure.ac): ... to here.
36597 2011-05-21  Bruno Haible  <bruno@clisp.org>
36599         setlocale: Move AC_LIBOBJ invocations to module description.
36600         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
36601         gl_PREREQ_SETLOCALE invocations from here...
36602         * modules/setlocale (configure.ac): ... to here.
36604 2011-05-21  Bruno Haible  <bruno@clisp.org>
36606         unsetenv: Move AC_LIBOBJ invocations to module description.
36607         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
36608         and gl_PREREQ_UNSETENV invocations from here...
36609         * modules/unsetenv (configure.ac): ... to here.
36610         (Depends-on): Update.
36612 2011-05-21  Bruno Haible  <bruno@clisp.org>
36614         setenv: Move AC_LIBOBJ invocations to module description.
36615         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
36616         here...
36617         * modules/setenv (configure.ac): ... to here.
36619 2011-05-21  Bruno Haible  <bruno@clisp.org>
36621         selinux-h: Move AC_LIBOBJ invocations to module description.
36622         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
36623         AC_LIBOBJ invocation from here...
36624         * modules/selinux-h (configure.ac): ... to here.
36626 2011-05-21  Bruno Haible  <bruno@clisp.org>
36628         select: Respect rules for use of AC_LIBOBJ.
36629         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
36630         here...
36631         * modules/select (configure.ac): ... to here.
36633 2011-05-21  Bruno Haible  <bruno@clisp.org>
36635         scandir: Move AC_LIBOBJ invocations to module description.
36636         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
36637         invocations from here...
36638         * modules/scandir (configure.ac): ... to here.
36640 2011-05-21  Bruno Haible  <bruno@clisp.org>
36642         rpmatch: Move AC_LIBOBJ invocations to module description.
36643         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
36644         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
36645         here...
36646         * modules/rpmatch (configure.ac): ... to here.
36648 2011-05-21  Bruno Haible  <bruno@clisp.org>
36650         rmdir: Respect rules for use of AC_LIBOBJ.
36651         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
36652         * modules/rmdir (configure.ac): ... to here.
36654 2011-05-21  Bruno Haible  <bruno@clisp.org>
36656         renameat: Move AC_LIBOBJ invocations to module description.
36657         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
36658         here...
36659         * modules/renameat (configure.ac): ... to here.
36661 2011-05-21  Bruno Haible  <bruno@clisp.org>
36663         rename: Respect rules for use of AC_LIBOBJ.
36664         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
36665         here...
36666         * modules/rename (configure.ac): ... to here.
36668 2011-05-21  Bruno Haible  <bruno@clisp.org>
36670         remove: Move AC_LIBOBJ invocations to module description.
36671         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
36672         here...
36673         * modules/remove (configure.ac): ... to here.
36675 2011-05-21  Bruno Haible  <bruno@clisp.org>
36677         relocatable-lib: Move AC_LIBOBJ invocations to module description.
36678         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
36679         macro.
36680         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
36681         * modules/relocatable-lib (configure.ac): ... to here.
36682         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36683         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
36685 2011-05-21  Bruno Haible  <bruno@clisp.org>
36687         relocatable-prog: Move AC_LIBOBJ invocations to module description.
36688         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
36689         here...
36690         * modules/relocatable-prog (configure.ac): ... to here.
36692 2011-05-21  Bruno Haible  <bruno@clisp.org>
36694         regex: Move AC_LIBOBJ invocations to module description.
36695         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
36696         invocations from here...
36697         * modules/regex (configure.ac): ... to here.
36699 2011-05-21  Bruno Haible  <bruno@clisp.org>
36701         realloc-*: Move AC_LIBOBJ invocations to module description.
36702         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
36703         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
36704         AC_LIBOBJ invocations from here...
36705         * modules/realloc-gnu (configure.ac): ... to here.
36706         * modules/realloc-posix (configure.ac): ... and here.
36708 2011-05-21  Bruno Haible  <bruno@clisp.org>
36710         readutmp: Move AC_LIBOBJ invocations to module description.
36711         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
36712         * modules/readutmp (configure.ac): ... to here.
36714 2011-05-21  Bruno Haible  <bruno@clisp.org>
36716         readlinkat: Move AC_LIBOBJ invocations to module description.
36717         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
36718         here...
36719         * modules/readlinkat (configure.ac): ... to here.
36721 2011-05-21  Bruno Haible  <bruno@clisp.org>
36723         readlink: Move AC_LIBOBJ invocations to module description.
36724         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
36725         gl_PREREQ_READLINK invocations from here...
36726         * modules/readlink (configure.ac): ... to here.
36728 2011-05-21  Bruno Haible  <bruno@clisp.org>
36730         readline: Move AC_LIBOBJ invocations to module description.
36731         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
36732         gl_PREREQ_READLINE invocations from here...
36733         * modules/readline (configure.ac): ... to here.
36735 2011-05-21  Bruno Haible  <bruno@clisp.org>
36737         read: Move AC_LIBOBJ invocations to module description.
36738         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
36739         * modules/read (configure.ac): ... to here.
36741 2011-05-21  Bruno Haible  <bruno@clisp.org>
36743         rawmemchr: Move AC_LIBOBJ invocations to module description.
36744         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
36745         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
36746         from here...
36747         * modules/rawmemchr (configure.ac): ... to here.
36749 2011-05-21  Bruno Haible  <bruno@clisp.org>
36751         random_r: Move AC_LIBOBJ invocations to module description.
36752         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
36753         gl_PREREQ_RANDOM_R invocations from here...
36754         * modules/random_r (configure.ac): ... to here.
36756 2011-05-21  Bruno Haible  <bruno@clisp.org>
36758         pwrite: Move AC_LIBOBJ invocations to module description.
36759         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
36760         * modules/pwrite (configure.ac): ... to here.
36762 2011-05-21  Bruno Haible  <bruno@clisp.org>
36764         putenv: Move AC_LIBOBJ invocations to module description.
36765         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
36766         * modules/putenv (configure.ac): ... to here.
36768 2011-05-21  Bruno Haible  <bruno@clisp.org>
36770         login_tty: Move AC_LIBOBJ invocations to module description.
36771         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
36772         * modules/login_tty (configure.ac): ... to here.
36774 2011-05-21  Bruno Haible  <bruno@clisp.org>
36776         openpty: Move AC_LIBOBJ invocations to module description.
36777         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
36778         * modules/openpty (configure.ac): ... to here.
36780 2011-05-21  Bruno Haible  <bruno@clisp.org>
36782         forkpty: Move AC_LIBOBJ invocations to module description.
36783         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
36784         * modules/forkpty (configure.ac): ... to here.
36786 2011-05-21  Bruno Haible  <bruno@clisp.org>
36788         ptsname: Move AC_LIBOBJ invocations to module description.
36789         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
36790         invocations from here...
36791         * modules/ptsname (configure.ac): ... to here.
36793 2011-05-21  Bruno Haible  <bruno@clisp.org>
36795         pread: Move AC_LIBOBJ invocations to module description.
36796         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
36797         * modules/pread (configure.ac): ... to here.
36799 2011-05-21  Bruno Haible  <bruno@clisp.org>
36801         posix_spawn*: Move AC_LIBOBJ invocations to module description.
36802         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
36803         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
36804         * modules/posix_spawn (configure.ac): ... to here.
36805         * modules/posix_spawnp (configure.ac): ... and here.
36807 2011-05-21  Bruno Haible  <bruno@clisp.org>
36809         popen: Move AC_LIBOBJ invocations to module description.
36810         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
36811         invocations from here...
36812         * modules/popen (configure.ac): ... to here.
36814 2011-05-21  Bruno Haible  <bruno@clisp.org>
36816         poll: Move AC_LIBOBJ invocations to module description.
36817         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
36818         invocations from here...
36819         * modules/poll (configure.ac): ... to here.
36821 2011-05-21  Bruno Haible  <bruno@clisp.org>
36823         pipe-posix: Move AC_LIBOBJ invocations to module description.
36824         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
36825         * modules/pipe-posix (configure.ac): ... to here.
36827 2011-05-21  Bruno Haible  <bruno@clisp.org>
36829         openat: Respect rules for use of AC_LIBOBJ.
36830         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
36831         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
36832         * modules/openat (configure.ac): ... to here.
36834 2011-05-21  Bruno Haible  <bruno@clisp.org>
36836         obstack-printf*: Move AC_LIBOBJ invocations to module description.
36837         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
36838         invocation from here...
36839         * modules/obstack-printf (configure.ac): ... to here.
36840         * modules/obstack-printf-posix (configure.ac): ... and here.
36842 2011-05-21  Bruno Haible  <bruno@clisp.org>
36844         nl_langinfo: Move AC_LIBOBJ invocations to module description.
36845         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
36846         from here...
36847         * modules/nl_langinfo (configure.ac): ... to here.
36849 2011-05-21  Bruno Haible  <bruno@clisp.org>
36851         nanosleep: Move AC_LIBOBJ invocations to module description.
36852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
36853         gl_PREREQ_NANOSLEEP invocations from here...
36854         * modules/nanosleep (configure.ac): ... to here.
36856 2011-05-21  Bruno Haible  <bruno@clisp.org>
36858         mountlist: Move AC_LIBOBJ invocations to module description.
36859         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
36860         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
36861         * modules/mountlist (configure.ac): ... to here.
36863 2011-05-21  Bruno Haible  <bruno@clisp.org>
36865         mktime: Respect rules for use of AC_LIBOBJ.
36866         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
36867         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
36868         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
36869         (gl_FUNC_MKTIME_INTERNAL): ... and here...
36870         * modules/mktime (configure.ac): ... to here.
36871         * modules/mktime-internal (configure.ac): ... and here.
36872         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
36874 2011-05-21  Bruno Haible  <bruno@clisp.org>
36876         mkstemps: Move AC_LIBOBJ invocations to module description.
36877         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
36878         here...
36879         * modules/mkstemps (configure.ac): ... to here.
36881 2011-05-21  Bruno Haible  <bruno@clisp.org>
36883         mkstemp: Move AC_LIBOBJ invocations to module description.
36884         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
36885         gl_PREREQ_MKSTEMP invocations from here...
36886         * modules/mkstemp (configure.ac): ... to here.
36888 2011-05-21  Bruno Haible  <bruno@clisp.org>
36890         mkostemps: Move AC_LIBOBJ invocations to module description.
36891         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
36892         here...
36893         * modules/mkostemps (configure.ac): ... to here.
36895 2011-05-21  Bruno Haible  <bruno@clisp.org>
36897         mkostemp: Move AC_LIBOBJ invocations to module description.
36898         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
36899         gl_PREREQ_MKOSTEMP invocations from here...
36900         * modules/mkostemp (configure.ac): ... to here.
36902 2011-05-21  Bruno Haible  <bruno@clisp.org>
36904         mknod: Move AC_LIBOBJ invocations to module description.
36905         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
36906         * modules/mknod (configure.ac): ... to here.
36908 2011-05-21  Bruno Haible  <bruno@clisp.org>
36910         mkfifoat: Move AC_LIBOBJ invocations to module description.
36911         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
36912         here...
36913         * modules/mkfifoat (configure.ac): ... to here.
36915 2011-05-21  Bruno Haible  <bruno@clisp.org>
36917         mkfifo: Respect rules for use of AC_LIBOBJ.
36918         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
36919         here...
36920         * modules/mkfifo (configure.ac): ... to here.
36922 2011-05-21  Bruno Haible  <bruno@clisp.org>
36924         mkdtemp: Move AC_LIBOBJ invocations to module description.
36925         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
36926         invocations from here...
36927         * modules/mkdtemp (configure.ac): ... to here.
36929 2011-05-21  Bruno Haible  <bruno@clisp.org>
36931         mkdir: Move AC_LIBOBJ invocations to module description.
36932         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
36933         * modules/mkdir (configure.ac): ... to here.
36935 2011-05-21  Bruno Haible  <bruno@clisp.org>
36937         memset: Move AC_LIBOBJ invocations to module description.
36938         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
36939         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
36940         here...
36941         * modules/memset (configure.ac): ... to here.
36943 2011-05-21  Bruno Haible  <bruno@clisp.org>
36945         memrchr: Move AC_LIBOBJ invocations to module description.
36946         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
36947         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
36948         here...
36949         * modules/memrchr (configure.ac): ... to here.
36951 2011-05-21  Bruno Haible  <bruno@clisp.org>
36953         mempcpy: Move AC_LIBOBJ invocations to module description.
36954         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
36955         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
36956         here...
36957         * modules/mempcpy (configure.ac): ... to here.
36959 2011-05-21  Bruno Haible  <bruno@clisp.org>
36961         memmove: Move AC_LIBOBJ invocations to module description.
36962         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
36963         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
36964         here...
36965         * modules/memmove (configure.ac): ... to here.
36967 2011-05-21  Bruno Haible  <bruno@clisp.org>
36969         memmem*: Move AC_LIBOBJ invocations to module description.
36970         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
36971         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
36972         here...
36973         (gl_FUNC_MEMMEM): ... and here...
36974         * modules/memmem-simple (configure.ac): ... to here.
36975         * modules/memmem (configure.ac): ... and here.
36977 2011-05-21  Bruno Haible  <bruno@clisp.org>
36979         memcpy: Move AC_LIBOBJ invocations to module description.
36980         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
36981         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
36982         here...
36983         * modules/memcpy (configure.ac): ... to here.
36985 2011-05-21  Bruno Haible  <bruno@clisp.org>
36987         memcmp: Simplify autoconf macro.
36988         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
36989         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
36990         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
36992 2011-05-21  Bruno Haible  <bruno@clisp.org>
36994         memcmp: Move AC_LIBOBJ invocations to module description.
36995         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
36996         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
36997         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
36998         * modules/memcmp (configure.ac): ... to here.
36999         (Depends-on): Update conditions.
37001 2011-05-21  Bruno Haible  <bruno@clisp.org>
37003         memchr: Respect rules for use of AC_LIBOBJ.
37004         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
37005         invocations from here...
37006         * modules/memchr (configure.ac): ... to here.
37008 2011-05-21  Bruno Haible  <bruno@clisp.org>
37010         mbtowc: Move AC_LIBOBJ invocations to module description.
37011         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
37012         invocations from here...
37013         * modules/mbtowc (configure.ac): ... to here.
37015 2011-05-21  Bruno Haible  <bruno@clisp.org>
37017         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
37018         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
37019         gl_PREREQ_MBSRTOWCS invocations from here...
37020         * modules/mbsrtowcs (configure.ac): ... to here.
37022 2011-05-21  Bruno Haible  <bruno@clisp.org>
37024         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
37025         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
37026         gl_PREREQ_MBSNRTOWCS invocations from here...
37027         * modules/mbsnrtowcs (configure.ac): ... to here.
37029 2011-05-21  Bruno Haible  <bruno@clisp.org>
37031         mbsinit: Move AC_LIBOBJ invocations to module description.
37032         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
37033         invocations from here...
37034         * modules/mbsinit (configure.ac): ... to here.
37036 2011-05-21  Bruno Haible  <bruno@clisp.org>
37038         mbrlen: Move AC_LIBOBJ invocations to module description.
37039         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
37040         invocations from here...
37041         * modules/mbrlen (configure.ac): ... to here.
37043 2011-05-21  Bruno Haible  <bruno@clisp.org>
37045         mbrtowc: Respect rules for use of AC_LIBOBJ.
37046         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
37047         invocations from here...
37048         * modules/mbrtowc (configure.ac): ... to here.
37050 2011-05-21  Bruno Haible  <bruno@clisp.org>
37052         malloc-*: Move AC_LIBOBJ invocations to module description.
37053         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
37054         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
37055         AC_LIBOBJ invocations from here...
37056         * modules/malloc-gnu (configure.ac): ... to here.
37057         * modules/malloc-posix (configure.ac): ... and here.
37059 2011-05-21  Bruno Haible  <bruno@clisp.org>
37061         lstat, openat: Respect rules for use of AC_LIBOBJ.
37062         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
37063         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
37064         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
37065         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
37066         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
37067         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
37068         here.
37069         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
37071 2011-05-21  Bruno Haible  <bruno@clisp.org>
37073         lseek: Move AC_LIBOBJ invocations to module description.
37074         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
37075         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
37076         * modules/lseek (configure.ac): ... to here.
37078 2011-05-21  Bruno Haible  <bruno@clisp.org>
37080         linkat: Move AC_LIBOBJ invocations to module description.
37081         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
37082         here...
37083         * modules/linkat (configure.ac): ... to here.
37085 2011-05-21  Bruno Haible  <bruno@clisp.org>
37087         link: Respect rules for use of AC_LIBOBJ.
37088         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
37089         * modules/link (configure.ac): ... to here.
37091 2011-05-21  Bruno Haible  <bruno@clisp.org>
37093         lchown: Move AC_LIBOBJ invocations to module description.
37094         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
37095         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37096         * modules/lchown (configure.ac): ... to here.
37098 2011-05-21  Bruno Haible  <bruno@clisp.org>
37100         iswctype: Move AC_LIBOBJ invocations to module description.
37101         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
37102         here...
37103         * modules/iswctype (configure.ac): ... to here.
37105 2011-05-21  Bruno Haible  <bruno@clisp.org>
37107         iswblank: Move AC_LIBOBJ invocations to module description.
37108         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
37109         here...
37110         * modules/iswblank (configure.ac): ... to here.
37112 2011-05-21  Bruno Haible  <bruno@clisp.org>
37114         atanl: Move AC_LIBOBJ invocations to module description.
37115         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
37116         * modules/atanl (configure.ac): ... to here.
37118 2011-05-21  Bruno Haible  <bruno@clisp.org>
37120         acosl: Move AC_LIBOBJ invocations to module description.
37121         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
37122         * modules/acosl (configure.ac): ... to here.
37124 2011-05-21  Bruno Haible  <bruno@clisp.org>
37126         asinl: Respect rules for use of AC_LIBOBJ.
37127         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
37128         * modules/asinl (configure.ac): ... to here.
37130 2011-05-21  Bruno Haible  <bruno@clisp.org>
37132         tanl: Move AC_LIBOBJ invocations to module description.
37133         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
37134         * modules/tanl (configure.ac): ... to here.
37136 2011-05-21  Bruno Haible  <bruno@clisp.org>
37138         cosl: Move AC_LIBOBJ invocations to module description.
37139         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
37140         * modules/cosl (configure.ac): ... to here.
37142 2011-05-21  Bruno Haible  <bruno@clisp.org>
37144         sinl: Move AC_LIBOBJ invocations to module description.
37145         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
37146         * modules/sinl (configure.ac): ... to here.
37148 2011-05-21  Bruno Haible  <bruno@clisp.org>
37150         logl: Move AC_LIBOBJ invocations to module description.
37151         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
37152         * modules/logl (configure.ac): ... to here.
37154 2011-05-21  Bruno Haible  <bruno@clisp.org>
37156         expl: Move AC_LIBOBJ invocations to module description.
37157         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
37158         * modules/expl (configure.ac): ... to here.
37160 2011-05-21  Bruno Haible  <bruno@clisp.org>
37162         roundl: Move AC_LIBOBJ invocations to module description.
37163         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
37164         * modules/roundl (configure.ac): ... to here.
37166 2011-05-21  Bruno Haible  <bruno@clisp.org>
37168         round: Move AC_LIBOBJ invocations to module description.
37169         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
37170         * modules/round (configure.ac): ... to here.
37172 2011-05-21  Bruno Haible  <bruno@clisp.org>
37174         roundf: Move AC_LIBOBJ invocations to module description.
37175         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
37176         * modules/roundf (configure.ac): ... to here.
37178 2011-05-21  Bruno Haible  <bruno@clisp.org>
37180         truncl: Move AC_LIBOBJ invocations to module description.
37181         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
37182         * modules/truncl (configure.ac): ... to here.
37184 2011-05-21  Bruno Haible  <bruno@clisp.org>
37186         trunc: Move AC_LIBOBJ invocations to module description.
37187         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
37188         * modules/trunc (configure.ac): ... to here.
37190 2011-05-21  Bruno Haible  <bruno@clisp.org>
37192         truncf: Move AC_LIBOBJ invocations to module description.
37193         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
37194         * modules/truncf (configure.ac): ... to here.
37196 2011-05-21  Bruno Haible  <bruno@clisp.org>
37198         ceill: Move AC_LIBOBJ invocations to module description.
37199         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
37200         * modules/ceill (configure.ac): ... to here.
37202 2011-05-21  Bruno Haible  <bruno@clisp.org>
37204         ceil: Move AC_LIBOBJ invocations to module description.
37205         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
37206         * modules/ceil (configure.ac): ... to here.
37208 2011-05-21  Bruno Haible  <bruno@clisp.org>
37210         ceilf: Move AC_LIBOBJ invocations to module description.
37211         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
37212         * modules/ceilf (configure.ac): ... to here.
37214 2011-05-21  Bruno Haible  <bruno@clisp.org>
37216         floorl: Respect rules for use of AC_LIBOBJ.
37217         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
37218         * modules/floorl (configure.ac): ... to here.
37220 2011-05-21  Bruno Haible  <bruno@clisp.org>
37222         floor: Respect rules for use of AC_LIBOBJ.
37223         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
37224         * modules/floor (configure.ac): ... to here.
37226 2011-05-21  Bruno Haible  <bruno@clisp.org>
37228         floorf: Move AC_LIBOBJ invocations to module description.
37229         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
37230         * modules/floorf (configure.ac): ... to here.
37232 2011-05-20  Bruno Haible  <bruno@clisp.org>
37234         sqrtl: Respect rules for use of AC_LIBOBJ.
37235         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
37236         * modules/sqrtl (configure.ac): ... to here.
37238 2011-05-20  Bruno Haible  <bruno@clisp.org>
37240         ldexpl: Respect rules for use of AC_LIBOBJ.
37241         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
37242         * modules/ldexpl (configure.ac): ... to here.
37244 2011-05-20  Bruno Haible  <bruno@clisp.org>
37246         frexpl*: Respect rules for use of AC_LIBOBJ.
37247         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
37248         invocation from here...
37249         * modules/frexpl (configure.ac): ... to here.
37250         * modules/frexpl-nolibm (configure.ac): ... and here.
37252 2011-05-20  Bruno Haible  <bruno@clisp.org>
37254         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
37255         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
37256         invocation from here...
37257         * modules/frexp (configure.ac): ... to here.
37258         * modules/frexp-nolibm (configure.ac): ... and here.
37260 2011-05-20  Bruno Haible  <bruno@clisp.org>
37262         isnan: Respect rules for use of AC_LIBOBJ.
37263         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
37264         invocations here.
37265         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
37266         REPLACE_ISNAN.
37267         * modules/isnand (configure.ac): Likewise.
37268         * modules/isnanl (configure.ac): Likewise.
37270 2011-05-20  Bruno Haible  <bruno@clisp.org>
37272         isnanl*: Respect rules for use of AC_LIBOBJ.
37273         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
37274         invocation from here...
37275         * modules/isnanl (configure.ac): ... to here.
37276         * modules/isnanl-nolibm (configure.ac): ... and here.
37278 2011-05-20  Bruno Haible  <bruno@clisp.org>
37280         isnand*: Move AC_LIBOBJ invocations to module description.
37281         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
37282         invocation from here...
37283         * modules/isnand (configure.ac): ... to here.
37284         * modules/isnand-nolibm (configure.ac): ... and here.
37286 2011-05-20  Bruno Haible  <bruno@clisp.org>
37288         isnanf*: Move AC_LIBOBJ invocations to module description.
37289         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
37290         invocation from here...
37291         * modules/isnanf (configure.ac): ... to here.
37292         * modules/isnanf-nolibm (configure.ac): ... and here.
37294 2011-05-20  Bruno Haible  <bruno@clisp.org>
37296         isnan*: Separate the AC_LIBOBJ invocations.
37297         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
37298         AC_LIBOBJ invocation.
37299         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
37300         here.
37301         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
37302         AC_LIBOBJ invocation.
37303         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
37304         here.
37305         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
37306         AC_LIBOBJ invocation.
37307         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
37308         here.
37309         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
37311 2011-05-08  Bruno Haible  <bruno@clisp.org>
37313         isinf: Move AC_LIBOBJ invocations to module description.
37314         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
37315         * modules/isinf (configure.ac): ... to here.
37317 2011-05-08  Bruno Haible  <bruno@clisp.org>
37319         isfinite: Move AC_LIBOBJ invocations to module description.
37320         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
37321         * modules/isfinite (configure.ac): ... to here.
37323 2011-05-08  Bruno Haible  <bruno@clisp.org>
37325         isblank: Move AC_LIBOBJ invocations to module description.
37326         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
37327         here...
37328         * modules/isblank (configure.ac): ... to here.
37330 2011-05-08  Bruno Haible  <bruno@clisp.org>
37332         isapipe: Move AC_LIBOBJ invocations to module description.
37333         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
37334         gl_PREREQ_ISAPIPE invocations from here...
37335         * modules/isapipe (configure.ac): ... to here.
37336         (Depends-on): Update condition.
37338 2011-05-08  Bruno Haible  <bruno@clisp.org>
37340         ioctl: Move AC_LIBOBJ invocations to module description.
37341         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
37342         invocations from here...
37343         * modules/ioctl (configure.ac): ... to here.
37344         (Depends-on): Update condition.
37346 2011-05-08  Bruno Haible  <bruno@clisp.org>
37348         imaxdiv: Move AC_LIBOBJ invocations to module description.
37349         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
37350         invocations from here...
37351         * modules/imaxdiv (configure.ac): ... to here.
37353 2011-05-08  Bruno Haible  <bruno@clisp.org>
37355         imaxabs: Move AC_LIBOBJ invocations to module description.
37356         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
37357         invocations from here...
37358         * modules/imaxabs (configure.ac): ... to here.
37360 2011-05-08  Bruno Haible  <bruno@clisp.org>
37362         getaddrinfo: Move AC_LIBOBJ invocations to module description.
37363         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
37364         AC_LIBOBJ invocations from here...
37365         * modules/getaddrinfo (configure.ac): ... to here.
37366         (Depends-on): Add conditions.
37368 2011-05-08  Bruno Haible  <bruno@clisp.org>
37370         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37371         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
37372         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37373         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
37374         (gl_PREREQ_INET_PTON): ... from here.
37375         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
37376         gl_PREREQ_INET_PTON here.
37377         (Depends-on): Update condition.
37379 2011-05-08  Bruno Haible  <bruno@clisp.org>
37381         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
37382         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
37383         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
37384         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
37385         (gl_PREREQ_INET_NTOP): ... from here.
37386         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
37387         gl_PREREQ_INET_NTOP here.
37388         (Depends-on): Update condition.
37390 2011-05-08  Bruno Haible  <bruno@clisp.org>
37392         iconv_open: Move AC_LIBOBJ invocations to module description.
37393         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
37394         AC_LIBOBJ invocations from here...
37395         * modules/iconv_open (configure.ac): ... to here.
37397 2011-05-08  Bruno Haible  <bruno@clisp.org>
37399         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
37400         If module 'iconv_open' is among the main modules and module
37401         'iconv_open-utf' is among the tests dependencies, then
37402         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
37403         return the special iconv_t values. Therefore iconv() and iconv_close()
37404         must support these special iconv_t values, already in lib, not only in
37405         tests.
37406         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
37407         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
37408         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
37409         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
37410         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
37411         (Depends-on): Add the dependencies of iconv_open-utf.
37412         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
37413         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
37414         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
37416 2011-05-08  Bruno Haible  <bruno@clisp.org>
37418         group-member: Move AC_LIBOBJ invocations to module description.
37419         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
37420         gl_PREREQ_GROUP_MEMBER invocations from here...
37421         * modules/group-member (configure.ac): ... to here.
37423 2011-05-08  Bruno Haible  <bruno@clisp.org>
37425         grantpt: Move AC_LIBOBJ invocations to module description.
37426         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
37427         invocations from here...
37428         * modules/grantpt (configure.ac): ... to here.
37430 2011-05-08  Bruno Haible  <bruno@clisp.org>
37432         glob: Move AC_LIBOBJ invocations to module description.
37433         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
37434         from here...
37435         * modules/glob (configure.ac): ... to here.
37437 2011-05-08  Bruno Haible  <bruno@clisp.org>
37439         getusershell: Move AC_LIBOBJ invocations to module description.
37440         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
37441         Move AC_LIBOBJ invocation from here...
37442         * modules/getusershell (configure.ac): ... to here.
37443         (Depends-on): Update condition.
37445 2011-05-08  Bruno Haible  <bruno@clisp.org>
37447         gettimeofday: Move AC_LIBOBJ invocations to module description.
37448         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37449         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
37450         gl_PREREQ_GETTIMEOFDAY invocations from here...
37451         * modules/gettimeofday (configure.ac): ... to here.
37453 2011-05-08  Bruno Haible  <bruno@clisp.org>
37455         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
37456         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
37457         just gl_FUNC_TZSET.
37458         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
37459         (gl_FUNC_TZSET_CLOBBER): Remove actions.
37460         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
37461         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
37463 2011-05-08  Bruno Haible  <bruno@clisp.org>
37465         getsubopt: Move AC_LIBOBJ invocations to module description.
37466         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
37467         gl_PREREQ_GETSUBOPT invocations from here...
37468         * modules/getsubopt (configure.ac): ... to here.
37470 2011-05-08  Bruno Haible  <bruno@clisp.org>
37472         getpass-gnu: Move AC_LIBOBJ invocations to module description.
37473         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
37474         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
37475         * modules/getpass-gnu (configure.ac): ... to here.
37477 2011-05-08  Bruno Haible  <bruno@clisp.org>
37479         getpass: Move AC_LIBOBJ invocations to module description.
37480         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
37481         gl_PREREQ_GETPASS invocations from here...
37482         * modules/getpass (configure.ac): ... to here.
37484 2011-05-08  Bruno Haible  <bruno@clisp.org>
37486         getpagesize: Move AC_LIBOBJ invocations to module description.
37487         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
37488         from here...
37489         * modules/getpagesize (configure.ac): ... to here.
37491 2011-05-08  Bruno Haible  <bruno@clisp.org>
37493         getopt: Move AC_LIBOBJ invocations to module description.
37494         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
37495         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
37496         invocations from here...
37497         * modules/getopt-gnu (configure.ac): ... to here.
37498         * modules/getopt-posix (configure.ac): ... and here.
37499         (Depends-on): Update condition.
37501 2011-05-08  Bruno Haible  <bruno@clisp.org>
37503         getopt, argp: Respect rules for use of AC_LIBOBJ.
37504         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
37505         (gl_REPLACE_GETOPT_ALWAYS): New macro.
37506         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
37507         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
37509 2011-05-08  Bruno Haible  <bruno@clisp.org>
37511         getlogin_r: Move AC_LIBOBJ invocations to module description.
37512         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
37513         gl_PREREQ_GETLOGIN_R invocations from here...
37514         * modules/getlogin_r (configure.ac): ... to here.
37516 2011-05-08  Bruno Haible  <bruno@clisp.org>
37518         getlogin: Move AC_LIBOBJ invocations to module description.
37519         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
37520         here...
37521         * modules/getlogin (configure.ac): ... to here.
37523 2011-05-08  Bruno Haible  <bruno@clisp.org>
37525         getloadavg: Move AC_LIBOBJ invocations to module description.
37526         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
37527         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
37528         * modules/getloadavg (configure.ac): ... to here.
37530 2011-05-08  Bruno Haible  <bruno@clisp.org>
37532         gethrxtime: Move AC_LIBOBJ invocations to module description.
37533         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
37534         LIB_GETHRXTIME from here...
37535         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
37536         invocations from here...
37537         * modules/gethrxtime (configure.ac): ... to here.
37539 2011-05-08  Bruno Haible  <bruno@clisp.org>
37541         gethostname: Move AC_LIBOBJ invocations to module description.
37542         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
37543         gl_PREREQ_GETHOSTNAME invocations from here...
37544         * modules/gethostname (configure.ac): ... to here.
37546 2011-05-08  Bruno Haible  <bruno@clisp.org>
37548         getgroups: Move AC_LIBOBJ invocations to module description.
37549         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
37550         here...
37551         * modules/getgroups (configure.ac): ... to here.
37553 2011-05-08  Bruno Haible  <bruno@clisp.org>
37555         getdtablesize: Move AC_LIBOBJ invocations to module description.
37556         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
37557         invocation from here...
37558         * modules/getdtablesize (configure.ac): ... to here.
37560 2011-05-08  Bruno Haible  <bruno@clisp.org>
37562         getdomainname: Move AC_LIBOBJ invocations to module description.
37563         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
37564         gl_PREREQ_GETDOMAINNAME invocations from here...
37565         * modules/getdomainname (configure.ac): ... to here.
37567 2011-05-08  Bruno Haible  <bruno@clisp.org>
37569         getline: Move AC_LIBOBJ invocations to module description.
37570         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
37571         invocations from here...
37572         * modules/getline (configure.ac): ... to here.
37574 2011-05-08  Bruno Haible  <bruno@clisp.org>
37576         getline: Simplify.
37577         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
37578         It's already handled through the module dependency.
37580 2011-05-08  Bruno Haible  <bruno@clisp.org>
37582         getdelim: Move AC_LIBOBJ invocations to module description.
37583         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
37584         and gl_PREREQ_GETDELIM invocations from here...
37585         * modules/getdelim (configure.ac): ... to here.
37586         (Depends-on): Fix condition.
37588 2011-05-08  Bruno Haible  <bruno@clisp.org>
37590         getcwd: Move AC_LIBOBJ invocations to module description.
37591         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
37592         invocations from here...
37593         * modules/getcwd (configure.ac): ... to here.
37595 2011-05-08  Bruno Haible  <bruno@clisp.org>
37597         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
37598         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
37599         here...
37600         * modules/getcwd-lgpl (configure.ac): ... to here.
37602 2011-05-07  Bruno Haible  <bruno@clisp.org>
37604         crypto/gc: Move AC_LIBOBJ invocations to module description.
37605         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
37606         * modules/crypto/gc (configure.ac): ... to here.
37608 2011-05-07  Bruno Haible  <bruno@clisp.org>
37610         fwriting: Move AC_LIBOBJ invocations to module description.
37611         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
37612         here...
37613         * modules/fwriting (configure.ac): ... to here.
37615 2011-05-07  Bruno Haible  <bruno@clisp.org>
37617         fwritable: Move AC_LIBOBJ invocations to module description.
37618         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
37619         here...
37620         * modules/fwritable (configure.ac): ... to here.
37622 2011-05-07  Bruno Haible  <bruno@clisp.org>
37624         futimens: Move AC_LIBOBJ invocations to module description.
37625         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
37626         here...
37627         * modules/futimens (configure.ac): ... to here.
37629 2011-05-07  Bruno Haible  <bruno@clisp.org>
37631         ftruncate: Move AC_LIBOBJ invocations to module description.
37632         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
37633         gl_PREREQ_FTRUNCATE invocations from here...
37634         * modules/ftruncate (configure.ac): ... to here.
37636 2011-05-07  Bruno Haible  <bruno@clisp.org>
37638         fsync: Move AC_LIBOBJ invocations to module description.
37639         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
37640         invocations from here...
37641         * modules/fsync (configure.ac): ... to here.
37643 2011-05-07  Bruno Haible  <bruno@clisp.org>
37645         fsusage: Move AC_LIBOBJ invocations to module description.
37646         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
37647         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
37648         * modules/fsusage (configure.ac): ... to here.
37650 2011-05-07  Bruno Haible  <bruno@clisp.org>
37652         freopen: Move AC_LIBOBJ invocations to module description.
37653         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
37654         invocations from here...
37655         * modules/freopen (configure.ac): ... to here.
37657 2011-05-07  Bruno Haible  <bruno@clisp.org>
37659         free: Move AC_LIBOBJ invocations to module description.
37660         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
37661         invocations from here...
37662         * modules/free (configure.ac): ... to here.
37664 2011-05-07  Bruno Haible  <bruno@clisp.org>
37666         freadable: Move AC_LIBOBJ invocations to module description.
37667         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
37668         here...
37669         * modules/freadable (configure.ac): ... to here.
37671 2011-05-07  Bruno Haible  <bruno@clisp.org>
37673         fpurge: Move AC_LIBOBJ invocations to module description.
37674         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
37675         invocations from here...
37676         * modules/fpurge (configure.ac): ... to here.
37678 2011-05-07  Bruno Haible  <bruno@clisp.org>
37680         fpending: Move AC_LIBOBJ invocations to module description.
37681         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
37682         gl_FUNC_FPENDING.
37683         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
37684         invocations from here...
37685         * modules/fpending (configure.ac): ... to here.
37687 2011-05-07  Bruno Haible  <bruno@clisp.org>
37689         fopen: Move AC_LIBOBJ invocations to module description.
37690         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
37691         invocations from here...
37692         * modules/fopen (configure.ac): ... to here.
37694 2011-05-07  Bruno Haible  <bruno@clisp.org>
37696         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
37697         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
37698         gl_FUNC_FNMATCH_POSIX.
37699         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
37700         invocations from here...
37701         * modules/fnmatch (configure.ac): ... to here.
37702         * modules/fnmatch-gnu (configure.ac): ... and here.
37704 2011-05-07  Bruno Haible  <bruno@clisp.org>
37706         flock: Move AC_LIBOBJ invocations to module description.
37707         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
37708         invocations from here...
37709         * modules/flock (configure.ac): ... to here.
37711 2011-05-07  Bruno Haible  <bruno@clisp.org>
37713         fileblocks: Move AC_LIBOBJ invocations to module description.
37714         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
37715         gl_PREREQ_FILEBLOCKS invocations from here...
37716         * modules/fileblocks (configure.ac): ... to here.
37718 2011-05-06  Bruno Haible  <bruno@clisp.org>
37720         fflush: Move AC_LIBOBJ invocations to module description.
37721         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
37722         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
37723         invocations from here...
37724         * modules/fflush (configure.ac): ... to here.
37726 2011-05-06  Bruno Haible  <bruno@clisp.org>
37728         fdopendir: Move AC_LIBOBJ invocations to module description.
37729         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
37730         here...
37731         * modules/fdopendir (configure.ac): ... to here.
37732         (Depends-on): Improve conditions.
37734 2011-05-06  Bruno Haible  <bruno@clisp.org>
37736         _Exit: Move AC_LIBOBJ invocations to module description.
37737         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
37738         invocations from here...
37739         * modules/_Exit (configure.ac): ... to here.
37741 2011-05-21  Bruno Haible  <bruno@clisp.org>
37743         euidaccess: Respect rules for use of AC_LIBOBJ.
37744         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
37745         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
37746         from here...
37747         * modules/euidaccess (configure.ac): ... to here.
37749 2011-05-06  Bruno Haible  <bruno@clisp.org>
37751         error: Move AC_LIBOBJ invocations to module description.
37752         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
37753         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
37754         invocations from here...
37755         * modules/error (configure.ac): ... to here.
37757 2011-05-06  Bruno Haible  <bruno@clisp.org>
37759         duplocale: Move AC_LIBOBJ invocations to module description.
37760         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
37761         gl_PREREQ_DUPLOCALE invocations from here...
37762         * modules/duplocale (configure.ac): ... to here.
37764 2011-05-05  Bruno Haible  <bruno@clisp.org>
37766         dirfd: Move AC_LIBOBJ invocations to module description.
37767         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
37768         gl_FUNC_DIRFD.
37769         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
37770         here...
37771         * modules/dirfd (configure.ac): ... to here.
37772         (Depends-on): Fix condition.
37774 2011-05-05  Bruno Haible  <bruno@clisp.org>
37776         chown: Respect rules for use of AC_LIBOBJ.
37777         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
37778         * modules/chown (configure.ac): ... to here.
37780 2011-05-05  Bruno Haible  <bruno@clisp.org>
37782         chdir-long: Move AC_LIBOBJ invocations to module description.
37783         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
37784         gl_PREREQ_CHDIR_LONG invocations from here...
37785         * modules/chdir-long (configure.ac): ... to here.
37787 2011-05-05  Bruno Haible  <bruno@clisp.org>
37789         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
37790         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
37791         from here...
37792         * modules/canonicalize-lgpl (configure.ac): ... to here.
37794 2011-05-05  Bruno Haible  <bruno@clisp.org>
37796         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
37797         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
37798         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
37799         REPLACE_CALLOC.
37800         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
37801         * modules/calloc-gnu (configure.ac): Likewise.
37803 2011-05-05  Bruno Haible  <bruno@clisp.org>
37805         btowc: Move AC_LIBOBJ invocations to module description.
37806         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
37807         invocations from here...
37808         * modules/btowc (configure.ac): ... to here.
37810 2011-05-21  Bruno Haible  <bruno@clisp.org>
37812         atexit: Move AC_LIBOBJ invocations to module description.
37813         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
37814         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
37815         here...
37816         * modules/atexit (configure.ac): ... to here.
37818 2011-05-05  Bruno Haible  <bruno@clisp.org>
37820         atoll: Move AC_LIBOBJ invocations to module description.
37821         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
37822         invocations from here...
37823         * modules/atoll (configure.ac): ... to here.
37825 2011-05-05  Bruno Haible  <bruno@clisp.org>
37827         argz: Move AC_LIBOBJ invocations to module description.
37828         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
37829         * modules/argz (configure.ac): ... to here.
37831 2011-05-05  Bruno Haible  <bruno@clisp.org>
37833         alphasort: Move AC_LIBOBJ invocations to module description.
37834         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
37835         gl_PREREQ_ALPHASORT invocations from here...
37836         * modules/alphasort (configure.ac): ... to here.
37838 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
37840         verify: new macro verify_expr; verify_true deprecated
37841         * NEWS: Mention this.
37842         * doc/verify.texi (Compile-time Assertions): Document this.
37843         * lib/verify.h (verify_true): Deprecate.
37844         (verify_expr): New macro.
37845         * tests/test-verify.c (function): Test verify_expr.
37847 2011-06-14  Jim Meyering  <meyering@redhat.com>
37849         init.sh: give more portable redirection-related advice in a comment
37850         * tests/init.sh (stderr_fileno_): Update the advice in comments.
37851         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
37852         for lots of discussion.  Stefano Lattarini suggested the solution
37853         of putting "9>&2" after the command.  Reported by Bruno Haible.
37855 2011-06-13  Bruno Haible  <bruno@clisp.org>
37857         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
37858         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
37859         'none'.
37861 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
37863         ftoastr: use strtof only if HAVE_STRTOF
37864         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
37865         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
37866         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
37867         * modules/ftoastr (configure.ac): Check for strtof.
37869 2011-06-13  Bruno Haible  <bruno@clisp.org>
37871         gnulib-tool: Addendum to 2011-06-08 commit.
37872         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
37873         and --witness-c-macro have been given, augment AM_CPPFLAGS.
37875 2011-06-13  Bruno Haible  <bruno@clisp.org>
37877         fseeko: Provide a non-inline replacement of fseek().
37878         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
37879         * modules/fseeko (Depends-on): Add fseek.
37880         * modules/fseek (License): Change to LGPLv2+.
37882 2011-06-13  Bruno Haible  <bruno@clisp.org>
37884         ftello: Provide a non-inline replacement of ftell().
37885         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
37886         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
37887         not have ftello() (such as on mingw).
37888         * modules/ftello (Depends-on): Add ftell.
37889         * modules/ftell (License): Change to LGPLv2+.
37891 2011-05-07  Bruno Haible  <bruno@clisp.org>
37893         ftell: Move AC_LIBOBJ invocations to module description.
37894         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
37895         * modules/ftell (configure.ac): ... to here.
37897 2011-05-07  Bruno Haible  <bruno@clisp.org>
37899         ftello: Respect rules for use of AC_LIBOBJ.
37900         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
37901         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
37902         here...
37903         * modules/ftello (configure.ac): ... to here.
37905 2011-05-07  Bruno Haible  <bruno@clisp.org>
37907         fseeko: Simplify.
37908         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
37909         (gl_FUNC_FSEEKO): Inline it here.
37911 2011-05-07  Bruno Haible  <bruno@clisp.org>
37913         fseek: Move AC_LIBOBJ invocations to module description.
37914         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
37915         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
37916         * modules/fseek (configure.ac): ... to here.
37918 2011-05-07  Bruno Haible  <bruno@clisp.org>
37920         fseek: Respect rules for use of AC_LIBOBJ.
37921         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
37922         here...
37923         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
37925 2011-05-07  Bruno Haible  <bruno@clisp.org>
37927         fseeko: Respect rules for use of AC_LIBOBJ.
37928         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
37929         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
37930         here...
37931         * modules/fseeko (configure.ac): ... to here.
37933 2011-06-13  Bruno Haible  <bruno@clisp.org>
37935         gnulib-tool: Allow comments in the 'Depends-on' section.
37936         * doc/gnulib.texi (Module description): Mention comment syntax in the
37937         Depends-on section.
37938         * gnulib-tool (func_get_dependencies): Filter out comment lines.
37940 2011-06-13  Bruno Haible  <bruno@clisp.org>
37942         file-set.h: guard __attibute__ use, now that it's not always defined
37943         * lib/file-set.h (record_file): Use __attribute__ only with compiler
37944         versions that support it.  This fixes a coreutils build failure with
37945         the vendor cc on HP-UX 11.31.
37947 2011-06-12  Bruno Haible  <bruno@clisp.org>
37949         acl: Add support for HP-UX >= 11.11 JFS ACLs.
37950         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
37951         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
37952         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
37953         (acl, aclsort): New declarations.
37954         (aclv_nontrivial): New declaration.
37955         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
37956         (file_has_acl): Read also the second kind of HP-UX ACLs.
37957         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
37958         kind of HP-UX ACLs if the first kind fails.
37959         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
37960         second kind of HP-UX ACLs.
37961         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
37962         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
37963         agree.
37964         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
37965         hpuxjfs.
37966         Handle hpuxjfs.
37967         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
37968         hpuxjfs.
37969         Handle hpuxjfs.
37970         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
37971         (func_test_same_acls): Use both lsacl and getacl.
37972         Handle hpuxjfs.
37973         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
37974         (func_test_same_acls): Use both lsacl and getacl.
37975         Handle hpuxjfs.
37977 2011-06-12  Bruno Haible  <bruno@clisp.org>
37979         acl: Complete the 2010-08-10 fix.
37980         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
37981         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
37982         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
37983         explicitly.
37984         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
37985         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
37987 2011-06-12  Bruno Haible  <bruno@clisp.org>
37989         spawn-pipe tests: Comments.
37990         * tests/test-spawn-pipe-child.c (main): Update comment.
37991         Reported by James Youngman <jay@gnu.org>.
37993 2011-06-11  James Youngman  <jay@gnu.org>
37995         New module 'stat-size'.
37996         * modules/stat-size: New module.  Provides macros for accessing
37997         file size information in instances of struct stat.  Depends on the
37998         fileblocks module because it calls st_blocks.
37999         * lib/stat-size.h: New file, adapted from coreutils' system.h.
38000         * doc/gnulib.texi: Include stat-size.texi.
38001         * doc/stat-size.texi: Documentation for this module.
38002         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
38003         * m4/fileblocks.m4: Mention that stat-size depends on the call to
38004         AC_STRUCT_ST_BLOCKS.
38006 2011-06-09  Bruno Haible  <bruno@clisp.org>
38008         thread: Support pthreads-win32.
38009         * lib/glthread/thread.h (gl_thread_self): Define differently on
38010         pthreads-win32.
38011         (gl_null_thread): New declaration.
38012         (gl_thread_self_pointer): New macro.
38013         * lib/glthread/thread.c (gl_null_thread): New constant.
38014         * tests/test-lock.c: Use gl_thread_self_pointer instead of
38015         gl_thread_self.
38016         * tests/test-tls.c: Likewise.
38017         Suggested by Paul Eggert. Reported by Eric Blake.
38019 2011-06-09  Bruno Haible  <bruno@clisp.org>
38021         thread: Fix confusion between NULL and 0.
38022         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
38023         Reported by Paul Eggert.
38025 2011-06-09  Bruno Haible  <bruno@clisp.org>
38027         spawn-pipe tests: Avoid test failure on HP-UX 11.
38028         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
38029         is closed.
38031 2011-06-09  Bruno Haible  <bruno@clisp.org>
38033         acl tests: Fix compilation error on HP-UX 11.
38034         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
38036 2011-06-09  Bruno Haible  <bruno@clisp.org>
38038         rmdir: Avoid test failure on HP-UX 10.20.
38039         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
38040         EEXIST.
38042 2011-06-08  Eric Blake  <eblake@redhat.com>
38044         perror: fix test on mingw
38045         * modules/perror-tests (Depends-on): Add dup2.
38047         strerror_r-posix: fix on MacOS
38048         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
38049         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
38050         logic bug.
38051         * lib/strerror_r.c (strerror_r): Fix the bug.
38052         * lib/strerror.c (strerror): Likewise.
38053         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
38054         problem.
38055         * doc/posix-functions/strerror.texi (strerror): Likewise.
38056         * doc/posix-functions/perror.texi (perror): Likewise.
38057         * tests/test-strerror.c (main): Enhance test.
38058         * tests/test-strerror_r.c (main): Likewise.
38060 2011-06-08  Bruno Haible  <bruno@clisp.org>
38062         gnulib-tool: Better isolation between different gnulib-tool invocations.
38063         * gnulib-tool: New option --witness-c-macro.
38064         (witness_c_macro): New variable.
38065         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
38066         AM_CPPFLAGS define it as a C macro.
38067         (func_emit_tests_Makefile_am): Likewise.
38068         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
38069         read it from there.
38070         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
38071         m4_define, not AC_DEFUN.
38072         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
38073         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
38074         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
38075         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
38076         s|...|...|, to substitute the values of the GNULIB_* module indicator
38077         variables.
38078         * modules/dirent (Makefile.am): Likewise.
38079         * modules/fcntl-h (Makefile.am): Likewise.
38080         * modules/iconv-h (Makefile.am): Likewise.
38081         * modules/langinfo (Makefile.am): Likewise.
38082         * modules/locale (Makefile.am): Likewise.
38083         * modules/math (Makefile.am): Likewise.
38084         * modules/netdb (Makefile.am): Likewise.
38085         * modules/poll-h (Makefile.am): Likewise.
38086         * modules/pty (Makefile.am): Likewise.
38087         * modules/search (Makefile.am): Likewise.
38088         * modules/signal (Makefile.am): Likewise.
38089         * modules/spawn (Makefile.am): Likewise.
38090         * modules/stdio (Makefile.am): Likewise.
38091         * modules/stdlib (Makefile.am): Likewise.
38092         * modules/string (Makefile.am): Likewise.
38093         * modules/sys_ioctl (Makefile.am): Likewise.
38094         * modules/sys_select (Makefile.am): Likewise.
38095         * modules/sys_socket (Makefile.am): Likewise.
38096         * modules/sys_stat (Makefile.am): Likewise.
38097         * modules/sys_times (Makefile.am): Likewise.
38098         * modules/sys_utsname (Makefile.am): Likewise.
38099         * modules/sys_wait (Makefile.am): Likewise.
38100         * modules/termios (Makefile.am): Likewise.
38101         * modules/time (Makefile.am): Likewise.
38102         * modules/unistd (Makefile.am): Likewise.
38103         * modules/wchar (Makefile.am): Likewise.
38105 2011-06-08  Eric Blake  <eblake@redhat.com>
38107         strerror: simplify replacement
38108         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
38109         * modules/strerror (configure.ac): No prereqs needed here...
38110         * modules/strerror-override (configure.ac): ...but this needs it.
38111         (Files): Add file for needed prereq macro.
38113 2011-06-08  Bruno Haible  <bruno@clisp.org>
38115         strerror_r-posix: Tweaks.
38116         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
38117         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
38118         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
38119         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
38120         (gl_FUNC_STRERROR_R): ... to here.
38121         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
38123 2011-06-07  Eric Blake  <eblake@redhat.com>
38125         perror: document fixed bugs
38126         * doc/posix-functions/perror.texi (perror): Document recent
38127         patches.
38129 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
38131         stat-time: get_stat_birthtime failure is better-defined
38132         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
38133         return a timestamp whose tv_sec and tv_nsec values are both -1.
38134         Previously, the spec said only that the tv_nsec value was negative.
38135         This upward-compatible change simplifies GNU tar a bit.
38137 2011-06-07  Eric Blake  <eblake@redhat.com>
38139         strerror_r-posix: work around cygwin 1.7.9
38140         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
38141         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
38142         bug without replacing strerror_r.
38143         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
38144         strerror_r is buggy, but without requiring strerror_r compilation.
38145         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
38147         test-perror: relax test to ignore cygwin bug
38148         * tests/test-perror2.c (main): Relax test on requiring detection
38149         of stream errors, and use unbuffered stream.
38150         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
38151         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
38152         * doc/posix-functions/fputc.texi (fputc): Likewise.
38153         * doc/posix-functions/fputs.texi (fputs): Likewise.
38154         * doc/posix-functions/fputws.texi (fputws): Likewise.
38155         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
38156         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
38157         * doc/posix-functions/getopt.texi (getopt): Likewise.
38158         * doc/posix-functions/perror.texi (perror): Likewise.
38159         * doc/posix-functions/printf.texi (printf): Likewise.
38160         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
38161         * doc/posix-functions/psignal.texi (psignal): Likewise.
38162         * doc/posix-functions/putc.texi (putc): Likewise.
38163         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
38164         Likewise.
38165         * doc/posix-functions/putchar.texi (putchar): Likewise.
38166         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
38167         Likewise.
38168         * doc/posix-functions/puts.texi (puts): Likewise.
38169         * doc/posix-functions/putwc.texi (putwc): Likewise.
38170         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38171         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38172         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38173         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
38174         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38175         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38176         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38177         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
38179 2011-05-22  Bruno Haible  <bruno@clisp.org>
38181         strerror: Move AC_LIBOBJ invocations to module description.
38182         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
38183         gl_PREREQ_STRERROR invocations from here...
38184         * modules/strerror (configure.ac): ... to here.
38186 2011-05-21  Bruno Haible  <bruno@clisp.org>
38188         perror: Use common idiom.
38189         * modules/perror (configure.ac): Reorder statements.
38191 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38193         tests: fix usage message in 'mktempd_'
38194         * tests/init.sh (mktempd_): In the usage message, use literal
38195         'mktempd_', not '$ME' (which is even undefined), as the name of
38196         the subroutine.
38198 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38200         tests init: new function 'fatal_', for hard errors
38201         Before this patch, the only way offered by tests/init.sh to
38202         properly signal a hard error was the `framework_failure_'
38203         function.  But the error message issued by that function,
38204         as its name would suggest, refers to a set-up failure in the
38205         testsuite, while hard errors can obviously also be due to
38206         other reasons.  The best way to fix this inconsistency is to
38207         introduce a new function with a more general error message.
38208         * tests/init.sh (fatal_): New function.
38210 2011-06-06  Eric Blake  <eblake@redhat.com>
38212         canonicalize-lgpl: use common idiom
38213         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
38214         over newer POSIX -Rf.
38215         Reported by Bruno Haible.
38217         canonicalize-lgpl: work around AIX realpath bug
38218         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
38219         * doc/posix-functions/realpath.texi (realpath): Document it.
38220         Reported by Bruno Haible.
38222         strerror: work around FreeBSD bug
38223         * lib/strerror.c (strerror): Special case 0.
38224         Reported by Bruno Haible.
38226         strerror-override: avoid bloating errno module
38227         * modules/errno (Files, configure.ac): Move replacement strings...
38228         * modules/strerror-override: ...to new module.
38229         * modules/strerror (Depends-on): Add strerror-override.
38230         * modules/strerror_r-posix (Depends-on): Likewise.
38231         * MODULES.html.sh: Document new module.
38232         Reported by Bruno Haible.
38234 2011-06-06  Bruno Haible  <bruno@clisp.org>
38236         spawn-pipe tests: Rename program.
38237         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
38238         * tests/test-spawn-pipe-child.c: Update comment.
38239         * tests/test-spawn-pipe.sh: Update.
38240         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
38242         spawn-pipe tests: Link the child program only against libc.
38243         * tests/test-spawn-pipe-child.c: New file, extracted from
38244         tests/test-spawn-pipe.c.
38245         (main): Expect only one argument.
38246         (is_open): New function, copied from tests/test-pipe.c.
38247         * tests/test-spawn-pipe.c: Don't include <errno.h>.
38248         (child_main): Remove function.
38249         (test_pipe): Pass only one argument to the child program.
38250         (main): Remove child process code. Expect the child program's name as
38251         first argument.
38252         * tests/test-spawn-pipe.sh: Pass the child program's name as first
38253         argument.
38254         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
38255         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
38256         test-spawn-pipe-child against no libraries.
38258 2011-06-06  Bruno Haible  <bruno@clisp.org>
38260         careadlinkat: Avoid mismatch between ssize_t and int.
38261         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
38262         * lib/careadlinkat.c (careadlinkatcwd): Define always.
38264 2011-06-06  Jim Meyering  <meyering@redhat.com>
38266         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
38267         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
38268         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
38270 2011-06-05  Bruno Haible  <bruno@clisp.org>
38272         ansi-c++-opt: Interoperability with libtool.
38273         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
38274         set the variable to "no", not to ":".
38275         * NEWS: Mention the change.
38277 2011-06-05  Bruno Haible  <bruno@clisp.org>
38279         acl: Fix test failure on AIX 7.
38280         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
38281         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
38283 2011-06-05  Bruno Haible  <bruno@clisp.org>
38285         pipe-filter-ii: Fix test failure on AIX and IRIX.
38286         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
38287         with EAGAIN, retry with a smaller buffer size.
38289 2011-06-05  Bruno Haible  <bruno@clisp.org>
38291         localename: Fix link dependencies.
38292         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
38293         * modules/localename-tests (Makefile.am): Link test-localename with
38294         $(LIBTHREAD).
38296 2011-06-05  Bruno Haible  <bruno@clisp.org>
38298         error: Avoid gcc warning.
38299         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
38301 2011-06-05  Bruno Haible  <bruno@clisp.org>
38303         unsetenv: Avoid gcc warning.
38304         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
38306 2011-06-05  Bruno Haible  <bruno@clisp.org>
38308         setenv: Avoid gcc warning.
38309         * lib/setenv.c (setenv): Provide declaration if system lacks it.
38311 2011-06-05  Bruno Haible  <bruno@clisp.org>
38313         sys_select: Ensure memset is declared also on AIX 7.
38314         * lib/sys_select.in.h: Include <string.h> also on AIX.
38315         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
38316         self-contained also on AIX 7.1.
38318 2011-06-04  Jim Meyering  <meyering@redhat.com>
38320         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
38321         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
38322         function name, "error".
38323         (_gl_translatable_diag_func_re): New configurable variable.
38325 2011-06-04  Bruno Haible  <bruno@clisp.org>
38327         getopt: Avoid gcc warning.
38328         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
38330 2011-06-04  Bruno Haible  <bruno@clisp.org>
38332         strerror_r: Fix comments.
38333         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
38334         commit.
38336 2011-06-04  Bruno Haible  <bruno@clisp.org>
38338         perror: Fix compilation error.
38339         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
38340         Undefine fprintf, not sprintf.
38341         * modules/perror (Depends-on): Remove intprops, verify.
38343 2011-06-04  Bruno Haible  <bruno@clisp.org>
38345         setlocale: Enable replacement on Cygwin 1.5.
38346         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
38347         Cygwin 1.5.x.
38348         * doc/posix-functions/setlocale.texi: Mention that the problem with the
38349         LC_CTYPE category also exists on Cygwin 1.5.x.
38351 2011-06-04  Bruno Haible  <bruno@clisp.org>
38353         strerror-override: Don't disable symbol renamings.
38354         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
38355         * lib/strerror-override.c: Include config.h.
38356         (strerror_override): Don't undefine.
38358 2011-06-03  Bruno Haible  <bruno@clisp.org>
38360         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
38361         * lib/localename.h: Update copyright header.
38362         * lib/localename.c: Likewise.
38363         * lib/relocatable.h: Likewise.
38364         * lib/relocatable.c: Likewise.
38366 2011-06-02  Bruno Haible  <bruno@clisp.org>
38368         doc: Fix a module name.
38369         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
38371 2011-06-02  Bruno Haible  <bruno@clisp.org>
38373         pipe2: Remove dependency on 'nonblocking' module.
38374         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
38375         O_NONBLOCK is defined by gnulib.
38376         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
38377         is zero.
38378         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
38379         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
38380         defined by gnulib.
38381         (get_nonblocking_flag): New function.
38382         (main): Test O_NONBLOCK flag only if it is nonzero.
38383         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
38385 2011-06-03  Jim Meyering  <meyering@redhat.com>
38387         maint: three new prohibit-header-without-use rules
38388         Prohibit use of cloexec.h, posixver.h, same.h without use.
38389         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
38390         (sc_prohibit_posixver_without_use): Likewise.
38391         (sc_prohibit_same_without_use): Likewise.
38393 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
38395         allocator: 'die' routine is now given requested size
38396         * lib/allocator.h (struct allocator.die): New size arg.
38397         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
38398         If the actual problem is an ssize_t limitation, not a size_t or
38399         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
38401 2011-06-01  Eric Blake  <eblake@redhat.com>
38403         strerror: drop strerror_r dependency
38404         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
38405         * lib/strerror-override.c (strerror_override): ...to new file.
38406         * lib/strerror-override.h: Add prototype.
38407         * lib/strerror-impl.h: Delete.
38408         * lib/strerror.c (strerror): New implementation.
38409         * modules/errno (Files): Add new files.
38410         (configure.ac): Compile new file as appropriate.
38411         * modules/strerror (Files): Drop unused file.
38412         (Depends-on): Drop strerror_r-posix.
38413         * MODULES.html.sh: Document strerror_r-posix.
38414         Requested by Sam Steingold.
38416         perror: call strerror_r directly
38417         * modules/perror (Files): Drop strerror-impl.h.
38418         * lib/perror.c (perror): Use our own stack buffer, rather than
38419         calling a wrapper that uses static storage.
38420         * doc/posix-functions/perror.texi (perror): Document a limitation
38421         of our replacement.
38423         strerror_r: fix includes for FreeBSD
38424         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
38425         since we use abort on some platforms.
38426         Reported by Matthias Bolte.
38428 2011-05-31  Bruno Haible  <bruno@clisp.org>
38430         Fix link errors in tests: openat-die uses gettext-h.
38431         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
38432         against $(LIBINTL).
38433         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
38434         against $(LIBINTL).
38435         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
38436         $(LIBINTL).
38437         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
38438         against $(LIBINTL).
38439         * modules/linkat-tests (Makefile.am): Link test-linkat against
38440         $(LIBINTL).
38441         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
38442         $(LIBINTL).
38443         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
38444         against $(LIBINTL).
38445         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
38446         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
38447         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
38448         $(LIBINTL).
38449         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
38450         $(LIBINTL).
38451         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
38452         $(LIBINTL).
38453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38455 2011-05-31  Bruno Haible  <bruno@clisp.org>
38457         Fix link errors in tests: wait-process uses gettext-h.
38458         * modules/nonblocking-pipe-tests (Makefile.am): Set
38459         test_nonblocking_pipe_main_LDADD.
38460         * modules/nonblocking-socket-tests (Makefile.am): Link
38461         test-nonblocking-socket-main against $(LIBINTL).
38462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38464 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38466         assert-h: work around 'verify' incompatibility
38467         * lib/verify.h: Use @...@ directives, not ifdef.
38468         * modules/assert-h (assert.h): Implement the directives.
38469         (assert.h): Substitute the symbol-prefix more consistently.
38471 2011-05-29  Jim Meyering  <meyering@redhat.com>
38473         trim: remove three superfluous assignments
38474         * lib/trim.c (trim2): Remove three superfluous assignments
38475         and correct brace positioning.
38477 2011-05-29  Bruno Haible  <bruno@clisp.org>
38479         wctype-h: Avoid namespace pollution on Solaris 2.6.
38480         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
38481         identifiers.
38482         * doc/posix-headers/wctype.texi: Mention the problem.
38483         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38485 2011-05-28  Jim Meyering  <meyering@redhat.com>
38487         parse-datetime.y: accommodate -Wstrict-overflow
38488         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
38489         placate -Wstrict-overflow.
38491         trim: avoid a warning from -O2 -Wstrict-overflow
38492         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
38494 2011-05-29  Bruno Haible  <bruno@clisp.org>
38496         gnulib-tool: Fix bug in yesterday's commit.
38497         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
38498         twice.
38500 2011-05-29  Bruno Haible  <bruno@clisp.org>
38502         Allow multiple gnulib generated include files to be combined.
38503         * gnulib-tool (func_compute_include_guard_prefix): New function.
38504         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
38505         ${gl_include_guard_prefix} references.
38506         (func_import, func_create_testdir): Invoke
38507         func_compute_include_guard_prefix.
38508         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
38509         * lib/ctype.in.h: Likewise.
38510         * lib/dirent.in.h: Likewise.
38511         * lib/errno.in.h: Likewise.
38512         * lib/fcntl.in.h: Likewise.
38513         * lib/float.in.h: Likewise.
38514         * lib/getopt.in.h: Likewise.
38515         * lib/iconv.in.h: Likewise.
38516         * lib/langinfo.in.h: Likewise.
38517         * lib/locale.in.h: Likewise.
38518         * lib/math.in.h: Likewise.
38519         * lib/netdb.in.h: Likewise.
38520         * lib/netinet_in.in.h: Likewise.
38521         * lib/poll.in.h: Likewise.
38522         * lib/pthread.in.h: Likewise.
38523         * lib/pty.in.h: Likewise.
38524         * lib/sched.in.h: Likewise.
38525         * lib/se-selinux.in.h: Likewise.
38526         * lib/search.in.h: Likewise.
38527         * lib/signal.in.h: Likewise.
38528         * lib/spawn.in.h: Likewise.
38529         * lib/stdarg.in.h: Likewise.
38530         * lib/stddef.in.h: Likewise.
38531         * lib/stdint.in.h: Likewise.
38532         * lib/stdio.in.h: Likewise.
38533         * lib/stdlib.in.h: Likewise.
38534         * lib/string.in.h: Likewise.
38535         * lib/strings.in.h: Likewise.
38536         * lib/sys_file.in.h: Likewise.
38537         * lib/sys_ioctl.in.h: Likewise.
38538         * lib/sys_select.in.h: Likewise.
38539         * lib/sys_socket.in.h: Likewise.
38540         * lib/sys_stat.in.h: Likewise.
38541         * lib/sys_time.in.h: Likewise.
38542         * lib/sys_times.in.h: Likewise.
38543         * lib/sys_uio.in.h: Likewise.
38544         * lib/sys_utsname.in.h: Likewise.
38545         * lib/sys_wait.in.h: Likewise.
38546         * lib/sysexits.in.h: Likewise.
38547         * lib/termios.in.h: Likewise.
38548         * lib/time.in.h: Likewise.
38549         * lib/unistd.in.h: Likewise.
38550         * lib/wchar.in.h: Likewise.
38551         * lib/wctype.in.h: Likewise.
38552         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
38553         * modules/ctype (Makefile.am): Likewise.
38554         * modules/dirent (Makefile.am): Likewise.
38555         * modules/errno (Makefile.am): Likewise.
38556         * modules/fcntl-h (Makefile.am): Likewise.
38557         * modules/float (Makefile.am): Likewise.
38558         * modules/getopt-posix (Makefile.am): Likewise.
38559         * modules/iconv-h (Makefile.am): Likewise.
38560         * modules/langinfo (Makefile.am): Likewise.
38561         * modules/locale (Makefile.am): Likewise.
38562         * modules/math (Makefile.am): Likewise.
38563         * modules/netdb (Makefile.am): Likewise.
38564         * modules/netinet_in (Makefile.am): Likewise.
38565         * modules/poll-h (Makefile.am): Likewise.
38566         * modules/pthread (Makefile.am): Likewise.
38567         * modules/pty (Makefile.am): Likewise.
38568         * modules/sched (Makefile.am): Likewise.
38569         * modules/search (Makefile.am): Likewise.
38570         * modules/selinux-h (Makefile.am): Likewise.
38571         * modules/signal (Makefile.am): Likewise.
38572         * modules/spawn (Makefile.am): Likewise.
38573         * modules/stdarg (Makefile.am): Likewise.
38574         * modules/stddef (Makefile.am): Likewise.
38575         * modules/stdint (Makefile.am): Likewise.
38576         * modules/stdio (Makefile.am): Likewise.
38577         * modules/stdlib (Makefile.am): Likewise.
38578         * modules/string (Makefile.am): Likewise.
38579         * modules/strings (Makefile.am): Likewise.
38580         * modules/sys_file (Makefile.am): Likewise.
38581         * modules/sys_ioctl (Makefile.am): Likewise.
38582         * modules/sys_select (Makefile.am): Likewise.
38583         * modules/sys_socket (Makefile.am): Likewise.
38584         * modules/sys_stat (Makefile.am): Likewise.
38585         * modules/sys_time (Makefile.am): Likewise.
38586         * modules/sys_times (Makefile.am): Likewise.
38587         * modules/sys_uio (Makefile.am): Likewise.
38588         * modules/sys_utsname (Makefile.am): Likewise.
38589         * modules/sys_wait (Makefile.am): Likewise.
38590         * modules/sysexits (Makefile.am): Likewise.
38591         * modules/termios (Makefile.am): Likewise.
38592         * modules/time (Makefile.am): Likewise.
38593         * modules/unistd (Makefile.am): Likewise.
38594         * modules/wchar (Makefile.am): Likewise.
38595         * modules/wctype-h (Makefile.am): Likewise.
38596         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
38598 2011-05-29  Bruno Haible  <bruno@clisp.org>
38600         assert-h: Allow multiple gnulib generated replacements to coexist.
38601         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
38603 2011-05-29  Bruno Haible  <bruno@clisp.org>
38605         argp: Allow coexistence with strerror_r-posix module.
38606         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
38607         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
38608         by gnulib's <string.h> replacement), assume it has the POSIX signature,
38609         not the glibc signature.
38611 2011-05-28  Bruno Haible  <bruno@clisp.org>
38613         gnulib-tool: Alternative structure of testdirs, similar to --import.
38614         * gnulib-tool: New option --single-configure.
38615         (func_usage): Document it.
38616         (single_configure): New variable.
38617         (func_modules_transitive_closure_separately,
38618         func_modules_transitive_closure_separately,
38619         func_determine_use_libtests, func_modules_add_dummy_separately,
38620         func_modules_to_filelist_separately): New functions, extracted from
38621         func_import.
38622         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
38623         (func_import): Use the new functions.
38624         (func_create_testdir): Set final_modules. Handle $single_configure =
38625         true case.
38627 2011-05-28  Bruno Haible  <bruno@clisp.org>
38629         getloadavg: Remove an unreliable safety check.
38630         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
38631         getloadavg.c is in place.
38632         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
38633         Reported by Sam Steingold <sds@gnu.org>.
38635 2011-05-28  Bruno Haible  <bruno@clisp.org>
38637         doc: Cleanup yet another file produced by texinfo.tex.
38638         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
38640 2011-05-28  Bruno Haible  <bruno@clisp.org>
38642         Finish the conditional dependencies mechanism.
38643         * gnulib-tool: New option --no-conditional-dependencies.
38644         (func_usage): Document it. Don't mark --conditional-dependencies as
38645         experimental.
38646         (cond_dependencies): The possible values can now be true, false, empty.
38647         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
38648         (func_import): Store setting in gnulib-cache.m4 and read it from there.
38649         * doc/gnulib-tool.texi (Conditional dependencies): New section.
38651 2011-05-28  Bruno Haible  <bruno@clisp.org>
38653         doc: Use a recent texinfo.tex.
38654         * doc/Makefile (tex_opts): New variable.
38655         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
38657 2011-05-28  Jim Meyering  <meyering@redhat.com>
38659         intprops.h: adjust comment to match code change
38660         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
38661         only once, it *may* have side effects.  Also fix an unrelated typo.
38662         (_GL_INT_SIGNED): Likewise.
38664 2011-05-26  Simon Josefsson  <simon@josefsson.org>
38666         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
38668 2011-05-26  Bruno Haible  <bruno@clisp.org>
38670         mbsrchr: Avoid collision with system function on Interix.
38671         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
38672         Reported by Markus Duft <mduft@gentoo.org>.
38674 2011-05-15  James Youngman  <jay@gnu.org>
38676         getopt: for ambiguous options, enumerate the possibilities.
38677         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
38678         the ambiguous options when an ambiguous prefix is given. This was
38679         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
38680         glibc change was
38681         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
38683 2011-05-25  Eric Blake  <eblake@redhat.com>
38685         getcwd: work around mingw bug
38686         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
38687         * doc/posix-functions/getcwd.texi (getcwd): Document it.
38688         Reported by Matthias Bolte.
38690 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
38692         test-intprops: disable -Wtype-limits diagnostics
38693         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
38694         diagnostics.  Otherwise, the integer overflow macros generate many
38695         diagnostics.  Reported by Jim Meyering in
38696         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
38698         intprops: shorten, to pacify gcc -Woverlength-strings
38699         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
38700         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
38701         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
38702         likely to run afoul of C compiler limits for string constant lengths.
38703         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
38705 2011-05-24  Eric Blake  <eblake@redhat.com>
38707         docs: document recently fixed glibc printf bug
38708         * doc/posix-functions/fprintf.texi (fprintf): Document it.
38709         * doc/posix-functions/printf.texi (printf): Likewise.
38710         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38711         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38713         closein-tests: convert to init.sh
38714         * modules/closein-tests (Files): Add init.sh
38715         * tests/test-closein.sh Use it.
38717         yesno-tests: convert to init.sh
38718         * modules/yesno-tests (Files): Add init.sh.
38719         * tests/test-yesno.sh: Use it.
38721         atexit-tests: ensure reliable exit status
38722         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
38723         Reported by Bruno Haible.
38725 2011-05-24  Bruno Haible  <bruno@clisp.org>
38727         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
38728         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
38729         gl_PREREQ_STRERROR_R invocations from here...
38730         * modules/strerror_r-posix (configure.ac): ... to here.
38732 2011-05-24  Eric Blake  <eblake@redhat.com>
38734         strerror_r: fix missing header
38735         * lib/strerror_r.c: Avoid compiler warning about snprintf.
38737         strerror_r: fix AIX test failures
38738         * lib/strerror_r.c (strerror_r): Convert silent truncation to
38739         ERANGE failure.
38741         strerror_r: fix Solaris test failures
38742         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
38743         failures.
38744         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
38746         strerror_r: enforce POSIX recommendations
38747         * lib/strerror_r.c (safe_copy): New helper method.
38748         (strerror_r): Guarantee a non-empty string.
38749         * tests/test-strerror_r.c (main): Enhance tests to incorporate
38750         recent POSIX rulings and to match our strerror guarantees.
38751         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
38753 2011-05-24  Jim Meyering  <meyering@redhat.com>
38755         test-perror2.c: avoid warning about unused variable
38756         * tests/test-perror2.c (main): Remove declaration of unused "fp".
38758 2011-05-24  Eric Blake  <eblake@redhat.com>
38760         perror: avoid spurious test failure on HP-UX
38761         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
38763         tests: fix logic bug in init.sh
38764         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
38765         shell.
38767 2011-05-24  Jim Meyering  <meyering@redhat.com>
38769         utimensat: do not reference an out-of-scope buffer
38770         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
38771         declared in an inner scope, yet "times" would be dereferenced outside
38772         the scope in which "ts" was valid.
38773         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
38774         of ts[2] "out/up", so that the use of aliased "times" (via
38775         "times = ts;") does not end up referencing an out-of-scope "ts"
38777         opendir-safer.c: don't clobber errno; don't close negative FD
38778         * lib/opendir-safer.c (opendir_safer):
38779         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
38780         file descriptor, and more importantly, don't clobber the
38781         offending errno value with EINVAL.  Before, upon failure
38782         of dup_safer, we would pass the negative file descriptor to
38783         fdopendir, which would clobber errno.
38785 2011-05-23  Bruno Haible  <bruno@clisp.org>
38787         idcache: Fix module description.
38788         * modules/idcache (Include): Set to "idcache.h".
38790 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
38792         gnulib-tool: fix portability problem with MacOS sed
38793         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
38794         before the "}".  Problem reported by Leo in
38795         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
38796         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
38797         sed_extract_condition1, sed_extract_condition2.
38799 2011-05-23  Bruno Haible  <bruno@clisp.org>
38801         hash: Simplify autoconf macro.
38802         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
38804 2011-05-23  Bruno Haible  <bruno@clisp.org>
38806         getugroups: Fix module description.
38807         * modules/getugroups (Include): Set to "getugroups.h".
38809 2011-05-23  Bruno Haible  <bruno@clisp.org>
38811         linkat: Simplify autoconf macro.
38812         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
38814 2011-05-23  Bruno Haible  <bruno@clisp.org>
38815             Eric Blake  <eblake@redhat.com>
38817         linkat, renameat: Update dependencies.
38818         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
38819         * modules/linkat (Depends-on): Likewise. Remove also readlink,
38820         symlinkat.
38822 2011-05-23  Jim Meyering  <meyering@redhat.com>
38824         maint.mk: more tight_scope improvements
38825         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
38826         (_gl_TS_headers): Define only in if-0'd block.
38827         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
38828         sometimes we must *not* use it.  Adjust uses accordingly.
38829         (sc_tight_scope): Use much simpler grep-based test to determine
38830         whether we skip this rule.
38832         maint.mk: generalize/improve the tight-scope rule
38833         * top/maint.mk: Emit a warning when the test is skipped.
38834         (_gl_TS_dir): Add $(srcdir)/ prefix.
38835         (_gl_TS_function_match): Simplify, rather than trying
38836         to enumerate common types.  Otherwise, it would fail to match an
38837         "extern unsigned char const *" declaration in idutils.
38838         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
38839         a way to support use of that type of macro.
38840         (_gl_TS_var_match): Simplify regexp.
38841         (_gl_TS_obj_files): New configurable variable.
38842         (_gl_TS_headers): Likewise.
38844 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
38846         verify: fix bug when gnulib <assert.h> is also included
38847         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
38848         is defined, not if _GL_STATIC_ASSERT_H is not defined.
38849         Perhaps there's a better way, but this fixes the immediate problem.
38850         Problem reported by Bruno Haible in
38851         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
38853 2011-05-22  Bruno Haible  <bruno@clisp.org>
38855         xgetcwd: Simplify autoconf macro.
38856         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
38858 2011-05-22  Bruno Haible  <bruno@clisp.org>
38860         New module 'mktime-internal'.
38861         * modules/mktime-internal: New file.
38862         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
38863         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
38864         mktime_internal as a C macro if libc has __mktime_internal.
38865         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
38866         conditions.
38867         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
38869 2011-05-22  Bruno Haible  <bruno@clisp.org>
38871         timegm: Correct mktime replacement statements.
38872         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
38873         defining mktime as a C macro. This completes a 2009-07-28 commit.
38875 2011-05-22  Bruno Haible  <bruno@clisp.org>
38877         timegm: Simplify autoconf macro.
38878         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
38880 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
38882         clock-time: change to LGPLv2+.
38883         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
38884         BSD-like but we have no mark for that; this is good enough for now.
38886 2011-05-21  Bruno Haible  <bruno@clisp.org>
38888         strerror_r: Fix comments.
38889         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
38891 2011-05-21  Bruno Haible  <bruno@clisp.org>
38893         relocatable-prog-wrapper: Fix possible link error.
38894         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
38895         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
38896         (gl_FUNC_SETENV): ... to here.
38897         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
38898         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
38900 2011-05-21  Bruno Haible  <bruno@clisp.org>
38902         relocatable-prog-wrapper: Assume strerror() exists.
38903         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
38904         m4/strerror.m4.
38905         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
38906         * lib/relocwrapper.c: Remove mention of strerror module.
38907         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
38908         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
38909         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
38910         C macro.
38912 2011-05-21  Bruno Haible  <bruno@clisp.org>
38914         select: Simplify replacement idiom.
38915         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
38916         Win32 platforms.
38917         * lib/sys_select.in.h (select): Simplify accordingly.
38918         * modules/select (Depends-on): Likewise.
38920 2011-05-21  Bruno Haible  <bruno@clisp.org>
38922         mkdir-p: Simplify autoconf macro.
38923         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
38924         gl_FUNC_LCHOWN.
38926 2011-05-21  Eric Blake  <eblake@redhat.com>
38928         strerror_r: avoid clobbering strerror on cygwin
38929         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
38930         fall back instead to sys_errlist.
38931         * modules/strerror (configure.ac): Add witness.
38932         * tests/test-strerror_r.c (main): Enhance test.
38933         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
38934         * tests/test-perror2.c (main): Free memory before exit.
38936 2011-05-21  Bruno Haible  <bruno@clisp.org>
38938         mkdtemp: Use gnulib naming conventions.
38939         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
38940         * modules/mkdtemp (configure.ac): Update.
38942 2011-05-20  Eric Blake  <eblake@redhat.com>
38944         strerror_r: avoid corrupting errno on Solaris
38945         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
38946         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
38948         strerror_r: avoid compiler warning
38949         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
38951         strerror_r: simplify AIX code
38952         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
38954         test-perror: avoid spurious failure on FreeBSD
38955         * modules/perror-tests (Depends-on): Add strerror, now that
38956         strerror_r no longer pulls it in.
38958 2011-05-20  Bruno Haible  <bruno@clisp.org>
38960         strerror_r-posix: Remove unused dependencies.
38961         * modules/strerror_r-posix (Depends-on): Remove strerror.
38962         Reported by Eric Blake.
38964 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
38966         intprops: remove assumption about A|B representation
38967         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
38968         is a valid integer if both A and B are.  Although this is true for
38969         all known practical hosts, the C standard doesn't guarantee it,
38970         and the code need not assume it.  Also, this change may work around
38971         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
38972         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
38974 2011-05-20  Eric Blake  <eblake@redhat.com>
38976         perror: work around FreeBSD bug
38977         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
38978         is broken.  Move AC_LIBOBJ...
38979         * modules/perror (configure.ac): Here.
38980         * doc/posix-functions/perror.texi (perror): Document this.
38981         * tests/test-perror2.c (main): Enhance test.
38983         test-perror: check for strerror interactions
38984         * tests/macros.h (STREQ): Add macro.
38985         * modules/perror-tests (Files): Add second test.
38986         * tests/test-perror2.c (main): New file.
38987         * doc/posix-functions/perror.texi (perror): Document glibc bug.
38989         test-perror: rewrite to use init script
38990         * modules/perror-tests (Files): Add init.sh.
38991         * tests/test-perror.sh: Use temporary directory.
38993 2011-05-20  Jim Meyering  <meyering@redhat.com>
38995         maint: replace misused "a" with "an"
38996         * doc/intprops.texi: "a integer"
38997         * doc/regex.texi: "a explanation"
38998         * lib/alignof.h: "a object"
38999         * lib/argmatch.h: "a explanation"
39000         * lib/argp-help.c: "a option" and "a OPTION_DOC"
39001         * lib/stdint.in.h: "a integer"
39002         * lib/userspec.c: "a owner"
39003         * doc/gnulib.texi: Fix "a idea", and reword.
39005 2011-05-19  Jim Meyering  <meyering@redhat.com>
39007         maint: correct misuse of "a" and "an"
39008         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
39009         * lib/argp-help.c: "an docum...": s/an/a/
39010         * lib/argp-parse.c: "An vector": s/An/A/
39011         * lib/execute.c: "an native": s/an/a/
39012         * lib/spawn-pipe.c: Likewise.
39013         * lib/gc.h: "an Gc_rc": s/an/a/
39014         * lib/unigbrk.in.h: "an grapheme": s/an/a/
39015         * lib/fts.c: "an stat.st_dev": s/an/a/
39017 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39019         intprops-tests: work around HP-UX 11.23 cc bug with constants
39020         * tests/test-intprops.c (VERIFY): New macro.
39021         (main): Use it, instead of verify, to work around the compiler bug; see
39022         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39024         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
39025         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
39026         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
39027         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
39028         (_GL_REMAINDER_OVERFLOW): Use it.
39030         intprops-tests: revert unsigned part of previous change
39031         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
39032         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
39033         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
39034         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
39036 2011-05-19  Bruno Haible  <bruno@clisp.org>
39038         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
39039         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
39040         strerror_r() returned without filling the buffer.
39041         Reported by Eric Blake.
39043 2011-05-19  Eric Blake  <eblake@redhat.com>
39045         strerror_r: guarantee unchanged errno
39046         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
39047         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
39048         failure.
39049         * tests/test-strerror_r.c (main): Enhance test.
39051 2011-05-19  Bruno Haible  <bruno@clisp.org>
39053         strerror_r: Reorder #if blocks.
39054         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
39055         for consistency with the previous commit.
39057 2011-05-19  Bruno Haible  <bruno@clisp.org>
39059         perror: Avoid clobbering the strerror buffer when possible.
39060         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
39061         * lib/strerror.c: Include it.
39062         * modules/strerror (Files): Add lib/strerror-impl.h.
39063         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
39064         (my_strerror): New function, defined through lib/strerror-impl.h.
39065         (perror): Use it instead of strerror.
39066         * modules/perror (Files): Add lib/strerror-impl.h.
39067         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
39069 2011-05-19  Eric Blake  <eblake@redhat.com>
39071         strerror_r: fix on newer cygwin
39072         * lib/strerror_r.c (strerror_r): Cygwin now has
39073         __xpg_strerror_r, use it.
39075 2011-05-19  Bruno Haible  <bruno@clisp.org>
39077         strerror_r: Avoid clobbering the strerror buffer when possible.
39078         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
39079         (sys_nerr, sys_errlist): New declarations.
39080         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
39081         HP-UX, native Win32, IRIX, and 32-bit Solaris.
39082         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
39084 2011-05-19  Bruno Haible  <bruno@clisp.org>
39086         strerror_r: Fix test failure on mingw.
39087         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
39088         EXTEND_STRERROR_R.
39089         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
39090         macros from errno.in.h instead.
39092 2011-05-19  Eric Blake  <eblake@redhat.com>
39094         strerror: relax test for Solaris
39095         * tests/test-strerror.c (main): Permit Solaris behavior.
39096         * tests/test-strerror_r.c (main): Likewise.
39098         strerror: enforce POSIX ruling on strerror(0)
39099         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
39100         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
39101         * lib/strerror_r.c (rpl_strerror_r): Work around it.
39102         * doc/posix-functions/strerror.texi (strerror): Document it.
39103         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
39104         * tests/test-strerror.c (main): Strengthen test.
39105         * tests/test-strerror_r.c (main): Likewise.
39107 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39109         intprop-tests: port to older and more-pedantic compilers
39110         * modules/intprops-tests (Files): Add tests/macros.h.
39111         * tests/test-intprops.c: Include macros.h.
39112         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
39113         it's no longer documented to expand to an integer constant expression.
39114         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
39115         argument is floating point, as it's no longer documented to expand
39116         to an integer constant expression in that case.
39117         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
39118         compiler bugs reported by Bruno Haible.  See
39119         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39120         (U0, U1): New constants, to work around the same bugs.  Also,
39121         in tests, use e.g., "(unsigned int) 39" rather than "39u".
39123         intprops: work around C compiler bugs
39124         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
39125         bug in Sun C 5.11 2010/08/13 and other compilers; see
39126         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39128         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
39129         * doc/intprops.texi (Integer Type Determination): Fix
39130         documentation for TYPE_IS_INTEGER: it returns an constant
39131         expression, not an integer constant expression.  Fix doc for
39132         TYPE_SIGNED: it returns an integer constant expression only if its
39133         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
39134         hardly worth documented that way....)
39136 2011-05-18  Bruno Haible  <bruno@clisp.org>
39138         strerror_r: Avoid clobbering the strerror buffer when possible.
39139         * lib/strerror_r.c (strerror_r): Merge the three implementations.
39140         Handle gnulib defined errno values here. When strerror() returns NULL
39141         or an empty string, return EINVAL.
39142         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
39143         gnulib defined errno values here.
39144         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
39146 2011-05-18  Eric Blake  <eblake@redhat.com>
39148         fnmatch: avoid compiler warning
39149         * lib/fnmatch_loop.c (FCT): Use correct type.
39150         Reported by Matthias Bolte.
39152 2011-05-13  Jim Meyering  <meyering@redhat.com>
39154         maint.mk: three new prohibit_<HDR>_without_use rules
39155         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
39156         (sc_prohibit_stdio-safer_without_use): Likewise.
39157         (sc_prohibit_xfreopen_without_use): Likewise.
39159 2011-05-17  Jim Meyering  <meyering@redhat.com>
39161         announce-gen: fail if the NEWS delta is empty
39162         If there's nothing noteworthy in NEWS, then either you forgot
39163         or you shouldn't be releasing.
39164         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
39166 2011-05-17  Pádraig Brady  <P@draigBrady.com>
39168         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
39169         reserved symbols starting with double underscore from the check.
39171 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39173         intprops: add doc
39174         * doc/intprops.texi: New file, documenting intprops.
39175         * doc/gnulib.texi (Particular Modules): Include it.
39177         verify: add doc to gnulib manual and fix example
39178         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
39179         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
39180         (Compile-time Assertions): Fix example so it can't overflow.
39182 2011-05-17  Jim Meyering  <meyering@redhat.com>
39184         warnings.m4: don't usurp save_CPPFLAGS variable name
39185         * m4/warnings.m4: Prefix local temporary variable name with gl_.
39187         doc: fix typo
39188         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
39190 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39191             Bruno Haible  <bruno@clisp.org>
39193         doc: Tweak recent change.
39194         * README (Portability guidelines): Tweak new text.
39195         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
39196         Interix 6.1.
39198 2011-05-16  Eric Blake  <eblake@redhat.com>
39200         inttypes: avoid autoconf warning
39201         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
39202         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39204 2011-05-16  Sam Steingold  <sds@gnu.org>
39205         and Eric Blake  <eblake@redhat.com>
39207         vc-list-files: accept multiple directory operands
39208         * build-aux/vc-list-files: Iterate over all remaining operands.
39210 2011-05-16  Bruno Haible  <bruno@clisp.org>
39212         Fix confusion regarding deprecated modules.
39213         * modules/calloc (Status, Notice): Mark module as deprecated, not
39214         obsolete.
39215         * modules/fnmatch-posix (Status, Notice): Likewise.
39216         * modules/getdate (Status, Notice): Likewise.
39217         * modules/getopt (Status, Notice): Likewise.
39218         * modules/malloc (Status, Notice): Likewise.
39219         * modules/pipe (Status, Notice): Likewise.
39220         * modules/realloc (Status, Notice): Likewise.
39221         * modules/rename-dest-slash (Status, Notice): Likewise.
39222         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
39223         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
39224         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
39225         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
39226         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
39228 2011-05-16  Bruno Haible  <bruno@clisp.org>
39230         doc: List the target platforms.
39231         * doc/gnulib-intro.texi (Target Platforms): New section.
39232         * doc/gnulib.texi (Introduction): Update menu.
39233         * README (Portability guidelines): Refer to the new section. Update
39234         statement about oldest supported environment. Remove rationale why
39235         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
39236         unportable C89 function.
39237         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
39238         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
39240 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39242         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
39244 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39246         intprops-tests: new module
39247         * modules/intprops-tests, tests/test-intprops.c: New files.
39249         intprops: add safe, portable integer overflow checking
39250         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
39251         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
39252         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
39253         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
39254         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
39255         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
39256         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
39257         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
39258         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
39259         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
39260         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
39262 2011-05-12  James Youngman  <jay@gnu.org>
39264         Add a test for glibc's Bugzilla bug #12378.
39265         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
39266         doesn't allow the literal matching of a lone "[" (which is
39267         required by POSIX).
39268         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
39270 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
39272         Sync glibc change fixing Bugzilla bug #12378.
39273         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
39274         beginning and fall back to matching as normal character if the
39275         string ends before the matching ']' is found.  This is what POSIX
39276         requires.
39278 2011-05-13  Eric Blake  <eblake@redhat.com>
39280         getcwd-lgpl: relax test for FreeBSD
39281         * doc/posix-functions/getcwd.texi (getcwd): Document portability
39282         issue.
39283         * tests/test-getcwd-lgpl.c (main): Relax test.
39284         Reported by Matthias Bolte.
39286 2011-05-11  Eric Blake  <eblake@redhat.com>
39288         test-fflush: silence compiler warning
39289         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
39291 2011-05-11  Bruno Haible  <bruno@clisp.org>
39293         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
39294         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
39295         * modules/canonicalize (Depends-on): Add 'nocrash'.
39296         * modules/canonicalize-lgpl (Depends-on): Likewise.
39297         * doc/posix-functions/realpath.texi: Update platforms list.
39298         Reported by Ryan Schmidt <ryandesign@macports.org>.
39300 2011-05-11  Bruno Haible  <bruno@clisp.org>
39302         group-member: Declare function in <unistd.h>.
39303         * lib/unistd.in.h (group_member): New declaration.
39304         * lib/group-member.h: Remove file.
39305         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
39306         * tests/test-unistd-c++.cc: Check signature of group_member.
39307         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
39308         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
39309         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
39310         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
39311         HAVE_GROUP_MEMBER.
39312         * modules/group-member (Files): Remove lib/group-member.h.
39313         (Depends-on): Add unistd. Specify conditions.
39314         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
39315         (Include): Change to <unistd.h>.
39316         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
39317         HAVE_GROUP_MEMBER.
39318         * NEWS: Mention the change.
39319         * lib/euidaccess.c: Don't include group-member.h.
39321 2011-05-11  Bruno Haible  <bruno@clisp.org>
39323         group-member: Document module.
39324         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
39325         module.
39327 2011-05-11  Bruno Haible  <bruno@clisp.org>
39329         fclose: Fix mistake earlier today.
39330         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
39332 2011-05-11  Eric Blake  <eblake@redhat.com>
39334         fclose: preserve fflush errors
39335         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
39336         Reported by Jim Meyering.
39338         bootstrap: support a prereq of 'rpcgen -' on RHEL5
39339         * build-aux/bootstrap (check_versions): When no specific version
39340         is required, merely check that the app produces an exit status
39341         that indicates its existence.
39343         maint.mk: drop redundant check
39344         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
39345         the same but better.
39347 2011-05-11  Bruno Haible  <bruno@clisp.org>
39349         fclose: Fix possible link error.
39350         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
39351         unregister_shadow_fd. Improve comments.
39352         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
39353         Eric Blake.
39355 2011-05-11  Jim Meyering  <meyering@redhat.com>
39357         maint.mk: improve "can not" detection and generalize rule name
39358         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
39359         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
39360         Use the same technique as in sc_prohibit_doubled_word, so that
39361         we recognize "can not" also when the words are separated by a newline.
39362         Suggested by Eric Blake.
39363         (perl_filename_lineno_text_): Define.  Factored out of...
39364         (prohibit_doubled_word_): ...here.  Use the new definition.
39365         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
39366         (prohibit_undesirable_word_seq_RE_): New overridable variable.
39367         (ignore_undesirable_word_sequence_RE_): New overridable variable.
39369 2011-05-10  Eric Blake  <eblake@redhat.com>
39371         fclose: avoid double close race when possible
39372         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
39373         all but WINDOWS_SOCKETS.
39375 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
39377         openat: correct new comment
39378         * lib/openat-proc.c (openat_proc_name): Correct the comment.
39380 2011-05-10  Jim Meyering  <meyering@redhat.com>
39382         openat: add comments
39383         * lib/openat-proc.c (openat_proc_name): Add comments,
39384         mostly from Eric Blake.
39386 2011-05-09  Eric Blake  <eblake@redhat.com>
39388         openat: reduce syscalls in first probe of /proc
39389         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
39390         be a directory.  Simplify the probe for .. bugs.
39391         * modules/openat (Depends-on): Drop same-inode.
39392         Reported by Bastien ROUCARIES.
39394 2011-05-09  Jim Meyering  <meyering@redhat.com>
39396         maint.mk: change semantics/name of tight_scope variables
39397         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
39398         Rename variables to align with semantics that make them more useful.
39400         maint.mk: tweak new rule's name not to impinge
39401         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
39402         (sc_tight_scope): Use new rule name rather than $@-0.
39404         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
39405         * top/maint.mk (sc_tight_scope): New rule.
39406         (sc_tight_scope-0): New rule, ifdef'd out.
39407         (_gl_TS_dir): Default.
39408         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
39409         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
39411 2011-05-09  Simon Josefsson  <simon@josefsson.org>
39413         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
39414         Haible <bruno@clisp.org>.
39416 2011-05-08  Bruno Haible  <bruno@clisp.org>
39418         Comments.
39419         * m4/isnanf.m4: Add comment.
39420         * m4/isnanl.m4: Likewise.
39422 2011-05-08  Bruno Haible  <bruno@clisp.org>
39424         glob: Remove obsolete macro.
39425         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
39427 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
39429         intprops: Sun C 5.11 supports __typeof__
39430         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
39431         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
39432         which is new.
39433         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
39435         intprops: switch to usual gnulib indenting and naming
39436         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
39437         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
39439         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
39441 2011-05-08  Jim Meyering  <meyering@redhat.com>
39443         maint.mk: suppress "Entering/Leaving directory" diag in announcement
39444         * top/maint.mk (release-prep): Use make's --no-print-directory
39445         option when generating the announcement.  This eliminates the
39446         pesky "make[2]: Entering/Leaving directory" diagnostics in the
39447         generated announcement template.
39449 2011-05-08  Bruno Haible  <bruno@clisp.org>
39451         tzset: Fix gettimeofday wrapper on Solaris 2.6.
39452         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
39453         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
39455 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39457         ignore-value, verify: Omit include files from lib_SOURCES.
39458         * modules/ignore-value, modules/verify (Makefile.am):
39459         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
39460         that leads Automake to duplicate use of am__objects_... variables
39461         in Makefile.in.  See
39462         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
39464 2011-05-07  Bruno Haible  <bruno@clisp.org>
39466         fclose: Simplify autoconf macro.
39467         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
39468         defined.
39470 2011-05-07  Bruno Haible  <bruno@clisp.org>
39472         canonicalize-lgpl: Fix autoconf macro ordering bug.
39473         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
39474         gl_STDLIB_H_DEFAULTS.
39476 2011-05-06  Eric Blake  <eblake@redhat.com>
39478         maintainer-makefile: make sc_po_check easier to tune
39479         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
39480         to probe for strings, such as an alternate location for gnulib.
39482         fclose: guarantee behavior on seekable stdin
39483         * modules/fclose (Depends-on): Add fflush.
39484         * doc/posix-functions/fclose.texi (fclose): Document this.
39485         * tests/test-fclose.c (main): Make test for this unconditional.
39487 2011-05-06  Bruno Haible  <bruno@clisp.org>
39489         fflush, fpurge: Relicense under LGPLv2+.
39490         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
39491         * modules/fpurge (License): Likewise.
39492         With permission from Eric Blake and Jim Meyering.
39493         Suggested by Eric Blake.
39495 2011-05-06  Karl Berry  <karl@gnu.org>
39497         * MODULES.html.sh (func_all_modules): remove exit.
39499 2011-05-06  Jim Meyering  <meyering@redhat.com>
39501         maint.mk: use info-gnu@ as the default only for a stable release
39502         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
39503         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
39504         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
39505         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
39507 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
39509         assert-h: new module, which supports C1X-style static_assert
39510         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
39511         * lib/verify.h: Revamp so that this can be copied into assert.h,
39512         while retaining the ability to use it standalone as before.
39513         Rename private identifiers so as not to encroach on the
39514         standard C namespace, since this is now used by assert.h.
39515         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
39516         the old verify_true.
39517         (_GL_VERIFY_TRUE): New macro, with much of the contents of
39518         the old verify_true.  Use _GL_VERIFY_TYPE.
39519         (_GL_VERIFY): New macro, with much of the contents of the old verify.
39520         (static_assert): New macro, if _GL_STATIC_ASSERT_H
39521         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
39522         defined when this file is copied into the replacement assert.h.
39523         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
39524         and _Static_assert is not built in.
39525         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
39526         defined, and use the new macros mentioned above.
39527         * doc/posix-headers/assert.texi: Document this.
39529 2011-05-05  Bruno Haible  <bruno@clisp.org>
39531         fclose, fflush: Respect rules for use of AC_LIBOBJ.
39532         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
39533         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
39534         gl_REPLACE_FCLOSE here.
39535         * modules/fflush (Depends-on): Remove fclose.
39536         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
39537         combination with module 'fclose'.
39539 2011-05-05  Bruno Haible  <bruno@clisp.org>
39541         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
39542         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
39543         gl_FUNC_FFLUSH.
39544         (gl_FUNC_FFLUSH): Use it.
39545         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
39546         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
39547         gl_REPLACE_FSEEKO here.
39549 2011-05-05  Bruno Haible  <bruno@clisp.org>
39551         tzset: Relicense under LGPL.
39552         * modules/tzset (License): Change to LGPL.
39553         No agreement needed; it's a no-op.
39555         strtoimax, strtoumax: Relicense under LGPL.
39556         * modules/strtoimax (License): Change to LGPL.
39557         * modules/strtoumax (License): Likewise.
39558         With permission from Jim Meyering, Paul Eggert:
39559         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
39560         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
39562         getgroups: Relicense under LGPL.
39563         * modules/getgroups (License): Change to LGPL.
39564         With permission from Jim Meyering, Paul Eggert, Eric Blake:
39565         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
39566         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
39567         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39569         nanosleep: Relicense under LGPL.
39570         * modules/nanosleep (License): Change to LGPL.
39571         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
39572         Haible:
39573         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
39574         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
39575         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39576         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
39578         futimens: Relicense under LGPL.
39579         * modules/futimens (License): Change to LGPL.
39580         With permission from Eric Blake:
39581         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39583         fflush: Relicense under LGPL.
39584         * modules/fflush (License): Change to LGPL.
39585         With permission from Eric Blake, Bruno Haible, Jim Meyering:
39586         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
39587         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
39588         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
39590         tmpfile: Relicense under LGPL.
39591         * modules/tmpfile (License): Change to LGPL.
39592         With permission from Ben Pfaff:
39593         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
39595         isfinite: Relicense under LGPL.
39596         * modules/isfinite (License): Change to LGPL.
39597         With permission from Ben Pfaff, Bruno Haible:
39598         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
39599         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
39601         acosl..tanl: Relicense under LGPL.
39602         * modules/acosl (License): Change to LGPL.
39603         * modules/asinl (License): Likewise.
39604         * modules/atanl (License): Likewise.
39605         * modules/cosl (License): Likewise.
39606         * modules/expl (License): Likewise.
39607         * modules/logl (License): Likewise.
39608         * modules/sinl (License): Likewise.
39609         * modules/sqrtl (License): Likewise.
39610         * modules/tanl (License): Likewise.
39611         Source code originally from glibc and Paolo Bonzini. Agreements:
39612         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
39613         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
39615 2011-05-05  Bruno Haible  <bruno@clisp.org>
39617         signal: Define sighandler_t.
39618         * lib/signal.in.h (sighandler_t): New type.
39619         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
39620         whether sighandler_t is defined.
39621         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
39622         * modules/signal (Depends-on): Add extensions.
39623         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
39624         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
39625         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
39627 2011-05-05  Eric Blake  <eblake@redhat.com>
39629         maint: remove useless REPLACE_*_H macros
39630         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
39631         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39632         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39633         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
39634         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39635         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39636         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
39637         * m4/btowc.m4: Update callers.
39638         * m4/dirfd.m4: Likewise.
39639         * m4/duplocale.m4: Likewise.
39640         * m4/fchdir.m4: Likewise.
39641         * m4/fdopendir.m4: Likewise.
39642         * m4/inet_ntop.m4: Likewise.
39643         * m4/inet_pton.m4: Likewise.
39644         * m4/ioctl.m4: Likewise.
39645         * m4/mbrlen.m4: Likewise.
39646         * m4/mbrtowc.m4: Likewise.
39647         * m4/mbsinit.m4: Likewise.
39648         * m4/mbsnrtowcs.m4: Likewise.
39649         * m4/mbsrtowcs.m4: Likewise.
39650         * m4/poll.m4: Likewise.
39651         * m4/setlocale.m4: Likewise.
39652         * m4/wcrtomb.m4: Likewise.
39653         * m4/wcsnrtombs.m4: Likewise.
39654         * m4/wcsrtombs.m4: Likewise.
39655         * m4/wctob.m4: Likewise.
39656         * m4/wcwidth.m4: Likewise.
39657         * modules/posix_spawn: Likewise.
39658         * modules/posix_spawn_file_actions_addclose: Likewise.
39659         * modules/posix_spawn_file_actions_adddup2: Likewise.
39660         * modules/posix_spawn_file_actions_addopen: Likewise.
39661         * modules/posix_spawn_file_actions_destroy: Likewise.
39662         * modules/posix_spawn_file_actions_init: Likewise.
39663         * modules/posix_spawnattr_destroy: Likewise.
39664         * modules/posix_spawnattr_getflags: Likewise.
39665         * modules/posix_spawnattr_getpgroup: Likewise.
39666         * modules/posix_spawnattr_getschedparam: Likewise.
39667         * modules/posix_spawnattr_getschedpolicy: Likewise.
39668         * modules/posix_spawnattr_getsigdefault: Likewise.
39669         * modules/posix_spawnattr_getsigmask: Likewise.
39670         * modules/posix_spawnattr_init: Likewise.
39671         * modules/posix_spawnattr_setflags: Likewise.
39672         * modules/posix_spawnattr_setpgroup: Likewise.
39673         * modules/posix_spawnattr_setschedparam: Likewise.
39674         * modules/posix_spawnattr_setschedpolicy: Likewise.
39675         * modules/posix_spawnattr_setsigdefault: Likewise.
39676         * modules/posix_spawnattr_setsigmask: Likewise.
39677         * modules/posix_spawnp: Likewise.
39679 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
39681         Add option to do-release-commit-and-tag to specify branch.
39682         * build-aux/do-release-commit-and-tag: Add --branch.
39684 2011-05-03  Bruno Haible  <bruno@clisp.org>
39686         Avoid unnecessary compilation units, through conditional dependencies.
39687         * modules/accept (Depends-on): Add conditions to the dependencies.
39688         * modules/acosl (Depends-on): Likewise.
39689         * modules/argz (Depends-on): Likewise.
39690         * modules/asinl (Depends-on): Likewise.
39691         * modules/atanl (Depends-on): Likewise.
39692         * modules/atoll (Depends-on): Likewise.
39693         * modules/bind (Depends-on): Likewise.
39694         * modules/btowc (Depends-on): Likewise.
39695         * modules/canonicalize-lgpl (Depends-on): Likewise.
39696         * modules/ceil (Depends-on): Likewise.
39697         * modules/ceilf (Depends-on): Likewise.
39698         * modules/ceill (Depends-on): Likewise.
39699         * modules/chdir-long (Depends-on): Likewise.
39700         * modules/chown (Depends-on): Likewise.
39701         * modules/close (Depends-on): Likewise.
39702         * modules/connect (Depends-on): Likewise.
39703         * modules/cosl (Depends-on): Likewise.
39704         * modules/dirfd (Depends-on): Likewise.
39705         * modules/dprintf (Depends-on): Likewise.
39706         * modules/dprintf-posix (Depends-on): Likewise.
39707         * modules/error (Depends-on): Likewise.
39708         * modules/euidaccess (Depends-on): Likewise.
39709         * modules/expl (Depends-on): Likewise.
39710         * modules/faccessat (Depends-on): Likewise.
39711         * modules/fchdir (Depends-on): Likewise.
39712         * modules/fclose (Depends-on): Likewise.
39713         * modules/fcntl (Depends-on): Likewise.
39714         * modules/fdopendir (Depends-on): Likewise.
39715         * modules/fflush (Depends-on): Likewise.
39716         * modules/floor (Depends-on): Likewise.
39717         * modules/floorf (Depends-on): Likewise.
39718         * modules/floorl (Depends-on): Likewise.
39719         * modules/fnmatch (Depends-on): Likewise.
39720         * modules/fopen (Depends-on): Likewise.
39721         * modules/fprintf-posix (Depends-on): Likewise.
39722         * modules/frexp (Depends-on): Likewise.
39723         * modules/frexp-nolibm (Depends-on): Likewise.
39724         * modules/frexpl (Depends-on): Likewise.
39725         * modules/frexpl-nolibm (Depends-on): Likewise.
39726         * modules/fseek (Depends-on): Likewise.
39727         * modules/fsusage (Depends-on): Likewise.
39728         * modules/ftell (Depends-on): Likewise.
39729         * modules/ftello (Depends-on): Likewise.
39730         * modules/futimens (Depends-on): Likewise.
39731         * modules/getcwd (Depends-on): Likewise.
39732         * modules/getcwd-lgpl (Depends-on): Likewise.
39733         * modules/getdelim (Depends-on): Likewise.
39734         * modules/getdomainname (Depends-on): Likewise.
39735         * modules/getgroups (Depends-on): Likewise.
39736         * modules/gethostname (Depends-on): Likewise.
39737         * modules/getline (Depends-on): Likewise.
39738         * modules/getlogin_r (Depends-on): Likewise.
39739         * modules/getopt-posix (Depends-on): Likewise.
39740         * modules/getpeername (Depends-on): Likewise.
39741         * modules/getsockname (Depends-on): Likewise.
39742         * modules/getsockopt (Depends-on): Likewise.
39743         * modules/getsubopt (Depends-on): Likewise.
39744         * modules/getusershell (Depends-on): Likewise.
39745         * modules/glob (Depends-on): Likewise.
39746         * modules/grantpt (Depends-on): Likewise.
39747         * modules/iconv_open (Depends-on): Likewise.
39748         * modules/iconv_open-utf (Depends-on): Likewise.
39749         * modules/inet_ntop (Depends-on): Likewise.
39750         * modules/inet_pton (Depends-on): Likewise.
39751         * modules/ioctl (Depends-on): Likewise.
39752         * modules/isapipe (Depends-on): Likewise.
39753         * modules/isfinite (Depends-on): Likewise.
39754         * modules/isinf (Depends-on): Likewise.
39755         * modules/lchown (Depends-on): Likewise.
39756         * modules/ldexpl (Depends-on): Likewise.
39757         * modules/link (Depends-on): Likewise.
39758         * modules/linkat (Depends-on): Likewise.
39759         * modules/listen (Depends-on): Likewise.
39760         * modules/logl (Depends-on): Likewise.
39761         * modules/lstat (Depends-on): Likewise.
39762         * modules/mbrlen (Depends-on): Likewise.
39763         * modules/mbrtowc (Depends-on): Likewise.
39764         * modules/mbsinit (Depends-on): Likewise.
39765         * modules/mbsnrtowcs (Depends-on): Likewise.
39766         * modules/mbsrtowcs (Depends-on): Likewise.
39767         * modules/mbtowc (Depends-on): Likewise.
39768         * modules/memcmp (Depends-on): Likewise.
39769         * modules/mkdir (Depends-on): Likewise.
39770         * modules/mkdtemp (Depends-on): Likewise.
39771         * modules/mkfifo (Depends-on): Likewise.
39772         * modules/mkfifoat (Depends-on): Likewise.
39773         * modules/mknod (Depends-on): Likewise.
39774         * modules/mkostemp (Depends-on): Likewise.
39775         * modules/mkostemps (Depends-on): Likewise.
39776         * modules/mkstemp (Depends-on): Likewise.
39777         * modules/mkstemps (Depends-on): Likewise.
39778         * modules/mktime (Depends-on): Likewise.
39779         * modules/nanosleep (Depends-on): Likewise.
39780         * modules/open (Depends-on): Likewise.
39781         * modules/openat (Depends-on): Likewise.
39782         * modules/perror (Depends-on): Likewise.
39783         * modules/poll (Depends-on): Likewise.
39784         * modules/popen (Depends-on): Likewise.
39785         * modules/posix_spawn (Depends-on): Likewise.
39786         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
39787         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
39788         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
39789         * modules/posix_spawnp (Depends-on): Likewise.
39790         * modules/pread (Depends-on): Likewise.
39791         * modules/printf-posix (Depends-on): Likewise.
39792         * modules/ptsname (Depends-on): Likewise.
39793         * modules/putenv (Depends-on): Likewise.
39794         * modules/pwrite (Depends-on): Likewise.
39795         * modules/readline (Depends-on): Likewise.
39796         * modules/readlink (Depends-on): Likewise.
39797         * modules/readlinkat (Depends-on): Likewise.
39798         * modules/recv (Depends-on): Likewise.
39799         * modules/recvfrom (Depends-on): Likewise.
39800         * modules/regex (Depends-on): Likewise.
39801         * modules/remove (Depends-on): Likewise.
39802         * modules/rename (Depends-on): Likewise.
39803         * modules/renameat (Depends-on): Likewise.
39804         * modules/rmdir (Depends-on): Likewise.
39805         * modules/round (Depends-on): Likewise.
39806         * modules/roundf (Depends-on): Likewise.
39807         * modules/roundl (Depends-on): Likewise.
39808         * modules/rpmatch (Depends-on): Likewise.
39809         * modules/select (Depends-on): Likewise.
39810         * modules/send (Depends-on): Likewise.
39811         * modules/sendto (Depends-on): Likewise.
39812         * modules/setenv (Depends-on): Likewise.
39813         * modules/setlocale (Depends-on): Likewise.
39814         * modules/setsockopt (Depends-on): Likewise.
39815         * modules/shutdown (Depends-on): Likewise.
39816         * modules/sigaction (Depends-on): Likewise.
39817         * modules/signbit (Depends-on): Likewise.
39818         * modules/sigprocmask (Depends-on): Likewise.
39819         * modules/sinl (Depends-on): Likewise.
39820         * modules/sleep (Depends-on): Likewise.
39821         * modules/snprintf (Depends-on): Likewise.
39822         * modules/snprintf-posix (Depends-on): Likewise.
39823         * modules/socket (Depends-on): Likewise.
39824         * modules/sprintf-posix (Depends-on): Likewise.
39825         * modules/sqrtl (Depends-on): Likewise.
39826         * modules/stat (Depends-on): Likewise.
39827         * modules/strchrnul (Depends-on): Likewise.
39828         * modules/strdup-posix (Depends-on): Likewise.
39829         * modules/strerror (Depends-on): Likewise.
39830         * modules/strerror_r-posix (Depends-on): Likewise.
39831         * modules/strndup (Depends-on): Likewise.
39832         * modules/strnlen (Depends-on): Likewise.
39833         * modules/strptime (Depends-on): Likewise.
39834         * modules/strsep (Depends-on): Likewise.
39835         * modules/strsignal (Depends-on): Likewise.
39836         * modules/strstr-simple (Depends-on): Likewise.
39837         * modules/strtod (Depends-on): Likewise.
39838         * modules/strtoimax (Depends-on): Likewise.
39839         * modules/strtok_r (Depends-on): Likewise.
39840         * modules/strtoumax (Depends-on): Likewise.
39841         * modules/symlink (Depends-on): Likewise.
39842         * modules/symlinkat (Depends-on): Likewise.
39843         * modules/tanl (Depends-on): Likewise.
39844         * modules/tcgetsid (Depends-on): Likewise.
39845         * modules/tmpfile (Depends-on): Likewise.
39846         * modules/trunc (Depends-on): Likewise.
39847         * modules/truncf (Depends-on): Likewise.
39848         * modules/truncl (Depends-on): Likewise.
39849         * modules/uname (Depends-on): Likewise.
39850         * modules/unlink (Depends-on): Likewise.
39851         * modules/unlockpt (Depends-on): Likewise.
39852         * modules/unsetenv (Depends-on): Likewise.
39853         * modules/usleep (Depends-on): Likewise.
39854         * modules/utimensat (Depends-on): Likewise.
39855         * modules/vasprintf (Depends-on): Likewise.
39856         * modules/vdprintf (Depends-on): Likewise.
39857         * modules/vdprintf-posix (Depends-on): Likewise.
39858         * modules/vfprintf-posix (Depends-on): Likewise.
39859         * modules/vprintf-posix (Depends-on): Likewise.
39860         * modules/vsnprintf (Depends-on): Likewise.
39861         * modules/vsnprintf-posix (Depends-on): Likewise.
39862         * modules/vsprintf-posix (Depends-on): Likewise.
39863         * modules/wcrtomb (Depends-on): Likewise.
39864         * modules/wcscasecmp (Depends-on): Likewise.
39865         * modules/wcscspn (Depends-on): Likewise.
39866         * modules/wcsdup (Depends-on): Likewise.
39867         * modules/wcsncasecmp (Depends-on): Likewise.
39868         * modules/wcsnrtombs (Depends-on): Likewise.
39869         * modules/wcspbrk (Depends-on): Likewise.
39870         * modules/wcsrtombs (Depends-on): Likewise.
39871         * modules/wcsspn (Depends-on): Likewise.
39872         * modules/wcsstr (Depends-on): Likewise.
39873         * modules/wcstok (Depends-on): Likewise.
39874         * modules/wcswidth (Depends-on): Likewise.
39875         * modules/wctob (Depends-on): Likewise.
39876         * modules/wctomb (Depends-on): Likewise.
39877         * modules/wctype (Depends-on): Likewise.
39878         * modules/wcwidth (Depends-on): Likewise.
39879         * modules/write (Depends-on): Likewise.
39881 2011-05-03  Bruno Haible  <bruno@clisp.org>
39883         Support for conditional dependencies.
39884         * doc/gnulib.texi (Module description): Document the syntax of
39885         conditional dependencies.
39886         * gnulib-tool: New option --conditional-dependencies.
39887         (func_usage): Document it.
39888         (cond_dependencies): New variable.
39889         (func_get_automake_snippet_conditional,
39890         func_get_automake_snippet_unconditional): New functions, extracted from
39891         func_get_automake_snippet.
39892         (func_get_automake_snippet): Use them.
39893         (sed_first_32_chars): New variable.
39894         (func_module_shellfunc_name): New function.
39895         (func_module_shellvar_name): New function.
39896         (func_module_conditional_name): New function.
39897         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
39898         func_cond_module_condition): New functions.
39899         (func_modules_transitive_closure): Add support for conditional
39900         dependencies.
39901         (func_emit_lib_Makefile_am): For a conditional module, enclose the
39902         conditional automake snippet in an automake conditional.
39903         (func_emit_autoconf_snippets): Emit shell functions that contain the
39904         code for conditional modules.
39905         (func_import, func_create_testdir): Update specification.
39907 2011-05-03  Eric Blake  <eblake@redhat.com>
39909         test-getaddrinfo: report error information
39910         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
39912 2011-05-03  Jim Meyering  <meyering@redhat.com>
39914         bootstrap: avoid build failure when $GZIP is set
39915         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
39916         program name.  If defined at all, it is supposed to list gzip options.
39917         Reported by Alan Curry in http://debbugs.gnu.org/8609
39919 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
39921         readme-release: new module with release instructions
39922         * modules/readme-release: New module.
39923         * top/README-release: New file, from coreutils, grep, diffutils.
39924         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39926 2011-05-02  Eric Blake  <eblake@redhat.com>
39928         fflush: also replace fclose when fixing fflush
39929         * modules/fflush (Depends-on): Add fclose.
39930         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
39931         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
39932         memstreams with no backing fd.
39933         * doc/posix-functions/fclose.texi (fclose): Document the use of
39934         fflush module to fix the bug.
39935         * tests/test-fclose.c (main): Relax test when fclose is used in
39936         isolation.
39938         fclose: add some tests
39939         * modules/fclose-tests: New test module.
39940         * tests/test-fclose.c: New file.
39941         * doc/posix-functions/fclose.texi (fclose): Document the bug.
39943         fclose: reduced dependencies
39944         * modules/fclose (Depends-on): Switch from fflush/fseeko to
39945         simpler lseek.
39946         * lib/fclose.c (rpl_fclose): Likewise.
39947         Reported by Simon Josefsson.
39949         exit: drop remaining clients
39950         * modules/argmatch (Depends-on): Replace exit with stdlib.
39951         * modules/copy-file (Depends-on): Likewise.
39952         * modules/execute (Depends-on): Likewise.
39953         * modules/exitfail (Depends-on): Likewise.
39954         * modules/obstack (Depends-on): Likewise.
39955         * modules/pagealign_alloc (Depends-on): Likewise.
39956         * modules/pipe-filter-gi (Depends-on): Likewise.
39957         * modules/pipe-filter-ii (Depends-on): Likewise.
39958         * modules/savewd (Depends-on): Likewise.
39959         * modules/spawn-pipe (Depends-on): Likewise.
39960         * modules/wait-process (Depends-on): Likewise.
39961         * modules/xsetenv (Depends-on): Likewise.
39962         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
39963         * modules/git-merge-changelog (Depends-on): Likewise.
39964         * modules/long-options (Depends-on): Likewise.
39965         * modules/pt_chown (Depends-on): Likewise.
39966         * modules/sysexits (Depends-on): Likewise.
39968         freading: relax license from LGPLv3+ to LGPLv2+
39969         * modules/freading (License): Relax LGPL version.
39971 2011-05-02  Bruno Haible  <bruno@clisp.org>
39973         fchdir: Remove unused dependencies.
39974         * modules/fchdir (Depends-on): Remove include_next.
39976 2011-05-02  Bruno Haible  <bruno@clisp.org>
39978         gnulib-tool: Refactor.
39979         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
39980         from func_emit_autoconf_snippets.
39981         (func_emit_autoconf_snippets): Use it.
39983 2011-05-02  Simon Josefsson  <simon@josefsson.org>
39985         * NEWS: Document removal of 'exit'.
39986         * modules/exit: Remove file.
39988 2011-05-01  Bruno Haible  <bruno@clisp.org>
39990         Update DEPENDENCIES.
39991         * DEPENDENCIES (gettext): Recommend the newest release.
39992         Reported by Simon Josefsson.
39994 2011-05-01  Bruno Haible  <bruno@clisp.org>
39996         gnulib-tool: Reduce code duplication.
39997         * gnulib-tool (func_emit_autoconf_snippets): New function.
39998         (func_import, func_create_testdir): Use it.
40000 2011-04-30  Eric Blake  <eblake@redhat.com>
40002         fclose: don't fail on non-seekable input stream
40003         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
40004         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
40005         since fflush is allowed to fail in that case.
40007 2011-04-30  Bruno Haible  <bruno@clisp.org>
40009         dup3: cleanup
40010         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
40012 2011-04-30  Bruno Haible  <bruno@clisp.org>
40014         netdb: Make it work in C++ mode.
40015         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
40016         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
40017         module.
40018         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
40019         gl_MODULE_INDICATOR_FOR_TESTS.
40020         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
40021         * modules/netdb-c++-tests: New file.
40022         * tests/test-netdb-c++.cc: New file.
40024 2011-04-30  Bruno Haible  <bruno@clisp.org>
40026         New modules 'vfscanf', 'vscanf'.
40027         * modules/vfscanf: New file.
40028         * modules/vscanf: New file.
40029         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
40030         here.
40031         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
40032         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
40034 2011-04-30  Bruno Haible  <bruno@clisp.org>
40036         passfd: Add comments.
40037         * lib/passfd.c: Add comments about platforms.
40039 2011-04-30  Bruno Haible  <bruno@clisp.org>
40041         sys_uio: Make <sys/uio.h> self-contained.
40042         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
40043         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
40045 2011-04-30  Bruno Haible  <bruno@clisp.org>
40047         sys_socket: Ensure 'struct iovec' definition.
40048         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
40049         <sys/socket.h>.
40050         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
40052 2011-04-30  Bruno Haible  <bruno@clisp.org>
40054         sys_uio: Protect definition of 'struct iovec'.
40055         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
40056         it as a C struct.
40058 2011-04-30  Bruno Haible  <bruno@clisp.org>
40060         manywarnings: fix indentation
40061         * m4/manywarnings.m4: Indent by 2 spaces consistently.
40063 2011-04-30  Pádraig Brady  <P@draigBrady.com>
40065         manywarnings: add -Wno-missing-field-initializers if needed.
40066         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
40067         option if it's needed to allow initialization with { 0, }
40069 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
40071         announce-gen: cosmetic improvement
40072         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
40074 2011-04-29  Jim Meyering  <meyering@redhat.com>
40076         vc-list-files: indent with spaces, not TABs
40077         * build-aux/vc-list-files: Convert leading TABs to spaces,
40078         to match the style of most other files in gnulib.
40080         announce-gen: indent with spaces, not TABs
40081         * build-aux/announce-gen: Convert all TABs to spaces, to match
40082         the style of most other files in gnulib.
40084 2011-04-29  Eric Blake  <eblake@redhat.com>
40086         quotearg: avoid uninitialized variable use
40087         * lib/quotearg.c (quoting_options_from_style): Initialize
40088         remaining fields, and ensure that custom styles are only used via
40089         quoting_options rather than quoting_style.
40091 2011-04-29  Jim Meyering  <meyering@redhat.com>
40093         maint.mk: remove unused VC-tag variable
40094         * top/maint.mk (VC-tag): Remove unused variable.
40096 2011-04-29  Bruno Haible  <bruno@clisp.org>
40098         netdb: fix gai_strerror replacements
40099         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
40100         * modules/netdb: Substitute it.
40102 2011-04-29  Jim Meyering  <meyering@redhat.com>
40104         test-getcwd.c: avoid new set-but-not-used warning
40105         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
40106         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
40107         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
40108         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
40110         test-hash.c: avoid a new shadowing warning
40111         * tests/test-hash.c (main): Don't shadow "dup".
40113 2011-04-28  Eric Blake  <eblake@redhat.com>
40115         getaddrinfo: fix gai_strerror signature
40116         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
40117         and work around mingw with UNICODE defined.
40118         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
40119         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
40120         * modules/netdb (Makefile.am): Substitute it.
40121         * lib/netdb.in.h (gai_strerror): Declare replacement.
40122         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
40123         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
40124         the fix.
40126         getsockopt: avoid compiler warning
40127         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
40128         Reported by Matthias Bolte.
40130         tests: drop unused link dependency
40131         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
40132         * modules/dirent-safer-tests (Makefile.am): Likewise.
40133         * modules/fdopendir-tests (Makefile.am): Likewise.
40134         * modules/mkfifoat-tests (Makefile.am): Likewise.
40135         * modules/openat-safer-tests (Makefile.am): Likewise.
40136         * modules/openat-tests (Makefile.am): Likewise.
40137         * modules/readlinkat-tests (Makefile.am): Likewise.
40138         * modules/symlinkat-tests (Makefile.am): Likewise.
40139         * modules/linkat-tests (Makefile.am): Likewise.
40140         (Depends-on): Switch to filenamecat-lgpl.
40141         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
40142         LIBINTL.
40143         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
40144         * tests/test-linkat.c (main): Don't require xalloc.
40146         hash, mgetgroups: drop xalloc dependency
40147         * lib/hash.c (includes): Adjust includes.
40148         * lib/mgetgroups.c (includes): Likewise.
40149         (xgetgroups): Move...
40150         * lib/xgetgroups.c: ...to new file.
40151         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
40152         * modules/xgetgroups: New file, split from...
40153         * modules/mgetgroups: ...here.
40154         (Depends-on): Add xalloc-oversized.
40155         * modules/hash (Depends-on): Likewise.
40156         * modules/hash-tests (Depends-on): Drop xalloc.
40157         (test_hash_LDADD): Drop unused library.
40158         * tests/test-hash.c (main): Break xalloc dependency.
40159         (includes): Drop unused include.
40161         xalloc-oversized: new module
40162         * modules/xalloc-oversized: New module.
40163         * modules/xalloc (Depends-on): Add it.
40164         * lib/xalloc.h (xalloc_oversized): Move...
40165         * lib/xalloc-oversized.h: ...into new file.
40167         utimecmp: drop dependency on xmalloc
40168         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
40169         due to memory pressure.
40170         * modules/utimecmp (Depends-on): Drop xalloc.
40172 2011-04-27  Eric Blake  <eblake@redhat.com>
40174         getcwd: fix mingw bugs
40175         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
40176         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
40177         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
40179 2011-04-27  Bruno Haible  <bruno@clisp.org>
40181         mkstemps: Ensure declaration on MacOS X 10.5.
40182         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
40183         * doc/glibc-functions/mkstemps.texi: Document header file problem on
40184         MacOS X.
40186 2011-04-27  Bruno Haible  <bruno@clisp.org>
40188         mkstemp: More documentation.
40189         * doc/posix-functions/mkstemp.texi: Document header file problem on
40190         MacOS X.
40192 2011-04-27  Bruno Haible  <bruno@clisp.org>
40194         mkstemp: Tweak configure message when cross-compiling.
40195         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
40196         result as a guess.
40198 2011-04-27  Bruno Haible  <bruno@clisp.org>
40200         clean-temp: Clarify what it does.
40201         * lib/clean-temp.h: Add more comments.
40202         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
40203         module.
40204         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
40205         * doc/glibc-functions/mkstemps.texi: Likewise.
40206         * doc/glibc-functions/mkostemps.texi: Likewise.
40208 2011-04-27  Eric Blake  <eblake@redhat.com>
40210         fchdir: avoid extra chdir and fix test
40211         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
40212         getcwd-lgpl.
40213         * lib/fchdir.c (get_name): Any absolute name will do; it does not
40214         have to be canonical.
40215         (canonicalize_file_name): Drop unused macro.
40216         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
40218         filenamecat-lgpl: fix licence
40219         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
40220         when it was first created.
40222         linkat, renameat: add missing dependency
40223         * modules/linkat (Depends-on): Require getcwd-lgpl.
40224         * modules/renameat (Depends-on): Likewise.
40226         tests: reduce dependencies
40227         * tests/test-linkat.c (main): Use lighter-weight getcwd.
40228         * tests/test-renameat.c (main): Likewise.
40229         * modules/linkat-tests (Depends-on): Relax dependency.
40230         * modules/renameat-tests (Depends-on): Likewise.
40231         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
40232         dependency explicit.
40234         save-cwd: reduce default dependency
40235         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
40236         * lib/save-cwd.c: Update comments.
40237         * NEWS: Document the semantic change.
40239         getcwd: enhance tests
40240         * tests/test-getcwd-lgpl.c: New file, taken from...
40241         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
40242         repeat long path stress tests from m4 probe.
40243         * modules/getcwd-lgpl-tests: New module.
40244         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
40245         * m4/getcwd-abort-bug.m4: Update comment.
40246         * m4/getcwd-path-max.m4: Likewise.
40248         getcwd-lgpl: new module
40249         * modules/getcwd-lgpl: New module.
40250         * lib/getcwd-lgpl.c: New file.
40251         * doc/posix-functions/getcwd.texi (getcwd): Document it.
40252         * MODULES.html.sh (lacking POSIX:2008): Likewise.
40253         * modules/getcwd (configure.ac): Set C witness.
40254         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
40256         getcwd: tweak comments
40257         * m4/getcwd-abort-bug.m4: Fix comments.
40258         * m4/getcwd-path-max.m4: Likewise.
40259         * m4/getcwd.m4: Likewise.
40261 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40262         and Eric Blake  <eblake@redhat.com>
40264         mkstemp: replace if system version uses wrong permissions
40265         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
40266         read/write mode bits set in file created by mkstemp.
40267         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
40269 2011-04-27  Eric Blake  <eblake@redhat.com>
40271         passfd: avoid compiler warning
40272         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
40273         Reported by Laine Stump.
40275 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
40277         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
40278         required by the NetBSD (and perhaps other 4.4BSD derived) join.
40280 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
40281         and Eric Blake  <eblake@redhat.com>
40283         mkstemp: mention clean-temp module
40284         * lib/mkstemp.c: Add comment.
40285         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
40287 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
40289         inttypes: also provide default values for 32-bit tests
40290         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
40291         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
40293 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
40295         strtoumax: remove dependency on strtoimax
40296         This is like the strtoull change of yesterday.
40297         * modules/strtoumax (Files): Add lib/strtoimax.c.
40298         (Depends-on): Remove strtoimax and add verify.
40300         inttypes-incomplete: new module
40301         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
40302         all but the PRI* and SCN* parts of gl_INTTYPES_H.
40303         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
40304         of gl_INTTYPES_H.
40305         (gl_INTTYPES_H): Rewrite in terms of these new macros.
40306         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
40307         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
40308         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
40309         * modules/strtoumax, modules/xstrtol (Depends-on):
40310         Depend on inttypes-incomplete, not inttypes.
40311         * modules/inttypes-incomplete: New module, containing the contents
40312         of the old modules/inttypes module, except that the Files: section
40313         omits m4/inttypes-pri.m4, and the configure.ac section invokes
40314         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
40315         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
40316         (Depends-on): Depend only on inttypes-incomplete.
40317         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
40319         inttypes: omit now-redundant strtoimax and strtoumax work
40320         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
40321         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
40323         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
40324         This supports apps that need pointers to strtoimax and strtoumax,
40325         and ports to HP-UX 11.00 64.bit, which has macros that expand to
40326         nonexistent functions.  See
40327         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
40328         et seq.
40329         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
40330         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
40331         a macro.
40332         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
40334 2011-04-25  Simon Josefsson  <simon@josefsson.org>
40336         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
40338 2011-04-25  Bruno Haible  <bruno@clisp.org>
40340         strtol, strtoul: Mark modules as obsolete.
40341         * modules/strtol (Status, Notice): New sections.
40342         * modules/strtoul (Status, Notice): New sections.
40344 2011-04-25  Bruno Haible  <bruno@clisp.org>
40346         strtod: Remove check for strtod, unless supporting old platforms.
40347         * modules/strtod-obsolete: New file.
40348         * m4/strtod-obsolete.m4: New file.
40349         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
40350         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
40351         * modules/strtod (Depends-on): Add strtod-obsolete.
40352         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
40354 2011-04-25  Bruno Haible  <bruno@clisp.org>
40356         strcase: Make module obsolete.
40357         * modules/strcase (Status, Notice): New sections.
40359 2011-04-25  Bruno Haible  <bruno@clisp.org>
40361         dup2: Remove check for dup2, unless supporting old obsolete platforms.
40362         * modules/dup2-obsolete: New file.
40363         * m4/dup2-obsolete.m4: New file.
40364         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
40365         gl_FUNC_DUP2_OBSOLETE is not also defined.
40366         * modules/dup2 (Depends-on): Add dup2-obsolete.
40367         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
40369 2011-04-25  Bruno Haible  <bruno@clisp.org>
40371         strnlen: Avoid memchr related link error on old obsolete platforms.
40372         * modules/memchr-obsolete: New file.
40373         * m4/memchr-obsolete.m4: New file.
40374         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
40375         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
40376         * modules/memchr (Depends-on): Add memchr-obsolete.
40377         * modules/strnlen (Depends-on): Likewise.
40378         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
40380 2011-04-25  Jim Meyering  <meyering@redhat.com>
40382         maint.mk: makefile_at_at_check extend and clean up
40383         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
40384         in addition to */Makefile.am.
40385         Exempt legitimate uses of @VAR@ notation, e.g.,
40386         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
40387         Remove obsolete coreutils-specific comment.
40388         Prompted by discussion here:
40389         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
40391 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
40393         strtoul: remove dependency on strtol
40394         This is so that 'configure' need not check for strtol merely because
40395         the application needs strtoul.
40396         * modules/strtoul (Files): Add lib/strtol.c.
40397         (Depends-on): Remove strtol.
40399         strtoull: remove dependency on strtoul
40400         This is like the strtoll change.
40401         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
40402         (Depends-on): Remove strtoul.
40404         strtoll: remove dependency on strtol
40405         This is so that 'configure' need not check for strtol merely because
40406         the application needs strtoll.
40407         * modules/strtoll (Files): Add lib/strtol.c.
40408         (Depends-on): Remove strtol.
40410 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40412         inttypes: Move some configure check to module 'imaxdiv'.
40413         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
40414         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
40415         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
40417 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40419         inttypes: Move some configure check to module 'imaxabs'.
40420         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
40421         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
40422         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
40424 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40426         inttypes: Remove configure tests that are not needed since 2009-12-31.
40427         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
40428         gl_cv_header_working_inttypes_h.
40430 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
40432         * modules/strnlen (Depends-on): Remove memchr.
40433         The strnlen implementation doesn't need the memchr module's fixes; see
40434         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
40436         strtol: remove dependency on wchar
40437         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
40438         * modules/strtol (Depends-on): Remove wchar.
40440 2011-04-21  Eric Blake  <eblake@redhat.com>
40442         passfd: fix test regression on Linux
40443         * modules/passfd-tests (configure.ac): Correct socketpair check.
40445         passfd: speed up configure and drop unused code
40446         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
40447         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
40448         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
40449         Instead of probing at configure for unix_scm_rights_bsd44_way,
40450         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
40451         check to a struct member probe.
40452         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
40453         (sendfd, recvfd): Update preprocessor checks.
40454         * modules/passfd (Files): Reflect rename, and drop unused file.
40455         (Depends-on): Drop unused dependency.
40457         passfd: allow compilation on mingw
40458         * modules/sys_socket (Depends-on): Add sys_uio.
40459         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
40460         iovec and a minimal struct msghdr.
40461         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
40462         * tests/test-sys_socket.c (main): Enhance test.
40463         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
40464         guaranteed to provide what we need.
40465         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
40466         * modules/passfd-tests (Depends-on): Add sys_wait.
40467         * tests/test-passfd.c (main): Skip test on mingw, for now.
40468         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
40469         partial 'struct msghdr' implementation.
40471         sys_uio: new module
40472         * modules/sys_uio: New module.
40473         * modules/sys_uio-tests: Likewise.
40474         * lib/sys_uio.in.h: New file.
40475         * m4/sys_uio_h.m4: Likewise.
40476         * tests/test-sys_uio.c: Likewise.
40477         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
40478         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
40480 2011-04-20  Jim Meyering  <meyering@redhat.com>
40482         useless-if-before-free: avoid false-positive
40483         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
40484         disjunct so that it too requires a terminating ";".  Without that,
40485         this script would identify as useless one statement from gcc that
40486         was not:
40487           if (aligned_ptr)
40488             free (((void **) aligned_ptr) [-1]);
40490 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
40492         doc: update users.txt.
40493         * users.txt: Add barcode.
40495 2011-04-19  Bruno Haible  <bruno@clisp.org>
40497         ioctl: Remove link dependency on native Windows.
40498         * lib/fd-hook.h: Renamed from lib/close-hook.h.
40499         (gl_close_fn, gl_ioctl_fn): New types.
40500         (struct fd_hook): Renamed from struct close_hook. Change type of
40501         private_close_fn field. Add private_ioctl_fn field.
40502         (close_hook_fn): Add parameter for primary close method.
40503         (execute_close_hooks, execute_all_close_hooks): Likewise.
40504         (ioctl_hook_fn): New type.
40505         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
40506         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40507         argument.
40508         (unregister_fd_hook): Renamed from unregister_close_hook.
40509         * lib/fd-hook.c: Renamed from lib/close-hook.c.
40510         Don't include <unistd.h>.
40511         (close): Remove undef.
40512         (anchor): Update.
40513         (execute_close_hooks): Add argument for primary close method.
40514         (execute_all_close_hooks): Likewise.
40515         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
40516         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
40517         argument. Allow each argument to be NULL.
40518         (unregister_fd_hook): Renamed from unregister_close_hook.
40519         * lib/close.c (rpl_close): Pass 'close' function pointer to
40520         execute_all_close_hooks.
40521         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
40522         (primary_ioctl): New function.
40523         (ioctl): Don't call ioctlsocket here. Instead, call
40524         execute_all_ioctl_hooks.
40525         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
40526         close method.
40527         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
40528         (fd_sockets_hook): Renamed from close_sockets_hook.
40529         (gl_sockets_startup, gl_sockets_cleanup): Update.
40530         * modules/fd-hook: Renamed from modules/close-hook. Update.
40531         * modules/close (Depends-on): Add fd-hook, remove close-hook.
40532         * modules/sockets (Depends-on): Likewise.
40533         * modules/ioctl (Depends-on): Add fd-hook.
40534         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
40535         GNULIB_SOCKET.
40537 2011-04-19  Bruno Haible  <bruno@clisp.org>
40539         Move the support of O_NONBLOCK in open() to the 'open' module.
40540         * modules/nonblocking (Depends-on): Remove 'open'.
40541         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
40542         gl_cv_have_open_O_NONBLOCK.
40543         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
40544         O_NONBLOCK support.
40545         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
40547 2011-04-17  Bruno Haible  <bruno@clisp.org>
40549         pipe2: Simplify code.
40550         * lib/pipe2.c (pipe2): Reduce code duplication.
40552 2011-04-17  Bruno Haible  <bruno@clisp.org>
40554         nonblocking: Add comment.
40555         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
40557 2011-04-17  Bruno Haible  <bruno@clisp.org>
40559         nonblocking: Add tests for sockets.
40560         * tests/test-nonblocking-socket.sh: New file.
40561         * tests/test-nonblocking-socket-main.c: New file.
40562         * tests/test-nonblocking-socket-child.c: New file.
40563         * tests/test-nonblocking-socket.h: New file.
40564         * tests/socket-server.h: New file.
40565         * tests/socket-client.h: New file.
40566         * modules/nonblocking-socket-tests: New file.
40567         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
40569 2011-04-17  Bruno Haible  <bruno@clisp.org>
40571         nonblocking: Add tests for pipes.
40572         * tests/test-nonblocking-pipe.sh: New file.
40573         * tests/test-nonblocking-pipe-main.c: New file.
40574         * tests/test-nonblocking-pipe-child.c: New file.
40575         * tests/test-nonblocking-pipe.h: New file.
40576         * tests/test-nonblocking-writer.h: New file.
40577         * tests/test-nonblocking-reader.h: New file.
40578         * tests/test-nonblocking-misc.h: New file.
40579         * modules/nonblocking-pipe-tests: New file.
40580         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
40582 2011-04-16  Bruno Haible  <bruno@clisp.org>
40584         gettext: Clarify the needed programmer actions.
40585         * modules/gettext (Notice): New field.
40586         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
40588 2011-04-16  Bruno Haible  <bruno@clisp.org>
40590         strchrnul: Tweak last commit.
40591         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
40592         bug.
40593         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
40594         as in _GL_FUNCDECL_SYS.
40595         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
40596         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
40598 2011-04-15  Eric Blake  <eblake@redhat.com>
40600         strchrnul: work around cygwin bug
40601         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
40602         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
40603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
40604         * modules/string (Makefile.am): Substitute it.
40605         * lib/string.in.h (strchrnul): Use it.
40607 2011-04-15  Bruno Haible  <bruno@clisp.org>
40609         Don't require lib/stdio-write.c when only module 'stdio' is used.
40610         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
40611         invocation.
40612         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
40614 2011-04-14  Bruno Haible  <bruno@clisp.org>
40616         Support non-blocking pipe I/O in read() on native Windows.
40617         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
40618         (read): New declaration.
40619         * lib/read.c: New file.
40620         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
40621         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
40622         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
40623         vscanf): New declarations.
40624         * lib/stdio-read.c: New file.
40625         * m4/read.m4: New file.
40626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
40627         REPLACE_READ.
40628         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
40629         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40630         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
40631         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
40632         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
40633         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40634         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
40635         * modules/read: New file.
40636         * modules/nonblocking (Files): Add lib/stdio-read.c.
40637         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
40638         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
40639         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
40640         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
40641         * modules/pread (Depends-on): Add read.
40642         * modules/safe-read (Depends-on): Likewise.
40643         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
40644         gets, scanf, vfscanf, vscanf): Verify signatures.
40645         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
40646         problem with non-blocking pipes.
40647         * doc/posix-functions/fgetc.texi: Likewise.
40648         * doc/posix-functions/fgets.texi: Likewise.
40649         * doc/posix-functions/fread.texi: Likewise.
40650         * doc/posix-functions/fscanf.texi: Likewise.
40651         * doc/posix-functions/getc.texi: Likewise.
40652         * doc/posix-functions/getchar.texi: Likewise.
40653         * doc/posix-functions/gets.texi: Likewise.
40654         * doc/posix-functions/scanf.texi: Likewise.
40655         * doc/posix-functions/vfscanf.texi: Likewise.
40656         * doc/posix-functions/vscanf.texi: Likewise.
40658 2011-04-14  Bruno Haible  <bruno@clisp.org>
40660         Support non-blocking pipe I/O in write() on native Windows.
40661         * lib/write.c (rpl_write): Split a write request that failed merely
40662         because the byte count was larger than the pipe buffer's size.
40663         * doc/posix-functions/write.texi: Mention the problem with large byte
40664         counts.
40666 2011-04-14  Bruno Haible  <bruno@clisp.org>
40668         wchar: Ensure that wchar_t gets defined on uClibc.
40669         * lib/wchar.in.h: On uClibc, include <stddef.h>.
40670         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
40672 2011-04-13  Bruno Haible  <bruno@clisp.org>
40674         safe-write, full-read: Avoid unnecessary compilation units.
40675         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
40676         (Depends-on): Remove safe-read. Add ssize_t.
40677         * modules/full-read (Files): Add lib/full-write.c.
40678         (Depends-on): Add full-write.
40680 2011-04-13  Bruno Haible  <bruno@clisp.org>
40682         Support non-blocking pipe I/O and SIGPIPE in pwrite().
40683         * modules/pwrite (Depends-on): Add 'write'.
40685 2011-04-13  Bruno Haible  <bruno@clisp.org>
40687         Support non-blocking pipe I/O in write() on native Windows.
40688         * lib/unistd.in.h (write): Enable replacement also if
40689         GNULIB_UNISTD_H_NONBLOCKING is 1.
40690         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
40691         (rpl_write): When failing to write on a non-blocking pipe, change
40692         errno from ENOSPC to EAGAIN.
40693         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
40694         putchar, puts, vfprintf, vprintf): Enable replacement also if
40695         GNULIB_STDIO_H_NONBLOCKING is 1.
40696         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
40697         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
40698         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
40699         CALL_WITH_SIGPIPE_EMULATION.
40700         (CALL_WITH_SIGPIPE_EMULATION): Use them.
40701         * m4/nonblocking.m4: New file.
40702         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
40703         for non-blocking I/O support.
40704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40705         GNULIB_UNISTD_H_NONBLOCKING.
40706         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
40707         required for non-blocking I/O support.
40708         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
40709         * modules/nonblocking (Files): Add m4/nonblocking.m4,
40710         lib/stdio-write.c, m4/asm-underscore.m4.
40711         (Depends-on): Add stdio, unistd.
40712         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
40713         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
40714         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
40715         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
40716         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
40717         problem with non-blocking pipes.
40718         * doc/posix-functions/fputc.texi: Likewise.
40719         * doc/posix-functions/fputs.texi: Likewise.
40720         * doc/posix-functions/fwrite.texi: Likewise.
40721         * doc/posix-functions/printf.texi: Likewise.
40722         * doc/posix-functions/putc.texi: Likewise.
40723         * doc/posix-functions/putchar.texi: Likewise.
40724         * doc/posix-functions/puts.texi: Likewise.
40725         * doc/posix-functions/vfprintf.texi: Likewise.
40726         * doc/posix-functions/vprintf.texi: Likewise.
40727         * doc/posix-functions/write.texi: Likewise.
40729 2011-04-10  Jim Meyering  <meyering@redhat.com>
40731         maint.mk: prohibit doubled words
40732         Detect them also when they're separated by a newline.
40733         There are 3 ways to customize it:
40734           - disable the test on a per file basis, as usual with rules using
40735             $(VC_LIST_EXCEPT)
40736           - replace the default doubled-word-selecting regexp (affects all files)
40737           - ignore a particular file-vs-doubled-word match
40738         I nearly used that last one to ignore the "is is" match in
40739         coreutils' NEWS file, since the text was "ls -is is ..."
40740         To do that, I would have added this line to cfg.mk:
40741           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
40742         but it would have ignored any "is is" match in NEWS.
40743         Low probability, but still...
40744         Instead, I changed the text, slightly:
40745           -  ls -is is now consistent with ls -lis in ignoring values returned
40746           +  "ls -is" is now consistent with ls -lis in ignoring values returned
40747         * top/maint.mk (prohibit_double_word_RE_): Provide default.
40748         (prohibit_doubled_word_): Define.
40749         (sc_prohibit_doubled_word): New rule.
40750         (sc_prohibit_the_the): Remove.  Subsumed by the above.
40752 2011-04-10  Jim Meyering  <meyering@redhat.com>
40754         maint: fix doubled-word typo in comment
40755         * m4/gethostname.m4: s/is is/it is/
40756         * m4/getdomainname.m4: Likewise.
40758 2011-04-10  Jim Meyering  <meyering@redhat.com>
40760         maint: remove doubled word: s/it it/it/
40761         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
40763 2011-04-10  Jim Meyering  <meyering@redhat.com>
40765         maint.mk: remove useless semicolon and backslash
40766         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
40767         semicolon and backslash.
40769 2011-04-10  Bruno Haible  <bruno@clisp.org>
40771         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
40772         * modules/stdint-tests (Depends-on): Add wchar.
40774 2011-04-10  Jim Meyering  <meyering@redhat.com>
40776         maint: remove doubled words in comments, e.g., s/a a/a/
40777         * lib/strptime.c (day_of_the_week): s/the the/the/
40778         * tests/test-chown.h (test_chown): s/a a/a/
40780         test-chown.h: correct a cast
40781         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
40782         when the destination is a stat.st_gid.
40784 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
40786         getaddrinfo: Fix test for sa_len member.
40787         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
40788         include <sys/types.h> before <sys/socket.h>.
40790 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
40792         maint: change "can not" to "cannot"
40793         * doc/posix-functions/iconv.texi (iconv): This one crossed line
40794         boundaries.
40796 2011-04-09  Jim Meyering  <meyering@redhat.com>
40798         maint: change "a a" to "a"
40799         * tests/test-lchown.h (test_lchown): s/a a/a/
40801         maint.mk: prohibit \<the the\>
40802         * top/maint.mk (sc_prohibit_the_the): New rule.
40804         maint: fix "the the" in comment
40805         * lib/count-one-bits.h: s/the the/the/
40807         maint: change "can not" to "cannot"
40808         But do not change the occurrences in maintain.texi or in
40809         build-aux/po/Makefile.in.in, which I presume comes from gettext.
40810         * doc/gnulib-tool.texi: s/can not/cannot/
40811         * doc/posix-functions/accept.texi (accept): Likewise.
40812         * doc/posix-functions/socket.texi (socket): Likewise.
40813         * lib/mbrtowc.c: Likewise.
40815         maint.mk: prohibit use of "can not"
40816         * top/maint.mk (sc_prohibit_can_not): New rule.
40817         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
40819 2011-04-09  Bruno Haible  <bruno@clisp.org>
40821         careadlinkat: Guard against misuse of careadlinkatcwd.
40822         * lib/careadlinkat.c: Include <stdlib.h>.
40823         (careadlinkatcwd): Check that the fd argument is as expected.
40825 2011-04-09  Bruno Haible  <bruno@clisp.org>
40827         careadlinkat: Use common coding style.
40828         * lib/careadlinkat.c: Move gnulib includes after system includes.
40830 2011-04-09  Bruno Haible  <bruno@clisp.org>
40832         careadlinkat: Clarify specification.
40833         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
40834         (careadlinkatcwd): Add comment.
40835         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
40837 2011-04-09  Bruno Haible  <bruno@clisp.org>
40839         areadlinkat: Avoid link error on many platforms.
40840         * modules/areadlinkat (Depends-on): Add areadlink.
40842 2011-04-09  Bruno Haible  <bruno@clisp.org>
40844         allocator, careadlinkat: Fix double-inclusion guard.
40845         * lib/allocator.h: Fix double-inclusion guard.
40846         * lib/careadlinkat.h: Likewise.
40848 2011-04-09  Bruno Haible  <bruno@clisp.org>
40850         relocatable-prog-wrapper: Update after module 'areadlink' changed.
40851         * lib/relocwrapper.c: Update dependencies hierarchy.
40852         * build-aux/install-reloc: Update list of files to be compiled.
40853         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
40854         lib/allocator.[hc].
40856 2011-04-08  Eric Blake  <eblake@redhat.com>
40858         strftime: silence gnulib-tool warning
40859         * modules/strftime-tests (Depends-on): Drop automatic dependency.
40861 2011-04-08  Bruno Haible  <bruno@clisp.org>
40863         verify: Fix syntax error with GCC 4.6 in C++ mode.
40864         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
40865         (HAVE_STATIC_ASSERT): New macro.
40866         (verify_true, verify): Use 'static_assert' if it is supported and
40867         '_Static_assert' is not supported.
40869 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
40871         allocator: New module.
40872         * modules/allocator, lib/allocator.c: New files.
40873         * lib/allocator.h (stdlib_allocator): New decl.
40874         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
40875         Remove.  Do not include <stdlib.h>.
40876         (careadlinkat): Use stdlib_allocator instead of rolling our own.
40877         * modules/careadlinkat (Files): Remove lib/allocator.h.
40878         (Depends-on): Add allocator.
40880         stdlib: let modules use system malloc, realloc
40881         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
40882         if !_GL_USE_STDLIB_ALLOC.
40883         (malloc, realloc): Limit this change to a smaller scope.
40885         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
40886         (malloc, realloc): Don't #undef; no longer needed.
40887         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40888         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40889         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
40890         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40891         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40892         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40893         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
40894         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
40896         careadlinkat: rename members to avoid problem
40897         * lib/allocator.h (struct allocator): Rename members from
40898         malloc/realloc to allocate/reallocate, to avoid problems if malloc
40899         and realloc are #define'd.  Reported by Eric Blake in
40900         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
40901         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
40903 2011-04-08  Eric Blake  <eblake@redhat.com>
40905         nonblocking: reduce dependency
40906         * tests/test-nonblocking.c: Only test sockets when in use.
40907         * modules/nonblocking-tests (Depends-on): Drop socket.
40908         (Makefile.am): Link even if sockets are not present.
40909         * modules/pipe2-tests (Makefile.am): Likewise.
40910         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
40912         pipe2: fix O_NONBLOCK support on mingw
40913         * modules/pipe2 (Depends-on): Add nonblocking.
40914         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
40915         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
40916         * tests/test-nonblocking.c (main): Likewise.
40917         * modules/pipe2-tests (Makefile.am): Avoid link failure.
40919         fcntl-h: fix O_ACCMODE on cygwin
40920         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
40921         * lib/fcntl.in.h (O_ACCMODE): Fix it.
40923         pipe-filter: drop O_NONBLOCK workarounds
40924         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
40925         * modules/pipe-filter-ii (Depends-on): Likewise.
40926         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
40928         nonblocking: provide O_NONBLOCK for mingw
40929         * modules/nonblocking (Depends-on): Add open.
40930         (configure.ac): Set new witness macro.
40931         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
40932         * modules/fcntl-h (Makefile.am): Substitute it.
40933         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
40934         nonblocking module is in use.
40935         * lib/nonblocking.c: Adjust portability test.
40936         * lib/open.c (open): Don't let native open see gnulib flag.
40937         * tests/test-fcntl-h.c (main): Enhance test.
40938         * tests/test-open.h (test_open): Likewise.
40939         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
40941         careadlinkat: fix compilation error on mingw
40942         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
40943         within struct allocator.
40945 2011-04-06  Eric Blake  <eblake@redhat.com>
40947         binary-io: relicense under LGPLv2+
40948         * modules/binary-io (License): Relax to LGPLv2+.
40949         Requested for libvirt, and required by pipe2.
40951 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
40953         verify: use _Static_assert if available
40954         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
40955         (verify_true, verify): Use it if available.  This generates better
40956         diagnostics with GCC 4.6.0 and later.
40958 2011-04-05  Bruno Haible  <bruno@clisp.org>
40960         Remove leftover generated .h files after config.status changed.
40962         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
40963         GL_GENERATE_ALLOCA_H.
40964         * modules/alloca-opt (Makefile.am): Remove alloca.h if
40965         GL_GENERATE_ALLOCA_H evaluates to false.
40967         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
40968         GL_GENERATE_ARGZ_H.
40969         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
40970         evaluates to false.
40972         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
40973         GL_GENERATE_BYTESWAP_H.
40974         * modules/byteswap (Makefile.am): Remove byteswap.h if
40975         GL_GENERATE_BYTESWAP_H evaluates to false.
40977         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
40978         GL_GENERATE_ERRNO_H.
40979         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
40980         evaluates to false.
40982         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
40983         GL_GENERATE_FLOAT_H.
40984         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
40985         evaluates to false.
40987         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
40988         GL_GENERATE_FNMATCH_H.
40989         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
40990         GL_GENERATE_FNMATCH_H evaluates to false.
40992         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
40993         GL_GENERATE_GLOB_H.
40994         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
40995         evaluates to false.
40997         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
40998         automake conditional GL_GENERATE_ICONV_H.
40999         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
41000         evaluates to false.
41002         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
41003         GL_GENERATE_NETINET_IN_H.
41004         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
41005         GL_GENERATE_NETINET_IN_H evaluates to false.
41007         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
41008         conditional GL_GENERATE_PTHREAD_H.
41009         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
41010         * modules/pthread (Makefile.am): Remove pthread.h if
41011         GL_GENERATE_PTHREAD_H evaluates to false.
41013         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
41014         GL_GENERATE_SCHED_H.
41015         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
41016         evaluates to false.
41018         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
41019         conditional GL_GENERATE_SELINUX_CONTEXT_H.
41020         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
41021         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
41023         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
41024         GL_GENERATE_STDARG_H.
41025         * modules/stdarg (Makefile.am): Remove stdarg.h if
41026         GL_GENERATE_STDARG_H evaluates to false.
41028         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
41029         GL_GENERATE_STDBOOL_H.
41030         * modules/stdbool (Makefile.am): Remove stdbool.h if
41031         GL_GENERATE_STDBOOL_H evaluates to false.
41033         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
41034         conditional GL_GENERATE_STDDEF_H.
41035         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
41036         * modules/stddef (Makefile.am): Remove stddef.h if
41037         GL_GENERATE_STDDEF_H evaluates to false.
41039         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
41040         GL_GENERATE_STDINT_H.
41041         * modules/stdint (Makefile.am): Remove stdint.h if
41042         GL_GENERATE_STDINT_H evaluates to false.
41044         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
41045         GL_GENERATE_SYSEXITS_H.
41046         * modules/sysexits (Makefile.am): Remove sysexits.h if
41047         GL_GENERATE_SYSEXITS_H evaluates to false.
41049         Reported by Karl Berry and Ralf Wildenhues.
41051 2011-04-05  Bruno Haible  <bruno@clisp.org>
41053         Ensure to rebuild generated .h files when config.status has changed.
41054         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
41055         config.status.
41056         * modules/ctype (Makefile.am): Likewise.
41057         * modules/dirent (Makefile.am): Likewise.
41058         * modules/errno (Makefile.am): Likewise.
41059         * modules/fcntl-h (Makefile.am): Likewise.
41060         * modules/float (Makefile.am): Likewise.
41061         * modules/getopt-posix (Makefile.am): Likewise.
41062         * modules/glob (Makefile.am): Likewise.
41063         * modules/iconv-h (Makefile.am): Likewise.
41064         * modules/inttypes (Makefile.am): Likewise.
41065         * modules/langinfo (Makefile.am): Likewise.
41066         * modules/locale (Makefile.am): Likewise.
41067         * modules/math (Makefile.am): Likewise.
41068         * modules/netdb (Makefile.am): Likewise.
41069         * modules/netinet_in (Makefile.am): Likewise.
41070         * modules/poll-h (Makefile.am): Likewise.
41071         * modules/pthread (Makefile.am): Likewise.
41072         * modules/pty (Makefile.am): Likewise.
41073         * modules/sched (Makefile.am): Likewise.
41074         * modules/search (Makefile.am): Likewise.
41075         * modules/selinux-h (Makefile.am): Likewise.
41076         * modules/signal (Makefile.am): Likewise.
41077         * modules/spawn (Makefile.am): Likewise.
41078         * modules/stdarg (Makefile.am): Likewise.
41079         * modules/stdbool (Makefile.am): Likewise.
41080         * modules/stddef (Makefile.am): Likewise.
41081         * modules/stdint (Makefile.am): Likewise.
41082         * modules/stdio (Makefile.am): Likewise.
41083         * modules/stdlib (Makefile.am): Likewise.
41084         * modules/string (Makefile.am): Likewise.
41085         * modules/strings (Makefile.am): Likewise.
41086         * modules/sys_file (Makefile.am): Likewise.
41087         * modules/sys_ioctl (Makefile.am): Likewise.
41088         * modules/sys_select (Makefile.am): Likewise.
41089         * modules/sys_socket (Makefile.am): Likewise.
41090         * modules/sys_stat (Makefile.am): Likewise.
41091         * modules/sys_time (Makefile.am): Likewise.
41092         * modules/sys_times (Makefile.am): Likewise.
41093         * modules/sys_utsname (Makefile.am): Likewise.
41094         * modules/sys_wait (Makefile.am): Likewise.
41095         * modules/sysexits (Makefile.am): Likewise.
41096         * modules/termios (Makefile.am): Likewise.
41097         * modules/time (Makefile.am): Likewise.
41098         * modules/unistd (Makefile.am): Likewise.
41099         * modules/wchar (Makefile.am): Likewise.
41100         * modules/wctype-h (Makefile.am): Likewise.
41101         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
41103 2011-04-05  Bruno Haible  <bruno@clisp.org>
41105         pipe2: Relicense under LGPLv2+.
41106         * modules/pipe2 (License): Change to LGPLv2+.
41107         Requested by Eric Blake, for libvirt.
41109 2011-04-05  Bruce Korb  <bkorb@gnu.org>
41111         bootstrap: compute gnulib_extra_files after updating build_aux
41112         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
41113         change build_aux or also supply gnulib_extra_files.  Handle correctly.
41115 2011-04-05  Eric Blake  <eblake@redhat.com>
41117         bootstrap: preserve git whitelist item sorting
41118         * build-aux/bootstrap (sort_patterns): New function.
41119         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
41121 2011-04-05  Simon Josefsson  <simon@josefsson.org>
41123         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
41124         sc_space_tab check.
41126 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
41128         areadlink, areadlinkat: rewrite in terms of careadlinkat
41129         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
41130         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
41131         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
41132         (malloc, realloc): Remove #undefs.
41133         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
41134         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
41135         readlink, ssize_t, stdint, unistd.
41136         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
41137         areadlink, stdint.
41139         careadlinkat: new module
41140         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
41141         * modules/careadlinkat: New files, written by me with
41142         a review and feedback from Ben Pfaff in
41143         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
41145 2011-04-01  Bruno Haible  <bruno@clisp.org>
41147         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
41148         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
41149         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
41150         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
41151         Reported by Bruce Korb <bruce.korb@gmail.com>.
41153 2011-04-01  Bruno Haible  <bruno@clisp.org>
41155         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
41156         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
41157         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
41158         * modules/wcpcpy (Depends-on): Add extensions.
41159         * modules/wcpncpy (Depends-on): Likewise.
41160         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
41161         systems.
41162         * doc/posix-functions/wcpncpy.texi: Likewise.
41163         * doc/posix-functions/wcwidth.texi: Likewise.
41165 2011-03-31  Eric Blake  <eblake@redhat.com>
41167         nonblocking: fix mingw test failures
41168         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
41169         non-blocking flag on regular file.
41170         (get_nonblocking_flag): Set errno on invalid fd.
41171         * tests/test-nonblocking.c (main): Avoid test failure on
41172         directories if fchdir is not active.
41173         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
41175 2011-03-31  Bruno Haible  <bruno@clisp.org>
41177         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
41178         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
41179         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
41180         Reported by Simon Josefsson <simon@josefsson.org>.
41182 2011-03-31  Bruno Haible  <bruno@clisp.org>
41183         and Eric Blake  <eblake@redhat.com>
41185         nonblocking: new module
41186         * modules/nonblocking: New module.
41187         * modules/nonblocking-tests: Likewise.
41188         * lib/nonblocking.h: New file.
41189         * lib/nonblocking.c: Likewise.
41190         * tests/test-nonblocking.c: New test.
41191         * lib/ioctl.c (ioctl) [mingw]: Update comment.
41193 2011-03-30  Bruno Haible  <bruno@clisp.org>
41195         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
41196         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
41197         instead of 'printf' format for GCC >= 4.4.
41198         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
41199         (fprintf, printf, vfprintf, vprintf): Declare with
41200         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
41201         the system's vfprintf() function.
41202         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
41204 2011-03-30  Eric Blake  <eblake@redhat.com>
41206         passfd: fix scoping bug
41207         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
41208         before sendmsg/recvmsg.
41210         passfd: standardize coding conventions
41211         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
41212         can be learned at compile time.
41213         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
41214         ifdefs.
41215         (sendfd, recvfd): Follow gnulib code conventions.
41217         passfd: fix incorrect sendmsg arguments
41218         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
41219         incorrect msg_controllen value.
41220         * modules/passfd-tests (Depends-on): Check for alarm.
41221         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
41222         Reported by Bastien ROUCARIES.
41224 2011-03-30  Bruno Haible  <bruno@clisp.org>
41226         c-strcasestr: Relicense under LGPLv2+.
41227         * modules/c-strcasestr (License): Change to LGPLv2+.
41228         Requested by Eric Blake, for libvirt.
41230 2011-03-30  Simon Josefsson  <simon@josefsson.org>
41232         * users.txt: Add libidn2.  Fix libtasn1 link.
41234 2011-03-30  Jim Meyering  <meyering@redhat.com>
41236         tests: readlink* ("",... fails with EINVAL on newer kernels
41237         readlink and readlinkat have typically failed with ENOENT for
41238         the invalid, empty file name,  "".  However, with the advent
41239         of linux-2.6.39, they fail with EINVAL.
41240         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
41241         when operating on the empty file name.
41242         * tests/test-readlink.h (test_readlink): Likewise.
41244 2011-03-29  Bruno Haible  <bruno@clisp.org>
41246         Relicense some modules under LGPLv2+, for libidn2.
41247         * modules/array-mergesort (License): Change to LGPLv2+.
41248         * modules/c-strcaseeq (License): Likewise.
41249         * modules/striconveh (License): Likewise.
41250         * modules/striconveha (License): Likewise.
41251         * modules/uniconv/base (License): Likewise.
41252         * modules/uniconv/u8-conv-from-enc (License): Likewise.
41253         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
41254         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
41255         * modules/unictype/base (License): Likewise.
41256         * modules/unictype/bidiclass-of (License): Likewise.
41257         * modules/unictype/category-M (License): Likewise.
41258         * modules/unictype/category-none (License): Likewise.
41259         * modules/unictype/category-of (License): Likewise.
41260         * modules/unictype/category-test (License): Likewise.
41261         * modules/unictype/category-test-withtable (License): Likewise.
41262         * modules/unictype/combining-class (License): Likewise.
41263         * modules/unictype/joiningtype-of (License): Likewise.
41264         * modules/unictype/scripts (License): Likewise.
41265         * modules/uninorm/base (License): Likewise.
41266         * modules/uninorm/canonical-decomposition (License): Likewise.
41267         * modules/uninorm/composition (License): Likewise.
41268         * modules/uninorm/decompose-internal (License): Likewise.
41269         * modules/uninorm/decomposition-table (License): Likewise.
41270         * modules/uninorm/nfc (License): Likewise.
41271         * modules/uninorm/nfd (License): Likewise.
41272         * modules/uninorm/u32-normalize (License): Likewise.
41273         * modules/unistr/base (License): Likewise.
41274         * modules/unistr/u32-cpy (License): Likewise.
41275         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
41276         * modules/unistr/u32-to-u8 (License): Likewise.
41277         * modules/unistr/u32-uctomb (License): Likewise.
41278         * modules/unistr/u8-check (License): Likewise.
41279         * modules/unistr/u8-mblen (License): Likewise.
41280         * modules/unistr/u8-mbtouc (License): Likewise.
41281         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
41282         * modules/unistr/u8-mbtoucr (License): Likewise.
41283         * modules/unistr/u8-prev (License): Likewise.
41284         * modules/unistr/u8-strlen (License): Likewise.
41285         * modules/unistr/u8-to-u32 (License): Likewise.
41286         * modules/unistr/u8-uctomb (License): Likewise.
41287         * modules/unitypes (License): Likewise.
41288         Requested by Simon Josefsson.
41290 2011-03-29  Simon Josefsson  <simon@josefsson.org>
41292         lib-symbol-visibility: Add a notice.
41293         * modules/lib-symbol-visibility (Notice): New field.
41295 2011-03-29  Bruno Haible  <bruno@clisp.org>
41297         getaddrinfo: Doc fix.
41298         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
41299         section "fixed in Gnulib".
41301 2011-03-28  Simon Josefsson  <simon@josefsson.org>
41303         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
41304         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
41306 2011-03-26  Bruno Haible  <bruno@clisp.org>
41308         unictype/property-byname: Reduce the number of load-time relocations.
41309         * lib/unictype/pr_byname.c: Include <stdlib.h>.
41310         (UC_PROPERTY_INDEX_*): New enumeration values.
41311         (uc_property_byname): Convert an index from the lookup table to an
41312         uc_property_t.
41313         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
41314         values.
41316 2011-03-26  Bruno Haible  <bruno@clisp.org>
41318         unictype/property-byname: Allow omitted word separators and aliases.
41319         * lib/unictype/pr_byname.gperf: Add property names without word
41320         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
41321         for 'space'.
41323 2011-03-26  Bruno Haible  <bruno@clisp.org>
41325         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
41326         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
41327         also hyphens to space.
41328         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
41329         without spaces.
41330         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
41332 2011-03-26  Bruno Haible  <bruno@clisp.org>
41334         unictype/joiningtype-byname: Recognize long names as well.
41335         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
41336         a long name.
41337         * lib/unictype/joiningtype_byname.c: Include <string.h>,
41338         unictype/joiningtype_byname.h.
41339         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
41340         * lib/unictype/joiningtype_byname.gperf: New file.
41341         * modules/unictype/joiningtype-byname (Files): Add
41342         lib/unictype/joiningtype_byname.gperf.
41343         (Depends-on): Add gperf.
41344         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
41345         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
41346         long names.
41348         Tests for module 'unictype/joiningtype-longname'.
41349         * modules/unictype/joiningtype-longname-tests: New file.
41350         * tests/unictype/test-joiningtype_longname.c: New file.
41352         New module 'unictype/joiningtype-longname'.
41353         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
41354         * lib/unictype/joiningtype_longname.c: New file.
41355         * modules/unictype/joiningtype-longname: New file.
41356         * modules/unictype/joiningtype-all (Depends-on): Add
41357         unictype/joiningtype-longname.
41359 2011-03-26  Bruno Haible  <bruno@clisp.org>
41361         unictype/bidiclass-byname: Recognize long names as well.
41362         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
41363         name.
41364         * lib/unictype/bidi_byname.c: Include <string.h>,
41365         unictype/bidi_byname.h.
41366         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
41367         * lib/unictype/bidi_byname.gperf: New file.
41368         * modules/unictype/bidiclass-byname (Files): Add
41369         lib/unictype/bidi_byname.gperf.
41370         (Depends-on): Add gperf.
41371         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
41372         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
41373         long names.
41375         Tests for module 'unictype/bidiclass-longname'.
41376         * modules/unictype/bidiclass-longname-tests: New file.
41377         * tests/unictype/test-bidi_longname.c: New file.
41379         New module 'unictype/bidiclass-longname'.
41380         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
41381         * lib/unictype/bidi_longname.c: New file.
41382         * modules/unictype/bidiclass-longname: New file.
41383         * modules/unictype/bidiclass-all (Depends-on): Add
41384         unictype/bidiclass-longname.
41386 2011-03-26  Bruno Haible  <bruno@clisp.org>
41388         unictype/bidi*: Rename modules.
41389         * modules/unictype/bidiclass-all: Renamed from
41390         modules/unictype/bidicategory-all.
41391         * modules/unictype/bidiclass-name: Renamed from
41392         modules/unictype/bidiclass-name.
41393         (Description): Update.
41394         * modules/unictype/bidiclass-name-tests: Renamed from
41395         modules/unictype/bidicategory-name-tests.
41396         * modules/unictype/bidiclass-byname: Renamed from
41397         modules/unictype/bidicategory-byname.
41398         (Description): Update.
41399         * modules/unictype/bidiclass-byname-tests: Renamed from
41400         modules/unictype/bidicategory-byname-tests.
41401         * modules/unictype/bidiclass-of: Renamed from
41402         modules/unictype/bidicategory-of.
41403         (Description): Update.
41404         * modules/unictype/bidiclass-of-tests: Renamed from
41405         modules/unictype/bidicategory-of-tests.
41406         * modules/unictype/bidiclass-test: Renamed from
41407         modules/unictype/bidicategory-test.
41408         (Description): Update.
41409         * modules/unictype/bidiclass-test-tests: Renamed from
41410         modules/unictype/bidicategory-test-tests.
41411         * modules/unictype/bidicategory-all: New file, a simple redirection.
41412         * modules/unictype/bidicategory-name: Likewise.
41413         * modules/unictype/bidicategory-byname: Likewise.
41414         * modules/unictype/bidicategory-of: Likewise.
41415         * modules/unictype/bidicategory-test: Likewise.
41416         * modules/unictype/property-bidi-* (Dependencies): Update.
41417         * lib/unictype/bidi_*.c: Update comment.
41419 2011-03-26  Bruno Haible  <bruno@clisp.org>
41421         unictype/bidi*: Rename functions, part 2.
41422         * modules/unictype/bidicategory-name (configure.ac): Update required
41423         libunistring version.
41424         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
41426 2011-03-25  Bruno Haible  <bruno@clisp.org>
41428         New module 'unictype/combining-class-all'.
41429         * modules/unictype/combining-class-all: New file.
41431         Tests for module 'unictype/combining-class-byname'.
41432         * modules/unictype/combining-class-byname-tests: New file.
41433         * tests/unictype/test-combiningclass_byname.c: New file.
41435         New module 'unictype/combining-class-byname'.
41436         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
41437         * lib/unictype/combiningclass_byname.c: New file.
41438         * lib/unictype/combiningclass_byname.gperf: New file.
41439         * modules/unictype/combining-class-byname: New file.
41441         Tests for module 'unictype/combining-class-longname'.
41442         * modules/unictype/combining-class-longname-tests: New file.
41443         * tests/unictype/test-combiningclass_longname.c: New file.
41445         New module 'unictype/combining-class-longname'.
41446         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
41447         * lib/unictype/combiningclass_longname.c: New file.
41448         * modules/unictype/combining-class-longname: New file.
41450         Tests for module 'unictype/combining-class-name'.
41451         * modules/unictype/combining-class-name-tests: New file.
41452         * tests/unictype/test-combiningclass_name.c: New file.
41454         New module 'unictype/combining-class-name'.
41455         * lib/unictype.in.h (uc_combining_class_name): New declaration.
41456         * lib/unictype/combiningclass_name.c: New file.
41457         * modules/unictype/combining-class-name: New file.
41459 2011-03-25  Bruno Haible  <bruno@clisp.org>
41461         unictype/combining-class: Rename source files.
41462         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
41463         of unictype/combining.h.
41464         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
41465         Update.
41466         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
41467         * modules/unictype/combining-class (Description): Fix.
41468         (Files, Makefile.am): Update.
41469         * tests/unictype/test-combiningclass.c: Renamed from
41470         tests/unictype/test-combining.c.
41471         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
41473 2011-03-25  Bruno Haible  <bruno@clisp.org>
41475         unictype: Update list of canonical combining classes.
41476         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
41478 2011-03-25  Bruno Haible  <bruno@clisp.org>
41480         unictype/category-byname: Recognize long names as well.
41481         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
41482         a long name.
41483         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
41484         unictype/categ_byname.h.
41485         (UC_CATEGORY_INDEX_*): New enumeration values.
41486         (uc_general_category_byname): Use uc_general_category_lookup and
41487         convert from index to value.
41488         * lib/unictype/categ_byname.gperf: New file.
41489         * modules/unictype/category-byname (Files): Add
41490         lib/unictype/categ_byname.gperf.
41491         (Depends-on): Add gperf.
41492         (Makefile.am): Add rule for generating unictype/categ_byname.h.
41493         * tests/unictype/test-categ_byname.c (main): Test the recognition of
41494         long names.
41496         Tests for module 'unictype/category-longname'.
41497         * modules/unictype/category-longname-tests: New file.
41498         * tests/unictype/test-categ_longname.c: New file.
41500         New module 'unictype/category-longname'.
41501         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
41502         * lib/unictype/categ_longname.c: New file.
41503         * modules/unictype/category-longname: New file.
41504         * modules/unictype/category-all (Depends-on): Add it.
41506 2011-03-25  Bruno Haible  <bruno@clisp.org>
41508         Tests for module 'unictype/category-LC'.
41509         * modules/unictype/category-LC-tests: New file.
41510         * tests/unictype/test-categ_LC.c: New file, automatically generated.
41512         New module 'unictype/category-LC'.
41513         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
41514         (UC_CATEGORY_LC): New declaration.
41515         (UC_CASED_LETTER): New macro.
41516         * lib/gen-uni-tables.c (is_category_LC): New function.
41517         (output_categories): Also handle category LC.
41518         (UC_CATEGORY_MASK_LC): New enumeration value.
41519         (general_category_byname): Also handle category LC.
41520         * lib/unictype/categ_LC.c: New file.
41521         * lib/unictype/categ_LC.h: New file, automatically generated.
41522         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
41523         category LC.
41524         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
41525         * modules/unictype/category-LC: New file.
41526         * modules/unictype/category-byname (Depends-on): Add
41527         unictype/category-LC.
41528         * modules/unictype/category-all (Depends-on): Likewise.
41530 2011-03-25  Eric Blake  <eblake@redhat.com>
41532         xmalloc: revert yesterday's regression
41533         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
41534         realloc's underlying behavior (allowing allocation of zero-size
41535         objects, especially if malloc-gnu is also in use).
41537 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
41539         maint.mk: add missing version to VC-tag
41540         * top/maint.mk: git tag was missing actual tag name; add it.
41542         valgrind: do leak checking, and exit with code 1 on error (not 0)
41543         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
41544         to VALGRIND.
41546 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
41548         posix-modules: say what it does.
41549         * posix-modules: Add a line to the --help output saying what it does.
41551 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
41553         xmalloc: Do not leak if underlying realloc is C99 compatible.
41554         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
41555         This avoids a leak on C99-based systems.  See
41556         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
41558 2011-03-24  Eric Blake  <eblake@redhat.com>
41560         realloc: document portability problem
41561         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
41562         passing 0 size to realloc.
41564 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
41566         doc: update users.txt
41567         * users.txt: Add cvsps, tmpwatch
41569 2011-03-23  Matt Rice  <ratmice@gmail.com>
41571         doc: update users.txt
41572         * users.txt: Add gdb.
41574 2011-03-23  Jim Meyering  <meyering@redhat.com>
41576         doc: update users.txt
41577         Looking through matches up to the following URL (there are still
41578         several more pages), I found several projects that use gnulib:
41579         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
41580         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
41581         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
41583 2011-03-22  Bruno Haible  <bruno@clisp.org>
41585         unictype/bidi*: Rename functions.
41586         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
41587         uc_bidi_class, uc_is_bidi_class): New declarations.
41588         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
41589         uc_bidi_category_byname.
41590         (uc_bidi_category_byname): New function.
41591         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
41592         u_bidi_category_name.
41593         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
41594         (uc_bidi_category_name): New function.
41595         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
41596         uc_bidi_category.
41597         (uc_bidi_category): New function.
41598         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
41599         uc_is_bidi_category. Invoke uc_bidi_class.
41600         (uc_is_bidi_category): New function.
41601         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
41602         instead of uc_bidi_category_byname.
41603         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
41604         instead of uc_bidi_category_name.
41605         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
41606         uc_bidi_category.
41607         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
41608         instead of uc_is_bidi_category.
41610 2011-03-21  Bruno Haible  <bruno@clisp.org>
41612         New module 'unictype/joininggroup-all'.
41613         * modules/unictype/joininggroup-all: New file.
41615         Tests for module 'unictype/joininggroup-of'.
41616         * modules/unictype/joininggroup-of-tests: New file.
41617         * tests/unictype/test-joininggroup_of.c: New file.
41618         * tests/unictype/test-joininggroup_of.h: New file, automatically
41619         generated by gen-uni-tables.
41621         New module 'unictype/joininggroup-of'.
41622         * modules/unictype/joininggroup-of: New file.
41623         * lib/unictype/joininggroup_of.c: New file.
41624         * lib/unictype/joininggroup_of.h: New file, automatically generated by
41625         gen-uni-tables.
41627         Tests for module 'unictype/joininggroup-byname'.
41628         * modules/unictype/joininggroup-byname-tests: New file.
41629         * tests/unictype/test-joininggroup_byname.c: New file.
41631         New module 'unictype/joininggroup-byname'.
41632         * modules/unictype/joininggroup-byname: New file.
41633         * lib/unictype/joininggroup_byname.c: New file.
41634         * lib/unictype/joininggroup_byname.gperf: New file.
41636         Tests for module 'unictype/joininggroup-name'.
41637         * modules/unictype/joininggroup-name-tests: New file.
41638         * tests/unictype/test-joininggroup_name.c: New file.
41640         New module 'unictype/joininggroup-name'.
41641         * modules/unictype/joininggroup-name: New file.
41642         * lib/unictype/joininggroup_name.c: New file.
41643         * lib/unictype/joininggroup_name.h: New file.
41645         New module 'unictype/joiningtype-all'.
41646         * modules/unictype/joiningtype-all: New file.
41648         Tests for module 'unictype/joiningtype-of'.
41649         * modules/unictype/joiningtype-of-tests: New file.
41650         * tests/unictype/test-joiningtype_of.c: New file.
41651         * tests/unictype/test-joiningtype_of.h: New file, automatically
41652         generated by gen-uni-tables.
41654         New module 'unictype/joiningtype-of'.
41655         * modules/unictype/joiningtype-of: New file.
41656         * lib/unictype/joiningtype_of.c: New file.
41657         * lib/unictype/joiningtype_of.h: New file, automatically generated by
41658         gen-uni-tables.
41660         Tests for module 'unictype/joiningtype-byname'.
41661         * modules/unictype/joiningtype-byname-tests: New file.
41662         * tests/unictype/test-joiningtype_byname.c: New file.
41664         New module 'unictype/joiningtype-byname'.
41665         * modules/unictype/joiningtype-byname: New file.
41666         * lib/unictype/joiningtype_byname.c: New file.
41668         Tests for module 'unictype/joiningtype-name'.
41669         * modules/unictype/joiningtype-name-tests: New file.
41670         * tests/unictype/test-joiningtype_name.c: New file.
41672         New module 'unictype/joiningtype-name'.
41673         * modules/unictype/joiningtype-name: New file.
41674         * lib/unictype/joiningtype_name.c: New file.
41676         unictype: Add support for Arabic shaping properties.
41677         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
41678         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
41679         declarations.
41680         (UC_JOINING_GROUP_*): New enumeration values.
41681         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
41682         declarations.
41683         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
41684         (unicode_joining_type): New variable.
41685         (UC_JOINING_GROUP_*): New enumeration values.
41686         (unicode_joining_group): New variable.
41687         (fill_arabicshaping, joining_type_as_c_identifier,
41688         output_joining_type_test, output_joining_type,
41689         joining_group_as_c_identifier, output_joining_group_test,
41690         output_joining_group): New functions.
41691         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
41692         fill_arabicshaping and output_joining_type_test, output_joining_type,
41693         output_joining_group_test, output_joining_group.
41694         Reported by Simon Josefsson.
41696 2011-03-21  Jim Meyering  <meyering@redhat.com>
41698         strftime: fix a bug in yesterday's change
41699         * lib/strftime.c (add): Accommodate width's initial value of -1.
41700         Otherwise, nstrftime would copy uninitialized data into
41701         the result buffer.
41703 2011-03-21  Jim Meyering  <meyering@redhat.com>
41705         tests: add strftime-tests module
41706         * tests/test-strftime.c: New file.
41707         * modules/strftime-tests: New module.
41709 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
41711         strftime: don't assume a byte count fits in 'int'
41712         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
41713         found this problem by static analysis, using gcc -Wstrict-overflow
41714         (GCC 4.5.2, x86-64).  This reported an optimization that depended
41715         on an integer overflow having undefined behavior, but it turns out
41716         that the argument is a size, which might not fit in 'int' anyway,
41718 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
41720         stdio: don't require ignore_value around fwrite
41722         This patch works around libc bug 11959
41723         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
41724         Without this patch, applications must often write
41725         ignore_value (fwrite (...)) even though the ignore_value is
41726         not helpful here.  It's common to write many objects, using
41727         fwrite/printf/etc., and then use ferror to detect output error.
41729         I considered making this patch optional, but decided against it,
41730         because libc is obviously being inconsistent here: there is no
41731         reason libc should insist that user code must inspect fwrite
41732         return's value without also insisting that it inspect printf's,
41733         putchar's, etc.  If user code wants to have a strict style where
41734         all these functions' values are checked (so that ferror need not
41735         be checked), we could add support for that style in a new gnulib
41736         module, but in the meantime it's better to be consistent and to
41737         support common usage.
41739         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
41740         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
41741         that we are compiling in checking mode, and if not C++, and
41742         if not already wrapping fwrite for some other reason.
41743         (fwrite): #define to rpl_fwrite if the latter is defined.
41745 2011-03-20  Bruno Haible  <bruno@clisp.org>
41747         verror: Fix compilation error introduced on 2011-02-13.
41748         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
41749         instead of __attribute__.
41750         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41752 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
41753             Bruno Haible  <bruno@clisp.org>
41755         socklen: do not depend on sys_socket
41756         While trying to modify Emacs to use gnulib's socklen module,
41757         I discovered a circular dependency: socklen depends on sys_socket
41758         and vice versa.  Emacs can use socklen, but it does not need
41759         sys_socket because it has its own substitute for sys/socket.h.
41760         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
41761         gl_TYPE_SOCKLEN_T.
41762         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
41763         gl_PREREQ_SYS_H_SOCKET.
41764         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
41765         gl_PREREQ_SYS_H_SOCKET.
41766         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
41767         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
41768         * modules/socklen (Depends-on): Do not depend on sys_socket.
41769         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
41771 2011-03-20  Jim Meyering  <meyering@redhat.com>
41773         maint.mk: sort file names *after* new transformation
41774         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
41775         prefix would have led to an unwarranted failure in GNU parted.
41776         Sort after that transformation.
41778 2011-03-19  Jim Meyering  <meyering@redhat.com>
41780         maint.mk: fix po-file syntax-check rule
41781         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
41782         Patch by Bruno Haible.
41784 2011-03-19  Bruno Haible  <bruno@clisp.org>
41786         socklen: Update comment.
41787         * m4/socklen.m4: Update comment about platforms.
41789 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41790             Bruno Haible  <bruno@clisp.org>
41792         inet_ntop, inet_pton: Simplify.
41793         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
41794         documented to provide socklen_t and we already depend on sys_socket.
41795         * modules/inet_pton (Depends-on): Likewise.
41796         * lib/arpa_inet.in.h: Adjust comment.
41798 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41799             Bruno Haible  <bruno@clisp.org>
41801         netdb: Simplify.
41802         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
41803         documented to provide socklen_t and we already depend on sys_socket.
41804         * lib/netdb.in.h: Adjust comment.
41806 2011-03-19  Bruno Haible  <bruno@clisp.org>
41808         sys_socket, netdb: Document problem with socklen_t.
41809         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
41810         platforms.
41811         * doc/posix-headers/netdb.texi: Likewise.
41813 2011-03-18  Eric Blake  <eblake@redhat.com>
41815         maint.mk: let po check work in VPATH build
41816         * top/maint.mk (po_file): Allow cfg.mk override.
41817         (sc_po_check): Allow VPATH use.
41818         Reported by Jiri Denemark.
41820 2011-03-16  Jim Meyering  <meyering@redhat.com>
41822         maint.mk: allow fine-grained syntax-check exclusion via Make variables
41823         Before, you would have had to create one .x-sc_ file per rule in order
41824         to exempt offending files.  Now, you may instead use a Make variable --
41825         usually defined in cfg.mk -- whose name identifies the affected rule.
41826         * top/maint.mk (_sc_excl): Define.
41827         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
41828         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
41830 2011-03-13  Bruno Haible  <bruno@clisp.org>
41832         ignore-value tests: Avoid warnings.
41833         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
41834         empty for gcc < 3.4.
41836 2011-03-13  Bruno Haible  <bruno@clisp.org>
41838         passfd: Fix link error on Solaris.
41839         * modules/passfd (Description): Correct.
41840         (Depends-on): Add socketlib.
41841         (Link): New section.
41842         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
41844 2011-03-13  Bruno Haible  <bruno@clisp.org>
41846         passfd: Fix link error on AIX 5.2.
41847         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
41849 2011-03-13  Bruno Haible  <bruno@clisp.org>
41851         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
41852         * lib/sys_socket.in.h: Include <stddef.h>.
41853         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
41854         CMSG_FIRSTHDR. Remove unused variable.
41856 2011-03-13  Bruno Haible  <bruno@clisp.org>
41858         passfd: Fix compilation error on OpenBSD.
41859         * lib/passfd.c: Include <sys/uio.h>.
41861 2011-03-13  Bruno Haible  <bruno@clisp.org>
41863         passfd test: Fix warnings.
41864         * tests/test-passfd.c: Include <sys/wait.h>.
41865         (main): Fix typo.
41867 2011-03-13  Bruno Haible  <bruno@clisp.org>
41869         passfd module, part 4, tweaks.
41870         * tests/test-passfd.c: Reorder includes.
41871         (main): Fix perror and printf calls.
41873 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
41875         passfd module, part 4.
41876         * modules/passfd-tests: New file.
41877         * tests/test-passfd.c: New file.
41879 2011-03-13  Jim Meyering  <meyering@redhat.com>
41881         Makefile: rely on GNU make; derive syntax-check rule names
41882         Rather than requiring that each sc_ rule be listed as a dependent
41883         of "check", use features of GNU make to derive the list.
41884         * Makefile (syntax-check-rules): Define.
41885         (check): Depend on the new variable, not the hard-coded list.
41887 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
41888             Bruno Haible  <bruno@clisp.org>
41890         passfd module, part 3.
41891         * lib/passfd.h (recvfd): Add a flags argument.
41892         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
41893         (recvfd): Add a flags argument.
41894         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
41895         exists.
41896         * modules/passfd (Depends-on): Add cloexec.
41897         Suggested by Eric Blake.
41899 2011-03-13  Bruno Haible  <bruno@clisp.org>
41901         passfd module, part 2, tweaks.
41902         * modules/passfd (Files): Reorder.
41903         (Depends-on): Remove errno.
41904         (Include): Remove <sys/socket.h>, <sys/un.h>.
41905         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
41906         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
41907         specification header. Include <sys/socket.h> always. Don't include
41908         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
41909         (sendfd): Clarify that it sets errno when it fails.
41910         (recvfd): Fix specification.
41912 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
41914         passfd module, part 2.
41915         * modules/passfd: New file.
41916         * lib/passfd.h: New file.
41917         * lib/passfd.c: New file.
41919 2011-03-12  Bruno Haible  <bruno@clisp.org>
41921         wcswidth, mbswidth: Avoid integer overflow.
41922         * lib/wcswidth.c: Include <limits.h>.
41923         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
41924         * lib/mbswidth.c: Include <limits.h>.
41925         (mbsnwidth): Avoid 'int' overflow.
41926         Reported by Jim Meyering.
41928 2011-03-12  Bruno Haible  <bruno@clisp.org>
41930         futimens, utimensat: Avoid endless recursion on Solaris 10.
41931         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
41932         Solaris.
41933         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
41934         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
41936 2011-03-11  Jim Meyering  <meyering@redhat.com>
41938         maint.mk: relax a regexp to accommodate other formatting styles
41939         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
41940         between "ngettext" and the following "(".
41942 2011-03-11  Pádraig Brady  <P@draigBrady.com>
41944         maint.mk: suppress a false positive warning
41945         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
41946         diagnostics are marked with ngettext.
41948 2011-03-10  Eric Blake  <eblake@redhat.com>
41950         wchar: add explicit dependencies, for Tru64
41951         * modules/mbmemcasecoll (Depends-on): Add wchar.
41952         * modules/mbtowc (Depends-on): Likewise.
41953         * modules/vasnprintf (Depends-on): Likewise.
41954         * modules/unistdio/u-printf-args (Depends-on): Likewise.
41955         * modules/wctomb (Depends-on): Likewise.
41956         Reported by Peter O'Gorman.
41958 2011-03-08  Bruno Haible  <bruno@clisp.org>
41960         passfd module, part 1, tweaks.
41961         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
41962         Improve indentation. Improve AC_MSG_CHECKING messages.
41963         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
41964         gl_SOCKET_FAMILIES.
41966 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
41968         passfd module, part 1.
41969         * m4/afunix.m4: New file.
41970         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
41971         sockets.
41973 2011-03-08  Bruno Haible  <bruno@clisp.org>
41975         regex-quote: New API.
41976         * lib/regex-quote.h: Include <stdbool.h>.
41977         (struct regex_quote_spec): New type.
41978         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
41979         New declarations.
41980         (regex_quote_length, regex_quote_copy, regex_quote): Take a
41981         'const struct regex_quote_spec *' argument.
41982         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
41983         (pcre_special): New constant.
41984         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
41985         New functions.
41986         (regex_quote_length, regex_quote_copy, regex_quote): Take a
41987         'const struct regex_quote_spec *' argument.
41988         * modules/regex-quote (Depends-on): Add stdbool.
41989         * tests/test-regex-quote.c (check): Update for new API. Add test for
41990         anchored results.
41991         * NEWS: Mention the API change.
41992         Reported by Reuben Thomas and Eric Blake.
41994 2011-03-06  Bruno Haible  <bruno@clisp.org>
41996         regex-quote: Fix creation of POSIX extended regular expressions.
41997         * lib/regex-quote.c (ere_special): Add grouping and alternation
41998         operators.
42000 2011-03-05  Bruno Haible  <bruno@clisp.org>
42002         doc: Improve doc regarding autopoint vs. gnulib.
42003         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
42004         disable autopoint while running autoreconf.
42005         Suggested by Ralf Wildenhues.
42007 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42009         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
42010         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
42012 2011-03-03  Bruce Korb  <bkorb@gnu.org>
42014         parse-duration: remove xalloc.h dependency
42015         * lib/parse-duration.c (parse_period): handle NULL return from
42016         strdup instead of calling xstrdup().
42017         * modules/parse-duration: remove "xalloc" dependency
42019 2011-03-03  Matthew Booth  <mbooth@redhat.com>
42021         bootstrap: honor m4_base when running aclocal
42022         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
42024 2011-03-02  Jim Meyering  <meyering@redhat.com>
42026         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
42027         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
42028         on request from Matt Booth.
42030 2011-03-01  Eric Blake  <eblake@redhat.com>
42032         test-link: work on Hurd
42033         * tests/test-link.h (test_link): Hurd rejects linking directories
42034         with EISDIR instead of the POSIX-mandated EPERM.
42036 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
42038         stdio: simplify by moving files to printf-posix, sigpipe
42039         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
42040         since this symbol is needed only if printf is replaced.
42041         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
42042         Require gl_ASM_SYMBOL_PREFIX.
42043         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
42044         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
42045         (Depends-on): Add 'raise'.
42046         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
42047         * modules/stdio (Files): Remove lib/stdio-write.c,
42048         m4/asm-underscore.m4.
42049         (Depends-on): Remove 'raise'.
42051         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
42052         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
42053         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
42054         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
42056 2011-02-28  Bruno Haible  <bruno@clisp.org>
42058         localcharset: Assume ANSI C behaviour of free().
42059         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
42060         calling free().
42061         Suggested by Simon Josefsson <simon@josefsson.org>.
42063 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
42064             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
42065             Bruno Haible  <bruno@clisp.org>  (tiny change)
42067         On Cygwin, use /proc file system instead of win32 API.
42068         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
42069         Win32 file names.
42070         (DllMain): Simplify by removing Cygwin specific code.
42071         (find_shared_library_fullname): Use Linux specific implementation also
42072         for Cygwin.
42073         (get_shared_library_fullname): Update accordingly.
42074         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
42075         Win32 file names.
42076         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
42077         Cygwin specific code.
42079 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
42080             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
42082         Fix OpenMP flag detection for various Fortran compilers.
42083         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
42084         OpenMP-conditional compilation construct, to force compile
42085         failure with missing OpenMP flag.
42086         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
42088 2011-02-25  Eric Blake  <eblake@redhat.com>
42090         strstr: expand test coverage
42091         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
42092         compilation.
42093         * tests/test-memmem.c (main): Duplicate tests.
42094         * tests/test-strcasestr.c (main): Likewise.
42095         * tests/test-c-strcasestr.c (main): Likewise.
42097 2011-02-25  Jim Meyering  <meyering@redhat.com>
42099         maint.mk: detect missing-NL-at-EOF, too
42100         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
42101         it also detects when a file lacks a newline at EOF.
42102         (require_exactly_one_NL_at_EOF_): Renamed from
42103         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
42104         since people may well have .x-sc_... file names tied to the
42105         existing name.  Suggested by Eric Blake.
42107 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42109         dirname: move m4/dos.m4 functionality into lib/dosname.h
42111         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
42112         extracts symbols from it, puts them into config.h; but it's much
42113         easier to use the symbols directly.  filename.h already does this,
42114         but it disagrees with dos.m4 in some respects.  This patch
42115         introduces a different include file dosname.h that packages up
42116         dos.m4, and then later we can work on merging filename.h and
42117         dosname.h.  Applications that need only the easy-to-configure
42118         symbols should consider including dosname.h rather than dirname.h.
42119         * NEWS: Mention incompatible changes.
42120         * m4/dos.m4: Remove.
42121         * lib/dosname.h, modules/dosname: New files.
42122         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
42123         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
42124         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
42125         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
42126         Include dosname.h, not dirname.h.
42127         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
42128         Include dosname.h, for definitions of symbols like ISSLASH
42129         that used to be in config.h.
42130         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
42131         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42132         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42133         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42134         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
42135         * modules/rmdir (Files): Likewise.
42136         * modules/stat (Files): Likewise.
42137         * modules/unlink (Files): Likewise.
42138         * modules/dirname-lgpl (Depends-on): Add dosname.
42139         * modules/lstat (Depends-on): Likewise.
42140         * modules/openat (Depends-on): Likewise.
42141         * modules/rmdir (Depends-on): Likewise.
42142         * modules/savewd (Depends-on): Likewise.
42143         * modules/stat (Depends-on): Likewise.
42144         * modules/unlink (Depends-on): Likewise.
42145         * modules/openat (Depends-on): Remove dirname-lgpl.
42146         * modules/savewd (Depends-on): Likewise.
42147         * tests/test-dirname.c: Do not use removed symbols like
42148         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
42149         the remaining symbols, e.g., ISSLASH ('\\').
42151 2011-02-25  Eric Blake  <eblake@redhat.com>
42153         strstr: revert patches that introduced bug and pessimization
42154         * lib/str-two-way.h: Add another reference.
42155         (two_way_short_needle, two_way_long_needle): Revert changes from
42156         2011-02-24; they pessimize search speed.
42157         (critical_factorization): Partially revert changes from
42158         2010-06-22; they violate the requirement that the left half of the
42159         needle be smaller than the period of the needle.
42161 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42163         filenamecat: remove unnecessary dependency on dirname-lgpl
42164         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
42165         is no direct dependency, just an indirect one via filenamecat-lgpl.
42167         remove: remove unnecessary use of m4/dos.m4
42168         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
42169         * modules/remove (FILES): Remove m4/dos.m4.
42171         * lib/openat-proc.c: Don't include dirname.h; not needed.
42173         backupfile: remove unnecessary use of m4/dos.m4
42174         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
42175         of its symbols are used by the backupfile code.  backupfile.c does
42176         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
42177         for the rare case of programs that want all their backup file
42178         names to live within 8+3 limits, and dos.m4 doesn't address that.
42179         * modules/backupfile (Files): Remove m4/dos.m4.
42181 2011-02-24  Jim Meyering  <meyering@redhat.com>
42183         strstr: fix a bug whereby strstr would mistakenly return NULL
42184         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
42185         in period calculation.
42186         (two_way_long_needle): Likewise.
42187         The original problem was reported by Mike Stump in
42188         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
42189         Ralf Wildenhues provided the short needle and haystack.
42190         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
42191         Add a more involved test to trigger the bug in two_way_long_needle.
42193 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42195         gnulib-tool: remove use of bold display in help screen
42196         * gnulib-tool (func_usage): Do not use bold display anymore in the
42197         help screen.  That was just meant to be a temporary emphasis for a
42198         backward-incompatible change.
42200 2011-02-23  Bruno Haible  <bruno@clisp.org>
42202         Fix misindentation of preprocessor directives.
42203         * lib/argp-namefrob.h: Reindent preprocessor directives.
42204         * lib/getopt_int.h (struct _getopt_data): Likewise.
42205         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
42206         * lib/vasnprintf.c (decode_long_double): Likewise.
42207         * tests/test-argmatch.c: Insert blank lines, for clarity.
42208         * tests/test-exclude.c: Likewise.
42210 2011-02-22  Bruno Haible  <bruno@clisp.org>
42212         ioctl: Fix for MacOS X in 64-bit mode.
42213         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
42214         value.
42215         Suggested by Eric Blake.
42216         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
42218 2011-02-22  Jim Meyering  <meyering@redhat.com>
42220         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
42221         * Makefile (sc_cpp_indent_check): Don't limit the check to files
42222         in lib/.
42224 2011-02-22  Eric Blake  <eblake@redhat.com>
42226         maint: avoid any CDPATH issue
42227         * Makefile (sc_cpp_indent_check): Anchor cd argument.
42229         maint: adjust cpp indentation for my modules, as well
42230         * Makefile (sc_cpp_indent_check): Add my name.
42231         * lib/fbufmode.c: Filter through cppi.
42232         * lib/fpurge.c: Likewise.
42233         * lib/freadable.c: Likewise.
42234         * lib/freading.c: Likewise.
42235         * lib/fwritable.c: Likewise.
42236         * lib/fwriting.c: Likewise.
42237         * lib/sigaction.c: Likewise.
42239 2011-02-22  Jim Meyering  <meyering@redhat.com>
42241         maint: adjust cpp indentation to reflect nesting depth
42242         I.e., in a block of code that begins with an unnested "#if",
42243         put one space between the "#" in column 1 and following token.
42244         For example,
42245         -#include <sys/vfs.h>
42246         +# include <sys/vfs.h>
42247         Do this only in .c files that are part of a module I maintain.
42248         * lib/linkat.c: Filter through cppi.
42249         * lib/nanosleep.c: Likewise.
42250         * lib/openat.c: Likewise.
42251         * lib/openat-die.c: Likewise.
42252         * lib/dup3.c: Likewise.
42253         * lib/fchownat.c: Likewise.
42254         * lib/flock.c: Likewise.
42255         * lib/fsync.c: Likewise.
42256         * lib/fts.c: Likewise.
42257         * lib/getpass.c: Likewise.
42258         * lib/gettimeofday.c: Likewise.
42259         * lib/userspec.c: Likewise.
42260         * Makefile (sc_cpp_indent_check): New rule, to check this.
42262 2011-02-22  Bruno Haible  <bruno@clisp.org>
42264         New module 'wctomb'.
42265         * lib/stdlib.in.h (wctomb): New declaration.
42266         * lib/wctomb.c: New file.
42267         * lib/wctomb-impl.h: New file.
42268         * m4/wctomb.m4: New file.
42269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
42270         REPLACE_WCTOMB.
42271         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
42272         REPLACE_WCTOMB.
42273         * modules/wctomb: New file.
42274         * tests/test-stdlib-c++.cc: Test signature of wctomb.
42275         * doc/posix-functions/wctomb.texi: Mention the new module.
42276         * modules/wctob (Depends-on): Add wctomb.
42278 2011-02-22  Bruno Haible  <bruno@clisp.org>
42280         New module 'mbtowc'.
42281         * lib/stdlib.in.h (mbtowc): New declaration.
42282         * lib/mbtowc.c: New file.
42283         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
42284         * m4/mbtowc.m4: New file.
42285         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
42286         REPLACE_MBTOWC.
42287         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
42288         REPLACE_MBTOWC.
42289         * modules/mbtowc: New file.
42290         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
42291         * doc/posix-functions/mbtowc.texi: Mention the new module.
42292         * modules/btowc (Depends-on): Add mbtowc.
42294 2011-02-22  Bruno Haible  <bruno@clisp.org>
42296         wcrtomb: Add more tests for native Windows platforms.
42297         * tests/test-wcrtomb-w32-1.sh: New file.
42298         * tests/test-wcrtomb-w32-2.sh: New file.
42299         * tests/test-wcrtomb-w32-3.sh: New file.
42300         * tests/test-wcrtomb-w32-4.sh: New file.
42301         * tests/test-wcrtomb-w32-5.sh: New file.
42302         * tests/test-wcrtomb-w32.c: New file.
42303         * modules/wcrtomb-tests (Files): Add them.
42304         (Makefile.am): Arrange to run these tests.
42305         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
42306         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
42308 2011-02-20  Bruno Haible  <bruno@clisp.org>
42310         wcrtomb: Enhance test.
42311         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
42313 2011-02-20  Bruno Haible  <bruno@clisp.org>
42315         mbrtowc: Tiny optimization.
42316         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
42318 2011-02-20  Jim Meyering  <meyering@redhat.com>
42320         test-exclude.c: remove unmatched #endif
42321         * tests/test-exclude.c: Remove stray #endif, left over from
42322         the change of a week ago.
42324 2011-02-19  Jim Meyering  <meyering@redhat.com>
42326         git-version-gen: skip "-dirty" check when appropriate
42327         * build-aux/git-version-gen: Don't run any git commands when the
42328         version string comes from .tarball-version.  Prior to this, we
42329         would run git update-index --refresh even from a just-unpacked
42330         tarball directory, and that could affect a .git/ directory in a
42331         parent of the build directory.  Reported by Mike Frysinger.
42333 2011-02-19  Bruno Haible  <bruno@clisp.org>
42335         unictype/property-byname: Reduce the size of the 'data' segment.
42336         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
42338 2011-02-19  Bruno Haible  <bruno@clisp.org>
42340         unictype/scripts: Reduce the size of the 'data' segment.
42341         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
42342         '%pic'.
42343         * lib/unictype/scripts_byname.gperf: Regenerated.
42345 2011-02-19  Bruno Haible  <bruno@clisp.org>
42347         stdint: Update documentation.
42348         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
42350 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
42352         stdint: omit redundant check for wchar.h
42353         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
42354         always tests whether wchar.h exists, so remove the now-redundant test.
42356 2011-02-18  Bruno Haible  <bruno@clisp.org>
42358         stdint: Cut dependency to module 'wchar'.
42359         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
42360         include the necessary prerequisites.
42361         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
42362         * modules/stdint (Depends-on): Remove wchar.
42363         (Makefile.am): Substitute HAVE_WCHAR_H.
42364         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
42366 2011-02-18  Eric Blake  <eblake@redhat.com>
42368         longlong: skip, rather than fail, on cross-compilation
42369         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
42370         when cross-compiling; regression from 2011-02-16.
42372 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42374         * NEWS: Mention 2011-02-08 change to stdlib.
42376 2011-02-17  Bruno Haible  <bruno@clisp.org>
42378         getloadavg: Add comments about platforms.
42379         * m4/getloadavg.m4: Add comment.
42380         * lib/getloadavg.c: Likewise.
42382 2011-02-17  Bruno Haible  <bruno@clisp.org>
42384         getloadavg: Fix link error on Solaris 2.6.
42385         * modules/getloadavg (Link): New section.
42386         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
42387         linking test-getloadavg.
42388         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
42389         getloadavg.
42391 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
42393         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
42394         It was 'int', but this doesn't match the IRIX 6.5 manual.
42395         Suggested by Bruno Haible in
42396         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
42398 2011-02-17  Bruno Haible  <bruno@clisp.org>
42400         havelib: Fix comments.
42401         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
42402         change.
42404 2011-02-17  Bruno Haible  <bruno@clisp.org>
42406         havelib: Update config.rpath.
42407         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
42409 2011-02-17  Bruno Haible  <bruno@clisp.org>
42411         getloadavg test: Add some plausibility checks.
42412         * tests/test-getloadavg.c (check_avg): Print a warning when the value
42413         is improbable.
42415 2011-02-16  Eric Blake  <eblake@redhat.com>
42417         maintainer-makefile: make syntax-check a no-op from tarballs
42418         * top/maint.mk (no-vc-detected): New rule.
42419         (local-checks-available): Use it to avoid hanging if someone tries
42420         'make syntax-check' from a tarball.  Also append to any non-syntax
42421         checks already defined in cfg.mk.
42423 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
42425         longlong: tune, particularly for common case of c99
42427         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
42428         or running anything if c99, or if unsigned long long int does not
42429         work.  In either case, we know the answer without further tests.
42430         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
42431         it at most once, and use its results for both long long int and
42432         unsigned long long int.  This is more likely to be efficient in
42433         the common case where the program wants to check for both long
42434         long int and unsigned long long int.
42435         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
42436         since the answer is already known.
42438 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
42440         getloadavg: set errno
42441         * lib/getloadavg.c: Set errno when returning -1.  If no other
42442         error number looks appropriate, set it to ENOSYS if the getloadavg
42443         looks like it can't possibly ever work, ENOTSUP otherwise.
42444         Suggested by Bruno Haible in
42445         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
42447         getloadavg: trim unused parts and speed up 'configure'
42448         * NEWS: Document this.
42449         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
42450         always compiled if getloadavg is absent.
42451         Move test code to ...
42452         * tests/test-getloadavg.c: New file, containing previous
42453         contents of test from lib/getloadavg.c.  It also contains
42454         suggestions by Bruno Haible in
42455         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
42456         * modules/getloadavg-tests: New file.
42457         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
42458         Do tests in the same order as they're needed for getloadavg.c.
42459         Omit setgid-related tests that generate symbols KMEM_GROUP,
42460         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
42461         Do only the tests that are needed to see whether the system has
42462         getloadavg, moving the other tests into ...
42463         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
42464         NLIST_NAME_UNION; nobody should be using it.  Do not define
42465         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
42466         relevant, as the user of this module shouldn't care how getloadavg
42467         is implemented.
42469         getloadavg: omit unused var
42470         * lib/getloadavg.c (getloadavg): Omit unused local variable.
42472 2011-02-15  Jim Meyering  <meyering@redhat.com>
42474         doc: update users.txt
42475         * users.txt: Update iwhd's URL.
42477 2011-02-13  Bruno Haible  <bruno@clisp.org>
42479         Consistent macro naming for macros that use GCC __attribute__.
42480         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
42481         _ATTRIBUTE_NONNULL_.
42482         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
42483         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
42484         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
42485         ATTRIBUTE_DEPRECATED.
42486         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
42487         ATTRIBUTE_NORETURN.
42488         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42489         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42490         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42491         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
42492         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
42493         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
42494         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
42495         ATTRIBUTE_SENTINEL.
42496         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
42497         ATTRIBUTE_RETURN_CHECK.
42498         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
42499         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
42500         ATTRIBUTE_NORETURN.
42501         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
42502         Reported by Paul Eggert.
42504 2011-02-13  Bruno Haible  <bruno@clisp.org>
42506         Don't interfere with a program's definition of __attribute__.
42507         * lib/argp.h (__attribute__): Remove definition.
42508         (_GL_ATTRIBUTE_FORMAT): New macro.
42509         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
42510         * lib/argp-fmtstream.h (__attribute__): Remove definition.
42511         (_GL_ATTRIBUTE_FORMAT): New macro.
42512         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
42513         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
42514         GCC 3 or newer.
42515         * lib/error.h (__attribute__): Remove definition.
42516         (_GL_ATTRIBUTE_FORMAT): New macro.
42517         (error, error_at_line): Use it.
42518         * lib/hash.h (__attribute__): Remove definition.
42519         (ATTRIBUTE_WUR): Update definition. Define always.
42520         * lib/openat.h (__attribute__): Remove definition.
42521         (ATTRIBUTE_NORETURN): Update definition. Define always.
42522         * lib/sigpipe-die.h (__attribute__): Remove definition.
42523         (ATTRIBUTE_NORETURN): Update definition. Define always.
42524         * lib/vasnprintf.h (__attribute__): Remove definition.
42525         (_GL_ATTRIBUTE_FORMAT): New macro.
42526         (asnprintf, vasnprintf): Use it.
42527         * lib/xalloc.h (__attribute__): Remove definition.
42528         (ATTRIBUTE_NORETURN): Update definition. Define always.
42529         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
42530         * lib/xmemdup0.h (__attribute__): Remove definition.
42531         (ATTRIBUTE_NORETURN): Update definition. Define always.
42532         * lib/xprintf.h (__attribute__): Remove definition.
42533         (_GL_ATTRIBUTE_FORMAT): New macro.
42534         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
42535         * lib/xstrtol.h (__attribute__): Remove definition.
42536         (ATTRIBUTE_NORETURN): Update definition. Define always.
42537         * lib/xvasprintf.h (__attribute__): Remove definition.
42538         (_GL_ATTRIBUTE_FORMAT): New macro.
42539         (xasprintf, xvasprintf): Use it.
42540         * tests/test-argmatch.c (__attribute__): Remove definition.
42541         (ATTRIBUTE_NORETURN): Update definition. Define always.
42542         * tests/test-exclude.c (__attribute__): Remove definition.
42543         (ATTRIBUTE_NORETURN): Update definition. Define always.
42544         Reported by Paul Eggert.
42546 2011-02-13  Bruno Haible  <bruno@clisp.org>
42548         mbrtowc: Add more tests for native Windows platforms.
42549         * tests/test-mbrtowc-w32-1.sh: New file.
42550         * tests/test-mbrtowc-w32-2.sh: New file.
42551         * tests/test-mbrtowc-w32-3.sh: New file.
42552         * tests/test-mbrtowc-w32-4.sh: New file.
42553         * tests/test-mbrtowc-w32-5.sh: New file.
42554         * tests/test-mbrtowc-w32.c: New file.
42555         * modules/mbrtowc-tests (Files): Add them.
42556         (Makefile.am): Arrange to run these tests.
42557         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
42558         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
42560 2011-02-13  Bruno Haible  <bruno@clisp.org>
42562         mbrtowc: Work around native Windows bug.
42563         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
42564         guess when no suitable locale for testing was found.
42565         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
42567 2011-02-13  Bruno Haible  <bruno@clisp.org>
42569         mbsinit: Work around mingw bug.
42570         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
42571         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
42572         Windows.
42573         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
42575 2011-02-13  Bruno Haible  <bruno@clisp.org>
42577         mbsinit: Don't crash for a NULL argument.
42578         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
42579         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
42581 2011-02-13  Bruno Haible  <bruno@clisp.org>
42583         Don't interfere with a program's definition of __attribute__.
42584         * lib/stdio.in.h (__attribute__): Remove definition.
42585         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
42586         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
42587         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
42588         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
42589         * lib/string.in.h (__attribute__): Remove definition.
42590         Reported by Paul Eggert.
42592 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42594         stdlib: don't get in the way of non-GCC __attribute__
42595         See thread starting at
42596         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
42597         Revert previous stdlib change, installing the following instead:
42598         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
42599         to get in the way of a non-GCC compiler that supports __attribute__.
42600         (_GL_ATTRIBUTE_RETURN): New macro.
42601         (_Exit): Use it instead of __attribute__.
42603 2011-02-12  Bruno Haible  <bruno@clisp.org>
42605         quotearg test: Avoid test failure on mingw.
42606         * tests/test-quotearg.sh: Convert the locale identifier from native
42607         Windows syntax to Unix syntax.
42609 2011-02-12  Bruno Haible  <bruno@clisp.org>
42611         setlocale: Prefer gnulib's override over libintl's override.
42612         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
42613         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
42614         GNULIB_defined_setlocale is set.
42616 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42618         stdlib: support non-GCC __attribute__
42620         Fix a serious and tricky problem encountered when attempting to
42621         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
42622         5.5, but it crashed due to memory corruption on Solaris 10 with
42623         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
42624         bits that are otherwise zero.  This tagging is optional inside
42625         Emacs but is preferred and is used when __attribute__ ((__aligned
42626         (8))) works, as it does with both recent-enough GCC and with Sun C
42627         5.11.  However, Sun C 5.11 is not GCC and does not #define
42628         __GNUC__ and __GNUC_MINOR__.
42630         When I added the getloadavg module to Emacs, it brought in
42631         stdlib.in.h, which contained this fragment:
42633            #ifndef __attribute__
42634            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
42635            #  define __attribute__(Spec)   /* empty */
42636            # endif
42637            #endif
42639         When files that include <stdlib.h> were compiled with Sun C 5.11,
42640         the above code disabled __attribute__ ((__aligned (8))), which
42641         caused variables to not be properly aligned, which eventually led
42642         to the pointer corruption mentioned above.  (This was a bit hard
42643         to diagnose, unfortunately.)
42645         Several "#define __attribute__(X) /* empty */" code snippets need
42646         to be eradicated from Gnulib to work with non-GCC compilers that
42647         support __attribute__.  The Autoconf way to do this is to test for
42648         each kind of attribute that we want support for, and selectively
42649         enable that in source code.
42651         Fix this problem just for stdlib.h, by adding a test for the
42652         __noreturn__ attribute, and change stdlib.in.h to use that test
42653         when needed.  This technique can be easily generalized to the
42654         other *.in.h files and attributes, and a similar technique can be
42655         used for *.h and *.c files.  This patch is enough to solve the
42656         problem for Emacs + getloadavg, and I thought I'd publish it for
42657         feedback before undertaking further, similar fixes in other
42658         modules.
42660         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
42661         because it's not needed for stdlib.h.  It merely substitutes the
42662         value directly into stdlib.h.  We may well need to #define it, or
42663         similar symbols, for other modules, but it's nice to also have an
42664         option to not #define it for applications like Emacs that do not
42665         need it.
42667         * lib/stdlib.in.h (__attribute__): Do not #define.
42668         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
42669         be defined only if the _Exit module is also used.
42670         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
42671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
42672         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
42673         platforms.
42674         * modules/_Exit (Files): Add m4/attribute.m4.
42675         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
42676         * m4/attribute.m4: New file.
42678 2011-02-12  Bruno Haible  <bruno@clisp.org>
42680         wcsrtombs: Work around bug on native Windows.
42681         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
42682         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
42683         instead of len.
42684         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
42686 2011-02-12  Bruno Haible  <bruno@clisp.org>
42688         mbsrtowcs: Work around bug on native Windows.
42689         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
42690         against mingw bug.
42691         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
42693 2011-02-12  Bruno Haible  <bruno@clisp.org>
42695         Avoid setlocale bugs in tests.
42696         * modules/btowc (Dependencies): Add setlocale.
42697         * modules/c-strcase (Dependencies): Likewise.
42698         * modules/mbmemcasecmp (Dependencies): Likewise.
42699         * modules/mbmemcasecoll (Dependencies): Likewise.
42700         * modules/mbrtowc (Dependencies): Likewise.
42701         * modules/mbscasecmp (Dependencies): Likewise.
42702         * modules/mbscasestr (Dependencies): Likewise.
42703         * modules/mbschr (Dependencies): Likewise.
42704         * modules/mbscspn (Dependencies): Likewise.
42705         * modules/mbsinit (Dependencies): Likewise.
42706         * modules/mbsncasecmp (Dependencies): Likewise.
42707         * modules/mbsnrtowcs (Dependencies): Likewise.
42708         * modules/mbspbrk (Dependencies): Likewise.
42709         * modules/mbspcasecmp (Dependencies): Likewise.
42710         * modules/mbsrchr (Dependencies): Likewise.
42711         * modules/mbsrtowcs (Dependencies): Likewise.
42712         * modules/mbsspn (Dependencies): Likewise.
42713         * modules/mbsstr (Dependencies): Likewise.
42714         * modules/nl_langinfo (Dependencies): Likewise.
42715         * modules/quotearg (Dependencies): Likewise.
42716         * modules/unicase/locale-language (Dependencies): Likewise.
42717         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
42718         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
42719         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
42720         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
42721         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
42722         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
42723         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
42724         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
42725         * modules/vasnprintf-posix (Dependencies): Likewise.
42726         * modules/wcrtomb (Dependencies): Likewise.
42727         * modules/wcsnrtombs (Dependencies): Likewise.
42728         * modules/wcsrtombs (Dependencies): Likewise.
42730 2011-02-12  Bruno Haible  <bruno@clisp.org>
42732         setlocale: Workaround native Windows bug.
42733         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
42734         succeeds but sets LC_CTYPE to "C", report a failure.
42735         * tests/test-setlocale2.sh: New file.
42736         * tests/test-setlocale2.c: New file.
42737         * modules/setlocale-tests (Files): Add the new files.
42738         (Makefile.am): Enable test-setlocale2.sh test.
42739         * doc/posix-functions/setlocale.texi: Mention workaround.
42741 2011-02-11  Bruno Haible  <bruno@clisp.org>
42743         Tests for module 'setlocale'.
42744         * modules/setlocale-tests: New file.
42745         * tests/test-setlocale1.sh: New file.
42746         * tests/test-setlocale1.c: New file.
42748         New module 'setlocale'.
42749         * lib/locale.in.h (setlocale): New declaration.
42750         * lib/setlocale.c: New file, based on
42751         gettext/gettext-runtime/intl/setlocale.c.
42752         * m4/setlocale.m4: New file.
42753         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
42754         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
42755         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
42756         REPLACE_SETLOCALE.
42757         * modules/setlocale: New file.
42758         * tests/test-locale-c++.cc: Test the declaration of setlocale.
42759         * doc/posix-functions/setlocale.texi: Mention the new module.
42761 2011-02-11  Bruno Haible  <bruno@clisp.org>
42763         Prepare for locale dependent tests on mingw.
42764         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
42765         because it has the wrong locale encoding.
42766         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
42767         French_France.1252 instead of "fr".
42768         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
42769         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
42770         because it has the wrong locale encoding.
42771         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
42772         native Windows, try Turkish_Turkey.65001.
42773         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
42774         Chinese_China.54936.
42776         Prepare for locale dependent tests on mingw.
42777         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
42778         differently.
42779         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
42780         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
42781         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42782         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42784 2011-02-11  Eric Blake  <eblake@redhat.com>
42786         strptime: avoid compiler warnings
42787         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
42788         compiler warnings about dead code.
42789         Reported by Daniel P. Berrange.
42791 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
42793         doc: update users.txt
42794         * users.txt: Add rcs.
42796 2011-02-10  John W. Eaton  <jwe@gnu.org>
42798         doc: update users.txt
42799         * users.txt: Add octave.
42801 2011-02-10  Jim Meyering  <meyering@redhat.com>
42803         doc: update users.txt
42804         * users.txt: Add iwhd.
42806 2011-02-09  Bruno Haible  <bruno@clisp.org>
42808         gnulib-tool: Make copyright notice adjustment more robust.
42809         * gnulib-tool (func_import): In sed_transform_main_lib_file,
42810         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
42811         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
42812         License".
42813         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
42815 2011-02-06  Bruno Haible  <bruno@clisp.org>
42817         New module 'towctrans'.
42818         * modules/towctrans: New file.
42819         * lib/wctype.in.h (towctrans): New declaration.
42820         * lib/towctrans.c: New file.
42821         * lib/towctrans-impl.h: New file.
42822         * m4/towctrans.m4: New file.
42823         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
42824         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
42825         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
42826         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
42827         * doc/posix-functions/towctrans.texi: Mention the new module.
42829 2011-02-06  Bruno Haible  <bruno@clisp.org>
42831         New module 'wctrans'.
42832         * modules/wctrans: New file.
42833         * lib/wctype.in.h (wctrans): New declaration.
42834         * lib/wctrans.c: New file.
42835         * lib/wctrans-impl.h: New file.
42836         * m4/wctrans.m4: New file.
42837         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
42838         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
42839         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
42840         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
42841         * doc/posix-functions/wctrans.texi: Mention the new module.
42843 2011-02-06  Bruno Haible  <bruno@clisp.org>
42845         New module 'iswctype'.
42846         * modules/iswctype: New file.
42847         * lib/wctype.in.h (iswctype): New declaration.
42848         * lib/iswctype.c: New file.
42849         * lib/iswctype-impl.h: New file.
42850         * m4/iswctype.m4: New file.
42851         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
42852         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
42853         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
42854         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
42855         * doc/posix-functions/iswctype.texi: Mention the new module and the
42856         HP-UX 11.00 problem.
42858 2011-02-06  Bruno Haible  <bruno@clisp.org>
42860         New module 'wctype'.
42861         * modules/wctype: Change to represent the wctype() substitute.
42862         * lib/wctype.in.h (wctype): New declaration.
42863         * lib/wctype.c: New file.
42864         * lib/wctype-impl.h: New file.
42865         * m4/wctype.m4: New file.
42866         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
42867         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
42868         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
42869         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
42870         * doc/posix-functions/wctype.texi: Mention the new module and the
42871         HP-UX 11.00 problem.
42873 2011-02-06  Bruno Haible  <bruno@clisp.org>
42875         wctype-h: Ensure wctype_t and wctrans_t are defined.
42876         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
42877         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
42878         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
42879         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
42880         HAVE_WCTRANS_T.
42881         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
42883 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
42885         flock: fix license typo
42887         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
42888         omitted.
42890 2011-02-08  Bruno Haible  <bruno@clisp.org>
42892         Split large sed scripts, for HP-UX sed.
42893         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
42894         to avoid HP-UX limit of 99 commands, in the near future.
42895         * modules/stdlib (Makefile.am): Likewise.
42896         * modules/unistd (Makefile.am): Likewise.
42897         * modules/wchar (Makefile.am): Likewise.
42898         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42899         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
42900         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
42902 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
42903             Bruno Haible  <bruno@clisp.org>
42905         stdlib: improve random_r modularization
42906         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
42907         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
42908         you also need the random_r module to get this material right.
42909         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
42910         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
42911         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
42913 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
42915         stdlib: don't depend on stdint
42916         * lib/stdlib.in.h: Don't include <stdint.h> merely because
42917         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
42918         be independent of whether stdint.h is needed.
42919         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
42920         here, instead of ...
42921         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
42922         struct random_data should be using the random_r module, not just
42923         the stdlib module (which wouldn't make sense: what package needs
42924         just struct random_data without also needing random_r?).
42925         * modules/stdlib (Depends-on): Remove stdint.
42927         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
42928         See the thread rooted at
42929         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
42930         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
42931         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
42932         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
42933         __VMS)); previously it was always included (via fcntl--.h).
42934         (getloadavg): Do not use c_strtod.  Instead, approximate it by
42935         hand; this is good enough for load averages.  Also, do not use
42936         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
42937         flags directly if available and don't bother otherwise.  (Packages
42938         that need the extra reliability should use the modules that define
42939         these flags on older platforms that lack them.)
42940         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
42941         fcntl-safer.
42943 2011-02-08  Jim Meyering  <meyering@redhat.com>
42945         di-set.h, ino-map.h: add multiple-inclusion guard
42946         Technically, the guard is required only for ino-map.h, due to its
42947         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
42948         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
42949         * lib/ino-map.h: Likewise.
42951 2011-02-06  Bruno Haible  <bruno@clisp.org>
42953         iswblank: Ensure declaration on glibc systems.
42954         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
42955         * modules/iswblank (Dependencies): Add 'extensions'.
42956         * doc/posix-functions/iswblank.texi: Document the glibc problem.
42958 2011-02-06  Bruno Haible  <bruno@clisp.org>
42960         New module 'iswblank'.
42961         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
42962         * modules/iswblank: New file.
42963         * modules/wctype-h (Files): Remove lib/iswblank.c.
42964         (Makefile.am): Substitute GNULIB_ISWBLANK.
42965         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
42966         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
42967         (gl_WCTYPE_H_DEFAULTS): New macro.
42968         (gl_WCTYPE_H): Require it. Remove iswblank related code.
42969         * modules/iswblank-tests: New file.
42970         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
42971         * tests/test-wctype-h.c (main): Remove iswblank tests.
42972         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
42973         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
42974         of 'wctype-h'.
42975         * NEWS: Mention the change.
42976         * modules/mbchar (Depends-on): Add iswblank.
42978 2011-02-08  Bruno Haible  <bruno@clisp.org>
42980         di-set tests: Refactor.
42981         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
42982         unnecessary includes.
42983         (ASSERT): Remove macro.
42984         (main): Make C90 compliant by avoiding variable declaration after
42985         statement.
42986         * modules/di-set-tests (Files): Add tests/macros.h.
42988 2011-02-08  Bruno Haible  <bruno@clisp.org>
42990         ino-map tests: Refactor.
42991         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
42992         unnecessary includes.
42993         (ASSERT): Remove macro.
42994         (main): Make C90 compliant by avoiding variable declaration after
42995         statement.
42996         * modules/ino-map-tests (Files): Add tests/macros.h.
42998 2011-02-08  Jim Meyering  <meyering@redhat.com>
43000         di-set: add "const" to a cast
43001         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
43002         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
43004 2011-02-06  Bruno Haible  <bruno@clisp.org>
43006         Rename module 'wctype' to 'wctype-h'.
43007         * modules/wctype-h: Renamed from modules/wctype.
43008         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
43009         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
43010         (Files, Depends-on, Makefile.am): Update.
43011         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
43012         (Files, Makefile.am): Update.
43013         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
43014         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
43015         * doc/posix-headers/wctype.texi: Update.
43016         * doc/posix-functions/iswalnum.texi: Update.
43017         * doc/posix-functions/iswalpha.texi: Update.
43018         * doc/posix-functions/iswblank.texi: Update.
43019         * doc/posix-functions/iswcntrl.texi: Update.
43020         * doc/posix-functions/iswdigit.texi: Update.
43021         * doc/posix-functions/iswgraph.texi: Update.
43022         * doc/posix-functions/iswlower.texi: Update.
43023         * doc/posix-functions/iswprint.texi: Update.
43024         * doc/posix-functions/iswpunct.texi: Update.
43025         * doc/posix-functions/iswspace.texi: Update.
43026         * doc/posix-functions/iswupper.texi: Update.
43027         * doc/posix-functions/iswxdigit.texi: Update.
43028         * doc/posix-functions/towlower.texi: Update.
43029         * doc/posix-functions/towupper.texi: Update.
43030         * NEWS: Mention the change.
43031         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
43032         * modules/mbchar (Dependencies): Likewise.
43033         * modules/mbswidth (Dependencies): Likewise.
43034         * modules/quotearg (Dependencies): Likewise.
43035         * modules/regex (Dependencies): Likewise.
43036         * modules/wcscasecmp (Dependencies): Likewise.
43037         * modules/wcsncasecmp (Dependencies): Likewise.
43038         * modules/wcwidth (Dependencies): Likewise.
43040 2011-02-06  Bruno Haible  <bruno@clisp.org>
43042         New module 'wcswidth'.
43043         * modules/wcswidth: New file.
43044         * lib/wchar.in.h (wcswidth): New declaration.
43045         * lib/wcswidth.c: New file.
43046         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
43047         * m4/wcswidth.m4: New file.
43048         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
43049         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
43050         REPLACE_WCSWIDTH.
43051         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
43052         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
43053         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
43054         * doc/posix-functions/wcswidth.texi: Mention the new module.
43056 2011-02-06  Bruno Haible  <bruno@clisp.org>
43058         New module 'wcstok'.
43059         * modules/wcstok: New file.
43060         * lib/wchar.in.h (wcstok): New declaration.
43061         * lib/wcstok.c: New file.
43062         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
43063         * m4/wcstok.m4: New file.
43064         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
43065         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
43066         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
43067         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
43068         * doc/posix-functions/wcstok.texi: Mention the new module.
43070 2011-02-06  Bruno Haible  <bruno@clisp.org>
43072         New module 'wcsstr'.
43073         * modules/wcsstr: New file.
43074         * lib/wchar.in.h (wcsstr): New declaration.
43075         * lib/wcsstr.c: New file.
43076         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
43077         * m4/wcsstr.m4: New file.
43078         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
43079         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
43080         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
43081         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
43082         * doc/posix-functions/wcsstr.texi: Mention the new module.
43084 2011-02-06  Bruno Haible  <bruno@clisp.org>
43086         New module 'wcspbrk'.
43087         * modules/wcspbrk: New file.
43088         * lib/wchar.in.h (wcspbrk): New declaration.
43089         * lib/wcspbrk.c: New file.
43090         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
43091         * m4/wcspbrk.m4: New file.
43092         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
43093         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
43094         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
43095         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
43096         * doc/posix-functions/wcspbrk.texi: Mention the new module.
43098 2011-02-06  Bruno Haible  <bruno@clisp.org>
43100         New module 'wcsspn'.
43101         * modules/wcsspn: New file.
43102         * lib/wchar.in.h (wcsspn): New declaration.
43103         * lib/wcsspn.c: New file.
43104         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
43105         * m4/wcsspn.m4: New file.
43106         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
43107         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
43108         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
43109         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
43110         * doc/posix-functions/wcsspn.texi: Mention the new module.
43112 2011-02-06  Bruno Haible  <bruno@clisp.org>
43114         New module 'wcscspn'.
43115         * modules/wcscspn: New file.
43116         * lib/wchar.in.h (wcscspn): New declaration.
43117         * lib/wcscspn.c: New file.
43118         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
43119         * m4/wcscspn.m4: New file.
43120         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
43121         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
43122         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
43123         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
43124         * doc/posix-functions/wcscspn.texi: Mention the new module.
43126 2011-02-06  Bruno Haible  <bruno@clisp.org>
43128         New module 'wcsrchr'.
43129         * modules/wcsrchr: New file.
43130         * lib/wchar.in.h (wcsrchr): New declaration.
43131         * lib/wcsrchr.c: New file.
43132         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
43133         * m4/wcsrchr.m4: New file.
43134         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
43135         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
43136         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
43137         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
43138         * doc/posix-functions/wcsrchr.texi: Mention the new module.
43140 2011-02-06  Bruno Haible  <bruno@clisp.org>
43142         New module 'wcschr'.
43143         * modules/wcschr: New file.
43144         * lib/wchar.in.h (wcschr): New declaration.
43145         * lib/wcschr.c: New file.
43146         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
43147         * m4/wcschr.m4: New file.
43148         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
43149         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
43150         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
43151         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
43152         * doc/posix-functions/wcschr.texi: Mention the new module.
43154 2011-02-06  Bruno Haible  <bruno@clisp.org>
43156         New module 'wcsdup'.
43157         * modules/wcsdup: New file.
43158         * lib/wchar.in.h (wcsdup): New declaration.
43159         * lib/wcsdup.c: New file.
43160         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
43161         * m4/wcsdup.m4: New file.
43162         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
43163         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
43164         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
43165         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
43166         * doc/posix-functions/wcsdup.texi: Mention the new module.
43168 2011-02-06  Bruno Haible  <bruno@clisp.org>
43170         New module 'wcsxfrm'.
43171         * modules/wcsxfrm: New file.
43172         * lib/wchar.in.h (wcsxfrm): New declaration.
43173         * lib/wcsxfrm.c: New file.
43174         * lib/wcsxfrm-impl.h: New file.
43175         * m4/wcsxfrm.m4: New file.
43176         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
43177         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
43178         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
43179         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
43180         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
43182 2011-02-06  Bruno Haible  <bruno@clisp.org>
43184         New module 'wcscoll'.
43185         * modules/wcscoll: New file.
43186         * lib/wchar.in.h (wcscoll): New declaration.
43187         * lib/wcscoll.c: New file.
43188         * lib/wcscoll-impl.h: New file.
43189         * m4/wcscoll.m4: New file.
43190         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
43191         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
43192         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
43193         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
43194         * doc/posix-functions/wcscoll.texi: Mention the new module.
43196 2011-02-06  Bruno Haible  <bruno@clisp.org>
43198         New module 'wcsncasecmp'.
43199         * modules/wcsncasecmp: New file.
43200         * lib/wchar.in.h (wcsncasecmp): New declaration.
43201         * lib/wcsncasecmp.c: New file.
43202         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
43203         * m4/wcsncasecmp.m4: New file.
43204         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
43205         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
43206         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
43207         HAVE_WCSNCASECMP.
43208         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
43209         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
43211 2011-02-06  Bruno Haible  <bruno@clisp.org>
43213         New module 'wcscasecmp'.
43214         * modules/wcscasecmp: New file.
43215         * lib/wchar.in.h (wcscasecmp): New declaration.
43216         * lib/wcscasecmp.c: New file.
43217         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
43218         * m4/wcscasecmp.m4: New file.
43219         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
43220         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
43221         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
43222         HAVE_WCSCASECMP.
43223         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
43224         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
43226 2011-02-05  Bruno Haible  <bruno@clisp.org>
43228         New module 'wcsncmp'.
43229         * modules/wcsncmp: New file.
43230         * lib/wchar.in.h (wcsncmp): New declaration.
43231         * lib/wcsncmp.c: New file.
43232         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
43233         * m4/wcsncmp.m4: New file.
43234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
43235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
43236         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
43237         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
43238         * doc/posix-functions/wcsncmp.texi: Mention the new module.
43240 2011-02-05  Bruno Haible  <bruno@clisp.org>
43242         New module 'wcscmp'.
43243         * modules/wcscmp: New file.
43244         * lib/wchar.in.h (wcscmp): New declaration.
43245         * lib/wcscmp.c: New file.
43246         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
43247         * m4/wcscmp.m4: New file.
43248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
43249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
43250         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
43251         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
43252         * doc/posix-functions/wcscmp.texi: Mention the new module.
43254 2011-02-05  Bruno Haible  <bruno@clisp.org>
43256         New module 'wcsncat'.
43257         * modules/wcsncat: New file.
43258         * lib/wchar.in.h (wcsncat): New declaration.
43259         * lib/wcsncat.c: New file.
43260         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
43261         * m4/wcsncat.m4: New file.
43262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
43263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
43264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
43265         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
43266         * doc/posix-functions/wcsncat.texi: Mention the new module.
43268 2011-02-05  Bruno Haible  <bruno@clisp.org>
43270         New module 'wcscat'.
43271         * modules/wcscat: New file.
43272         * lib/wchar.in.h (wcscat): New declaration.
43273         * lib/wcscat.c: New file.
43274         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
43275         * m4/wcscat.m4: New file.
43276         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
43277         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
43278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
43279         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
43280         * doc/posix-functions/wcscat.texi: Mention the new module.
43282 2011-02-05  Bruno Haible  <bruno@clisp.org>
43284         New module 'wcpncpy'.
43285         * modules/wcpncpy: New file.
43286         * lib/wchar.in.h (wcpncpy): New declaration.
43287         * lib/wcpncpy.c: New file.
43288         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
43289         * m4/wcpncpy.m4: New file.
43290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
43291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
43292         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
43293         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
43294         * doc/posix-functions/wcpncpy.texi: Mention the new module.
43296 2011-02-05  Bruno Haible  <bruno@clisp.org>
43298         New module 'wcsncpy'.
43299         * modules/wcsncpy: New file.
43300         * lib/wchar.in.h (wcsncpy): New declaration.
43301         * lib/wcsncpy.c: New file.
43302         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
43303         * m4/wcsncpy.m4: New file.
43304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
43305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
43306         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
43307         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
43308         * doc/posix-functions/wcsncpy.texi: Mention the new module.
43310 2011-02-05  Bruno Haible  <bruno@clisp.org>
43312         New module 'wcpcpy'.
43313         * modules/wcpcpy: New file.
43314         * lib/wchar.in.h (wcpcpy): New declaration.
43315         * lib/wcpcpy.c: New file.
43316         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
43317         * m4/wcpcpy.m4: New file.
43318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
43319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
43320         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
43321         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
43322         * doc/posix-functions/wcpcpy.texi: Mention the new module.
43324 2011-02-05  Bruno Haible  <bruno@clisp.org>
43326         New module 'wcscpy'.
43327         * modules/wcscpy: New file.
43328         * lib/wchar.in.h (wcscpy): New declaration.
43329         * lib/wcscpy.c: New file.
43330         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
43331         * m4/wcscpy.m4: New file.
43332         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
43333         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
43334         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
43335         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
43336         * doc/posix-functions/wcscpy.texi: Mention the new module.
43338 2011-02-05  Bruno Haible  <bruno@clisp.org>
43340         New module 'wcsnlen'.
43341         * modules/wcsnlen: New file.
43342         * lib/wchar.in.h (wcsnlen): New declaration.
43343         * lib/wcsnlen.c: New file.
43344         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
43345         * m4/wcsnlen.m4: New file.
43346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
43347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
43348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
43349         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
43350         * doc/posix-functions/wcsnlen.texi: Mention the new module.
43352 2011-02-05  Bruno Haible  <bruno@clisp.org>
43354         New module 'wcslen'.
43355         * modules/wcslen: New file.
43356         * lib/wchar.in.h (wcslen): New declaration.
43357         * lib/wcslen.c: New file.
43358         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
43359         * m4/wcslen.m4: New file.
43360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
43361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
43362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
43363         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
43364         * doc/posix-functions/wcslen.texi: Mention the new module.
43366 2011-02-05  Bruno Haible  <bruno@clisp.org>
43368         New module 'wmemset'.
43369         * modules/wmemset: New file.
43370         * lib/wchar.in.h (wmemset): New declaration.
43371         * lib/wmemset.c: New file.
43372         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
43373         * m4/wmemset.m4: New file.
43374         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
43375         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
43376         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
43377         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
43378         * doc/posix-functions/wmemset.texi: Mention the new module.
43380 2011-02-05  Bruno Haible  <bruno@clisp.org>
43382         New module 'wmemmove'.
43383         * modules/wmemmove: New file.
43384         * lib/wchar.in.h (wmemmove): New declaration.
43385         * lib/wmemmove.c: New file.
43386         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
43387         * m4/wmemmove.m4: New file.
43388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
43389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
43390         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
43391         HAVE_WMEMMOVE.
43392         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
43393         * doc/posix-functions/wmemmove.texi: Mention the new module.
43395 2011-02-05  Bruno Haible  <bruno@clisp.org>
43397         New module 'wmemcpy'.
43398         * modules/wmemcpy: New file.
43399         * lib/wchar.in.h (wmemcpy): New declaration.
43400         * lib/wmemcpy.c: New file.
43401         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
43402         * m4/wmemcpy.m4: New file.
43403         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
43404         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
43405         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
43406         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
43407         * doc/posix-functions/wmemcpy.texi: Mention the new module.
43409 2011-02-05  Bruno Haible  <bruno@clisp.org>
43411         New module 'wmemcmp'.
43412         * modules/wmemcmp: New file.
43413         * lib/wchar.in.h (wmemcmp): New declaration.
43414         * lib/wmemcmp.c: New file.
43415         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
43416         * m4/wmemcmp.m4: New file.
43417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
43418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
43419         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
43420         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
43421         * doc/posix-functions/wmemcmp.texi: Mention the new module.
43423 2011-02-07  Jim Meyering  <meyering@redhat.com>
43425         di-set, ino-map: new modules, from coreutils
43426         * lib/di-set.c: New file.
43427         * lib/di-set.h: Likewise.
43428         * lib/ino-map.c: Likewise.
43429         * lib/ino-map.h: Likewise.
43430         * modules/di-set: Likewise.
43431         * modules/di-set-tests: Likewise.
43432         * modules/ino-map: Likewise.
43433         * modules/ino-map-tests: Likewise.
43434         * tests/test-di-set.c: Likewise.
43435         * tests/test-ino-map.c: Likewise.
43437 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
43439         getloadavg: merge minor changes from Emacs
43441         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
43442         (getloadavg): Use memset, not bzero.
43444         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
43445         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
43446         clash (bug#86).
43448 2010-11-14  Bruno Haible  <bruno@clisp.org>
43450         Allow multiple gnulib generated replacements to coexist.
43451         * lib/getopt.in.h (struct option): Avoid identical redefinition.
43452         * lib/inttypes.in.h (imaxdiv_t): Likewise.
43453         * lib/langinfo.in.h (nl_item): Likewise.
43454         * lib/math.in.h (_NaN, NAN): Likewise.
43455         * lib/netdb.in.h (struct addrinfo): Likewise.
43456         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
43457         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
43458         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
43459         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
43460         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
43461         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
43462         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
43463         pthread_mutexattr_init, pthread_mutexattr_settype,
43464         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
43465         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
43466         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
43467         pthread_spin_trylock, pthread_spin_unlock): Likewise.
43468         * lib/sched.in.h (struct sched_param): Likewise.
43469         * lib/se-selinux.in.h (security_class_t, security_context_t,
43470         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
43471         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
43472         lsetfilecon, fsetfilecon, security_check_context,
43473         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
43474         Likewise.
43475         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
43476         Likewise.
43477         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
43478         _gl_function_taking_int_returning_void_t, union sigval,
43479         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
43480         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
43481         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
43482         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
43483         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
43484         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
43485         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
43486         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
43487         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
43488         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
43489         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
43490         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
43491         socklen_t, rpl_fd_isset): Likewise.
43492         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
43493         * lib/sys_time.in.h (struct timeval): Likewise.
43494         * lib/sys_times.in.h (struct tms): Likewise.
43495         * lib/sys_utsname.in.h (struct utsname):
43496         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
43497         * lib/unistd.in.h (getpagesize): Likewise.
43498         * lib/wchar.in.h (mbstate_t): Likewise.
43499         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43500         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
43501         towlower, towupper): Likewise.
43502         Reported by Sam Steingold <sds@gnu.org>.
43504 2011-02-05  Eric Blake  <eblake@redhat.com>
43506         unsetenv: work around Haiku issues
43507         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
43508         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
43510 2010-12-30  Bruce Korb  <bkorb@gnu.org>
43512         libposix: avoid calling error() within libposix
43513         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
43514         is defined.
43516 2011-02-05  Eric Blake  <eblake@redhat.com>
43518         strerror_r-posix: port to cygwin
43519         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
43520         implementation.
43521         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
43522         * tests/test-strerror_r.c (main): Fix test.
43523         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
43524         issue.
43526 2011-02-05  Bruno Haible  <bruno@clisp.org>
43528         New module 'wmemchr'.
43529         * modules/wmemchr: New file.
43530         * lib/wchar.in.h (wmemchr): New declaration.
43531         * lib/wmemchr.c: New file.
43532         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
43533         * m4/wmemchr.m4: New file.
43534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
43535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
43536         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
43537         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
43538         * doc/posix-functions/wmemchr.texi: Mention the new module.
43540 2011-02-04  Eric Blake  <eblake@redhat.com>
43542         fdopendir: detect FreeBSD bug
43543         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
43544         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
43546 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43548         stdbool: do not define HAVE_STDBOOL_H
43549         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
43550         AC_HEADER_STDBOOL.  All uses changed.  Do not define
43551         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
43552         imported from the latest Autoconf git.  It was motivated by Emacs,
43553         which uses gnulib but does not need HAVE_STDBOOL_H.
43555 2011-02-04  Bruno Haible  <bruno@clisp.org>
43557         wcsnrtombs: Prepare for new module wwcsnrtombs.
43558         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
43559         * lib/wcsnrtombs.c: Include it.
43560         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
43562         wcsrtombs: Prepare for new module wwcsrtombs.
43563         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
43564         * lib/wcsrtombs.c: Include it.
43565         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
43567         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
43568         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
43569         * lib/mbsnrtowcs.c: Include it.
43570         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
43572         mbsrtowcs: Prepare for new module mbsrtowwcs.
43573         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
43574         * lib/mbsrtowcs.c: Include it.
43575         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
43577 2011-02-04  Bruno Haible  <bruno@clisp.org>
43579         vasnprintf: Reduce use of malloc for small format strings.
43580         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
43581         (arguments): Add room for the first 7 arguments.
43582         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
43583         (char_directives, u8_directives, u16_directives, u32_directives): Add
43584         room for the first 7 directives.
43585         * lib/printf-parse.c: Include <string.h>.
43586         (PRINTF_PARSE): Change memory handling code so that it uses the first
43587         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
43588         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
43589         Reported by Pádraig Brady <P@draigbrady.com>.
43591 2011-01-31  Eric Blake  <eblake@redhat.com>
43593         dup2: work around Haiku bug
43594         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
43595         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
43596         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43597         * tests/test-dup2.c (main): Enhance test.
43599 2011-01-31  Simon Josefsson  <simon@josefsson.org>
43601         doc: off_t is not available in eglibc 2.11.2 stdio.h.
43602         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
43603         declared by eglibc 2.11.2.
43604         * lib/stdio.in.h: Likewise.
43606 2011-01-31  Eric Blake  <eblake@redhat.com>
43608         ignore-value: add missing test dependency
43609         * tests/test-ignore-value.c: Revert previous change; stdio.h
43610         provides off_t.
43611         * modules/ignore-value-tests (Depends-on): Add missing dependency.
43613 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
43615         mktime: clarify long_int width checking
43616         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
43617         the top level, to make it clearer that the assumption about
43618         long_int width is being checked.  See
43619         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
43621 2011-01-30  Simon Josefsson  <simon@josefsson.org>
43623         ignore-value: Fix self-test.
43624         * tests/test-ignore-value.c: Include sys/types.h for off_t.
43626 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
43628         TYPE_MAXIMUM: avoid theoretically undefined behavior
43629         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
43630         negative number, which the C Standard says has undefined behavior.
43631         In practice this is not a problem, but might as well do it by the book.
43632         Reported by Rich Felker and Eric Blake; see
43633         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
43634         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
43635         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43636         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43637         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
43638         * m4/stdint.m4 (gl_STDINT_H): Likewise.
43639         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
43641         mktime: #undef mktime before #defining it
43642         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
43644         mktime: systematically normalize tm_isdst comparisons
43645         * lib/mktime.c (isdst_differ): New function.
43646         (__mktime_internal): Use it systematically for all isdst comparisons.
43647         This completes the fix for libc BZ #6723, and removes the need for
43648         normalizing tm_isdst.  See
43649         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
43650         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
43652         mktime: fix some integer overflow issues and sidestep the rest
43654         This was prompted by a bug report by Benjamin Lindner for MinGW
43655         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
43656         His bug is due to signed integer overflow (0 - INT_MIN), and I
43657         I scanned through mktime.c looking for other integer overflow
43658         problems, fixing all the bugs I found.
43660         Although the C Standard says the resulting code is still not safe
43661         in the presence of integer overflow, in practice it should be good
43662         enough for all real-world two's-complement implementations, except
43663         for debugging environments that deliberately trap on integer
43664         overflow (e.g., gcc -ftrapv).
43666         * lib/mktime.c (WRAPV): New macro.
43667         (SHR): Also check that long_int and time_t shift right in the
43668         usual way, before using the fast-but-unportable method.
43669         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
43670         used.  The code already assumed two's complement, so there's
43671         no need to test for alternatives.  All uses removed.
43672         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
43673         the C standard.  Problem reported by Rich Felker in
43674         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
43675         (twos_complement_arithmetic): Also check long_int and time_t.
43676         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
43677         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
43678         (__mktime_internal): Avoid integer overflow with unary subtraction
43679         in two instances where -1 - X is an adequate replacement for -X,
43680         since the calculations are approximate.
43682 2011-01-29  Eric Blake  <eblake@redhat.com>
43684         mktime: avoid infinite loop
43685         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
43686         type; behavior is still undefined but portable to all known targets.
43687         Reported by Rich Felker.
43689 2011-01-29  Simon Josefsson  <simon@josefsson.org>
43691         rename, unlink, same-inode: Relicense.
43692         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
43693         * modules/unlink (License): Likewise.
43694         * modules/same-inode (License): Likewise.
43696 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43698         mktime: avoid problems on NetBSD 5 / i386
43699         * lib/mktime.c (long_int): New type.  This works around a problem
43700         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
43701         but time_t is 64 bits, and where I expect the existing code is
43702         wrong in some cases.
43703         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
43704         (ydhms_diff): Bring back the compile-time check for wide-enough
43705         year and yday.
43707         mktime: fix misspelling in comment
43708         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
43709         This merges all recent glibc changes of importance.
43711 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43713         move-if-change: cope with concurrent mv of identical file.
43714         * build-aux/move-if-change (CMPPROG): Accept environment
43715         variable as an override for `cmp'.
43716         (usage): Document CMPPROG.
43717         Adjust comparison to drop stdout.  Cope with failure of mv if
43718         the target file exists and is identical to the source, for
43719         parallel builds.
43720         Report from H.J. Lu against binutils in PR binutils/12283.
43722 2011-01-28  Bruce Korb  <bkorb@gnu.org>
43724         * users.txt: Mention sharutils.
43726 2011-01-28  Simon Josefsson  <simon@josefsson.org>
43728         * users.txt: Mention OATH Toolkit.
43730 2011-01-27  Bruno Haible  <bruno@clisp.org>
43732         Prepare for supporting FreeBSD 10.
43733         * build-aux/config.libpath: Remove handling of freebsd1*.
43735 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
43737         Prepare for supporting FreeBSD 10.
43738         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
43739         match FreeBSD 10.0.
43741 2011-01-27  Bruno Haible  <bruno@clisp.org>
43743         vma-iter, get-rusage-as: Add OpenBSD support.
43744         * modules/vma-iter (configure.ac): Test for mquery.
43745         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
43746         * lib/vma-iter.c: Include <sys/mman.h>.
43747         (vma_iterate): Add an implementation based on mquery().
43748         * lib/resource-ext.h (get_rusage_as): Update comments.
43749         * lib/get-rusage-as.c: Likewise.
43750         * lib/get-rusage-data.c: Likewise.
43752 2011-01-26  Karl Berry  <karl@gnu.org>
43754         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
43755         variables to make it easier to override the makeinfo program used.
43757 2011-01-26  Eric Blake  <eblake@redhat.com>
43759         fcntl: work around Haiku F_DUPFD bugs
43760         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
43761         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
43762         cloexec bit on duplication.
43763         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
43765 2011-01-26  Bruno Haible  <bruno@clisp.org>
43767         Enable memory leak tests on AIX.
43768         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
43769         * tests/test-fprintf-posix3.c (main): Likewise.
43771 2011-01-26  Bruno Haible  <bruno@clisp.org>
43773         Tests for module 'get-rusage-data'.
43774         * modules/get-rusage-data-tests: New file.
43775         * tests/test-get-rusage-data.c: New file.
43777         New module 'get-rusage-data'.
43778         * lib/resource-ext.h (get_rusage_data): New declaration.
43779         * lib/get-rusage-data.c: New file.
43780         * modules/get-rusage-data: New file.
43782 2011-01-25  Bruno Haible  <bruno@clisp.org>
43784         get-rusage-as: Allow for easier testing.
43785         * lib/resource-ext.h (get_rusage_as): Add comment.
43786         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
43787         (main): New function for interactive testing.
43789 2011-01-25  Bruno Haible  <bruno@clisp.org>
43791         vma-iter: Treat Haiku like BeOS.
43792         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
43793         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
43795 2011-01-25  Eric Blake  <eblake@redhat.com>
43797         c-stack: fix regression on cygwin when libsigsegv is present
43798         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
43800 2011-01-24  Bruno Haible  <bruno@clisp.org>
43802         vma-iter: Avoid empty intervals.
43803         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
43804         on an empty interval.
43806 2011-01-24  Jim Meyering  <meyering@redhat.com>
43808         u64: remove unnecessary #include
43809         * lib/u64.h: Don't include <stddef.h>.  It was not used.
43811 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43813         Allow the user to avoid the HAVE_RAW_DECL_* macros.
43814         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
43816 2011-01-23  Bruno Haible  <bruno@clisp.org>
43818         New module 'vma-iter'.
43819         * lib/vma-iter.h: New file.
43820         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
43821         * modules/vma-iter: New file.
43822         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
43823         for get_rusage_as_via_iterator.
43824         (vma_iterate_callback): New function.
43825         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
43826         * modules/get-rusage-as (Depends-on): Add vma-iter.
43828 2011-01-23  Bruno Haible  <bruno@clisp.org>
43830         uninorm: Tweak includes.
43831         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
43832         Reported by Jim Meyering.
43834 2011-01-23  Bruno Haible  <bruno@clisp.org>
43836         get-rusage-as: Improve on NetBSD.
43837         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
43838         /proc, like on FreeBSD.
43840 2011-01-23  Jim Meyering  <meyering@redhat.com>
43842         xreadlink.h: remove unnecessary #include
43843         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
43845         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
43846         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
43848 2011-01-23  Bruno Haible  <bruno@clisp.org>
43850         get-rusage-as: Fix bug.
43851         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
43852         original limit when aborting the first loop.
43854 2011-01-23  Bruno Haible  <bruno@clisp.org>
43856         wctype: Ensure valid C syntax.
43857         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
43858         unconditionally, instead of gl_NEXT_HEADERS conditionally.
43860 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
43862         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
43863         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
43864         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
43865         as they are needed only for configure's test case.
43866         This removes two unnecessary symbols from config.h.
43868         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
43869         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
43870         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
43871         AC_CHECK_HEADERS_ONCE on a header that we also invoke
43872         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
43873         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
43874         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
43875         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
43876         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
43877         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43878         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
43879         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43880         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
43881         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
43882         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
43883         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43884         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
43885         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
43887 2011-01-21  Eric Blake  <eblake@redhat.com>
43889         maintainer-makefile: work with older git for submodule check
43890         * top/maint.mk (public-submodule-commit): Rewrite to avoid
43891         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
43892         Reported by Matthias Bolte.
43894         bootstrap: minor portability fixes
43895         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
43896         (usage): Omit leading capital and trailing . on help phrases, per
43897         GNU Coding Standards.
43898         (check_versions, top level): Prefix messages with script name.
43900 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
43902         bootstrap: support --no-git option
43903         * build-aux/bootstrap: Add --no-git option, to be used when
43904         --gnulib-srcdir points to the exact desired checkout.
43906 2011-01-21  Eric Blake  <eblake@redhat.com>
43908         strerror_r-posix: work with glibc 2.13
43909         * lib/strerror_r.c (strerror_r): Fix return type.
43911 2011-01-21  Pádraig Brady  <P@draigBrady.com>
43912             Bruno Haible  <bruno@clisp.org>
43914         uN_strstr: New unit tests.
43915         * modules/unistr/u8-strstr-tests: New file.
43916         * modules/unistr/u16-strstr-tests: New file.
43917         * modules/unistr/u32-strstr-tests: New file.
43918         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
43919         * tests/unistr/test-u8-strstr.c: New file.
43920         * tests/unistr/test-u16-strstr.c: New file.
43921         * tests/unistr/test-u32-strstr.c: New file.
43923 2011-01-21  Pádraig Brady  <P@draigBrady.com>
43924             Bruno Haible  <bruno@clisp.org>
43926         Make uN_strstr functions O(n) worst-case.
43927         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
43928         16-bit and 32-bit unit cases, use the unibyte algorithm from
43929         lib/mbsstr.c.
43930         * lib/unistr/u8-strstr.c: Include <string.h>.
43931         (UNIT_IS_UINT8_T): New macro.
43932         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
43933         (U_STRLEN, U_STRNLEN): New macros.
43934         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
43935         (U_STRLEN, U_STRNLEN): New macros.
43936         * modules/unistr/u8-strstr (Depends-on): Add strstr.
43937         (configure.ac): Update required libunistring version.
43938         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
43939         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
43940         malloca.
43941         (configure.ac): Update required libunistring version.
43942         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
43943         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
43944         malloca.
43945         (configure.ac): Update required libunistring version.
43947 2011-01-21  Pádraig Brady  <P@draigBrady.com>
43948             Bruno Haible  <bruno@clisp.org>
43950         Prepare for faster uN_strstr functions.
43951         * lib/str-kmp.h: Support definable UNITs.
43952         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
43953         needle_len argument.
43954         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
43955         * lib/mbscasestr.c (mbscasestr): Likewise.
43957 2011-01-21  Pádraig Brady  <P@draigBrady.com>
43959         malloca-tests: make faster by unsetting MALLOC_PERTURB_
43960         * tests/test-malloca.c (main): Unset the environment variable
43961         to greatly speed up the test.
43962         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
43963         * modules/malloca-tests: Depend on unsetenv.
43965 2011-01-21  Pádraig Brady  <P@draigBrady.com>
43967         ignore-value: remove stdint dependency
43968         * lib/ignore-value.h: Remove <stdint.h>
43969         * modules/ignore-value: Remove stdint dependency.
43971 2011-01-21  Jim Meyering  <meyering@redhat.com>
43973         maint.mk: adjust variable name to be consistent with other gl_ vars
43974         * top/maint.mk (gl_public_submodule_commit): Rename the variable
43975         to be lower case.
43977 2011-01-20  Jim Meyering  <meyering@redhat.com>
43979         maint.mk: make "check" depend on public-submodule-commit by default
43980         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
43982 2011-01-20  Bruno Haible  <bruno@clisp.org>
43984         mbfile, mbiter: Complete change from 2008-12-21.
43985         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
43986         * m4/mbiter.m4 (gl_MBITER): Likewise.
43988 2011-01-20  Jim Meyering  <meyering@redhat.com>
43990         init.sh: insert space between each function name and "()"
43991         * tests/init.sh: Make it a little easier to see that a function's
43992         name is "warn_", and not "warn" when looking at the first part of
43993         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
43995 2011-01-20  Jim Meyering  <meyering@redhat.com>
43997         mountlist: clean up code formatting
43998         * lib/mountlist.c (read_file_system_list): Split a long line,
43999         correct bracing style, use NULL in place of "(struct statfs *)0",
44000         don't parenthesize return value, add spaces around "=" and after
44001         ";-in-for-stmt".
44003 2011-01-14  Markus Duft  <mduft@gentoo.org>
44005         mountlist: add support for Interix
44006         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
44007         Apply statvfs to all entries of /dev/fs.
44008         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
44009         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
44011 2011-01-20  Jim Meyering  <meyering@redhat.com>
44013         maint.mk: improve the public-submodule-commit rule
44014         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
44015         to suppress printing of its commands... unless V=1.
44016         Add git submodule's --quiet option to suppress printing of e.g.,
44017         "Entering gnulib" output.
44018         "cd" into $(srcdir) before running git submodule.
44020 2011-01-20  Bruno Haible  <bruno@clisp.org>
44022         include_next: Fix bug introduced on 2011-01-18.
44023         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
44024         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
44025         ac_cv_header_... variable if the second argument is not 'check'.
44026         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
44027         gl_NEXT_HEADERS_INTERNAL.
44029 2011-01-20  Bruno Haible  <bruno@clisp.org>
44031         Allow the user to avoid the GNULIB_TEST_* macros.
44032         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
44033         Suggested by Paul Eggert.
44035 2011-01-14  Jim Meyering  <meyering@redhat.com>
44037         bootstrap: avoid failure when there is no .gitmodules file
44038         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
44039         has been assigned to, even when its value is the empty string.
44040         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
44041         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
44042         Reported by John W. Eaton <jwe@gnu.org>.
44044 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44046         assume <ctype.h>, ..., <time.h> exist
44047         For years gnulib has been assuming the existence of the headers
44048         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
44049         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
44050         them, since they don't appear to be needed.
44051         * README (Portability guidelines): Document this.
44052         * lib/flock.c: Assume <fcntl.h> exists.
44053         * lib/regex_internal.h: Assume <locale.h> exists.
44054         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
44055         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
44056         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
44057         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
44058         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
44059         * m4/regex.m4 (gl_REGEX): Likewise.
44060         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
44061         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
44062         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
44063         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
44064         * tests/test-argp.c: Likewise.
44065         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
44067         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
44068         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
44069         AA_APPLE_UNIVERSAL_BUILD.  See
44070         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
44071         * NEWS: Document this.
44073 2011-01-19  Eric Blake  <eblake@redhat.com>
44075         c-stack: assume stack overflow if SA_SIGINFO unsupported
44076         * lib/c-stack.c (SIGACTION_WORKS): Rename...
44077         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
44078         sigaction will work.
44079         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
44080         behavior match Linux.
44081         * tests/test-c-stack.c (main): Prefer NULL for pointers.
44083         stdbool-tests: accommodate Haiku
44084         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
44086         binary-io: fix O_TEXT on Haiku
44087         * modules/binary-io (Depends-on): Add fcntl-h.
44088         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
44089         than blindly undefining O_TEXT.
44090         Reported by Scott McCreary.
44092 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44094         include_next: do not check for standard headers like stddef.h
44096         I found this problem when modifying Emacs to use gnulib.
44097         I noticed that it added HAVE_STDDEF_H to config.h, even though
44098         gnulib always assumes <stddef.h> exists as per README and this
44099         symbol is unnecessary.
44100         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
44101         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
44102         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
44103         faster for headers like stddef.h that are known to exist.
44104         (gl_CHECK_NEXT_HEADERS): Use it.
44105         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
44106         rather than gl_CHECK_NEXT_HEADERS.
44107         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
44108         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
44110 2011-01-18  Eric Blake  <eblake@redhat.com>
44112         ansi-c++-opt: skip C++ dependency style if C++ is unused
44113         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
44114         tests when we know C++ compilation is not desired.
44115         Reported by Scott McCreary.
44117 2011-01-18  Bruno Haible  <bruno@clisp.org>
44119         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
44120         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
44121         (main): Perform test also when getrlimit and setrlimit don't exist or
44122         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
44123         limiting the address space size using setrlimit, compare the address
44124         space size before and after the test.
44125         * tests/test-dprintf-posix2.c: Likewise.
44126         * tests/test-fprintf-posix3.sh: Update skip messages.
44127         * tests/test-dprintf-posix2.sh: Likewise.
44128         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
44129         * modules/dprintf-posix-tests (Depends-on): Likewise.
44130         Reported by Bruce Korb <bkorb@gnu.org> and
44131         Gary V. Vaughan <gary@gnu.org>.
44133 2011-01-18  Bruno Haible  <bruno@clisp.org>
44135         get-rusage-as: Improvement for Cygwin.
44136         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
44137         areas that are merely reserved.
44139 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44141         strftime: remove dependencies on multibyte modules
44143         strftime depended on mbrlen, mbsinit, and wchar, but these modules
44144         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
44145         only if __osf__ is defined, and I suspect OSF doesn't need these
44146         other modules.  If my guess is wrong, we'll need to come up with a
44147         variant of strftime that doesn't need the multibyte modules.
44149         I discovered this problem when attempting modify Emacs to use the
44150         strftime module.  With the previous gnulib, this caused Emacs to
44151         need 31 new files, ranging from lib/config.charset to
44152         m4/wint_t.m4.  This was overkill and I expect would be offputting
44153         to the Emacs maintainers.  After this change, only 6 new files are
44154         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
44155         stdbool.m4, and tm_gmtoff.m4.
44157         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
44158         Suggested by Bruno Haible in
44159         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
44160         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
44161         and do not check for wchar.h.
44162         * modules/strftime (Files): Remove m4/mbstate_t.m4.
44163         (Depends-on): Remove mbrlen, mbsinit, wchar.
44165 2011-01-18  Bruno Haible  <bruno@clisp.org>
44167         Tests for module 'get-rusage-as'.
44168         * modules/get-rusage-as-tests: New file.
44169         * tests/test-get-rusage-as.c: New file.
44171         New module 'get-rusage-as'.
44172         * modules/get-rusage-as: New file.
44173         * lib/resource-ext.h: New file.
44174         * lib/get-rusage-as.c: New file.
44176 2011-01-17  Eric Blake  <eblake@redhat.com>
44178         sigaction: relax license from LGPLv3+ to LGPLv2+
44179         * modules/sigaction (License): Relax to LGPLv2+.
44181 2011-01-14  Bruno Haible  <bruno@clisp.org>
44183         filemode: Make function declarations usable in C++ mode.
44184         * lib/filemode.h: Enclose function declarations in extern "C" block.
44185         Reported by John W. Eaton <jwe@gnu.org>.
44187 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
44189         save-cwd: no longer include "xgetcwd.h"
44190         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
44191         This avoids a compilation failure in projects that use save-cwd
44192         without also using the xgetcwd module.
44194 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44196         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
44197         This is so that a program like Emacs, which needs only dtoastr,
44198         does not have to bother with distributing and compiling ftoastr
44199         and ldtoastr.
44200         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
44201         * modules/dtoastr, modules/ldtoastr: New files.
44202         * modules/ftoastr: Now works just for 'float'.
44203         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
44204         (Makefile.am): Remove ftoastr.h (not needed and no effect),
44205         dtoastr.c, ldtoastr.c.
44207 2011-01-11  Jim Meyering  <meyering@redhat.com>
44209         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
44210         There is no need to work around the lack of the fchdir function,
44211         since gnulib can now provide a replacement when required.
44212         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
44213         * modules/save-cwd (Depends-on): Add fchdir.
44215 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44217         openat, save-cwd: avoid xmalloc
44219         This removes a direct (but undocumented) dependency of openat on
44220         xalloc, along with an indirect dependency via save-cwd.  It also
44221         removes a dependency of save-cwd on xgetcwd, and thereby
44222         indirectly on xalloc.  This change causes the openat substitute
44223         to fall back on save_cwd when memory is tight, and for save_cwd to
44224         fail instead of dying when memory is tight, but that's good enough.
44225         Problem and initial idea for fix reported by Bastien Roucaries in
44226         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
44228         * lib/openat-proc.c: Include stdlib.h (for malloc), not
44229         xalloc.h (for xmalloc).
44230         (openat_proc_name): Use malloc, not xmalloc.
44231         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
44232         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
44234         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
44235         This avoids heap allocation for file names whose lengths are in
44236         the range 512..1023, with the upper bound increasing to at most
44237         4031 depending on the platform's PATH_MAX.  (We do not want
44238         pathmax.h here as it might supply a non-constant PATH_MAX.)
44239         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
44240         Perhaps they should be moved to malloca.h?
44241         (OPENAT_BUFFER_SIZE): Use them.
44243 2011-01-10  Bruno Haible  <bruno@clisp.org>
44245         doc: Update users.txt.
44246         * users.txt: Add recutils.
44248 2011-01-09  Karl Berry  <karl@gnu.org>
44250         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
44252         * doc/configmake.texi: New file.
44253         * doc/gnulib.texi: Include it.
44254         * modules/configmake: Move documentation from here.
44256 2011-01-09  Bruno Haible  <bruno@clisp.org>
44258         Update to Unicode 6.0.0.
44259         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
44260         (get_lbp): Update for Unicode 6.0.0.
44261         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
44262         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
44263         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
44264         U+11001, U+11038..U+11046. Remove U+06DE.
44265         (uc_width): Fix bounds of planes.
44266         * tests/uniwidth/test-uc_width2.sh: Same updates as in
44267         lib/uniwidth/width.c.
44268         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
44269         trailing whitespace removed.
44270         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
44271         without comments, but with the original copyright notice.
44272         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
44273         * lib/unicase/ignorable.h: Likewise.
44274         * lib/unicase/tocasefold.h: Likewise.
44275         * lib/unicase/tolower.h: Likewise.
44276         * lib/unicase/totitle.h: Likewise.
44277         * lib/unicase/toupper.h: Likewise.
44278         * lib/unictype/bidi_of.h: Likewise.
44279         * lib/unictype/blocks.h: Likewise.
44280         * lib/unictype/categ_C.h: Likewise.
44281         * lib/unictype/categ_Cn.h: Likewise.
44282         * lib/unictype/categ_L.h: Likewise.
44283         * lib/unictype/categ_Ll.h: Likewise.
44284         * lib/unictype/categ_Lm.h: Likewise.
44285         * lib/unictype/categ_Lo.h: Likewise.
44286         * lib/unictype/categ_Lu.h: Likewise.
44287         * lib/unictype/categ_M.h: Likewise.
44288         * lib/unictype/categ_Mc.h: Likewise.
44289         * lib/unictype/categ_Me.h: Likewise.
44290         * lib/unictype/categ_Mn.h: Likewise.
44291         * lib/unictype/categ_N.h: Likewise.
44292         * lib/unictype/categ_Nd.h: Likewise.
44293         * lib/unictype/categ_No.h: Likewise.
44294         * lib/unictype/categ_P.h: Likewise.
44295         * lib/unictype/categ_Po.h: Likewise.
44296         * lib/unictype/categ_S.h: Likewise.
44297         * lib/unictype/categ_Sc.h: Likewise.
44298         * lib/unictype/categ_Sk.h: Likewise.
44299         * lib/unictype/categ_Sm.h: Likewise.
44300         * lib/unictype/categ_So.h: Likewise.
44301         * lib/unictype/categ_of.h: Likewise.
44302         * lib/unictype/combining.h: Likewise.
44303         * lib/unictype/ctype_alnum.h: Likewise.
44304         * lib/unictype/ctype_alpha.h: Likewise.
44305         * lib/unictype/ctype_graph.h: Likewise.
44306         * lib/unictype/ctype_lower.h: Likewise.
44307         * lib/unictype/ctype_print.h: Likewise.
44308         * lib/unictype/ctype_punct.h: Likewise.
44309         * lib/unictype/ctype_upper.h: Likewise.
44310         * lib/unictype/decdigit.h: Likewise.
44311         * lib/unictype/digit.h: Likewise.
44312         * lib/unictype/numeric.h: Likewise.
44313         * lib/unictype/pr_alphabetic.h: Likewise.
44314         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44315         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44316         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44317         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44318         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44319         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44320         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44321         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44322         * lib/unictype/pr_case_ignorable.h: Likewise.
44323         * lib/unictype/pr_cased.h: Likewise.
44324         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
44325         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
44326         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
44327         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
44328         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
44329         * lib/unictype/pr_combining.h: Likewise.
44330         * lib/unictype/pr_composite.h: Likewise.
44331         * lib/unictype/pr_currency_symbol.h: Likewise.
44332         * lib/unictype/pr_decimal_digit.h: Likewise.
44333         * lib/unictype/pr_deprecated.h: Likewise.
44334         * lib/unictype/pr_format_control.h: Likewise.
44335         * lib/unictype/pr_grapheme_base.h: Likewise.
44336         * lib/unictype/pr_grapheme_extend.h: Likewise.
44337         * lib/unictype/pr_grapheme_link.h: Likewise.
44338         * lib/unictype/pr_id_continue.h: Likewise.
44339         * lib/unictype/pr_id_start.h: Likewise.
44340         * lib/unictype/pr_ideographic.h: Likewise.
44341         * lib/unictype/pr_lowercase.h: Likewise.
44342         * lib/unictype/pr_math.h: Likewise.
44343         * lib/unictype/pr_numeric.h: Likewise.
44344         * lib/unictype/pr_other_alphabetic.h: Likewise.
44345         * lib/unictype/pr_other_id_continue.h: Likewise.
44346         * lib/unictype/pr_other_math.h: Likewise.
44347         * lib/unictype/pr_punctuation.h: Likewise.
44348         * lib/unictype/pr_sentence_terminal.h: Likewise.
44349         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44350         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44351         * lib/unictype/pr_unified_ideograph.h: Likewise.
44352         * lib/unictype/pr_uppercase.h: Likewise.
44353         * lib/unictype/pr_xid_continue.h: Likewise.
44354         * lib/unictype/pr_xid_start.h: Likewise.
44355         * lib/unictype/scripts.h: Likewise.
44356         * lib/unictype/scripts_byname.gperf: Likewise.
44357         * lib/unictype/sy_java_ident.h: Likewise.
44358         * lib/unigbrk/gbrkprop.h: Likewise.
44359         * lib/unilbrk/lbrkprop1.h: Likewise.
44360         * lib/unilbrk/lbrkprop2.h: Likewise.
44361         * lib/uninorm/decomposition-table2.h: Likewise.
44362         * lib/uniwbrk/wbrkprop.h: Likewise.
44363         * tests/unicase/test-cased.c: Likewise.
44364         * tests/unicase/test-ignorable.c: Likewise.
44365         * tests/unicase/test-uc_tolower.c: Likewise.
44366         * tests/unicase/test-uc_totitle.c: Likewise.
44367         * tests/unicase/test-uc_toupper.c: Likewise.
44368         * tests/unictype/test-categ_C.c: Likewise.
44369         * tests/unictype/test-categ_Cn.c: Likewise.
44370         * tests/unictype/test-categ_L.c: Likewise.
44371         * tests/unictype/test-categ_Ll.c: Likewise.
44372         * tests/unictype/test-categ_Lm.c: Likewise.
44373         * tests/unictype/test-categ_Lo.c: Likewise.
44374         * tests/unictype/test-categ_Lu.c: Likewise.
44375         * tests/unictype/test-categ_M.c: Likewise.
44376         * tests/unictype/test-categ_Mc.c: Likewise.
44377         * tests/unictype/test-categ_Me.c: Likewise.
44378         * tests/unictype/test-categ_Mn.c: Likewise.
44379         * tests/unictype/test-categ_N.c: Likewise.
44380         * tests/unictype/test-categ_Nd.c: Likewise.
44381         * tests/unictype/test-categ_No.c: Likewise.
44382         * tests/unictype/test-categ_P.c: Likewise.
44383         * tests/unictype/test-categ_Po.c: Likewise.
44384         * tests/unictype/test-categ_S.c: Likewise.
44385         * tests/unictype/test-categ_Sc.c: Likewise.
44386         * tests/unictype/test-categ_Sk.c: Likewise.
44387         * tests/unictype/test-categ_Sm.c: Likewise.
44388         * tests/unictype/test-categ_So.c: Likewise.
44389         * tests/unictype/test-ctype_alnum.c: Likewise.
44390         * tests/unictype/test-ctype_alpha.c: Likewise.
44391         * tests/unictype/test-ctype_graph.c: Likewise.
44392         * tests/unictype/test-ctype_lower.c: Likewise.
44393         * tests/unictype/test-ctype_print.c: Likewise.
44394         * tests/unictype/test-ctype_punct.c: Likewise.
44395         * tests/unictype/test-ctype_upper.c: Likewise.
44396         * tests/unictype/test-decdigit.h: Likewise.
44397         * tests/unictype/test-digit.h: Likewise.
44398         * tests/unictype/test-numeric.h: Likewise.
44399         * tests/unictype/test-pr_alphabetic.c: Likewise.
44400         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44401         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44402         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44403         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44404         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44405         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44406         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44407         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44408         * tests/unictype/test-pr_case_ignorable.c: Likewise.
44409         * tests/unictype/test-pr_cased.c: Likewise.
44410         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
44411         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
44412         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
44413         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
44414         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
44415         * tests/unictype/test-pr_combining.c: Likewise.
44416         * tests/unictype/test-pr_composite.c: Likewise.
44417         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44418         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44419         * tests/unictype/test-pr_deprecated.c: Likewise.
44420         * tests/unictype/test-pr_format_control.c: Likewise.
44421         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44422         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44423         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44424         * tests/unictype/test-pr_id_continue.c: Likewise.
44425         * tests/unictype/test-pr_id_start.c: Likewise.
44426         * tests/unictype/test-pr_ideographic.c: Likewise.
44427         * tests/unictype/test-pr_lowercase.c: Likewise.
44428         * tests/unictype/test-pr_math.c: Likewise.
44429         * tests/unictype/test-pr_numeric.c: Likewise.
44430         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44431         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44432         * tests/unictype/test-pr_other_math.c: Likewise.
44433         * tests/unictype/test-pr_punctuation.c: Likewise.
44434         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44435         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44436         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44437         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44438         * tests/unictype/test-pr_uppercase.c: Likewise.
44439         * tests/unictype/test-pr_xid_continue.c: Likewise.
44440         * tests/unictype/test-pr_xid_start.c: Likewise.
44441         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
44442         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
44443         changes.
44444         * lib/unictype/categ_Cc.h: Likewise.
44445         * lib/unictype/categ_Cf.h: Likewise.
44446         * lib/unictype/categ_Co.h: Likewise.
44447         * lib/unictype/categ_Cs.h: Likewise.
44448         * lib/unictype/categ_Lt.h: Likewise.
44449         * lib/unictype/categ_Nl.h: Likewise.
44450         * lib/unictype/categ_Pc.h: Likewise.
44451         * lib/unictype/categ_Pd.h: Likewise.
44452         * lib/unictype/categ_Pe.h: Likewise.
44453         * lib/unictype/categ_Pf.h: Likewise.
44454         * lib/unictype/categ_Pi.h: Likewise.
44455         * lib/unictype/categ_Ps.h: Likewise.
44456         * lib/unictype/categ_Z.h: Likewise.
44457         * lib/unictype/categ_Zl.h: Likewise.
44458         * lib/unictype/categ_Zp.h: Likewise.
44459         * lib/unictype/categ_Zs.h: Likewise.
44460         * lib/unictype/ctype_blank.h: Likewise.
44461         * lib/unictype/ctype_cntrl.h: Likewise.
44462         * lib/unictype/ctype_digit.h: Likewise.
44463         * lib/unictype/ctype_space.h: Likewise.
44464         * lib/unictype/ctype_xdigit.h: Likewise.
44465         * lib/unictype/mirror.h: Likewise.
44466         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44467         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44468         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44469         * lib/unictype/pr_bidi_control.h: Likewise.
44470         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44471         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44472         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44473         * lib/unictype/pr_bidi_pdf.h: Likewise.
44474         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44475         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44476         * lib/unictype/pr_dash.h: Likewise.
44477         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44478         * lib/unictype/pr_diacritic.h: Likewise.
44479         * lib/unictype/pr_extender.h: Likewise.
44480         * lib/unictype/pr_hex_digit.h: Likewise.
44481         * lib/unictype/pr_hyphen.h: Likewise.
44482         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44483         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44484         * lib/unictype/pr_ignorable_control.h: Likewise.
44485         * lib/unictype/pr_iso_control.h: Likewise.
44486         * lib/unictype/pr_join_control.h: Likewise.
44487         * lib/unictype/pr_left_of_pair.h: Likewise.
44488         * lib/unictype/pr_line_separator.h: Likewise.
44489         * lib/unictype/pr_logical_order_exception.h: Likewise.
44490         * lib/unictype/pr_non_break.h: Likewise.
44491         * lib/unictype/pr_not_a_character.h: Likewise.
44492         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44493         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44494         * lib/unictype/pr_other_id_start.h: Likewise.
44495         * lib/unictype/pr_other_lowercase.h: Likewise.
44496         * lib/unictype/pr_other_uppercase.h: Likewise.
44497         * lib/unictype/pr_paired_punctuation.h: Likewise.
44498         * lib/unictype/pr_paragraph_separator.h: Likewise.
44499         * lib/unictype/pr_pattern_syntax.h: Likewise.
44500         * lib/unictype/pr_pattern_white_space.h: Likewise.
44501         * lib/unictype/pr_private_use.h: Likewise.
44502         * lib/unictype/pr_quotation_mark.h: Likewise.
44503         * lib/unictype/pr_radical.h: Likewise.
44504         * lib/unictype/pr_soft_dotted.h: Likewise.
44505         * lib/unictype/pr_space.h: Likewise.
44506         * lib/unictype/pr_titlecase.h: Likewise.
44507         * lib/unictype/pr_variation_selector.h: Likewise.
44508         * lib/unictype/pr_white_space.h: Likewise.
44509         * lib/unictype/pr_zero_width.h: Likewise.
44510         * lib/unictype/sy_c_ident.h: Likewise.
44511         * lib/unictype/sy_c_whitespace.h: Likewise.
44512         * lib/unictype/sy_java_whitespace.h: Likewise.
44513         * lib/uninorm/composition-table.gperf: Likewise.
44514         * lib/uninorm/decomposition-table1.h: Likewise.
44515         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
44516         LB8.
44517         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44518         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44519         * modules/unictype/*: Bump version number of expected libunistring
44520         version.
44522 2011-01-09  Bruno Haible  <bruno@clisp.org>
44524         Update to Unicode 5.2.0.
44525         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
44526         trailing whitespace removed.
44528 2011-01-09  Bruno Haible  <bruno@clisp.org>
44530         New Unicode character properties, from Unicode 5.2.0.
44531         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
44532         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
44533         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
44534         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
44535         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
44536         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
44537         uc_is_property_cased, uc_is_property_case_ignorable,
44538         uc_is_property_changes_when_lowercased,
44539         uc_is_property_changes_when_uppercased,
44540         uc_is_property_changes_when_titlecased,
44541         uc_is_property_changes_when_casefolded,
44542         uc_is_property_changes_when_casemapped): New declarations.
44543         * lib/unictype/pr_byname.gperf: Add the new properties.
44544         * modules/unictype/property-byname (Depends-on): Depend on the new
44545         properties modules.
44546         * modules/unictype/property-all (Depends-on): Likewise.
44547         * MODULES.html.sh (Unicode string functions): Add
44548         unictype/property-case-ignorable, unictype/property-cased,
44549         unictype/property-changes-when-casefolded,
44550         unictype/property-changes-when-casemapped,
44551         unictype/property-changes-when-lowercased,
44552         unictype/property-changes-when-titlecased,
44553         unictype/property-changes-when-uppercased.
44555         New module 'unictype/property-changes-when-casemapped'.
44556         * modules/unictype/property-changes-when-casemapped: New file.
44557         * lib/unictype/pr_changes_when_casemapped.c: New file.
44558         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
44559         generated by gen-uni-tables.
44560         * modules/unictype/property-changes-when-casemapped-tests: New file.
44561         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
44562         automatically generated by gen-uni-tables.
44564         New module 'unictype/property-changes-when-casefolded'.
44565         * modules/unictype/property-changes-when-casefolded: New file.
44566         * lib/unictype/pr_changes_when_casefolded.c: New file.
44567         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
44568         generated by gen-uni-tables.
44569         * modules/unictype/property-changes-when-casefolded-tests: New file.
44570         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
44571         automatically generated by gen-uni-tables.
44573         New module 'unictype/property-changes-when-titlecased'.
44574         * modules/unictype/property-changes-when-titlecased: New file.
44575         * lib/unictype/pr_changes_when_titlecased.c: New file.
44576         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
44577         generated by gen-uni-tables.
44578         * modules/unictype/property-changes-when-titlecased-tests: New file.
44579         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
44580         automatically generated by gen-uni-tables.
44582         New module 'unictype/property-changes-when-uppercased'.
44583         * modules/unictype/property-changes-when-uppercased: New file.
44584         * lib/unictype/pr_changes_when_uppercased.c: New file.
44585         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
44586         generated by gen-uni-tables.
44587         * modules/unictype/property-changes-when-uppercased-tests: New file.
44588         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
44589         automatically generated by gen-uni-tables.
44591         New module 'unictype/property-changes-when-lowercased'.
44592         * modules/unictype/property-changes-when-lowercased: New file.
44593         * lib/unictype/pr_changes_when_lowercased.c: New file.
44594         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
44595         generated by gen-uni-tables.
44596         * modules/unictype/property-changes-when-lowercased-tests: New file.
44597         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
44598         automatically generated by gen-uni-tables.
44600         New module 'unictype/property-case-ignorable'.
44601         * modules/unictype/property-case-ignorable: New file.
44602         * lib/unictype/pr_case_ignorable.c: New file.
44603         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
44604         by gen-uni-tables.
44605         * modules/unictype/property-case-ignorable-tests: New file.
44606         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
44607         generated by gen-uni-tables.
44609         New module 'unictype/property-cased'.
44610         * modules/unictype/property-cased: New file.
44611         * lib/unictype/pr_cased.c: New file.
44612         * lib/unictype/pr_cased.h: New file, automatically generated by
44613         gen-uni-tables.
44614         * modules/unictype/property-cased-tests: New file.
44615         * tests/unictype/test-pr_cased.c: New file, automatically generated by
44616         gen-uni-tables.
44618 2011-01-09  Bruno Haible  <bruno@clisp.org>
44620         Update to Unicode 5.2.0.
44621         * lib/gen-uni-tables.c (output_predicate, output_category,
44622         output_combclass, output_bidi_category, output_decimal_digit_test,
44623         output_decimal_digit, output_digit_test, output_digit,
44624         output_numeric_test, output_numeric, output_mirror, output_scripts,
44625         output_scripts_byname, output_blocks, output_ident_category): Fix
44626         comment header.
44627         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
44628         get_wbp.
44629         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
44630         items.
44631         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
44632         Changes_When_Lowercased, Changes_When_Uppercased,
44633         Changes_When_Titlecased, Changes_When_Casefolded,
44634         Changes_When_Casemapped.
44635         (is_property_alphabetic, is_property_default_ignorable_code_point):
44636         Update for Unicode 5.2.0.
44637         (is_property_cased, is_property_case_ignorable,
44638         is_property_changes_when_lowercased,
44639         is_property_changes_when_uppercased,
44640         is_property_changes_when_titlecased,
44641         is_property_changes_when_casefolded,
44642         is_property_changes_when_casemapped): New functions.
44643         (output_properties): Output also the properties cased, case_ignorable,
44644         changes_when_lowercased, changes_when_uppercased,
44645         changes_when_titlecased, changes_when_casefolded,
44646         changes_when_casemapped.
44647         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
44648         Unicode TR#11 revision 17 -> 19.
44649         (LBP_CP): New enumeration value.
44650         (LBP_*): Adjust values accordingly.
44651         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
44652         TR#14 revision 22 -> 24.
44653         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
44654         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
44655         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
44656         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
44657         is_WBP_MIDLETTER.
44658         (output_composition_tables): Allow for 24 bits instead of 16 bits in
44659         the code1 and code2 of each composition rule.
44660         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
44661         * lib/unicase/ignorable.h: Likewise.
44662         * lib/unicase/tocasefold.h: Likewise.
44663         * lib/unicase/tolower.h: Likewise.
44664         * lib/unicase/totitle.h: Likewise.
44665         * lib/unicase/toupper.h: Likewise.
44666         * lib/unictype/bidi_of.h: Likewise.
44667         * lib/unictype/blocks.h: Likewise.
44668         * lib/unictype/categ_C.h: Likewise.
44669         * lib/unictype/categ_Cf.h: Likewise.
44670         * lib/unictype/categ_Cn.h: Likewise.
44671         * lib/unictype/categ_L.h: Likewise.
44672         * lib/unictype/categ_Ll.h: Likewise.
44673         * lib/unictype/categ_Lm.h: Likewise.
44674         * lib/unictype/categ_Lo.h: Likewise.
44675         * lib/unictype/categ_Lu.h: Likewise.
44676         * lib/unictype/categ_M.h: Likewise.
44677         * lib/unictype/categ_Mc.h: Likewise.
44678         * lib/unictype/categ_Mn.h: Likewise.
44679         * lib/unictype/categ_N.h: Likewise.
44680         * lib/unictype/categ_Nd.h: Likewise.
44681         * lib/unictype/categ_Nl.h: Likewise.
44682         * lib/unictype/categ_No.h: Likewise.
44683         * lib/unictype/categ_P.h: Likewise.
44684         * lib/unictype/categ_Pd.h: Likewise.
44685         * lib/unictype/categ_Po.h: Likewise.
44686         * lib/unictype/categ_S.h: Likewise.
44687         * lib/unictype/categ_Sc.h: Likewise.
44688         * lib/unictype/categ_So.h: Likewise.
44689         * lib/unictype/categ_of.h: Likewise.
44690         * lib/unictype/combining.h: Likewise.
44691         * lib/unictype/ctype_alnum.h: Likewise.
44692         * lib/unictype/ctype_alpha.h: Likewise.
44693         * lib/unictype/ctype_graph.h: Likewise.
44694         * lib/unictype/ctype_lower.h: Likewise.
44695         * lib/unictype/ctype_print.h: Likewise.
44696         * lib/unictype/ctype_punct.h: Likewise.
44697         * lib/unictype/ctype_upper.h: Likewise.
44698         * lib/unictype/decdigit.h: Likewise.
44699         * lib/unictype/digit.h: Likewise.
44700         * lib/unictype/numeric.h: Likewise.
44701         * lib/unictype/pr_alphabetic.h: Likewise.
44702         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44703         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44704         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44705         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44706         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44707         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44708         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44709         * lib/unictype/pr_combining.h: Likewise.
44710         * lib/unictype/pr_composite.h: Likewise.
44711         * lib/unictype/pr_currency_symbol.h: Likewise.
44712         * lib/unictype/pr_dash.h: Likewise.
44713         * lib/unictype/pr_decimal_digit.h: Likewise.
44714         * lib/unictype/pr_deprecated.h: Likewise.
44715         * lib/unictype/pr_diacritic.h: Likewise.
44716         * lib/unictype/pr_extender.h: Likewise.
44717         * lib/unictype/pr_grapheme_base.h: Likewise.
44718         * lib/unictype/pr_grapheme_extend.h: Likewise.
44719         * lib/unictype/pr_grapheme_link.h: Likewise.
44720         * lib/unictype/pr_id_continue.h: Likewise.
44721         * lib/unictype/pr_id_start.h: Likewise.
44722         * lib/unictype/pr_ideographic.h: Likewise.
44723         * lib/unictype/pr_ignorable_control.h: Likewise.
44724         * lib/unictype/pr_logical_order_exception.h: Likewise.
44725         * lib/unictype/pr_lowercase.h: Likewise.
44726         * lib/unictype/pr_numeric.h: Likewise.
44727         * lib/unictype/pr_other_alphabetic.h: Likewise.
44728         * lib/unictype/pr_punctuation.h: Likewise.
44729         * lib/unictype/pr_sentence_terminal.h: Likewise.
44730         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44731         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44732         * lib/unictype/pr_unified_ideograph.h: Likewise.
44733         * lib/unictype/pr_uppercase.h: Likewise.
44734         * lib/unictype/pr_xid_continue.h: Likewise.
44735         * lib/unictype/pr_xid_start.h: Likewise.
44736         * lib/unictype/pr_zero_width.h: Likewise.
44737         * lib/unictype/scripts.h: Likewise.
44738         * lib/unictype/scripts_byname.gperf: Likewise.
44739         * lib/unictype/sy_java_ident.h: Likewise.
44740         * lib/unigbrk/gbrkprop.h: Likewise.
44741         * lib/unilbrk/lbrkprop1.h: Likewise.
44742         * lib/unilbrk/lbrkprop2.h: Likewise.
44743         * lib/unilbrk/lbrktables.h: Likewise.
44744         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
44745         LBP_CP. Implement rule LB30.
44746         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
44747         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
44748         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
44749         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
44750         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
44751         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
44752         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
44753         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
44754         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
44755         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
44756         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
44757         bits instead of 16 bits in the code1 and code2 of each composition
44758         rule.
44759         (uc_composition): Update for Unicode 5.2.0.
44760         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
44761         * lib/uninorm/decomposition-table2.h: Likewise.
44762         * lib/uniwbrk/wbrkprop.h: Likewise.
44763         * tests/unicase/test-cased.c: Likewise.
44764         * tests/unicase/test-ignorable.c: Likewise.
44765         * tests/unicase/test-uc_tolower.c: Likewise.
44766         * tests/unicase/test-uc_totitle.c: Likewise.
44767         * tests/unicase/test-uc_toupper.c: Likewise.
44768         * tests/unictype/test-categ_C.c: Likewise.
44769         * tests/unictype/test-categ_Cf.c: Likewise.
44770         * tests/unictype/test-categ_Cn.c: Likewise.
44771         * tests/unictype/test-categ_L.c: Likewise.
44772         * tests/unictype/test-categ_Ll.c: Likewise.
44773         * tests/unictype/test-categ_Lm.c: Likewise.
44774         * tests/unictype/test-categ_Lo.c: Likewise.
44775         * tests/unictype/test-categ_Lu.c: Likewise.
44776         * tests/unictype/test-categ_M.c: Likewise.
44777         * tests/unictype/test-categ_Mc.c: Likewise.
44778         * tests/unictype/test-categ_Mn.c: Likewise.
44779         * tests/unictype/test-categ_N.c: Likewise.
44780         * tests/unictype/test-categ_Nd.c: Likewise.
44781         * tests/unictype/test-categ_Nl.c: Likewise.
44782         * tests/unictype/test-categ_No.c: Likewise.
44783         * tests/unictype/test-categ_P.c: Likewise.
44784         * tests/unictype/test-categ_Pd.c: Likewise.
44785         * tests/unictype/test-categ_Po.c: Likewise.
44786         * tests/unictype/test-categ_S.c: Likewise.
44787         * tests/unictype/test-categ_Sc.c: Likewise.
44788         * tests/unictype/test-categ_So.c: Likewise.
44789         * tests/unictype/test-ctype_alnum.c: Likewise.
44790         * tests/unictype/test-ctype_alpha.c: Likewise.
44791         * tests/unictype/test-ctype_graph.c: Likewise.
44792         * tests/unictype/test-ctype_lower.c: Likewise.
44793         * tests/unictype/test-ctype_print.c: Likewise.
44794         * tests/unictype/test-ctype_punct.c: Likewise.
44795         * tests/unictype/test-ctype_upper.c: Likewise.
44796         * tests/unictype/test-decdigit.h: Likewise.
44797         * tests/unictype/test-digit.h: Likewise.
44798         * tests/unictype/test-numeric.h: Likewise.
44799         * tests/unictype/test-pr_alphabetic.c: Likewise.
44800         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44801         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44802         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44803         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44804         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44805         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44806         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44807         * tests/unictype/test-pr_combining.c: Likewise.
44808         * tests/unictype/test-pr_composite.c: Likewise.
44809         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44810         * tests/unictype/test-pr_dash.c: Likewise.
44811         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44812         * tests/unictype/test-pr_deprecated.c: Likewise.
44813         * tests/unictype/test-pr_diacritic.c: Likewise.
44814         * tests/unictype/test-pr_extender.c: Likewise.
44815         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44816         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44817         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44818         * tests/unictype/test-pr_id_continue.c: Likewise.
44819         * tests/unictype/test-pr_id_start.c: Likewise.
44820         * tests/unictype/test-pr_ideographic.c: Likewise.
44821         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44822         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44823         * tests/unictype/test-pr_lowercase.c: Likewise.
44824         * tests/unictype/test-pr_numeric.c: Likewise.
44825         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44826         * tests/unictype/test-pr_punctuation.c: Likewise.
44827         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44828         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44829         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44830         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44831         * tests/unictype/test-pr_uppercase.c: Likewise.
44832         * tests/unictype/test-pr_xid_continue.c: Likewise.
44833         * tests/unictype/test-pr_xid_start.c: Likewise.
44834         * tests/unictype/test-pr_zero_width.c: Likewise.
44835         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
44836         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
44837         changed behaviour: line breaking is now disallowed between a letter
44838         or '=' and '('.
44839         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
44840         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
44841         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
44842         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
44843         * tests/uniwidth/test-uc_width2.sh: Same updates as in
44844         lib/uniwidth/width.c.
44845         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
44846         without comments, but with the original copyright notice.
44847         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
44848         changes.
44849         * lib/unictype/categ_Cc.h: Likewise.
44850         * lib/unictype/categ_Co.h: Likewise.
44851         * lib/unictype/categ_Cs.h: Likewise.
44852         * lib/unictype/categ_Lt.h: Likewise.
44853         * lib/unictype/categ_Me.h: Likewise.
44854         * lib/unictype/categ_Pc.h: Likewise.
44855         * lib/unictype/categ_Pe.h: Likewise.
44856         * lib/unictype/categ_Pf.h: Likewise.
44857         * lib/unictype/categ_Pi.h: Likewise.
44858         * lib/unictype/categ_Ps.h: Likewise.
44859         * lib/unictype/categ_Sk.h: Likewise.
44860         * lib/unictype/categ_Sm.h: Likewise.
44861         * lib/unictype/categ_Z.h: Likewise.
44862         * lib/unictype/categ_Zl.h: Likewise.
44863         * lib/unictype/categ_Zp.h: Likewise.
44864         * lib/unictype/categ_Zs.h: Likewise.
44865         * lib/unictype/ctype_blank.h: Likewise.
44866         * lib/unictype/ctype_cntrl.h: Likewise.
44867         * lib/unictype/ctype_digit.h: Likewise.
44868         * lib/unictype/ctype_space.h: Likewise.
44869         * lib/unictype/ctype_xdigit.h: Likewise.
44870         * lib/unictype/mirror.h: Likewise.
44871         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44872         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44873         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44874         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44875         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44876         * lib/unictype/pr_bidi_control.h: Likewise.
44877         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44878         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44879         * lib/unictype/pr_bidi_pdf.h: Likewise.
44880         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44881         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44882         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44883         * lib/unictype/pr_format_control.h: Likewise.
44884         * lib/unictype/pr_hex_digit.h: Likewise.
44885         * lib/unictype/pr_hyphen.h: Likewise.
44886         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44887         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44888         * lib/unictype/pr_iso_control.h: Likewise.
44889         * lib/unictype/pr_join_control.h: Likewise.
44890         * lib/unictype/pr_left_of_pair.h: Likewise.
44891         * lib/unictype/pr_line_separator.h: Likewise.
44892         * lib/unictype/pr_math.h: Likewise.
44893         * lib/unictype/pr_non_break.h: Likewise.
44894         * lib/unictype/pr_not_a_character.h: Likewise.
44895         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44896         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44897         * lib/unictype/pr_other_id_continue.h: Likewise.
44898         * lib/unictype/pr_other_id_start.h: Likewise.
44899         * lib/unictype/pr_other_lowercase.h: Likewise.
44900         * lib/unictype/pr_other_math.h: Likewise.
44901         * lib/unictype/pr_other_uppercase.h: Likewise.
44902         * lib/unictype/pr_paired_punctuation.h: Likewise.
44903         * lib/unictype/pr_paragraph_separator.h: Likewise.
44904         * lib/unictype/pr_pattern_syntax.h: Likewise.
44905         * lib/unictype/pr_pattern_white_space.h: Likewise.
44906         * lib/unictype/pr_private_use.h: Likewise.
44907         * lib/unictype/pr_quotation_mark.h: Likewise.
44908         * lib/unictype/pr_radical.h: Likewise.
44909         * lib/unictype/pr_soft_dotted.h: Likewise.
44910         * lib/unictype/pr_space.h: Likewise.
44911         * lib/unictype/pr_titlecase.h: Likewise.
44912         * lib/unictype/pr_variation_selector.h: Likewise.
44913         * lib/unictype/pr_white_space.h: Likewise.
44914         * lib/unictype/sy_c_ident.h: Likewise.
44915         * lib/unictype/sy_c_whitespace.h: Likewise.
44916         * lib/unictype/sy_java_whitespace.h: Likewise.
44917         * modules/uni*/*: Bump version number of expected libunistring version.
44918         Reported by Simon Josefsson.
44920 2011-01-09  Karl Heuer  <kwzh@gnu.org>
44922         useless-if-before-free: fix typo in --help and make the internal,
44923         automatic version date update process work once again.
44924         --help output contained a NUL character instead of the
44925         backslash-zero that was intended.  Also, the "must lie within
44926         the first 8 lines" line is on line 9, and hence not getting
44927         automatically updated.
44928         * build-aux/useless-if-before-free: Fix the former by adding a
44929         backslash, and the latter by condensing the three lines of what-it-does
44930         to a single line, leaving one line of slack for the future.
44932 2011-01-09  Bruno Haible  <bruno@clisp.org>
44934         uniwidth/width: Fix width of U+1D173..U+1D17A.
44935         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
44936         symbolic_width, output_width_property_test): New functions.
44937         (main): Invoke output_nonspacing_property, output_width_property_test.
44938         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
44939         U+1D173..U+1D17A.
44940         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
44941         1.
44942         * modules/uniwidth/*: Bump version number of expected libunistring
44943         version.
44944         * modules/unilbrk/*: Likewise.
44946 2011-01-08  Bruno Haible  <bruno@clisp.org>
44948         uninorm tests: Preserve copyright of Unicode data file.
44949         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
44950         Mention modifications.
44952 2011-01-08  Bruno Haible  <bruno@clisp.org>
44954         gen-uni-tables: Prepare for Unicode 5.2.0.
44955         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
44956         (debug_output_lbp, output_lbp): Update.
44958 2011-01-08  Bruno Haible  <bruno@clisp.org>
44960         unilbrk: Clarify gen-uni-tables.c code.
44961         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
44962         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
44963         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
44965 2011-01-07  Bruno Haible  <bruno@clisp.org>
44967         strtod: Restore errno when successfully parsing Infinity or NaN.
44968         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
44969         restore the original errno.
44971 2011-01-07  Bruno Haible  <bruno@clisp.org>
44973         remove test: Avoid failure on HP-UX 11.
44974         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
44976 2011-01-07  Bruno Haible  <bruno@clisp.org>
44978         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
44979         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
44980         error code.
44982 2011-01-07  Pádraig Brady  <P@draigBrady.com>
44984         ignore-value: fixup comments, and add Eric Blake
44985         as an author since he rewrote the macros.
44986         * lib/ignore-value.h (ignore_value):  State that
44987         we now support aggregates.  Also specify exactly
44988         when the GCC warn_unused_result feature was added.
44990 2011-01-06  Eric Blake  <eblake@redhat.com>
44992         ignore-value: support aggregate types
44993         * lib/ignore-value.h (ignore_value): Provide separate gcc
44994         definition.
44995         * modules/ignore-value-tests: New test module.
44996         * tests/test-ignore-value.c: New test.
44998         maint.mk: improve sc_prohibit_strcmp regex
44999         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
45000         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
45001         definition of STRNEQ.
45003         signal: work around Haiku issue with SIGBUS
45004         * lib/siglist.h: Add comment.
45005         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
45006         strsignal's favoring of SIGSEGV.
45007         * tests/test-signal.c (main): Avoid test failure.
45008         * doc/posix-headers/signal.texi (signal.h): Document the issue.
45009         Reported by Scott McCreary.
45011         maint.mk: add pre-release check to ensure submodule commits are public
45012         * top/maint.mk (public-submodule-commit): New rule.
45013         (submodule-checks): New variable.
45014         (alpha beta stable): Depend on the variable.
45016 2011-01-05  Pádraig Brady  <P@draigBrady.com>
45017         and Jim Meyering  <meyering@redhat.com>
45019         ignore-value: make ignore_value more generic; deprecate ignore_ptr
45020         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
45021         (ATTRIBUTE_DEPRECATED): Define.
45022         (_ignore_case): New function.
45023         (ignore_value): New macro, to replace the old function.
45024         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
45025         * modules/ignore-value (Depends-on): Add stdint.
45027 2011-01-04  Eric Blake  <eblake@redhat.com>
45029         doc: regenerate INSTALL
45030         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
45031         @firstparagraphindent support, now that autoconf dropped it.
45032         (INSTALL_PRELUDE): Reinstate old macro.
45033         * doc/install.texi: Resync from autoconf.
45034         * doc/INSTALL: Reflect recent autoconf update.
45035         * doc/INSTALL.ISO: Likewise.
45036         * doc/INSTALL.UTF-8: Likewise.
45037         Reported by Karl Berry.
45039 2011-01-04  Bruce Korb  <address@hidden>
45041         git-version-gen: avoid a sub-shell
45042         * build-aux/git-version-gen: Redirect stderr in `...` via
45043         "exec 2>...", rather than via an added sub-shell.
45045 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
45047         git-version-gen: use (...) rather than sh -c '...'
45048         * build-aux/git-version-gen: Rather than hard-coding a shell's name
45049         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
45051 2011-01-03  Jim Meyering  <meyering@redhat.com>
45053         git-version-gen: convert leading TABs to spaces
45054         * build-aux/git-version-gen: Expand leading TABs.
45056         git-version-gen: handle failed "git rev-list"
45057         * build-aux/git-version-gen: Rather than leaking a "fatal" error
45058         from git and proceeding as if it had succeeded but printed no SHA1
45059         checksums, suppress the diagnostic and handle the failure.
45060         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
45062         git-version-gen: include command name in one more diagnostic
45063         * build-aux/git-version-gen: When the required .tarball-version file
45064         was missing or unreadable, you might see the diagnostic from "cat",
45065         but no trace of the name of the invoking script.  Now, you still see
45066         the diagnostic from cat, but also get one from "git-version-gen: ".
45067         Inspired by a patch from Bruce Korb.
45069         update-copyright: adjust test to match changed code
45070         * tests/test-update-copyright.sh: Change test's expected output
45071         to match new actual output.
45073 2011-01-02  Bruno Haible  <bruno@clisp.org>
45075         getlogin_r: Avoid test failure on HP-UX 11.
45076         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
45077         ERANGE when the second argument is zero.
45078         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
45079         portability problem.
45081 2011-01-02  Bruce Korb  <bkorb@gnu.org>
45083         * build-aux/update-copyright: doc Simon's changes
45085 2011-01-02  Simon Josefsson  <simon@josefsson.org>
45087         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
45088         environment variable.
45090 2011-01-02  Bruno Haible  <bruno@clisp.org>
45092         unigbrk: Avoid gcc warnings.
45093         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
45094         unused variable.
45095         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
45096         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
45097         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
45098         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
45099         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
45100         Change type of first argument to 'const char *'.
45101         (main): Remove unused variable.
45102         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
45103         type of first argument to 'const char *'.
45104         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
45105         Likewise.
45106         (main): Change type of variable 's'.
45107         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
45108         to 'int'.
45110 2011-01-02  Bruno Haible  <bruno@clisp.org>
45112         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
45113         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
45114         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
45115         bug.
45116         * lib/pwrite.c: Undo 2010-12-31 patch.
45117         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
45119 2011-01-02  Bruno Haible  <bruno@clisp.org>
45121         pread: Fix test whether it works.
45122         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
45124 2011-01-02  Bruno Haible  <bruno@clisp.org>
45126         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
45127         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
45128         ends in "6". Don't require a specific month name. Try also the locale
45129         names found on HP-UX 11 and Solaris 7.
45131 2011-01-02  Bruno Haible  <bruno@clisp.org>
45133         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
45134         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
45135         C linkage.
45136         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
45138 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45140         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
45141         for consistency, since the "cluster" term is not used elsewhere.
45142         * lib/unigbrk.in.h: Update name.
45143         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
45144         * lib/unigbrk/u16-grapheme-next.c: Update name.
45145         * lib/unigbrk/u16-grapheme-prev.c: Update name.
45146         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
45147         * lib/unigbrk/u32-grapheme-next.c: Update name.
45148         * lib/unigbrk/u32-grapheme-prev.c: Update name.
45149         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
45150         * lib/unigbrk/u8-grapheme-next.c: Update name.
45151         * lib/unigbrk/u8-grapheme-prev.c: Update name.
45152         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
45153         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
45154         Suggested by Bruno Haible.
45156 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45158         Remove module 'u8-grapheme-len' as too redundant with
45159         'u8-grapheme-next'.
45160         * modules/unigbrk/u8-grapheme-len: Delete file.
45161         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
45162         * lib/unigbrk.in.h: Remove prototype for deleted function.
45163         * lib/unigbrk/u8-grapheme-len.c: Delete file.
45164         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
45166         Remove module 'u16-grapheme-len' as too redundant with
45167         'u16-grapheme-next'.
45168         * modules/unigbrk/u16-grapheme-len: Delete file.
45169         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
45170         * lib/unigbrk.in.h: Remove prototype for deleted function.
45171         * lib/unigbrk/u16-grapheme-len.c: Delete file.
45172         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
45174         Remove module 'u32-grapheme-len' as too redundant with
45175         'u32-grapheme-next'.
45176         * modules/unigbrk/u32-grapheme-len: Delete file.
45177         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
45178         * lib/unigbrk.in.h: Remove prototype for deleted function.
45179         * lib/unigbrk/u32-grapheme-len.c: Delete file.
45180         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
45182         Suggested by Bruno Haible.
45184 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45186         * unigbrk.in.h: Fix typo: "ben" => "been".
45187         Reported by Bruno Haible.
45189 2011-01-01  Jim Meyering  <meyering@redhat.com>
45191         maint: update almost all copyright ranges to include 2011
45192         Run the new "make update-copyright" rule.
45194 2011-01-01  Jim Meyering  <meyering@redhat.com>
45196         maint: update-copyright: exempt doc/INSTALL*
45197         * Makefile (update-copyright): Also exclude doc/INSTALL*,
45198         since they are generated.  Suggested by Bruno Haible.
45200 2011-01-01  Jim Meyering  <meyering@redhat.com>
45202         maint: refine the update-copyright rule
45203         * Makefile (update-copyright): Also exclude any file that includes
45204         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
45205         code that merely generates the comment.
45207 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45209         New module 'u8-grapheme-len'.
45210         * modules/unigbrk/u8-grapheme-len: New file.
45211         * modules/unigbrk/u8-grapheme-len-tests: New file.
45212         * lib/unigbrk.in.h: Add prototype for new function.
45213         * lib/unigbrk/u8-grapheme-len.c: New file.
45214         * tests/unigbrk/test-u8-grapheme-len.c: New file.
45216         New module 'u16-grapheme-len'.
45217         * modules/unigbrk/u16-grapheme-len: New file.
45218         * modules/unigbrk/u16-grapheme-len-tests: New file.
45219         * lib/unigbrk.in.h: Add prototype for new function.
45220         * lib/unigbrk/u16-grapheme-len.c: New file.
45221         * tests/unigbrk/test-u16-grapheme-len.c: New file.
45223         New module 'u32-grapheme-len'.
45224         * modules/unigbrk/u32-grapheme-len: New file.
45225         * modules/unigbrk/u32-grapheme-len-tests: New file.
45226         * lib/unigbrk.in.h: Add prototype for new function.
45227         * lib/unigbrk/u32-grapheme-len.c: New file.
45228         * tests/unigbrk/test-u32-grapheme-len.c: New file.
45230         New module 'u8-grapheme-next'.
45231         * modules/unigbrk/u8-grapheme-next: New file.
45232         * modules/unigbrk/u8-grapheme-next-tests: New file.
45233         * lib/unigbrk.in.h: Add prototype for new function.
45234         * lib/unigbrk/u8-grapheme-next.c: New file.
45235         * tests/unigbrk/test-u8-grapheme-next.c: New file.
45237         New module 'u16-grapheme-next'.
45238         * modules/unigbrk/u16-grapheme-next: New file.
45239         * modules/unigbrk/u16-grapheme-next-tests: New file.
45240         * lib/unigbrk.in.h: Add prototype for new function.
45241         * lib/unigbrk/u16-grapheme-next.c: New file.
45242         * tests/unigbrk/test-u16-grapheme-next.c: New file.
45244         New module 'u32-grapheme-next'.
45245         * modules/unigbrk/u32-grapheme-next: New file.
45246         * modules/unigbrk/u32-grapheme-next-tests: New file.
45247         * lib/unigbrk.in.h: Add prototype for new function.
45248         * lib/unigbrk/u32-grapheme-next.c: New file.
45249         * tests/unigbrk/test-u32-grapheme-next.c: New file.
45251         New module 'u8-grapheme-prev'.
45252         * modules/unigbrk/u8-grapheme-prev: New file.
45253         * modules/unigbrk/u8-grapheme-prev-tests: New file.
45254         * lib/unigbrk.in.h: Add prototype for new function.
45255         * lib/unigbrk/u8-grapheme-prev.c: New file.
45256         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
45258         New module 'u16-grapheme-prev'.
45259         * modules/unigbrk/u16-grapheme-prev: New file.
45260         * modules/unigbrk/u16-grapheme-prev-tests: New file.
45261         * lib/unigbrk.in.h: Add prototype for new function.
45262         * lib/unigbrk/u16-grapheme-prev.c: New file.
45263         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
45265         New module 'u32-grapheme-prev'.
45266         * modules/unigbrk/u32-grapheme-prev: New file.
45267         * modules/unigbrk/u32-grapheme-prev-tests: New file.
45268         * lib/unigbrk.in.h: Add prototype for new function.
45269         * lib/unigbrk/u32-grapheme-prev.c: New file.
45270         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
45272         New module 'u8-grapheme-breaks'.
45273         * modules/unigbrk/u8-grapheme-breaks: New file.
45274         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
45275         * lib/unigbrk.in.h: Add prototype for new function.
45276         * lib/unigbrk/u8-grapheme-breaks.c: New file.
45277         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
45279         New module 'u16-grapheme-breaks'.
45280         * modules/unigbrk/u16-grapheme-breaks: New file.
45281         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
45282         * lib/unigbrk.in.h: Add prototype for new function.
45283         * lib/unigbrk/u16-grapheme-breaks.c: New file.
45284         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
45286         New module 'u32-grapheme-breaks'.
45287         * modules/unigbrk/u32-grapheme-breaks: New file.
45288         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
45289         * lib/unigbrk.in.h: Add prototype for new function.
45290         * lib/unigbrk/u32-grapheme-breaks.c: New file.
45291         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
45293         New module 'ulc-grapheme-breaks'.
45294         * modules/unigbrk/ulc-grapheme-breaks: New file.
45295         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
45296         * m4/locale-ar.m4: New file.
45297         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
45298         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
45299         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
45301 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45303         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
45304         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
45305         modified how this file was generated before I initially submitted
45306         the module, but failed to regenerate it.  This meant that several
45307         of the level2 entries were wrong.
45308         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
45309         Remove the division-by-2 that is folded into the table now that
45310         gbrkprop.h has been regenerated properly.  Now -1 entries are
45311         handled correctly.
45313         New module 'unigbrk/uc-gbrk-prop-tests'.
45314         * modules/unigbrk/uc-gbrk-prop-tests: New file.
45315         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
45316         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
45317         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
45319 2011-01-01  Bruno Haible  <bruno@clisp.org>
45321         Avoid use of hexadecimal escapes.
45322         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
45323         instead of hexadecimal escapes.
45325 2011-01-01  Jim Meyering  <meyering@redhat.com>
45327         maint: new rule to update copyright year ranges
45328         * Makefile (update-copyright): New rule.
45330         maint: indent with TABs in Makefile
45331         * Makefile: Expand leading sequences of spaces to TABs
45333         version-etc: update the copyright year it reports
45334         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
45336 2010-12-31  Bruno Haible  <bruno@clisp.org>
45338         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
45339         * lib/isfinite.c (zerof, zerod, zerol): New variables.
45340         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
45341         zero.
45343 2010-12-31  Bruno Haible  <bruno@clisp.org>
45345         pwrite: Work around HP-UX 11.11 bug.
45346         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
45347         works and set REPLACE_PWRITE if not.
45348         * lib/pwrite.c (pwrite): Add an implementation that uses the system
45349         function.
45350         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
45352 2010-12-31  Bruno Haible  <bruno@clisp.org>
45354         pread: Work around HP-UX 11 bugs.
45355         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
45356         and set REPLACE_PREAD if not.
45357         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
45359 2010-12-31  Eric Blake  <eblake@redhat.com>
45361         nl_langinfo: fix YESEXPR on Irix 6.5
45362         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
45363         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
45364         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
45365         it.
45367 2010-12-31  Bruno Haible  <bruno@clisp.org>
45369         iconv: Document HP-UX 11 bug.
45370         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
45372 2010-12-31  Bruno Haible  <bruno@clisp.org>
45374         ldexpl: Fix link error on HP-UX 11.
45375         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
45376         LDEXPL_LIBM, using $ISNANL_LIBM.
45378 2010-12-31  Eric Blake  <eblake@redhat.com>
45380         ftello: avoid compilation failure with SunStudio c89
45381         * lib/ftello.c (ftello): Use lseek, not llseek.
45383         tests: avoid failing coreutils tests on cygwin
45384         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
45385         (create_exe_shims_): Return 0 when skipping.
45387 2010-12-31  Bruno Haible  <bruno@clisp.org>
45389         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
45390         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
45392 2010-12-31  Bruno Haible  <bruno@clisp.org>
45394         waitpid: Fix link error in C++ mode.
45395         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
45397 2010-12-31  Bruno Haible  <bruno@clisp.org>
45399         isnan: Use GCC built-ins when possible.
45400         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
45401         __builtin_isnan.
45402         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
45403         (isnan): Define using GCC built-ins for GCC >= 4.0.
45405 2010-12-31  Bruno Haible  <bruno@clisp.org>
45407         isnand: Fix mistake.
45408         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
45409         __builtin_isnand.
45411 2010-12-31  Bruno Haible  <bruno@clisp.org>
45413         open: Avoid C++ error on HP-UX 11.
45414         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
45416 2010-12-31  Bruno Haible  <bruno@clisp.org>
45418         time_r: Add missing declarations on HP-UX 11.
45419         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
45420         instead of HAVE_LOCALTIME_R.
45421         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
45422         HAVE_LOCALTIME_R always.
45423         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
45424         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
45425         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
45426         HAVE_LOCALTIME_R.
45427         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
45428         * doc/posix-functions/localtime_r.texi: Likewise.
45430 2010-12-29  Eric Blake  <eblake@redhat.com>
45432         mountlist: tweak previous commit
45433         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
45434         Reported by Paul Eggert.
45436         mountlist: fix local drive detection on cygwin
45437         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
45438         that works for cygwin.
45440 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45442         ftoastr, snprintf: ftoastr + snprintf module
45443         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
45444         since the snprintf module now should be good enough here.
45445         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
45446         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
45447         and gl_MODULE_INDICATOR([snprintf]), but the former enables
45448         GNULIB_SNPRINTF only for the test directory, and the latter
45449         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
45450         seems to suffice by itself.
45452 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45454         alloca: one step towards thread-safety
45455         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
45456         need for a static variable.  All callers changed.  This does not
45457         make the alloca replacement thread-safe, but it's one step.
45459         tests: minor indenting change
45460         * tests/init.sh: Sync from coreutils housekeeping patch
45461         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
45462         to keep lines within 80 columns.
45464 2010-12-28  Jim Meyering  <meyering@redhat.com>
45466         regex: don't infloop on persistent failing calloc
45467         * lib/regexec.c (build_trtable): Return failure indication upon
45468         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45469         In glibc, this was fixed for version 2.13:
45470         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
45472 2010-12-28  Bruno Haible  <bruno@clisp.org>
45473             Paul Eggert <eggert@cs.ucla.edu>
45475         linkat: Make implementation robust against system behaviour variations.
45476         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
45477         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
45478         way, and to -2 if it needs a generic runtime test.
45479         * lib/linkat.c (solaris_optimized_link_immediate,
45480         solaris_optimized_link_follow): New functions.
45481         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
45482         (check_same_link): Use it.
45484 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
45486         New module 'unigbrk/base'.
45487         * modules/unigbrk/base: New file.
45488         * lib/unigbrk.in.h: New file.
45490         New module 'unigbrk/uc-gbrk-prop'.
45491         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
45492         * modules/unigbrk/uc-gbrk-prop: New file.
45493         * lib/unigbrk/gbrkprop.h: New file.
45494         * lib/unigbrk/uc-gbrk-prop.c: New file.
45496         New module 'unigbrk/uc-is-grapheme-break'.
45497         * modules/unigbrk/uc-is-grapheme-break: New file.
45498         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
45499         * lib/unigbrk/uc-is-grapheme-break.c: New file.
45500         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
45501         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
45502         * tests/unigbrk/GraphemeBreakTest.txt: New file.
45504         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
45506 2010-12-27  Bruno Haible  <bruno@clisp.org>
45508         linkat test: Avoid failure on Solaris 11 2010-11.
45509         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
45511 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45513         utimens: work around glibc rounding bug on more platforms
45514         * lib/utimens.c (fdutimens): Work around rounding bug even if
45515         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
45516         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
45518 2010-12-27  Bruno Haible  <bruno@clisp.org>
45520         select tests: Improve comments.
45521         * tests/test-select.c (do_select): Add comments.
45523 2010-12-27  Bruno Haible  <bruno@clisp.org>
45525         select tests: Safer way of handling timeout.
45526         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
45527         at every invocation.
45529 2010-12-27  Bruno Haible  <bruno@clisp.org>
45531         select tests: Use 'bool' where appropriate.
45532         * tests/test-select.c (connect_to_socket): Change argument type to
45533         'bool'.
45535 2010-12-27  Bruno Haible  <bruno@clisp.org>
45537         select tests: Use existing modules.
45538         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
45539         (configure.ac): Don't test for unistd.h.
45540         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
45541         declared in <unistd.h>.
45543 2010-12-27  Bruno Haible  <bruno@clisp.org>
45545         mbrtowc: Work around a Solaris 7 bug.
45546         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
45547         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
45548         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
45549         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
45550         MBRTOWC_NULL_ARG1_BUG.
45551         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
45552         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
45553         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
45554         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
45556 2010-12-27  Jim Meyering  <meyering@redhat.com>
45558         read-file.c: tweak syntax
45559         * lib/read-file.c (fread_file): Remove space after "*" in function
45560         definitions.
45562 2010-12-27  Bruno Haible  <bruno@clisp.org>
45564         times test: Avoid gcc warnings on OSF/1.
45565         * tests/test-times.c (main): Cast printf arguments from clock_t to
45566         'long int'.
45568 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45570         utimens: work around glibc rounding bug on older Linux kernels
45571         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
45572         on Linux with a glibc whose utimes might not work, then work
45573         around a longstanding glibc bug involving rounding rather than
45574         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
45575         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
45577 2010-12-26  Bruno Haible  <bruno@clisp.org>
45579         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
45580         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
45581         _GL_CXXALIAS_SYS.
45582         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45584 2010-12-26  Bruno Haible  <bruno@clisp.org>
45586         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
45587         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
45588         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
45589         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
45590         looking for the declaration.
45591         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45592         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
45593         problem.
45594         * doc/posix-functions/inet_pton.texi: Likewise.
45596 2010-12-26  Bruno Haible  <bruno@clisp.org>
45598         arpa_inet: Use the common idioms with C++ support.
45599         * lib/arpa_inet.in.h: Include c++defs.h.
45600         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
45601         support.
45602         * modules/arpa_inet (Depends-on): Add c++defs.
45603         (Makefile.am): Substitute the contents of c++defs.h.
45604         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
45605         * modules/arpa_inet-c++-tests: New file.
45606         * tests/test-arpa_inet-c++.cc: New file.
45608 2010-12-25  Bruno Haible  <bruno@clisp.org>
45610         Fix more C++ link errors on Solaris 8.
45611         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
45612         $(LIB_EACCESS).
45613         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
45614         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
45615         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
45616         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
45617         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
45619 2010-12-25  Bruno Haible  <bruno@clisp.org>
45621         printf-posix: Fix link error when a non-GCC compiler is used.
45622         * lib/stdio.in.h (printf): When not using GCC, override printf
45623         correctly.
45624         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45626 2010-12-25  Bruno Haible  <bruno@clisp.org>
45628         strerror_r-posix: Update doc.
45629         * doc/posix-functions/strerror_r.texi: Update doc about the return
45630         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
45632 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45634         utimens: simplify the logic of the previous change
45635         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
45636         This should not affect whether the test succeeds or fails.
45638         utimens: configure better on hosts with NFS clock skew
45639         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
45640         uses the clock of the local host.  It might use the clock of the
45641         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
45642         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
45644 2010-12-25  Bruno Haible  <bruno@clisp.org>
45646         ptsname test: Avoid failure on Solaris.
45647         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
45648         open a pseudo-terminal; don't use BSD-style ptys.
45649         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
45651 2010-12-25  Bruno Haible  <bruno@clisp.org>
45653         ptsname: Avoid ERANGE failure on some systems.
45654         * lib/ptsname.c (buffer): Increase size.
45656 2010-12-25  Bruno Haible  <bruno@clisp.org>
45658         rename, renameat: Avoid test failures at NFS mounted locations.
45659         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
45660         so that subsequent mkdir calls succeed.
45662 2010-12-25  Bruno Haible  <bruno@clisp.org>
45664         iswblank: Fix C++ link error on Solaris 8.
45665         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
45666         _GL_FUNCDECL_SYS.
45668 2010-12-25  Bruno Haible  <bruno@clisp.org>
45670         unistd: Fix C++ link error on Solaris 8.
45671         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
45673 2010-12-25  Bruno Haible  <bruno@clisp.org>
45675         readlink doc: Mention an old glibc bug.
45676         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
45678 2010-12-25  Bruno Haible  <bruno@clisp.org>
45680         fcntl-h: Fix for use of C++ on glibc systems.
45681         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
45682         also on glibc systems in C++ mode.
45683         Reported by Gary V. Vaughan <gary@gnu.org>.
45685 2010-12-25  Bruno Haible  <bruno@clisp.org>
45687         roundl-ieee: Make it work on OSF/1 5.1 with cc.
45688         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
45690 2010-12-25  Bruno Haible  <bruno@clisp.org>
45692         truncl-ieee: Make it work on OSF/1 5.1 with cc.
45693         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
45694         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
45695         test whether truncl works according to ISO C 99 with IEC 60559.
45696         * m4/truncl-ieee.m4: New file.
45697         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
45698         m4/signbit.m4.
45699         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
45701 2010-12-25  Bruno Haible  <bruno@clisp.org>
45703         ceill-ieee: Make it work on OSF/1 5.1 with cc.
45704         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
45705         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
45706         test whether ceill works according to ISO C 99 with IEC 60559.
45707         * m4/ceill-ieee.m4: New file.
45708         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
45709         m4/signbit.m4.
45710         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
45712 2010-12-25  Bruno Haible  <bruno@clisp.org>
45714         Ensure all prerequisites of <wchar.h> are included.
45715         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
45716         before <wchar.h>.
45717         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
45718         gl_MBRLEN_NUL_RETVAL): Likewise.
45719         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45720         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
45721         AC_FUNC_MBRTOWC): Likewise.
45722         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45723         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
45724         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
45725         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45726         Likewise.
45727         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45728         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
45729         (gl_WCHAR_H): Improve comments.
45730         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
45732 2010-12-25  Bruno Haible  <bruno@clisp.org>
45734         strtok_r: Fix C syntax error in autoconf macro.
45735         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
45736         characters in test program.
45738 2010-12-24  Bruno Haible  <bruno@clisp.org>
45740         ceil, trunc, round: Fix gcc warnings.
45741         * lib/ceil.c (MIN): Undefine before redefining.
45742         * lib/trunc.c (MIN): Likewise.
45743         * lib/round.c (MIN): Likewise.
45744         Include <math.h> first.
45746 2010-12-24  Bruno Haible  <bruno@clisp.org>
45748         select tests: Avoid failures on OSF/1 5.1.
45749         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
45750         failure of closing the last socket; it may fail with ECONNRESET.
45752 2010-12-24  Eric Blake  <eblake@redhat.com>
45754         stdint: avoid HP-UX 10.20 preprocessor bug
45755         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
45756         than #if.
45757         * tests/test-floor2.c (main): Likewise.
45758         Reported by Peter O'Gorman.
45760         pipe: make obsoletion transition easier
45761         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
45762         * modules/pipe (Files): Include revived file.
45763         (Include): Drop reference, to mirror getdate's behavior.
45765 2010-12-24  Bruno Haible  <bruno@clisp.org>
45767         sys_socket: Hide mismatch of declarations on NonStop Kernel.
45768         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
45769         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
45770         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45772 2010-12-24  Bruno Haible  <bruno@clisp.org>
45774         gethostname: Ensure declaration on NonStop Kernel.
45775         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
45776         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45778 2010-12-24  Bruno Haible  <bruno@clisp.org>
45780         sys_select: Ensure all necessary types on NonStop Kernel.
45781         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
45782         include <sys/time.h>.
45783         * doc/posix-headers/sys_select.texi: Mention that it's missing on
45784         NonStop Kernel.
45785         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45787 2010-12-24  Bruno Haible  <bruno@clisp.org>
45789         sys_select: Remove unneeded include.
45790         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
45791         have <sys/select.h>.
45793 2010-12-24  Bruno Haible  <bruno@clisp.org>
45795         gethostname: Provide a fallback for HOST_NAME_MAX.
45796         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
45797         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
45798         instead.
45799         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45801 2010-12-24  Bruno Haible  <bruno@clisp.org>
45803         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
45804         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
45805         (SA_RESTART): Likewise.
45806         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45808 2010-12-24  Bruno Haible  <bruno@clisp.org>
45810         signal: Define NSIG.
45811         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
45812         * tests/test-signal.c (nsig): New variable.
45813         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45815 2010-12-24  Bruno Haible  <bruno@clisp.org>
45817         rename, renameat: Avoid test failures on OSF/1 5.1.
45818         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
45819         alternative error codes.
45820         * tests/test-renameat.c (main): Likewise.
45822 2010-12-24  Bruno Haible  <bruno@clisp.org>
45824         *printf: Detect large precisions bug on Solaris 10/SPARC.
45825         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
45826         by Paul Eggert.
45827         * tests/test-snprintf-posix.h (test_function): Add this test code here
45828         too.
45829         * tests/test-sprintf-posix.h (test_function): Likewise.
45830         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45831         * tests/test-vasprintf-posix.c (test_function): Likewise.
45832         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
45833         around by gnulib.
45834         * doc/posix-functions/printf.texi: Likewise.
45835         * doc/posix-functions/snprintf.texi: Likewise.
45836         * doc/posix-functions/sprintf.texi: Likewise.
45837         * doc/posix-functions/vfprintf.texi: Likewise.
45838         * doc/posix-functions/vprintf.texi: Likewise.
45839         * doc/posix-functions/vsnprintf.texi: Likewise.
45840         * doc/posix-functions/vsprintf.texi: Likewise.
45841         * doc/posix-functions/dprintf.texi: Undo last commit.
45842         * doc/posix-functions/vdprintf.texi: Likewise.
45844 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45846         tests: port test-fdutimensat.c to Solaris 8
45847         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
45848         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
45849         On Solaris 8, it fails with errno == ENOSYS, because there is no
45850         futimens (so it can't use the fd), and there is no lutimens (so it
45851         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
45853         vsnprintf: make more consistent with snprintf; doc fixes
45855         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
45856         the byte count return problem was promoted from the snprintf-posix
45857         to the snprintf module.
45858         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
45859         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
45860         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
45861         * tests/test-snprintf.c (main): Check the byte count returned.
45862         * tests/test-vsnprintf.c (main): Likewise.
45864 2010-12-23  Eric Blake  <eblake@redhat.com>
45866         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
45867         * modules/sigpipe (License): Relax license.
45869 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45871         doc: document Solaris printf bug with large float precisions
45872         * doc/posix-functions/dprintf.texi (dprintf):
45873         * doc/posix-functions/fprintf.texi (fprintf):
45874         * doc/posix-functions/printf.texi (printf):
45875         * doc/posix-functions/snprintf.texi (snprintf):
45876         * doc/posix-functions/sprintf.texi (sprintf):
45877         * doc/posix-functions/vdprintf.texi (vdprintf):
45878         * doc/posix-functions/vfprintf.texi (vfprintf):
45879         * doc/posix-functions/vprintf.texi (vprintf):
45880         * doc/posix-functions/vsnprintf.texi (vsnprintf):
45881         * doc/posix-functions/vsprintf.texi (vsprintf):
45882         Mention that these functions mishandle large floating point
45883         precisions on Solaris 10.  The same bug is also present in Solaris
45884         8, and I assume earlier.  This causes "cd gnulib-tests; make
45885         check" to fail on Solaris 8 (and I assume, later) when building
45886         the latest coreutils, in test-vasprintf-posix's call to
45887         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
45888         the wide flavors (e.g., wprintf) so this patch just updates the
45889         documentation for the narrow ones.
45891         test-posixtm.c: add two tests
45892         * tests/test-posixtm.c: Add two tests, to highlight the
45893         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
45894         around this bug; this is merely to document it.
45896 2010-12-22  Bruno Haible  <bruno@clisp.org>
45898         getlogin_r: Work around portability problem on OSF/1.
45899         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
45900         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
45901         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
45902         test for a truncated result.
45903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
45904         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
45905         * modules/getlogin_r (Depends-on): Add memchr.
45906         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
45908 2010-12-22  Bruno Haible  <bruno@clisp.org>
45910         ptsname: Avoid test failure on OSF/1 5.1.
45911         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
45912         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
45913         (same_slave): New function.
45914         (main): Use it to compare ptsname's result with the expected file name.
45916 2010-12-22  Bruno Haible  <bruno@clisp.org>
45918         Port extended stdio modules to HP NonStop Kernel.
45919         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
45920         macros.
45921         * lib/fbufmode.c: Update comments.
45922         * lib/fflush.c: Likewise.
45923         * lib/fpurge.c: Likewise.
45924         * lib/freadable.c: Likewise.
45925         * lib/freadahead.c: Likewise.
45926         * lib/freading.c: Likewise.
45927         * lib/freadptr.c: Likewise.
45928         * lib/freadseek.c: Likewise.
45929         * lib/fseeko.c: Likewise.
45930         * lib/fseterr.c: Likewise.
45931         * lib/fwritable.c: Likewise.
45932         * lib/fwriting.c: Likewise.
45933         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
45935 2010-12-22  Bruno Haible  <bruno@clisp.org>
45937         ttyname_r: Work around bug on OSF/1 5.1.
45938         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
45939         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
45940         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
45941         present.
45942         * lib/ttyname_r.c (ttyname_r): Update comments.
45944 2010-12-22  Bruno Haible  <bruno@clisp.org>
45946         round: Implement result sign according to IEEE 754.
45947         * lib/round.c (MIN, MINUS_ZERO): New macros.
45948         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
45949         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
45950         * tests/test-round-ieee.c (main): Likewise.
45951         * tests/test-roundl-ieee.c (main): Likewise.
45953         trunc: Implement result sign according to IEEE 754.
45954         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
45955         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
45956         * tests/test-trunc2.c: Include minus-zero.h.
45957         (MINUS_ZERO): New macro.
45958         (trunc_reference): Keep in sync with lib/trunc.c.
45959         * tests/test-truncf2.c: Include minus-zero.h.
45960         (MINUS_ZERO): New macro.
45961         (truncf_reference): Keep in sync with lib/trunc.c.
45962         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
45963         * tests/test-trunc-ieee.c (main): Likewise.
45964         * tests/test-truncl-ieee.c (main): Likewise.
45966         ceil: Implement result sign according to IEEE 754.
45967         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
45968         (FUNC): Return -0.0 for -1 < x < 0.
45969         * tests/test-ceil2.c: Include minus-zero.h.
45970         (MINUS_ZERO): New macro.
45971         (ceil_reference): Keep in sync with lib/ceil.c.
45972         * tests/test-ceilf2.c: Include minus-zero.h.
45973         (MINUS_ZERO): New macro.
45974         (ceilf_reference): Keep in sync with lib/ceil.c.
45975         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
45976         * tests/test-ceil-ieee.c (main): Likewise.
45977         * tests/test-ceill-ieee.c (main): Likewise.
45979         floor: Implement result sign according to IEEE 754.
45980         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
45981         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
45982         * tests/test-floorf2.c (floorf_reference): Likewise.
45983         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
45984         * tests/test-floor-ieee.c (main): Likewise.
45985         * tests/test-floorl-ieee.c (main): Likewise.
45987 2010-12-22  Bruno Haible  <bruno@clisp.org>
45989         getaddrinfo: Update doc.
45990         * doc/posix-functions/gai_strerror.texi: Return type is also different
45991         on AIX and HP-UX.
45993 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
45995         getaddrinfo, inet_ntop: Update doc for Solaris.
45996         * doc/posix-functions/gai_strerror.texi: Return type is also an
45997         issue on Solaris 9 and earlier.
45998         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
45999         on Solaris 10 and earlier.
46001 2010-12-21  Bruno Haible  <bruno@clisp.org>
46003         New module 'roundl-ieee'.
46004         * modules/roundl-ieee: New file.
46005         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
46006         test whether roundl works according to ISO C 99 with IEC 60559.
46007         * m4/roundl-ieee.m4: New file.
46008         * modules/roundl-ieee-tests: New file.
46009         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
46010         * tests/test-roundl.c (main): Remove signbit tests.
46011         * modules/roundl-tests (Depends-on): Remove signbit.
46012         * doc/posix-functions/roundl.texi: Mention the new module.
46014 2010-12-21  Bruno Haible  <bruno@clisp.org>
46016         New module 'truncl-ieee'.
46017         * modules/truncl-ieee: New file.
46018         * modules/truncl-ieee-tests: New file.
46019         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
46020         * tests/test-truncl.c (main): Remove signbit tests.
46021         * modules/truncl-tests (Depends-on): Remove signbit.
46022         * doc/posix-functions/truncl.texi: Mention the new module.
46024 2010-12-21  Bruno Haible  <bruno@clisp.org>
46026         New module 'ceill-ieee'.
46027         * modules/ceill-ieee: New file.
46028         * modules/ceill-ieee-tests: New file.
46029         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
46030         * tests/test-ceill.c (main): Remove signbit tests.
46031         * modules/ceill-tests (Depends-on): Remove signbit.
46032         * doc/posix-functions/ceill.texi: Mention the new module.
46034 2010-12-21  Bruno Haible  <bruno@clisp.org>
46036         New module 'floorl-ieee'.
46037         * modules/floorl-ieee: New file.
46038         * modules/floorl-ieee-tests: New file.
46039         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
46040         * tests/test-floorl.c (main): Remove signbit tests.
46041         * modules/floorl-tests (Depends-on): Remove signbit.
46042         * doc/posix-functions/floorl.texi: Mention the new module.
46044 2010-12-21  Bruno Haible  <bruno@clisp.org>
46046         New module 'round-ieee'.
46047         * modules/round-ieee: New file.
46048         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
46049         whether round works according to ISO C 99 with IEC 60559.
46050         * m4/round-ieee.m4: New file.
46051         * modules/round-ieee-tests: New file.
46052         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
46053         * tests/test-round1.c (main): Remove signbit tests.
46054         * modules/round-tests (Depends-on): Remove 'signbit'.
46055         * doc/posix-functions/round.texi: Mention the new module.
46057 2010-12-21  Bruno Haible  <bruno@clisp.org>
46059         New module 'trunc-ieee'.
46060         * modules/trunc-ieee: New file.
46061         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
46062         whether trunc works according to ISO C 99 with IEC 60559.
46063         * m4/trunc-ieee.m4: New file.
46064         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
46065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
46066         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
46067         * modules/trunc-ieee-tests: New file.
46068         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
46069         * tests/test-trunc1.c (main): Remove signbit tests.
46070         * modules/trunc-tests (Depends-on): Remove 'signbit'.
46071         * doc/posix-functions/trunc.texi: Mention the new module.
46073 2010-12-21  Bruno Haible  <bruno@clisp.org>
46075         New module 'ceil-ieee'.
46076         * modules/ceil-ieee: New file.
46077         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
46078         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
46079         ISO C 99 with IEC 60559.
46080         * m4/ceil-ieee.m4: New file.
46081         * modules/ceil (Files): Add lib/ceil.c.
46082         (Depends-on): Add 'float'.
46083         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46084         * lib/math.in.h (ceil): New declaration.
46085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
46086         REPLACE_CEIL.
46087         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
46088         * modules/ceil-ieee-tests: New file.
46089         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
46090         * tests/test-math-c++.cc: Check the signature of 'ceil'.
46091         * doc/posix-functions/ceil.texi: Mention the new module.
46093 2010-12-21  Bruno Haible  <bruno@clisp.org>
46095         New module 'floor-ieee'.
46096         * modules/floor-ieee: New file.
46097         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
46098         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
46099         ISO C 99 with IEC 60559.
46100         * m4/floor-ieee.m4: New file.
46101         * modules/floor (Files): Add lib/floor.c.
46102         (Depends-on): Add 'float'.
46103         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46104         * lib/math.in.h (floor): New declaration.
46105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
46106         REPLACE_FLOOR.
46107         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
46108         * modules/floor-ieee-tests: New file.
46109         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
46110         * tests/test-math-c++.cc: Check the signature of 'floor'.
46111         * doc/posix-functions/floor.texi: Mention the new module.
46113 2010-12-21  Bruno Haible  <bruno@clisp.org>
46115         New module 'roundf-ieee'.
46116         * modules/roundf-ieee: New file.
46117         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
46118         test whether roundf works according to ISO C 99 with IEC 60559.
46119         * m4/roundf-ieee.m4: New file.
46120         * modules/roundf-ieee-tests: New file.
46121         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
46122         * tests/test-roundf1.c (main): Remove signbit tests.
46123         * modules/roundf-tests (Depends-on): Remove 'signbit'.
46124         * doc/posix-functions/roundf.texi: Mention the new module.
46126 2010-12-21  Bruno Haible  <bruno@clisp.org>
46128         New module 'truncf-ieee'.
46129         * modules/truncf-ieee: New file.
46130         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
46131         test whether truncf works according to ISO C 99 with IEC 60559.
46132         * m4/truncf-ieee.m4: New file.
46133         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
46134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
46135         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
46136         * modules/truncf-ieee-tests: New file.
46137         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
46138         * tests/test-truncf1.c (main): Remove signbit tests.
46139         * modules/truncf-tests (Depends-on): Remove 'signbit'.
46140         * doc/posix-functions/truncf.texi: Mention the new module.
46142 2010-12-21  Bruno Haible  <bruno@clisp.org>
46144         New module 'ceilf-ieee'.
46145         * modules/ceilf-ieee: New file.
46146         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
46147         test whether ceilf works according to ISO C 99 with IEC 60559.
46148         * m4/ceilf-ieee.m4: New file.
46149         * modules/ceilf-ieee-tests: New file.
46150         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
46151         * tests/test-ceilf1.c (main): Remove signbit tests.
46152         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
46153         * doc/posix-functions/ceilf.texi: Mention the new module.
46155 2010-12-21  Bruno Haible  <bruno@clisp.org>
46157         New module 'floorf-ieee'.
46158         * modules/floorf-ieee: New file.
46159         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
46160         test whether floorf works according to ISO C 99 with IEC 60559.
46161         * m4/floorf-ieee.m4: New file.
46162         * modules/floorf-ieee-tests: New file.
46163         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
46164         * tests/test-floorf1.c (main): Remove signbit tests.
46165         * modules/floorf-tests (Depends-on): Remove 'signbit'.
46166         * doc/posix-functions/floorf.texi: Mention the new module.
46168 2010-12-21  Bruno Haible  <bruno@clisp.org>
46170         Support for minus zero in autoconf macros.
46171         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
46172         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
46173         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
46174         * tests/minus-zero.h: Update comments.
46176 2010-12-21  Bruno Haible  <bruno@clisp.org>
46178         Tests for module 'ceil'.
46179         * modules/ceil-tests: New file.
46180         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
46181         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
46183 2010-12-21  Bruno Haible  <bruno@clisp.org>
46185         Tests for module 'floor'.
46186         * modules/floor-tests: New file.
46187         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
46188         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
46190 2010-12-21  Bruno Haible  <bruno@clisp.org>
46192         math: Fix indentation.
46193         * lib/math.in.h (floorf): Fix indentation.
46195 2010-12-21  Bruno Haible  <bruno@clisp.org>
46197         Fix cross-compilation guesses on Solaris.
46198         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
46199         not match "solaris2.10".
46200         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46201         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
46202         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
46204 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46206         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
46207         This fixes a problem observed with the latest coreutils snapshot
46208         that caused a test to fail on Solaris 8.  src/csplit.c's call
46209         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
46210         earlier, instead of returning the number of bytes that would have
46211         been generated; this causes csplit to incorrectly report memory
46212         exhaustion.
46213         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
46214         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
46215         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
46216         comments to match.
46217         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
46218         Fix typo in matching older versions of Solaris: "solaris2.10"
46219         is matched by the shell pattern "solaris2.[0-9]*".  This matters
46220         only for guessing while cross-compiling.
46221         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
46223 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
46225         ftoastr: fix comment again
46226         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46227         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
46228         Also, simplify example a bit by using flags = 0.
46230 2010-12-20  Bruno Haible  <bruno@clisp.org>
46232         round*, trunc*: Update documentation regarding glibc.
46233         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
46234         * doc/posix-functions/round.texi: Likewise.
46235         * doc/posix-functions/roundl.texi: Likewise.
46236         * doc/posix-functions/truncf.texi: Likewise.
46237         * doc/posix-functions/trunc.texi: Likewise.
46238         * doc/posix-functions/truncl.texi: Likewise.
46240 2010-12-20  Bruno Haible  <bruno@clisp.org>
46242         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
46243         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
46244         * doc/posix-functions/round.texi: Likewise.
46245         * doc/posix-functions/roundl.texi: Likewise.
46247 2010-12-20  Bruno Haible  <bruno@clisp.org>
46249         ttyname_r: Add missing declaration on HP-UX 11.
46250         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
46251         HAVE_TTYNAME_R.
46252         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
46253         declared. Set HAVE_TTYNAME_R always.
46254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46255         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
46256         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
46257         HAVE_TTYNAME_R.
46258         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
46260 2010-12-20  Bruno Haible  <bruno@clisp.org>
46262         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
46263         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
46264         * doc/posix-functions/getlogin_r.texi: Likewise.
46265         * tests/test-getlogin.c: Include <errno.h>.
46266         (main): Avoid test failure on HP-UX 11.11.
46267         * tests/test-getlogin_r.c (main): Likewise.
46269 2010-12-20  Bruno Haible  <bruno@clisp.org>
46271         getlogin_r: Add missing declaration on HP-UX 11.
46272         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
46273         declared also when it exists as a function.
46274         * doc/posix-functions/getlogin_r.texi: Document this workaround.
46276 2010-12-20  Bruno Haible  <bruno@clisp.org>
46278         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
46279         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
46280         through wcrtomb.
46282 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
46284         ftoastr: fix comment
46285         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46286         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
46288 2010-12-19  Bruno Haible  <bruno@clisp.org>
46290         isnan: Ensure it is a macro.
46291         * lib/math.in.h (isnan): Define as a macro if not already a macro.
46292         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
46293         Solaris.
46295 2010-12-19  Bruno Haible  <bruno@clisp.org>
46297         ldexpl test: Fix link error on OSF/1 5.1.
46298         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
46300 2010-12-19  Bruno Haible  <bruno@clisp.org>
46302         wctype: Make it work in C++ mode on OSF/1 5.1.
46303         * lib/wctype.in.h (iswblank): Declare but not define here.
46304         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
46305         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
46306         * modules/wctype (Files): Add lib/iswblank.c.
46308 2010-12-19  Bruno Haible  <bruno@clisp.org>
46310         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
46311         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
46312         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
46314 2010-12-19  Bruno Haible  <bruno@clisp.org>
46316         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
46317         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
46318         _POSIX_PII_SOCKET.
46319         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
46320         * doc/posix-functions/recvfrom.texi: Likewise.
46321         * doc/posix-functions/send.texi: Likewise.
46322         * doc/posix-functions/sendto.texi: Likewise.
46324 2010-12-19  Bruno Haible  <bruno@clisp.org>
46326         tcgetsid: Add missing declaration on OSF/1 5.1.
46327         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
46328         HAVE_TCGETSID.
46329         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
46330         Don't set HAVE_TCGETSID.
46331         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
46332         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
46333         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
46334         HAVE_TCGETSID.
46335         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
46337 2010-12-19  Bruno Haible  <bruno@clisp.org>
46339         stdio: Fix problem with popen() declaration on OSF/1 5.1.
46340         * lib/stdio.in.h: During the include_next statement, let recursive
46341         includes of this file include only the system header file.
46343 2010-12-19  Bruno Haible  <bruno@clisp.org>
46345         iconv_open: Fix regression from 2010-12-04.
46346         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
46347         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
46349 2010-12-19  Bruno Haible  <bruno@clisp.org>
46351         stdbool test: Avoid a gcc warning.
46352         * tests/test-stdbool.c (main): Fail if e1 is false.
46353         Reported by Jim Meyering.
46355 2010-12-19  Jim Meyering  <meyering@redhat.com>
46357         setenv: restore to working order
46358         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
46359         mistakenly removed.
46360         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
46361         HAVE_SETENV.
46362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
46363         HAVE_SETENV.
46365 2010-12-19  Bruno Haible  <bruno@clisp.org>
46367         Document some different function declarations on OSF/1 5.1.
46368         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
46369         * doc/posix-functions/inet_ntop.texi: Likewise.
46370         * doc/posix-functions/gethostname.texi: Likewise.
46371         * lib/unistd.in.h (gethostname): Update comment.
46373 2010-12-19  Bruno Haible  <bruno@clisp.org>
46375         doc: Mention vasprintf-posix module.
46376         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
46377         the 'vasprintf-posix' module.
46378         * doc/glibc-functions/vasprintf.texi: Likewise.
46380 2010-12-19  Bruno Haible  <bruno@clisp.org>
46382         unsetenv: Add missing declaration on OSF/1 5.1.
46383         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
46384         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
46385         Don't set HAVE_UNSETENV. In the test program, set _BSD.
46386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
46387         not HAVE_UNSETENV.
46388         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
46389         HAVE_UNSETENV.
46390         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
46392 2010-12-19  Bruno Haible  <bruno@clisp.org>
46394         setenv: Add missing declaration on OSF/1 5.1.
46395         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
46396         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
46397         declared. Don't set HAVE_SETENV.
46398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
46399         not HAVE_SETENV.
46400         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
46401         HAVE_SETENV.
46402         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
46404 2010-12-19  Bruno Haible  <bruno@clisp.org>
46406         nl_langinfo tests: Avoid gcc warning.
46407         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
46409 2010-12-19  Bruno Haible  <bruno@clisp.org>
46411         mknod: Avoid error in C++ mode on OSF/1 with GCC.
46412         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
46413         _GL_CXXALIAS_SYS.
46415 2010-12-19  Bruno Haible  <bruno@clisp.org>
46417         stdbool: Relax test.
46418         * tests/test-stdbool.c (e): Don't require that casts from a variable's
46419         address to 'bool' work in static initializer, for compilers other than
46420         GCC.
46422 2010-12-19  Bruno Haible  <bruno@clisp.org>
46424         ftello: Add missing declaration on OSF/1 5.1.
46425         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
46426         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
46427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
46428         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
46429         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
46431 2010-12-19  Bruno Haible  <bruno@clisp.org>
46433         fseeko: Add missing declaration on OSF/1 5.1.
46434         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
46435         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
46436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
46437         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
46438         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
46440 2010-12-19  Bruno Haible  <bruno@clisp.org>
46442         fchdir: Add missing declaration on OSF/1 5.1.
46443         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
46444         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
46445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
46446         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
46447         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
46449 2010-12-19  Bruno Haible  <bruno@clisp.org>
46451         relocatable-prog-wrapper: Separate from relocatable-prog.
46452         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
46453         uninstall-relocwrapper rule here.
46454         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
46455         Reported by Ian Beckwith <ianb@erislabs.net>.
46457 2010-12-19  Bruno Haible  <bruno@clisp.org>
46459         unistr/u8-mbsnlen: Add missing dependency.
46460         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
46461         Reported by Ian Beckwith <ianb@erislabs.net>.
46463 2010-12-19  Bruno Haible  <bruno@clisp.org>
46465         iconv: Make it possible again to use this module without 'iconv-h'.
46466         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
46467         if it is not defined.
46468         Reported by Ian Beckwith <ianb@erislabs.net>.
46470 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46472         acl: port to Solaris 8 when copying from tmpfs to ufs
46473         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
46474         error number.  Problem observed on Solaris 8 with latest
46475         coreutils, with "mv A B", where A is on a tmpfs file system and B
46476         is on a ufs file system.  This caused coreutils' mv/part-symlink
46477         test to fail.
46479         tests: set fail=0 at start
46480         * tests/init.sh (setup_): Move fail=0 initialization here ...
46481         (mktempd_): ... from here, so that tests can rely on fail being
46482         set to 0 initially.  This fixes a problem in coreutils; see:
46483         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
46485 2010-12-18  Bruno Haible  <bruno@clisp.org>
46487         memmem-simple: Stylistic changes.
46488         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
46489         Fix preprocessor directive indentation.
46491 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46493         memmem, memmem-simple: reorganize and expand empty needle check
46494         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
46495         functional checks to memmem-simple so that one has a fully functional
46496         memmem by using just this module.
46497         Restrict the performance only check to the memmem module.
46498         Also expand the empty needle check to ensure the correct
46499         pointer is returned, not just a non NULL pointer.
46500         * doc/glibc-functions/memmem.texi: Rearrange the portability
46501         documentation to correlate with the rearranged checks.
46502         Clarify exactly how the memmem and memmem-simple modules
46503         relate to each other.
46505 2010-12-15  Pádraig Brady  <P@draigBrady.com>
46506             Bruno Haible  <bruno@clisp.org>
46508         Improve cross-compilation guesses for uClibc.
46509         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
46510         that uClibc does not have the glibc bug.
46511         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
46512         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
46514 2010-12-14  Eric Blake  <eblake@redhat.com>
46516         configmake: provide fallbacks for oldest supported autotools
46517         * m4/configmake.m4: New file.
46518         * modules/configmake (Files): Ship it.
46519         (configure.ac): Use it to guarantee fallbacks.
46521 2010-12-13  Pádraig Brady  <P@draigBrady.com>
46523         read-file: Improve handling of large files
46524         * lib/read-file.c (fread_file): Minimize realloc()s
46525         for regular files, and better manage sizes around SIZE_MAX.
46527 2010-12-13  Eric Blake  <eblake@redhat.com>
46529         cloexec, fcntl: relax license
46530         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
46531         consent from all contributors.
46532         * modules/fcntl (License): Likewise.
46534 2010-12-10  Bruno Haible  <bruno@clisp.org>
46536         Tests for module 'pipe-posix'.
46537         * modules/pipe-posix-tests: New file.
46538         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
46540 2010-12-10  Bruno Haible  <bruno@clisp.org>
46542         pipe-posix: Make it work in C++ mode.
46543         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
46544         (pipe): Use common idiom, not a macro definition.
46545         * lib/pipe.c: New file.
46546         * m4/pipe.m4: New file.
46547         * modules/pipe-posix (Description): Enhance.
46548         (Files): Add lib/pipe.c, m4/pipe.m4.
46549         (configure.ac): Invoke gl_FUNC_PIPE.
46550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
46551         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
46552         * tests/test-unistd-c++.cc: Check the signature of pipe.
46554 2010-12-10  Bruno Haible  <bruno@clisp.org>
46556         Rename module 'pipe' to 'spawn-pipe'.
46557         * modules/spawn-pipe: New file, renamed from modules/pipe.
46558         (Files, configure.ac, Makefile.am): Update.
46559         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
46560         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
46561         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
46562         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
46563         "spawn-pipe.h" instead of "pipe.h".
46564         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
46565         to gl_SPAWN_PIPE.
46566         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
46567         (Files, Makefile.am): Update.
46568         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
46569         Update.
46570         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
46571         Include "spawn-pipe.h" instead of "pipe.h".
46572         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
46573         * lib/javacomp.c: Likewise.
46574         * lib/javaversion.c: Likewise.
46575         * lib/pipe-filter-gi.c: Likewise.
46576         * lib/pipe-filter-ii.c: Likewise.
46577         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
46578         * modules/javacomp (Depends-on): Likewise.
46579         * modules/javaversion (Depends-on): Likewise.
46580         * modules/pipe-filter-gi (Depends-on): Likewise.
46581         * modules/pipe-filter-ii (Depends-on): Likewise.
46582         * MODULES.html.sh (Executing programs): Update.
46583         * NEWS: Mention the change.
46585 2010-12-10  Eric Blake  <eblake@redhat.com>
46587         pipe-posix: new module
46588         * modules/pipe-posix: New file.
46589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
46590         (gl_UNISTD_H): Check for declaration.
46591         * modules/unistd (Makefile.am): Substitute it.
46592         * lib/unistd.in.h (pipe): Provide it for mingw.
46593         * doc/posix-functions/pipe.texi (pipe): Update documentation.
46594         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
46596 2010-12-07  Bruno Haible  <bruno@clisp.org>
46598         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
46599         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
46600         u8_strcmp_gnu.
46601         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
46603 2010-12-06  Bruno Haible  <bruno@clisp.org>
46605         Update internal documentation.
46606         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
46608 2010-12-04  Bruno Haible  <bruno@clisp.org>
46610         Put more information about failed tests into the test return codes.
46611         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
46612         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
46613         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46614         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46615         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
46616         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46617         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46618         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46619         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
46620         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46621         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
46622         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46623         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
46624         * m4/stdint.m4 (gl_STDINT_H): Likewise.
46625         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
46626         returns a bit mask.
46627         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
46628         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
46629         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
46630         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
46631         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
46632         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
46633         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
46634         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46635         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
46636         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
46637         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46638         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
46639         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46640         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
46641         * m4/link.m4 (gl_FUNC_LINK): Likewise.
46642         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
46643         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
46644         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
46645         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46646         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
46647         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46648         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
46649         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
46650         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46651         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46652         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46653         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
46654         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
46655         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
46656         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
46657         gl_PRINTF_PRECISION): Likewise.
46658         * m4/regex.m4 (gl_REGEX): Likewise.
46659         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46660         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
46661         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
46662         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46663         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46664         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46665         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
46666         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
46667         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46668         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46669         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
46670         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46671         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
46672         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
46673         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46674         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
46675         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
46676         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46678         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
46679         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
46680         enumerated value.
46681         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
46683 2010-12-04  Bruno Haible  <bruno@clisp.org>
46685         Update for Solaris 11 2010-11.
46686         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
46687         Express, released in November 2010.
46689 2010-12-04  Bruno Haible  <bruno@clisp.org>
46691         nproc: Relax license.
46692         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
46693         and Paul Eggert.
46694         Requested by Ludovic Courtès <ludo@gnu.org>.
46696 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
46698         utimecmp: fine-grained src to nearby coarse-grained dest
46700         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
46701         and the source is on a file system with higher-resolution time
46702         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
46703         not work, and the time stamps are close together, the algorithm to
46704         determine the exact resolution from the read-back mtime was buggy:
46705         it had a "!=" where it should have had an "==".  This bug has been
46706         in the code ever since it was introduced to gnulib.
46707         Problem reported by Dan Jacobson in
46708         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
46710 2010-11-30  Bruno Haible  <bruno@clisp.org>
46712         strerror_r-posix: Fix autoconf test.
46713         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
46715 2010-11-28  Bruno Haible  <bruno@clisp.org>
46716             Paul Eggert  <eggert@cs.ucla.edu>
46718         Tests for module 'getdomainname'.
46719         * modules/getdomainname-tests: New file.
46720         * tests/test-getdomainname.c: New file, based on
46721         tests/test-gethostname.c.
46723 2010-11-28  Bruno Haible  <bruno@clisp.org>
46724             Paul Eggert  <eggert@cs.ucla.edu>
46726         getdomainname: Use the system function when possible.
46727         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
46728         (getdomainname): Replace if needed. Provide the declaration if it is
46729         missing. Don't use _GL_CXXALIAS_SYS_CAST.
46730         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
46731         (getdomainname): When the system has getdomainname, call the system
46732         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
46733         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46734         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
46735         found in libnsl. Look for the declaration also in <netdb.h>. Replace
46736         the function if its second argument is of type 'int' or if it is found
46737         in libnsl.
46738         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
46739         <sys/systeminfo.h> and sysinfo().
46740         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
46741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46742         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
46743         HAVE_GETDOMAINNAME.
46744         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
46745         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
46746         * doc/glibc-functions/getdomainname.texi: Document the problems with
46747         the getdomainname declaration.
46749 2010-11-28  Bruno Haible  <bruno@clisp.org>
46751         sys_socket: Ensure ss_family field on AIX.
46752         * lib/sys_socket.in.h (ss_family): New macro definition.
46753         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
46754         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
46755         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46756         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
46757         * modules/sys_socket (Makefile.am): Substitute
46758         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
46759         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
46761 2010-11-27  Bruno Haible  <bruno@clisp.org>
46763         readline: Improve configure output.
46764         * m4/readline.m4 (gl_FUNC_READLINE): Make the
46765         "checking for readline..." result understandable.
46767 2010-11-27  Bruno Haible  <bruno@clisp.org>
46769         *printf-posix: Detect a bug on Solaris 10/x86.
46770         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
46771         for floating-point output.
46772         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
46773         directive.
46774         * tests/test-snprintf-posix.h (test_function): Likewise.
46775         * tests/test-sprintf-posix.h (test_function): Likewise.
46776         * tests/test-vasprintf-posix.c (test_function): Likewise.
46777         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
46778         * doc/posix-functions/printf.texi: Likewise.
46779         * doc/posix-functions/snprintf.texi: Likewise.
46780         * doc/posix-functions/sprintf.texi: Likewise.
46781         * doc/posix-functions/vfprintf.texi: Likewise.
46782         * doc/posix-functions/vprintf.texi: Likewise.
46783         * doc/posix-functions/vsnprintf.texi: Likewise.
46784         * doc/posix-functions/vsprintf.texi: Likewise.
46785         * doc/glibc-functions/obstack_printf.texi: Likewise.
46786         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46788 2010-11-27  Bruno Haible  <bruno@clisp.org>
46790         Fix link error when module libunistring-optional is in use.
46791         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
46792         * modules/striconveha-tests (Makefile.am): Likewise.
46794 2010-11-27  Bruno Haible  <bruno@clisp.org>
46796         regex: Mention link dependencies.
46797         * modules/regex (Link): New section.
46798         * modules/rpmatch (Link): Likewise.
46799         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
46801 2010-11-27  Bruno Haible  <bruno@clisp.org>
46803         ftoastr: Fix compilation error on Solaris.
46804         * lib/ftoastr.c: Include <config.h>.
46806 2010-11-27  Bruno Haible  <bruno@clisp.org>
46808         getloadavg: Update documentation.
46809         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
46811 2010-11-27  Bruno Haible  <bruno@clisp.org>
46813         sys_socket: Fix test whether the functions are declared.
46814         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
46815         not <sys/select.h>.
46817 2010-11-27  Bruno Haible  <bruno@clisp.org>
46819         getpass: Make sure to get system declaration on some platforms.
46820         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
46821         gl_USE_SYSTEM_EXTENSIONS.
46822         * modules/getpass (Depends-on): Add extensions.
46824 2010-11-26  Bruno Haible  <bruno@clisp.org>
46826         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
46827         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
46828         'iconv' module is present.
46829         (ICONV_CONST): New macro.
46830         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
46831         ICONV_CONST.
46832         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
46833         set ICONV_CONST.
46834         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
46835         here.
46836         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
46837         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
46838         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
46839         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
46840         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
46841         present.
46843 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
46845         ftoastr: comment fix
46846         * lib/ftoastr.c: "little" -> "little or no" in comment
46848 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
46850         stdint: port to GCC 4.3 + OSX + Octave
46851         On this platform, stdint.h is buggy and defines int64_t to long
46852         long int.  The replacement defined it to long int, causing
46853         problems with C++ style name mangling.  Instead, trust the system
46854         definition if INT64_MAX is defined, and likewise for the unsigned
46855         variant.   Problem reported by Jarno Rajahalme in
46856         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
46857         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
46858         and don't mess with int64_t and INT64_MAX in this case.
46859         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
46861 2010-11-24  Bruno Haible  <bruno@clisp.org>
46863         doc: Corrections regarding MacOS X 10.4 and 10.5.
46864         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
46865         MacOS X.
46866         Reported by Simon Josefsson.
46868 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
46870         Uninstall ".bin" files installed by relocwrapper.
46871         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
46872         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
46873         unless it is already there.
46875 2010-11-21  Bruno Haible  <bruno@clisp.org>
46877         Update for NetBSD 5.0.
46878         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
46879         NetBSD; the test fails on NetBSD 5.0.
46880         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
46881         about NetBSD.
46883 2010-11-21  Bruno Haible  <bruno@clisp.org>
46885         Update for HP-UX 11.23 and HP-UX 11.31.
46886         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
46887         HP-UX.
46889 2010-11-21  Bruno Haible  <bruno@clisp.org>
46891         Update for MacOS X 10.5.
46892         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
46893         MacOS X; the test fails on MacOS X 10.5.8.
46894         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
46895         about MacOS X.
46897 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
46899         bootstrap: add bootstrap_sync option.
46900         See discussion at
46901         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
46902         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
46903         * build-aux/bootstrap: Accept --bootstrap-sync to update
46904         bootstrap if it is not identical to the local gnulib's
46905         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
46906         enable this by default.  Accept --no-bootstrap-sync to disable
46907         it.
46909 2010-11-20  Bruno Haible  <bruno@clisp.org>
46911         Ensure that <features.h> is included before __GLIBC__ is tested.
46912         * lib/printf-parse.h: Include <features.h>.
46913         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
46914         Reported by Mike Frysinger <vapier@gentoo.org>.
46916         Ensure that <features.h> is included before __GLIBC__ is tested.
46917         * lib/wchar.in.h: Include <features.h>.
46918         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
46919         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
46920         Reported by Mike Frysinger <vapier@gentoo.org>.
46922         Ensure that <features.h> is included before __GLIBC__ is tested.
46923         * lib/arpa_inet.in.h: Include <features.h>.
46924         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
46925         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
46926         Reported by Mike Frysinger <vapier@gentoo.org>.
46928         Ensure that <features.h> is included before __GLIBC__ is tested.
46929         * build-aux/link-warning.h: Include <features.h>.
46930         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
46931         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
46932         Reported by Mike Frysinger <vapier@gentoo.org>.
46934         Ensure that <features.h> is included before __GLIBC__ is tested.
46935         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
46936         Reported by Mike Frysinger <vapier@gentoo.org>.
46938 2010-11-20  Bruno Haible  <bruno@clisp.org>
46940         memmem: Fix autoconf test.
46941         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
46943 2010-11-20  Bruno Haible  <bruno@clisp.org>
46945         Port to uClibc.
46946         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
46947         * lib/fcntl.in.h: Likewise.
46948         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
46949         * lib/mbrtowc.c (mbrtowc): Likewise.
46950         * lib/relocatable.c (find_shared_library_fullname): Likewise.
46951         * lib/strerror_r.c: Likewise.
46952         * lib/unistr/u8-strnlen.c: Likewise.
46953         * lib/vasnprintf.c (decimal_point_char): Likewise.
46954         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
46955         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
46956         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46957         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
46958         * tests/test-sigaction.c (handler, main): Likewise.
46959         * lib/freading.h: Treat uClibc like a non-glibc platform.
46960         * lib/freading.c: Likewise.
46961         * lib/gettext.h: Likewise.
46962         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
46963         Likewise.
46964         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
46965         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
46966         * lib/propername.c (proper_name_utf8): Likewise.
46967         * lib/spawn.in.h: Likewise.
46968         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
46969         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
46970         mem_cd_iconveh_internal): Likewise.
46971         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
46972         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
46973         strstr, strcasestr): Likewise.
46974         * lib/unicodeio.c (unicode_to_mb): Likewise.
46975         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
46976         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
46977         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
46978         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
46979         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
46980         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
46981         * lib/unistr/u8-stpncpy.c: Likewise.
46982         * lib/vasnprintf.c (VASNPRINTF): Likewise.
46983         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
46984         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46985         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46986         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
46987         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
46988         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
46989         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
46990         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
46991         Likewise.
46992         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
46993         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46994         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
46995         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46996         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46997         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
46998         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46999         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
47000         * tests/test-getopt.h (OPTIND_MIN): Likewise.
47001         * tests/test-striconveha.c (main): Likewise.
47002         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47003         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
47004         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
47005         * doc/posix-functions/getline.texi: Likewise.
47006         Reported by Mike Frysinger <vapier@gentoo.org>.
47008 2010-11-20  Bruno Haible  <bruno@clisp.org>
47010         nproc: Fix condition.
47011         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
47012         HAVE_PTHREAD_AFFINITY_NP.
47014 2010-11-20  Bruno Haible  <bruno@clisp.org>
47016         Fix a comment.
47017         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
47019 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
47021         ftoastr: don't assume snprintf
47022         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
47023         Implement a subset of snprintf here, by using sprintf safely.
47024         * modules/ftoastr (Depends-on): Remove snprintf.
47026 2010-11-19  Jim Meyering  <meyering@redhat.com>
47028         test-rename.h: fix compilation failure
47029         * tests/test-rename.h (test_rename): Add omitted "}".
47031 2010-11-17  Jim Meyering  <meyering@redhat.com>
47033         maint.mk: add a URL discussing the no-@acronym policy
47034         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
47036 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
47038         ftoastr: depend on snprintf, improve comments
47039         * lib/ftoastr.c: Also mention Loitsch's draft.
47040         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
47041         needed in the current implementation, but it might simplify
47042         speeding up the code later.
47043         * modules/ftoastr: Depend on snprintf; this improves portability.
47044         Suggested by Bruno Haible in the same email.
47046         ftoastr: port to hosts lacking strtof and strtold
47047         Problem reported by Bruno Haible in
47048         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
47049         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
47050         environment and strtold (and presumably strtof) are not available.
47051         * modules/ftoastr (Files): Add m4/c-strtod.m4.
47052         (configure.ac): Require gl_C99_STRTOLD.
47054 2010-11-18  Bruno Haible  <bruno@clisp.org>
47056         c-strtold: Avoid link error on AIX 7.
47057         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
47058         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
47059         (gl_C_STRTOLD): Test whether strtold_l exists.
47060         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47062 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47064         intprops: new macro INT_BITS_STRLEN_BOUND
47065         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
47066         ftoastr.h.  This exposes an internal of intprops.h that was formerly
47067         not exposed.  Also, it uses a slightly tighter bound than before;
47068         though this makes no practical difference, we might as well be as
47069         tight as we easily can.
47071         ftoastr: new module, for lossless conversion of floats to short strings
47072         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
47073         * modules/ftoastr: New files.
47075 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47077         bootstrap: port to Solaris sed
47078         * build-aux/bootstrap (get_version): Port to Solaris sed.
47079         See Ralf Wildenhues's note in
47080         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
47082 2010-11-14  Jim Meyering  <meyering@redhat.com>
47084         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
47085         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
47086         and move definition closer to sole use.
47088 2010-11-13  Jim Meyering  <meyering@redhat.com>
47090         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
47091         Now we require at least autoconf-2.59, which means the work-around
47092         is no longer needed.
47093         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
47094         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47095         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47096         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47097         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47099 2010-11-13  Bruno Haible  <bruno@clisp.org>
47101         rename, renameat: Avoid test failures at NFS mounted locations.
47102         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
47103         functions.
47104         (test_rename): Use assert_nonexistent.
47105         * tests/test-rename.c: Include <dirent.h>.
47106         * tests/test-renameat.c: Likewise.
47107         Reported by Gary V. Vaughan <gary@gnu.org>.
47109         rename, renameat: Document Linux bug with NFS
47110         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
47111         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
47112         * doc/posix-functions/renameat.texi: Likewise.
47113         Suggested by Eric Blake.
47115 2010-11-13  Bruno Haible  <bruno@clisp.org>
47117         rename test: Add comments.
47118         * tests/test-rename.h (test_rename): Add structure and comments.
47120 2010-11-13  Eric Blake  <eblake@redhat.com>
47122         maintainer-makefile: cover a few more files
47123         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
47124         scripts generated within C files, for libvirt.
47126 2010-11-13  Bruno Haible  <bruno@clisp.org>
47128         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
47129         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
47130         character, return the number of bytes that belong together, not always
47131         1.
47132         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
47133         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
47134         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
47135         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
47136         number of bytes of an invalid character.
47137         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
47138         (main): Invoke it.
47139         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
47140         results.
47141         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
47142         malformed byte sequences.
47143         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
47144         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
47145         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
47146         Reported by Ben Pfaff and Paolo Bonzini.
47148 2010-11-13  Bruno Haible  <bruno@clisp.org>
47150         openat: Work around glibc bug with fchownat() and empty file names.
47151         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
47152         (gl_FUNC_FCHOWNAT): Invoke it.
47153         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
47154         * doc/posix-functions/fchownat.texi: Document the glibc bug.
47155         Reported by Gary V. Vaughan <gary@gnu.org>.
47157 2010-11-13  Bruno Haible  <bruno@clisp.org>
47159         openat: Ensure autoconf macro ordering.
47160         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
47161         gl_USE_SYSTEM_EXTENSIONS.
47162         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
47164 2010-11-13  Bruno Haible  <bruno@clisp.org>
47166         Update comments.
47167         * lib/unistr/u8-check.c: Update file name in comments.
47168         * lib/unistr/u8-mblen.c: Likewise.
47169         * lib/unistr/u8-prev.c: Likewise.
47170         * lib/unistr/u8-strmblen.c: Likewise.
47171         * lib/unistr/u8-strmbtouc.c: Likewise.
47173 2010-11-13  Jim Meyering  <meyering@redhat.com>
47175         tests: avoid test failure on Solaris 10 due to lack of PATH export
47176         * tests/test-update-copyright.sh: Don't forget to export PATH.
47178         init.sh: ensure that IFS is defined, just in case...
47179         * tests/init.sh (setup_): Ensure that IFS is defined,
47180         so that saving and restoring it works as expected.  This
47181         appears to be useful at least for an old version of dash
47182         from a long time ago (RH 6).  See here for details:
47183         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
47185         maint.mk: tighten "test a == b" check
47186         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
47187         test to files that contain something like #!/bin/sh.
47188         Without this, coreutils would get two false positives in
47189         the comments of C source files.
47191 2010-11-12  Eric Blake  <eblake@redhat.com>
47193         bootstrap: fix typo in previous attempt
47194         * build-aux/bootstrap (buildreq): Correct the grouping.
47195         Reported by Paul Eggert.
47197         maintainer-makefile: prohibit test x == x
47198         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
47199         Based on a report by Matthias Bolte.
47201         bootstrap: allow FreeBSD gzip
47202         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
47203         which has no '.' and goes to stderr.
47204         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
47205         Reported by Matthias Bolte.
47207         maintainer-makefile: check for i18n setup
47208         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
47209         will likely work.
47211 2010-11-12  Bruno Haible  <bruno@clisp.org>
47213         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
47214         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
47215         * lib/nanosleep.c (nanosleep): Likewise.
47217 2010-11-11  Bruno Haible  <bruno@clisp.org>
47219         fcntl-h: Fix for use of C++ on glibc systems.
47220         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
47221         also on glibc systems in C++ mode.
47222         Reported by Gary V. Vaughan <gary@gnu.org>.
47224 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47226         mknod: avoid false failure with dash
47227         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
47229 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
47231         unlink: Fix "is it should" typo in diagnostic.
47232         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
47233         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
47235 2010-11-11  Bruno Haible  <bruno@clisp.org>
47237         Tests for module 'strerror_r-posix'.
47238         * modules/strerror_r-posix-tests: New file.
47239         * tests/test-strerror_r.c: New file.
47240         * tests/test-string-c++.cc: Check the signature of strerror_r.
47242         New module 'strerror_r-posix'.
47243         * lib/string.in.h (strerror_r): New declaration.
47244         * lib/strerror_r.c: New file.
47245         * m4/strerror_r.m4: New file.
47246         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
47247         of strerror_r.
47248         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
47249         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47250         * modules/strerror_r-posix: New file.
47251         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
47252         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47253         * doc/posix-functions/strerror_r.texi: Mention the new module and the
47254         portability problems.
47256 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
47258         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
47259         line is also considered for output. Quoted function name in shell
47260         command, so temporary files for functions like MyClass::operator()
47261         are removed correctly without errors.
47263 2010-11-09  Bruno Haible  <bruno@clisp.org>
47265         * doc/posix-functions/strerror.texi: List more failing platforms.
47267         * doc/posix-functions/strerror.texi: Add a comment.
47269 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47271         fdopendir: fix bug on MacOS X when low on file descriptors
47273         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
47274         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
47275         All callers changed.
47276         (fdopendir): Invoke save_cwd at the top level, not after using
47277         multiple dup() calls to use up file descriptors.  Then retry
47278         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
47279         less than the maximum number of open file descriptors, because
47280         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
47281         on Mac OS X 10.6.4 for tar 1.24
47282         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
47283         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
47284         and for tar 1.25
47285         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
47287 2010-11-07  Bruno Haible  <bruno@clisp.org>
47289         vasnprintf: Support I flag on glibc systems.
47290         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
47291         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
47292         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
47293         snprintf function.
47294         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
47295         glibc systems.
47296         * tests/test-vasnprintf-posix3.c: New file.
47297         * modules/vasnprintf-posix-tests (Files): Add it.
47298         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
47300 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47302         [html] Fix copy/paste bug: Use unique name for compiler warnings.
47303         * MODULES.html.sh: For compiler warnings, use name
47304         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
47306 2010-11-05  Eric Blake  <eblake@redhat.com>
47308         ceil, floor: avoid spurious failure with icc
47309         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
47310         [denormals-as-zero] when optimizing without -mieee-fp option.
47311         * tests/test-floorf2.c (floorf_reference): Likewise.
47312         * tests/test-ceilf1.c (dummy): New function.
47313         (main): Use it to outsmart icc's optimization.
47314         * tests/test-floorf1.c (dummy, main): Likewise.
47316         tests: require working signbit
47317         * modules/ceilf-tests (Depends-on): Add signbit.
47318         * modules/ceill-tests (Depends-on): Likewise.
47319         * modules/floorf-tests (Depends-on): Likewise.
47320         * modules/floorl-tests (Depends-on): Likewise.
47321         * modules/round-tests (Depends-on): Likewise.
47322         * modules/roundf-tests (Depends-on): Likewise.
47323         * modules/roundl-tests (Depends-on): Likewise.
47324         * modules/trunc-tests (Depends-on): Likewise.
47325         * modules/truncf-tests (Depends-on): Likewise.
47326         * modules/truncl-tests (Depends-on): Likewise.
47328         strtod: work around icc bug
47329         * lib/strtod.c (minus_zero): Define to working value.
47330         (strtod): Use it to avoid icc bug.
47332         copysign: enhance tests
47333         * modules/copysign-tests (Files): Add minus-zero.h.
47334         * tests/test-copysign.c (main): Also test zeros.
47336 2010-11-04  Eric Blake  <eblake@redhat.com>
47338         ceil, floor, round, trunc: enhance tests of -0
47339         * tests/test-ceilf1.c (main): Ensure correct sign of result.
47340         * tests/test-ceill.c (main): Likewise.
47341         * tests/test-floorf1.c (main): Likewise.
47342         * tests/test-floorl.c (main): Likewise.
47343         * tests/test-round1.c (main): Likewise.
47344         * tests/test-roundf1.c (main): Likewise.
47345         * tests/test-roundl.c (main): Likewise.
47346         * tests/test-trunc1.c (main): Likewise.
47347         * tests/test-truncf1.c (main): Likewise.
47348         * tests/test-truncl.c (main): Likewise.
47350 2010-11-04  Eric Blake  <eblake@redhat.com>
47352         frexp, tests: work around ICC bug with -zero
47353         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
47354         works with more compilers.
47355         * tests/minus-zero.h: New file.
47356         * modules/ceilf-tests (Files): Include it.
47357         * modules/ceill-tests (Files): Likewise.
47358         * modules/floorf-tests (Files): Likewise.
47359         * modules/floorl-tests (Files): Likewise.
47360         * modules/frexp-nolibm-tests (Files): Likewise.
47361         * modules/frexp-tests (Files): Likewise.
47362         * modules/frexpl-nolibm-tests (Files): Likewise.
47363         * modules/frexpl-tests (Files): Likewise.
47364         * modules/isnan-tests (Files): Likewise.
47365         * modules/isnand-nolibm-tests (Files): Likewise.
47366         * modules/isnand-tests (Files): Likewise.
47367         * modules/isnanf-nolibm-tests (Files): Likewise.
47368         * modules/isnanf-tests (Files): Likewise.
47369         * modules/isnanl-nolibm-tests (Files): Likewise.
47370         * modules/isnanl-tests (Files): Likewise.
47371         * modules/round-tests (Files): Likewise.
47372         * modules/roundf-tests (Files): Likewise.
47373         * modules/roundl-tests (Files): Likewise.
47374         * modules/ldexpl-tests (Files): Likewise.
47375         * modules/signbit-tests (Files): Likewise.
47376         * modules/snprintf-posix-tests (Files): Likewise.
47377         * modules/sprintf-posix-tests (Files): Likewise.
47378         * modules/strtod-tests (Files): Likewise.
47379         * modules/trunc-tests (Files): Likewise.
47380         * modules/truncf-tests (Files): Likewise.
47381         * modules/truncl-tests (Files): Likewise.
47382         * modules/vsnprintf-posix-tests (Files): Likewise.
47383         * modules/vsprintf-posix-tests (Files): Likewise.
47384         * modules/vasnprintf-posix-tests (Files): Likewise.
47385         * modules/vasprintf-posix-tests (Files): Likewise.
47386         * tests/test-ceilf1.c (main): Use it.
47387         * tests/test-ceill.c (main): Likewise.
47388         * tests/test-floorf1.c (main): Likewise.
47389         * tests/test-floorl.c (main): Likewise.
47390         * tests/test-frexp.c (main): Likewise.
47391         * tests/test-frexpl.c (main): Likewise.
47392         * tests/test-isnan.c (main): Likewise.
47393         * tests/test-isnand.h (main): Likewise.
47394         * tests/test-isnanf.h (main): Likewise.
47395         * tests/test-isnanl.h (main): Likewise.
47396         * tests/test-ldexpl.c (main): Likewise.
47397         * tests/test-round.c (main): Likewise.
47398         * tests/test-roundf.c (main): Likewise.
47399         * tests/test-roundl.c (main): Likewise.
47400         * tests/test-signbit.c (test_signbitf, test_signbitd)
47401         (test_signbitl): Likewise.
47402         * tests/test-snprintf-posix.h (test_function): Likewise.
47403         * tests/test-sprintf-posix.h (test_function): Likewise.
47404         * tests/test-strtod.c (main): Likewise.
47405         * tests/test-trunc1.c (main): Likewise.
47406         * tests/test-truncf1.c (main): Likewise.
47407         * tests/test-truncl.c (main): Likewise.
47409         isnanl: work around icc bug
47410         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
47412 2010-11-03  Eric Blake  <eblake@redhat.com>
47414         tests: fix compiler warnings
47415         * tests/test-getopt.h (test_getopt): Fix condition.
47416         * tests/test-getopt_long.h (test_getopt_long): Likewise.
47417         * tests/test-pipe2.c (main): Likewise.
47418         * tests/test-quotearg-simple.c (main): Avoid icc warning.
47420         utimens: fix broken m4 test
47421         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
47423 2010-10-28  Bruno Haible  <bruno@clisp.org>
47425         posix_spawn*, getdtablesize: Relax license.
47426         * modules/posix_spawn (License): Change to LGPLv2+.
47427         * modules/posix_spawnp (License): Likewise.
47428         * modules/posix_spawn-internal (License): Likewise.
47429         * modules/posix_spawnattr_init (License): Likewise.
47430         * modules/posix_spawnattr_getflags (License): Likewise.
47431         * modules/posix_spawnattr_setflags (License): Likewise.
47432         * modules/posix_spawnattr_getpgroup (License): Likewise.
47433         * modules/posix_spawnattr_setpgroup (License): Likewise.
47434         * modules/posix_spawnattr_getschedparam (License): Likewise.
47435         * modules/posix_spawnattr_setschedparam (License): Likewise.
47436         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
47437         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
47438         * modules/posix_spawnattr_getsigdefault (License): Likewise.
47439         * modules/posix_spawnattr_setsigdefault (License): Likewise.
47440         * modules/posix_spawnattr_getsigmask (License): Likewise.
47441         * modules/posix_spawnattr_setsigmask (License): Likewise.
47442         * modules/posix_spawnattr_destroy (License): Likewise.
47443         * modules/posix_spawn_file_actions_init (License): Likewise.
47444         * modules/posix_spawn_file_actions_addclose (License): Likewise.
47445         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
47446         * modules/posix_spawn_file_actions_addopen (License): Likewise.
47447         * modules/posix_spawn_file_actions_destroy (License): Likewise.
47448         * modules/getdtablesize (License): Likewise.
47449         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
47451 2010-10-26  Bruno Haible  <bruno@clisp.org>
47453         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
47454         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
47455         Cygwin and mingw.
47456         Suggested by Eric Blake.
47458 2010-10-26  Bruno Haible  <bruno@clisp.org>
47460         stdio: Work around compilation error due to renameat() on Solaris 10.
47461         * lib/stdio.in.h: Include <unistd.h> on Solaris.
47462         * lib/renameat.c: Don't include <unistd.h> here.
47463         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
47464         Reported by Paul Eggert and Eric Blake.
47466 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
47468         renameat: port to Solaris 10, which declares renameat in unistd.h
47470         * lib/renameat.c: Include unistd.h before stdio.h, because
47471         Solaris 10 declares renameat in unistd.h.  Problem encountered
47472         when building GNU tar 1.24 on Solaris 10.
47474 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47476         fdopendir: fix C89 compilation
47477         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
47478         compilers.
47480 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
47482         inttostr: simplify by removing unnecessary redundancy
47483         * lib/anytostr.c: Don't include verify.h.
47484         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
47485         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
47486         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
47487         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
47488         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
47489         Likewise.
47490         * modules/inttostr (Depends-on): Remove 'verify'.
47492 2010-10-23  Bruno Haible  <bruno@clisp.org>
47494         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
47495         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
47496         Reported by Eric Blake.
47498 2010-10-23  Bruno Haible  <bruno@clisp.org>
47500         Tests: Fix LOCALE_JA on MirBSD 10.
47501         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
47502         to an UTF-8 locale.
47503         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
47504         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47505         Reported by Eric Blake.
47507 2010-10-21  Bruno Haible  <bruno@clisp.org>
47509         nl_langinfo test: Avoid test failure on NetBSD 5.
47510         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
47511         Reported by Eric Blake.
47513 2010-10-21  Eric Blake  <eblake@redhat.com>
47515         c-stack: work around libsigsegv 2.8 bug
47516         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
47517         overflow on at least PowerPC64.
47519 2010-10-17  Bruno Haible  <bruno@clisp.org>
47521         userspec: Drop redundant file.
47522         * modules/userspec (Files): Remove lib/inttostr.h.
47524 2010-10-17  Bruno Haible  <bruno@clisp.org>
47526         nl_langinfo tests: Silence some warnings.
47527         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
47528         Reported by Jim Meyering.
47530 2010-10-17  Bruno Haible  <bruno@clisp.org>
47532         Make use of GCC's attribute __alloc_size__.
47533         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
47534         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
47535         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
47536         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
47537         __alloc_size__.
47538         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47539         Suggested by Jim Meyering.
47541 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
47543         bootstrap: anchor .gitignore entries.
47544         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
47545         with...
47546         (insert_vc_ignore): ... this new function, which prepends `/' to
47547         all .gitignore entries before passing them to
47548         insert_sorted_if_absent.
47550 2010-10-16  Bruno Haible  <bruno@clisp.org>
47552         nextafter: Fix configure check.
47553         * modules/nextafter (configure.ac): Correct expected prototype.
47555 2010-10-16  Bruno Haible  <bruno@clisp.org>
47557         termios: Update documentation.
47558         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
47560 2010-10-16  Bruno Haible  <bruno@clisp.org>
47562         tests: Make them compile with TinyCC.
47563         * tests/test-strstr.c (main): Remove parentheses around array
47564         initializer.
47566 2010-10-15  Eric Blake  <eblake@redhat.com>
47568         ignore-value: make header idempotent
47569         * lib/ignore-value.h: Add double-inclusion guards.
47570         Reported by Stefan Berger.
47572 2010-10-15  Jim Meyering  <meyering@redhat.com>
47574         GNUmakefile: handle "stable" target, not "major"
47575         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
47576         lists in maint.mk and announce-gen.  Without this, "make stable"
47577         would fail to ensure that $(VERSION) is up to date.
47579 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
47581         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
47582         & co.
47584 2010-10-14  Bruno Haible  <bruno@clisp.org>
47586         vasnprintf: Don't set errno to 0.
47587         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
47588         block that sets it to 0.
47589         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
47591 2010-10-14  Bruno Haible  <bruno@clisp.org>
47593         socketlib: Fix.
47594         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
47595         gl_PREREQ_SYS_H_WINSOCK2.
47596         Reported by Ian Beckwith <ianb@erislabs.net>.
47598 2010-10-13  Jim Meyering  <meyering@redhat.com>
47600         test-select-stdin.c: avoid warn_unused_result warnings
47601         * tests/test-select-stdin.c: Include "macros.h".
47602         ASSERT that read and fflush succeed.
47604 2010-10-13  Jim Meyering  <meyering@redhat.com>
47606         git-version-gen: do require git-VC'd files in cwd
47607         * build-aux/git-version-gen: Reject a git version string
47608         if there are no commits associated with the current directory.
47609         This avoids an unlikely false-positive (unrelated dir whose parent
47610         repository also contains a tag matching v*), as pointed out
47611         by Giuseppe Scrivano in
47612         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
47614 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47616         argv-iter: omit nonconforming declaration
47617         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
47618         enum arg_iter_err declaration, which doesn't conform to C99.
47619         Solaris 10 cc warns about this.
47621 2010-10-13  Eric Blake  <eblake@redhat.com>
47623         termios: fix compilation on mingw
47624         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
47625         (gl_TERMIOS_H): Adjust it on mingw.
47626         * modules/termios (Makefile.am): Substitute new key.
47627         * lib/termios.in.h (includes): Make include_next conditional.
47628         * doc/posix-headers/termios.texi (termios.h): Update
47629         documentation.
47630         Reported by Daniel P. Berrange.
47632 2010-10-13  Jim Meyering  <meyering@redhat.com>
47634         git-version-gen: don't require that .git/ be in the current dir
47635         * build-aux/git-version-gen: Adjust this script so that it works
47636         when run from any working directory beneath the top-level .git/-
47637         containing directory.  Inspired by a patch from Giuseppe Scrivano,
47638         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
47640         test-select: avoid warn_unused_result warnings
47641         * tests/test-select.c: Include "macros.h".
47642         ASSERT that each call to read, write, and pipe succeeds.
47643         While not technically required, also check each "close".
47644         * modules/select-tests (Files): Add tests/macros.h.
47646         test-symlinkat: remove declaration of unused local
47647         * tests/test-symlinkat.c (main): Remove unused local, "buf".
47649         test-inttostr: avoid shadowing warnings
47650         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
47651         and use malloc rather than the stack for the same reason as
47652         mentioned in the comment justifying the other allocation.
47654 2010-10-11  Bruno Haible  <bruno@clisp.org>
47656         stdlib: Allow multiple gnulib generated replacements to coexist.
47657         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
47658         Reported by Sam Steingold <sds@gnu.org>.
47660 2010-10-11  Jim Meyering  <meyering@redhat.com>
47662         fix a documentation typo
47663         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
47665 2010-10-11  Eric Blake  <eblake@redhat.com>
47667         futimens: work around Solaris 11 bug
47668         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
47669         * tests/test-futimens.h (test_futimens): Enhance, rather than
47670         weaken test.
47671         * doc/posix-functions/futimens.texi (futimens): Document the bug.
47673 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47675         Indentation.
47676         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
47677         higher-level operators more to the left.
47679 2010-10-11  Jim Meyering  <meyering@redhat.com>
47681         test-futimens: avoid unwarranted test failure on Solaris 5.11
47682         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
47683         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
47684         because it tries to dereference the NULL name argument.
47686 2010-10-11  Bruno Haible  <bruno@clisp.org>
47688         Indentation.
47689         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
47690         indentation.
47692 2010-10-11  Jim Meyering  <meyering@redhat.com>
47694         spawn.in.h: make indentation consistent with parentheses
47695         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
47696         Make indentation consistent with parentheses.
47698 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
47700         Fix mismatched parens in previous commit
47701         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
47702         parens.
47704 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47706         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
47708         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
47709         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
47710         * lib/malloca.c: Include "verify.h".
47711         (verify1): Remove, replacing with a verify call.
47712         * lib/relocwrapper.c (verify1): Likewise.
47713         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
47714         Likewise.
47715         * modules/malloca (Depends-on): Add 'verify'.
47716         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
47717         * modules/vasnprintf (Depends-on): Add 'verify'.
47718         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47719         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47720         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47721         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47722         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47723         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47724         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47726         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
47728         Formerly the style was sometimes 2*X - 1, because the C standard
47729         was wrongly thought to disallow ?: in integral constant expressions.
47730         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
47731         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
47732         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
47733         * lib/stdint.in.h (_verify_intmax_size): Likewise.
47734         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
47735         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
47736         verify that time_t cannot be floating.
47738 2010-10-08  Eric Blake  <eblake@redhat.com>
47740         time: enforce recent POSIX ruling that time_t is integral
47741         * lib/time.in.h (__time_t_must_be_integral): Detect any
47742         problematic systems, allowing the rest of gnulib to assume POSIX.
47744 2010-10-08  Jim Meyering  <meyering@redhat.com>
47746         fdopendir: fix a bug on systems lacking openat and /proc support
47747         OpenBSD 4.7 is one such system.  The most noticeable effect was
47748         failure of any application making nontrivial use of fts: rm, du,
47749         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
47750           ./rm: traversal failed: `a': Bad file descriptor
47751         Debugging that, you see that even though FD 6 was closed just
47752         prior to the opendir call in fd_clone_opendir, its resulting
47753         dir->dd_fd was 8, rather than the expected value of 6:
47755         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
47756         93                close (fd);
47757         (gdb) n
47758         94                dir = fd_clone_opendir (dupfd);
47759         (gdb) n
47760         95                saved_errno = errno;
47761         (gdb) p dir->dd_fd
47762         $11 = 8
47764         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
47765         The problem is that on OpenBSD, fd_clone_opendir has to resort
47766         to using the old-style save/restore CWD mechanism, due to its
47767         lack of openat/proc support, and *that* would steal the FD (6)
47768         that opendir was supposed to use.
47770         The fix is to squirrel away the desired FD so that save_cwd uses a
47771         different one, and then free the dest FD right before calling opendir.
47772         That guarantees opendir will use the required file descriptor.
47774         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
47776 2010-10-08  Bruno Haible  <bruno@clisp.org>
47778         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
47779         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
47781 2010-10-08  Bruno Haible  <bruno@clisp.org>
47783         nanosleep: Make replacement POSIX compliant.
47784         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
47785         is out of range.
47786         Reported by Jim Meyering.
47788 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47790         bootstrap: add hook for altering gnulib.mk, for Bison
47791         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
47792         the Bison bootstrapping process can rewrite file names and variables
47793         in this file before later parts of 'bootstrap' use the file.
47794         Bison wants to include lib/gnulib.mk from the top-level makefile,
47795         so it needs the file names in this file to be relative to the top
47796         level, not relative to lib; plus it needs variable names to be
47797         rewritten.
47798         (slurp): Use the new function.
47800         bootstrap: reformat for readability
47801         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
47803 2010-10-08  Eric Blake  <eblake@redhat.com>
47805         docs: update cygwin progress
47806         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
47807         1.7.7.
47808         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
47809         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
47810         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
47811         * doc/posix-functions/carg.texi (carg): Likewise.
47812         * doc/posix-functions/cargf.texi (cargf): Likewise.
47813         * doc/posix-functions/casin.texi (casin): Likewise.
47814         * doc/posix-functions/casinf.texi (casinf): Likewise.
47815         * doc/posix-functions/casinh.texi (casinh): Likewise.
47816         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
47817         * doc/posix-functions/catan.texi (catan): Likewise.
47818         * doc/posix-functions/catanf.texi (catanf): Likewise.
47819         * doc/posix-functions/catanh.texi (catanh): Likewise.
47820         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
47821         * doc/posix-functions/ccos.texi (ccos): Likewise.
47822         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
47823         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
47824         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
47825         * doc/posix-functions/cexp.texi (cexp): Likewise.
47826         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
47827         * doc/posix-functions/cimag.texi (cimag): Likewise.
47828         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
47829         * doc/posix-functions/clog.texi (clog): Likewise.
47830         * doc/posix-functions/clogf.texi (clogf): Likewise.
47831         * doc/posix-functions/conj.texi (conj): Likewise.
47832         * doc/posix-functions/conjf.texi (conjf): Likewise.
47833         * doc/posix-functions/cpow.texi (cpow): Likewise.
47834         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
47835         * doc/posix-functions/cproj.texi (cproj): Likewise.
47836         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
47837         * doc/posix-functions/creal.texi (creal): Likewise.
47838         * doc/posix-functions/crealf.texi (crealf): Likewise.
47839         * doc/posix-functions/csin.texi (csin): Likewise.
47840         * doc/posix-functions/csinf.texi (csinf): Likewise.
47841         * doc/posix-functions/csinh.texi (csinh): Likewise.
47842         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
47843         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
47844         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
47845         * doc/posix-functions/ctan.texi (ctan): Likewise.
47846         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
47847         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
47848         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
47849         * doc/posix-headers/complex.texi (complex.h): Likewise.
47851 2010-10-07  Jim Meyering  <meyering@redhat.com>
47853         parse-datetime: avoid compilation failure on OpenBSD 4.7
47854         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
47855         This works around a compilation failure on OpenBSD 4.7:
47856         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
47858 2010-10-07  Eric Blake  <eblake@redhat.com>
47860         docs: update cygwin progress
47861         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
47862         1.7.6.
47863         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
47864         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
47865         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
47866         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
47867         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
47868         Likewise.
47869         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
47870         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
47871         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
47872         Likewise.
47873         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
47874         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
47875         Likewise.
47876         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
47877         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
47878         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
47879         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
47880         Likewise.
47881         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
47882         Likewise.
47883         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
47885         docs: update parse-datetime history
47886         * doc/parse-datetime.texi (Authors of parse_datetime): Better
47887         documentation of this function's history and alternatives.
47889         cygwin: use more robust version check
47890         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
47891         exclude an eventual cygwin 1.9.1.
47892         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47893         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
47894         (gl_FUNC_STRCASESTR): Likewise.
47895         Reported by Bruno Haible.
47897 2010-10-06  Bruno Haible  <bruno@clisp.org>
47899         string, sys_select: Avoid #including large headers unless necessary.
47900         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
47901         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
47902         OSF/1, BeOS, Haiku.
47903         Reported by Jim Meyering.
47905 2010-10-05  Eric Blake  <eblake@redhat.com>
47907         memmem, strstr, strcasestr: fix bug with long periodic needle
47908         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
47909         periodic needle having false positive.
47910         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
47911         and cygwin 1.7.7.
47912         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
47913         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
47914         (gl_FUNC_STRCASESTR): Likewise.
47915         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47916         * tests/test-memmem.c (main): Expose the bug.
47917         * tests/test-strcasestr.c (main): Likewise.
47918         * tests/test-strstr.c (main): Likewise.
47919         * tests/test-c-strcasestr.c (main): Likewise.
47920         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
47921         * doc/posix-functions/strstr.texi (strstr): Likewise.
47922         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47923         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
47925 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47927         parse-datetime: do some more renaming
47928         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
47929         parse_datetime, not get_date.  Mention the renaming.
47930         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
47931         in comments.
47932         * m4/bison.m4: Likewise.
47934 2010-10-05  Eric Blake  <eblake@redhat.com>
47936         parse-datetime: better name than get_date
47937         * NEWS: Reword the deprecation notice.
47938         * modules/get_date: Rename to modules/parse-datetime.
47939         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
47940         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
47941         * lib/get_date.y: Rename to lib/parse-datetime.y.
47942         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
47943         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
47944         * doc/getdate.texi: Provide fallback wrapper.
47945         * lib/getdate.h: Move guts, and wrap...
47946         * lib/parse-datetime.h: ...new file.
47947         * lib/parse-datetime.y (get_date): Rename...
47948         (parse_datetime): ...to this.
47949         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
47950         (gl_PARSE_DATETIME): ...to this.
47951         * doc/posix-functions/getdate.texi (get_date): Provide fallback
47952         documentation.
47953         * modules/getdate (Files): Provide fallback docs and header.
47954         (Notice, Depends-on): Update references.
47955         * tests/test-parse-datetime.c: Likewise.
47956         * DEPENDENCIES: Likewise.
47957         * MODULES.html.sh (Date and time <time.h>): Likewise.
47958         * doc/parse-datetime.texi (Date input formats)
47959         (Authors of parse_datetime): Likewise.
47960         * modules/parse-datetime (Files, configure.ac, Makefile.am)
47961         (Include): Likewise.
47962         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
47963         * gnulib-tool: Likewise.
47964         * m4/bison.m4 (gl_BISON): Likewise.
47965         Suggested by Bruno Haible.
47967 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47969         more ports to Solaris tr, which needs [] around ranges
47970         * gnulib-tool: Solaris tr needs [] around ranges.
47971         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
47972         * tests/test-pipe-filter-gi1.c (main): Likewise.
47973         * tests/test-pipe-filter-ii1.c (main): Likewise.
47975 2010-10-05  Eric Blake  <eblake@redhat.com>
47977         bootstrap: fix Solaris regression
47978         * build-aux/bootstrap (check_versions): Solaris tr still needs []
47979         around ranges.
47980         Reported by Pádraig Brady.
47982         bootstrap: work with pkg-config
47983         * build-aux/bootstrap (check_versions): Also transliterate - in
47984         prerequisite name.
47985         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
47986         prerequisites that were already found, to avoid confusion.
47987         Reported by Justin Clift.
47989         faccessat: remove unused wrappers
47990         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
47991         presence of these wrappers dragged in -lgen on Solaris.
47992         Reported by Clemens Brogi; fix suggested by Paul Eggert.
47994 2010-10-05  Jim Meyering  <meyering@redhat.com>
47996         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
47997         * Makefile (sc_pragma_columns): New syntax-check rule.
47999 2010-10-04  Bruno Haible  <bruno@clisp.org>
48001         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
48002         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
48003         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
48004         Reported by Bruce Korb and Eric Blake.
48006 2010-10-04  Bruno Haible  <bruno@clisp.org>
48008         threadlib: Make option --with-libpth-prefix work.
48009         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
48010         use $LIBPTH, not just -lpth.
48012 2010-10-04  Bruno Haible  <bruno@clisp.org>
48014         Avoid line length limitation from HP NonStop system header files.
48015         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
48016         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
48017         * lib/ctype.in.h: Likewise.
48018         * lib/dirent.in.h: Likewise.
48019         * lib/errno.in.h: Likewise.
48020         * lib/fcntl.in.h: Likewise.
48021         * lib/float.in.h: Likewise.
48022         * lib/getopt.in.h: Likewise.
48023         * lib/iconv.in.h: Likewise.
48024         * lib/inttypes.in.h: Likewise.
48025         * lib/langinfo.in.h: Likewise.
48026         * lib/locale.in.h: Likewise.
48027         * lib/math.in.h: Likewise.
48028         * lib/netdb.in.h: Likewise.
48029         * lib/netinet_in.in.h: Likewise.
48030         * lib/poll.in.h: Likewise.
48031         * lib/pthread.in.h: Likewise.
48032         * lib/pty.in.h: Likewise.
48033         * lib/sched.in.h: Likewise.
48034         * lib/se-selinux.in.h: Likewise.
48035         * lib/search.in.h: Likewise.
48036         * lib/signal.in.h: Likewise.
48037         * lib/spawn.in.h: Likewise.
48038         * lib/stdarg.in.h: Likewise.
48039         * lib/stddef.in.h: Likewise.
48040         * lib/stdint.in.h: Likewise.
48041         * lib/stdio.in.h: Likewise.
48042         * lib/stdlib.in.h: Likewise.
48043         * lib/string.in.h: Likewise.
48044         * lib/strings.in.h: Likewise.
48045         * lib/sys_file.in.h: Likewise.
48046         * lib/sys_ioctl.in.h: Likewise.
48047         * lib/sys_select.in.h: Likewise.
48048         * lib/sys_socket.in.h: Likewise.
48049         * lib/sys_stat.in.h: Likewise.
48050         * lib/sys_time.in.h: Likewise.
48051         * lib/sys_times.in.h: Likewise.
48052         * lib/sys_utsname.in.h: Likewise.
48053         * lib/sys_wait.in.h: Likewise.
48054         * lib/sysexits.in.h: Likewise.
48055         * lib/termios.in.h: Likewise.
48056         * lib/time.in.h: Likewise.
48057         * lib/unistd.in.h: Likewise.
48058         * lib/wchar.in.h: Likewise.
48059         * lib/wctype.in.h: Likewise.
48060         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
48061         * modules/ctype (Makefile.am): Likewise.
48062         * modules/dirent (Makefile.am): Likewise.
48063         * modules/errno (Makefile.am): Likewise.
48064         * modules/fcntl-h (Makefile.am): Likewise.
48065         * modules/float (Makefile.am): Likewise.
48066         * modules/getopt-posix (Makefile.am): Likewise.
48067         * modules/iconv-h (Makefile.am): Likewise.
48068         * modules/inttypes (Makefile.am): Likewise.
48069         * modules/langinfo (Makefile.am): Likewise.
48070         * modules/locale (Makefile.am): Likewise.
48071         * modules/math (Makefile.am): Likewise.
48072         * modules/netdb (Makefile.am): Likewise.
48073         * modules/netinet_in (Makefile.am): Likewise.
48074         * modules/poll-h (Makefile.am): Likewise.
48075         * modules/pthread (Makefile.am): Likewise.
48076         * modules/pty (Makefile.am): Likewise.
48077         * modules/sched (Makefile.am): Likewise.
48078         * modules/search (Makefile.am): Likewise.
48079         * modules/selinux-h (Makefile.am): Likewise.
48080         * modules/signal (Makefile.am): Likewise.
48081         * modules/spawn (Makefile.am): Likewise.
48082         * modules/stdarg (Makefile.am): Likewise.
48083         * modules/stddef (Makefile.am): Likewise.
48084         * modules/stdint (Makefile.am): Likewise.
48085         * modules/stdio (Makefile.am): Likewise.
48086         * modules/stdlib (Makefile.am): Likewise.
48087         * modules/string (Makefile.am): Likewise.
48088         * modules/strings (Makefile.am): Likewise.
48089         * modules/sys_file (Makefile.am): Likewise.
48090         * modules/sys_ioctl (Makefile.am): Likewise.
48091         * modules/sys_select (Makefile.am): Likewise.
48092         * modules/sys_socket (Makefile.am): Likewise.
48093         * modules/sys_stat (Makefile.am): Likewise.
48094         * modules/sys_time (Makefile.am): Likewise.
48095         * modules/sys_times (Makefile.am): Likewise.
48096         * modules/sys_utsname (Makefile.am): Likewise.
48097         * modules/sys_wait (Makefile.am): Likewise.
48098         * modules/sysexits (Makefile.am): Likewise.
48099         * modules/termios (Makefile.am): Likewise.
48100         * modules/time (Makefile.am): Likewise.
48101         * modules/unistd (Makefile.am): Likewise.
48102         * modules/wchar (Makefile.am): Likewise.
48103         * modules/wctype (Makefile.am): Likewise.
48105 2010-10-04  Bruno Haible  <bruno@clisp.org>
48107         read-file tests: Avoid a test failure on NonStop Kernel.
48108         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
48109         a regular file.
48110         Reported by Joachim Schmitz <schmitz@hp.com>.
48112 2010-10-03  Bruno Haible  <bruno@clisp.org>
48114         gnulib-tool: Fixes for --create-testdir with --libtool.
48115         * gnulib-tool (func_get_automake_snippet): Don't augment
48116         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
48117         an executable.
48118         (func_create_testdir): Handle module 'alloca' like func_import.
48119         Reported by Bruce Korb <bruce.korb@gmail.com>.
48121 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48123         Avoid some lines longer than 80 characters.
48124         * lib/stdint.in.h: Break long comment lines.
48125         * lib/math.in.h: Likewise.
48126         (_GL_NUM_UINT_WORDS): New macro, for readability.
48127         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
48128         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
48129         * lib/stdlib.in.h: Likewise.
48130         * lib/spawn.in.h: Likewise.
48131         * lib/sys_socket.in.h: Update an URL.
48132         * lib/sys_stat.in.h: Break long line.
48134 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
48136         Improve pmccabe2html.
48137         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
48138         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
48139         when the sources change. Remove the line in the HTML about "Used
48140         ranges" (which implied that there might be other unused ranges),
48141         rename "Resume" to "Summary" (easier to understand for more users).
48142         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
48143         styles, and some unnecessary blank lines.
48145 2010-10-03  Bruno Haible  <bruno@clisp.org>
48146             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48148         acl: Add support for ACLs on NonStop Kernel.
48149         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
48150         Check whether the function aclsort() exists.
48151         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
48152         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
48153         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48154         (acl_nontrivial [HAVE_ACLSORT]: New function.
48155         (file_has_acl): Implement for NonStop Kernel.
48156         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48157         (qset_acl): Implement for NonStop Kernel.
48158         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
48159         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48160         (main): Implement for NonStop Kernel.
48161         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
48162         Kernel. Handle this flavor.
48163         * tests/test-set-mode-acl.sh: Likewise.
48164         * tests/test-copy-acl.sh: Likewise.
48165         * tests/test-copy-file.sh: Likewise.
48167 2010-10-03  Bruno Haible  <bruno@clisp.org>
48169         Info about ACLs on NonStop Kernel.
48170         * doc/acl-resources.txt: Add info about NonStop Kernel.
48171         References by Joachim Schmitz <schmitz@hp.com>.
48173 2010-10-02  Bruno Haible  <bruno@clisp.org>
48175         Define missing EDQUOT on NonStop Kernel.
48176         * lib/errno.in.h (EDQUOT): Assign a value if missing.
48177         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
48178         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
48179         missing.
48180         * doc/posix-headers/errno.texi: Mention the NSK bug.
48181         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
48182         Reported by Joachim Schmitz <schmitz@hp.com>.
48184 2010-10-02  Bruno Haible  <bruno@clisp.org>
48186         Update doc for POSIX:2008.
48187         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
48188         Update URL of POSIX specification.
48190 2010-10-02  Bruno Haible  <bruno@clisp.org>
48192         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
48193         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
48194         from gnulib, not from Automake.
48196 2010-10-02  Bruno Haible  <bruno@clisp.org>
48198         New module 'system-posix'.
48199         * modules/system-posix: New file.
48200         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
48201         module is present.
48202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48203         GNULIB_SYSTEM_POSIX.
48204         * modules/stdlib (Depends-on): Remove sys_wait.
48205         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
48206         * doc/posix-functions/system.texi: Mention the new module.
48207         * doc/posix-headers/stdlib.texi: Likewise.
48208         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
48209         define test_sys_wait_macros to a no-op.
48210         Reported by Sam Steingold <sds@gnu.org>.
48212 2010-09-30  Bruno Haible  <bruno@clisp.org>
48214         More renaming from 'getdate' to 'get_date'.
48215         * doc/get_date.texi: Renamed from doc/getdate.texi.
48216         * modules/get_date (Files): Update.
48217         * MODULES.html.sh (Date and time <time.h>): Update.
48218         * DEPENDENCIES: Update.
48219         * gnulib-tool: Update comment.
48220         * m4/bison.m4 (gl_BISON): Likewise.
48221         * m4/get_date.m4 (gl_GET_DATE): Likewise.
48223 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
48225         bootstrap: support ACLOCAL_FLAGS during aclocal
48226         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
48227         can add additional -I dir for third-party .m4 files.
48229 2010-09-30  Eric Blake  <eblake@redhat.com>
48231         bootstrap: use glibtoolize on MacOS
48232         * build-aux/bootstrap (check_versions): Convert libtool into
48233         libtoolize.
48234         (tool search): Move libtool check earlier, and look for
48235         glibtoolize for MacOS.
48236         (gnulib_tool_options): Auto-add --libtool when appropriate.
48237         Reported by Justin Clift.
48239         poll: fix typo that broke test on MacOS
48240         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
48241         Reported by Justin Clift.
48243         getdate: rename to get_date
48244         Note: getdate.h is not renamed, to minimize client impact.
48245         * modules/getdate: Mark obsolete.  Move old contents...
48246         * modules/get_date: ...to new module name.
48247         * modules/getdate-tests: Move...
48248         * modules/get_date-tests: ...here.
48249         * m4/getdate.m4: Move...
48250         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
48251         * lib/getdate.y: Move...
48252         * lib/get_date.y: ...here.
48253         * tests/test-getdate.c: Move...
48254         * tests/test-get_date.c: ...here.
48255         * doc/posix-functions/getdate.texi (getdate): Update name.
48256         * NEWS: Mention the change.
48258 2010-09-29  Bruno Haible  <bruno@clisp.org>
48260         Separate the module 'waitpid' from the module 'sys_wait'.
48261         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
48262         present.
48263         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
48264         gl_MODULE_INDICATOR_FOR_TESTS.
48265         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
48266         * modules/sys_wait (Depends-on): Remove waitpid.
48267         (Makefile.am): Substitute GNULIB_WAITPID.
48268         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
48269         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
48270         signature only if the 'waitpid' module is present.
48271         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
48272         * NEWS: Mention the change.
48273         * modules/grantpt (Depends-on): Add waitpid.
48274         * modules/wait-process (Depends-on): Likewise.
48276 2010-09-29  Bruno Haible  <bruno@clisp.org>
48278         More tests for module 'sys_wait'.
48279         * modules/sys_wait-c++-tests: New file.
48280         * tests/test-sys_wait-c++.cc: New file.
48281         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
48282         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48284 2010-09-29  Bruno Haible  <bruno@clisp.org>
48286         New module 'waitpid'.
48287         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
48288         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
48289         Don't include <process.h>.
48290         (waitpid): Declare only, using modern idiom.
48291         * m4/waitpid.m4: New file.
48292         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
48293         * modules/waitpid: New file.
48294         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
48295         (Makefile.am): Update.
48296         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
48298 2010-09-28  Bruno Haible  <bruno@clisp.org>
48300         poll: Assume ANSI C.
48301         * lib/poll.c (poll): Use an ANSI C declaration.
48303 2010-09-28  Bruno Haible  <bruno@clisp.org>
48305         poll-h: Create poll.h on all platforms.
48306         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
48307         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
48308         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
48309         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
48310         (gl_REPLACE_POLL_H): Don't set POLL_H.
48311         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
48312         * modules/poll-h (Depends-on): Add include_next.
48313         (Makefile.am): Create poll.h unconditionally. Substitute also
48314         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
48316 2010-09-28  Bruno Haible  <bruno@clisp.org>
48318         Tests for module 'poll-h'.
48319         * modules/poll-h-c++-tests: New file.
48320         * tests/test-poll-h-c++.cc: New file.
48322         Tests for module 'poll-h'.
48323         * modules/poll-h-tests: New file.
48324         * tests/test-poll-h.c: New file.
48326 2010-09-28  Bruno Haible  <bruno@clisp.org>
48328         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
48329         * modules/poll-h (Depends-on): Add 'extensions'.
48331 2010-09-28  Bruno Haible  <bruno@clisp.org>
48333         New module 'poll-h'.
48334         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
48335         (poll): Use modern idiom.
48336         * modules/poll-h: New file.
48337         * modules/poll (Files): Remove lib/poll.in.h.
48338         (Depends-on): Add poll-h.
48339         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
48340         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
48341         * m4/poll_h.m4: New file.
48342         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
48343         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
48344         and invoke gl_REPLACE_POLL_H.
48345         * lib/poll.c: Use common idiom.
48346         * tests/test-poll.c: Likewise.
48347         * doc/posix-headers/poll.texi: Mention the poll-h module.
48348         Suggested by Eric Blake.
48350 2010-09-26  Bruno Haible  <bruno@clisp.org>
48352         sys_wait: Implement WSTOPSIG.
48353         * lib/sys_wait.in.h (WSTOPSIG): New macro.
48354         Reported by Simon Josefsson.
48356 2010-09-26  Simon Josefsson  <simon@josefsson.org>
48358         stdlib, sys_wait: Avoid compilation error on mingw.
48359         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
48361 2010-09-26  Bruno Haible  <bruno@clisp.org>
48363         stdlib tests: Avoid code duplication.
48364         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
48365         * modules/sys_wait-tests (Files): Likewise.
48366         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
48367         * tests/test-stdlib.c: Include test-sys_wait.h.
48368         (main): Invoke test_sys_wait_macros.
48369         * tests/test-sys_wait.c: Include test-sys_wait.h.
48370         (main): Invoke test_sys_wait_macros.
48372 2010-09-25  Simon Josefsson  <simon@josefsson.org>
48374         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
48375         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
48376         sure Windows sockets are working before calling getaddrinfo.
48377         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
48378         * doc/gnulib.texi (Windows sockets): Fix typo.
48380 2010-09-25  Bruno Haible  <bruno@clisp.org>
48382         Tests for module 'regex-quote'.
48383         * modules/regex-quote-tests: New file.
48384         * tests/test-regex-quote.c: New file.
48386         New module 'regex-quote'.
48387         * lib/regex-quote.h: New file.
48388         * lib/regex-quote.c: New file.
48389         * modules/regex-quote: New file.
48390         Suggested by Reuben Thomas <rrt@sc3d.org>.
48392 2010-09-24  Bruno Haible  <bruno@clisp.org>
48394         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
48395         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
48397 2010-09-23  Bruno Haible  <bruno@clisp.org>
48399         setenv: Relax license.
48400         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
48401         Blake.
48402         Requested by Eric Blake.
48404 2010-09-22  Bruno Haible  <bruno@clisp.org>
48406         termios: Relax license.
48407         * modules/termios (License): Change to LGPLv2+.
48408         Requested by Eric Blake.
48410 2010-09-22  Bruno Haible  <bruno@clisp.org>
48412         threadlib: Allow the package to change the default to 'no'.
48413         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
48414         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
48415         Reported by Paul Eggert.
48417 2010-09-22  Pádraig Brady  <P@draigbrady.com>
48418             Bruno Haible  <bruno@clisp.org>
48420         Fix endless loop in mbmemcasecoll.
48421         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
48422         byte.
48423         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
48425 2010-09-22  Bruno Haible  <bruno@clisp.org>
48427         Tests for module 'memcoll'.
48428         * modules/memcoll-tests: New file.
48429         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
48431         memcoll, xmemcoll: Clarify size vs. length.
48432         * modules/memcoll.c (memcoll0): Clarify specification.
48433         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
48434         passed to collate_error.
48436 2010-09-22  Bruno Haible  <bruno@clisp.org>
48438         Tests for module 'memcasecmp'.
48439         * modules/memcasecmp-tests: New file.
48440         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
48442 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48444         * lib/pthread.in.h: Add split double-inclusion guard, and include
48445         system <pthread.h> if there is one.  Use @@-style as in other
48446         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
48447         pthread.h doesn't.
48448         (pthread_mutexattr_destroy, pthread_mutexattr_init):
48449         (pthread_mutexattr_settype, pthread_mutex_trylock):
48450         New static inline functions, if there's no system <pthread.h>.
48451         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
48452         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
48453         Approximate with mutexes if the system lacks spinlocks, as in
48454         MacOS.
48455         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
48456         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
48457         @@-style.  Check for spinlocks separately.
48458         (gl_PTHREAD_DEFAULTS): New macro.
48459         * modules/pthread: Redo to use a more typical style for in.h files.
48461 2010-09-21  Eric Blake  <eblake@redhat.com>
48463         net_if: enhance tests
48464         * tests/test-net_if.c (main): Move signature checks earlier.
48465         Print failures to stderr.
48466         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
48467         Document the bug that we do not yet fix.
48469 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48471         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
48472         about gnulib, not GSS.
48474 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
48476         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
48477         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
48478         for Emacs.
48479         * build-aux/pmccabe2html: Make Makefile.am example code more
48480         cut-and-paste friendly.
48482 2010-09-21  Simon Josefsson  <simon@josefsson.org>
48484         * tests/test-net_if.c: New file.
48485         * modules/net_if-tests: New file.
48487 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48489         pthread: add pthread_spin_destroy
48490         * lib/pthread.in.h (pthread_spin_destroy): New function.
48492 2010-09-19  Bruno Haible  <bruno@clisp.org>
48494         gnulib-tool: Fix --help output.
48495         * gnulib-tool (func_usage): Fix help message.
48496         Reported by Reuben Thomas <rrt@sc3d.org>.
48498 2010-09-18  Jim Meyering  <meyering@redhat.com>
48500         maint.mk: avoid unexpanded \n in two diagnostics
48501         * top/maint.mk (sc_prohibit_always_true_header_tests):
48502         Don't use a literal \n in a halt=... assignment.  It would not be
48503         expanded, and the two \n bytes would appear in the diagnostic output
48504         rather than the desired newline.  Use halt=$$(printf ... instead.
48505         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
48507 2010-09-18  Bruno Haible  <bruno@clisp.org>
48509         netinet_in: Doc tweak.
48510         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
48511         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48513 2010-09-18  Jim Meyering  <meyering@redhat.com>
48515         init.sh: correct an outdated comment
48516         * tests/init.sh (create_exe_shims_):  s/function/alias/
48518         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
48519         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
48520         a file named "*.exe" is removed between the glob expansion and the
48521         processing of that oddly named file.
48523 2010-09-17  Eric Blake  <eblake@redhat.com>
48525         mirbsd: add some more support
48526         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
48527         in BSD family.
48528         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
48529         devices as OpenBSD.
48530         * m4/host-os.m4 (mirbsd): Add MirBSD.
48532         tests: fix unportable assumption on sys/wait.h
48533         * tests/test-sys_wait.c (main): Relax test.
48534         * tests/test-stdlib.c (main): Likewise.
48536         init.sh: accommodate directory with no .exes
48537         * tests/init.sh: Accomodate directory containing only scripts.
48539         tests: avoid compiler warning
48540         * tests/test-stdlib.c (main): Use the variable.
48542         fdutimens, fdutimensat: update signature, again
48543         * lib/utimens.h (gl_futimens): Delete, and move signature...
48544         (fdutimens): ...here.
48545         (fdutimensat): Rearrange signature.
48546         (lutimensat): Rename variable for clarity.
48547         * lib/fdutimensat.c (fdutimensat): Update signature.
48548         * lib/utimens.c (fdutimens): Likewise.
48549         (gl_futimens): Delete.
48550         (utimens, lutimens): Update callers.
48551         * lib/futimens.c (futimens): Likewise.
48552         * tests/test-fdutimensat.c: Likewise.
48553         * tests/test-utimens.c: Likewise.
48554         * tests/test-futimens.h: Update comment.
48555         * NEWS: Mention this.
48556         Suggested by Paul Eggert.
48558 2010-09-17  Bruno Haible  <bruno@clisp.org>
48560         Take over the maintenance of some older macros from Autoconf.
48561         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
48562         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
48563         GNU Autoconf.
48564         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
48565         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
48567 2010-09-17  Eric Blake  <eblake@redhat.com>
48569         fdutimensat: drop atflag validation
48570         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
48571         with valid fd, to close a race scenario where futimens is
48572         unsupported and FILE was replaced by a symlink.
48573         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
48574         accordingly.
48575         Suggested by Paul Eggert.
48577 2010-09-16  Bruno Haible  <bruno@clisp.org>
48579         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
48580         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
48582 2010-09-16  Bruno Haible  <bruno@clisp.org>
48584         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
48585         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
48586         login_tty exists.
48587         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48589 2010-09-16  Bruno Haible  <bruno@clisp.org>
48591         login_tty: Make the replacement code work on BSD systems.
48592         * lib/login_tty.c: Include <sys/ioctl.h>.
48593         (login_tty): Use ioctl TIOCSCTTY when available.
48594         * modules/login_tty (Depends-on): Add sys_ioctl.
48595         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48597 2010-09-16  Bruno Haible  <bruno@clisp.org>
48599         login_tty: Stricter unit test.
48600         * modules/login_tty-tests (Depends-on): Add tcgetsid.
48601         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
48602         and tcgetsid() after login_tty.
48603         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48605 2010-09-16  Bruno Haible  <bruno@clisp.org>
48607         New module 'tcgetsid'.
48608         * lib/tcgetsid.c: New file.
48609         * m4/tcgetsid.m4: New file.
48610         * modules/tcgetsid: New file.
48611         * modules/termios (Depends-on): Add c++defs, warn-on-use.
48612         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
48613         GNULIB_TCGETSID, HAVE_TCGETSID.
48614         * lib/termios.in.h: Include <sys/types.h>.
48615         (tcgetsid): New declaration.
48616         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
48617         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
48618         * doc/posix-functions/tcgetsid.texi: Mention the new module.
48619         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
48621 2010-09-16  Bruno Haible  <bruno@clisp.org>
48623         Tests for module 'termios'.
48624         * modules/termios-c++-tests: New file.
48625         * modules/termios-tests: New file.
48626         * tests/test-termios-c++.cc: New file.
48627         * tests/test-termios.c: New file.
48629         New module 'termios'.
48630         * modules/termios: New file.
48631         * lib/termios.in.h: New file.
48632         * m4/termios_h.m4: New file.
48633         * doc/posix-headers/termios.texi: Mention the new module.
48635 2010-09-16  Eric Blake  <eblake@redhat.com>
48637         fdutimensat: add an atflag parameter
48638         * lib/fdutimensat.c (fdutimensat): Add new parameter.
48639         * lib/utimens.h (fdutimensat): Update prototype.
48640         * tests/test-fdutimensat.c: Adjust test to match.
48641         * NEWS: Document the change.
48642         Suggested by Paul Eggert.
48644 2010-09-16  Bruno Haible  <bruno@clisp.org>
48646         Fix typos in comments.
48647         * lib/striconveh.h: Fix typo in comment.
48648         * lib/login_tty.c (login_tty): Likewise.
48650 2010-09-15  Bruno Haible  <bruno@clisp.org>
48652         stdlib: clarify MirBSD WEXITSTATUS bug
48653         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
48654         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48656 2010-09-15  Eric Blake  <eblake@redhat.com>
48658         stdlib: work around MirBSD WEXITSTATUS bug
48659         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
48660         * modules/stdlib (Depends-on): Add sys_wait.
48661         * tests/test-sys_wait.c (main): Enhance test.
48662         * tests/test-stdlib.c (main): Likewise.
48663         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
48665         docs: mention MacOS issue with WEXITSTATUS(constant)
48666         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
48667         issue.
48668         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48670         strnlen: add tests
48671         * modules/strnlen-tests: New file.
48672         * tests/test-strnlen.c: Likewise.
48674 2010-09-14  Bruno Haible  <bruno@clisp.org>
48676         unistr/base: Avoid link errors when module 'libunistring' is also used.
48677         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
48678         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
48679         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
48680         Declare also when HAVE_LIBUNISTRING is set.
48681         Reported by Pádraig Brady <P@draigbrady.com>.
48683 2010-09-14  Eric Blake  <eblake@redhat.com>
48685         test-rawmemchr: make more robust
48686         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
48687         (Depends-on, configure.ac): Add needed prerequisites to use it.
48688         * modules/memchr-tests (Files, Depends-on, configure.ac):
48689         Likewise, to avoid implicit reliance on memchr module prereqs.
48690         * tests/test-memchr.c (main): Ensure proper masking.
48691         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
48692         reads.
48694         memchr: detect glibc Alpha bug
48695         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
48696         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
48697         Alpha.
48698         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
48699         * tests/test-memchr.c (main): Enhance test.
48700         Reported by Nelson H. F. Beebe.
48702 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48704         fts, getcwd, glob: audit for dirfd returning -1
48705         * lib/fts.c (opendir): Remove #define; no longer used.
48706         (opendirat): New arg PDIR_FD.  All callers changed.
48707         (fts_build, _opendir2): Use new opendirat to avoid the need for
48708         dirfd, or for checking whether dirfd returns a negative value.
48709         Don't use opendir; always use openat followed by fdopendir.
48710         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
48711         it.
48712         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
48713         returns -1 here.
48714         * modules/fts (Depends-on): Remove dirfd.
48715         * modules/getcwd (Depends-on): Likewise.
48717 2010-09-13  Eric Blake  <eblake@redhat.com>
48719         float: fix broken MirBSD header
48720         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
48721         * doc/posix-headers/float.texi (float.h): Document it.
48723 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48725         fts: use O_NOFOLLOW to avoid race condition when opening a directory
48726         * lib/fts.c (opendirat): New arg extra_flags.
48727         (__opendir2): Use it to avoid following symlinks when opening
48728         a directory, if symlinks are not supposed to be followed.  See
48729         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
48731         fdopendir: preserve argument fd before returning
48732         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
48733         (fdopendir_with_dup, fd_clone_opendir): New static functions.
48734         (fdopendir): Use them, arranging for FD to be open to the same
48735         directory that it was when it started.  (It might be temporarily
48736         closed while fdopendir is running, so this not thread- or
48737         signal-safe.)  Be careful to do the right thing even when file
48738         descriptors are scarce and dup fails with errno == EMFILE.  See
48739         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
48741 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
48743         regex: Pass the system regex if its only problem is 32-bit regoff_t.
48744         * NEWS: Document change.
48745         * m4/regex.m4: Disable test for regoff_t size.
48747 2010-09-13  Jim Meyering  <meyering@redhat.com>
48749         fts: don't operate on an invalid file descriptor after failed dup
48750         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
48751         negative file descriptor.
48753 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
48755         savedir: add streamsavedir, deprecate fdsavedir
48756         * NEWS: Mention deprecation of fdsavedir.
48757         * lib/savedir.c (streamsavedir): New extern function, whose name
48758         ends in "savedir" to be consistent with the others.  This differs
48759         from savedirstream in that it doesn't close its argument.  The
48760         next version of GNU tar will use this instead of fdsavedir, to
48761         avoid some race conditions and conserve file descriptors.
48762         (savedirstream): Reimplement as a wrapper around streamsavedir.
48763         (fdsavedir): Add a comment deprecating this function.  As far as
48764         I know, only GNU tar used it, and GNU tar doesn't need it any more.
48765         * lib/savedir.h (streamsavedir): New decl.
48766         (fdsavedir): Add a comment deprecating this.
48768 2010-09-10  Bruno Haible  <bruno@clisp.org>
48770         langinfo: Fix last commit.
48771         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
48772         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
48773         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48775 2010-09-10  Bruno Haible  <bruno@clisp.org>
48777         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
48778         * lib/progreloc.c (O_EXEC): Define fallback.
48780 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
48782         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
48783         * NEWS: Document recent changes to fcntl-h.
48784         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
48785         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
48786         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
48787         Similarly for O_SEARCH; this last was already true, but not documented.
48788         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
48789         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
48790         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
48791         Likewise.
48792         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
48793         is zero, not whether it is defined.
48794         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
48795         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
48796         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
48798 2010-09-10  Bruno Haible  <bruno@clisp.org>
48800         langinfo, nl_langinfo: Fix for IRIX 5.3.
48801         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
48802         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
48803         HAVE_LANGINFO_YESEXPR.
48804         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
48805         HAVE_LANGINFO_YESEXPR.
48806         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
48807         HAVE_LANGINFO_T_FMT_AMPM is 0.
48808         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
48809         HAVE_LANGINFO_YESEXPR is 0.
48810         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
48811         NOEXPR.
48812         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
48813         * doc/posix-functions/nl_langinfo.texi: Likewise.
48814         Reported by Eric Blake.
48816 2010-09-10  Bruno Haible  <bruno@clisp.org>
48818         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
48819         * doc/glibc-functions/login_tty.texi: Mention the include file problem
48820         on FreeBSD 8.0 and OpenBSD 4.6.
48821         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
48822         * m4/pty_h.m4 (gl_PTY_H): Likewise.
48823         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
48824         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
48825         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
48826         ac_includes_default.
48827         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
48829 2010-09-09  Eric Blake  <eblake@redhat.com>
48831         strsignal: work around NetBSD bug
48832         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
48833         * lib/string.in.h (includes): Likewise.
48834         * doc/posix-functions/strsignal.texi (strsignal): Document the
48835         bug.
48836         Reported by Nelson H. F. Beebe.
48838         gnulib-tool: work with NetBSD /bin/sh
48839         * gnulib-tool (func_cache_var, func_cache_lookup_module)
48840         (func_get_description, func_get_comment, func_get_status)
48841         (func_get_notice, func_get_applicability, func_get_filelist)
48842         (func_get_dependencies, func_get_autoconf_early_snippet)
48843         (func_get_autoconf_snippet, func_get_automake_snippet)
48844         (func_get_include_directive, func_get_link_directive)
48845         (func_get_license, func_get_maintainer, func_import): Avoid
48846         shell syntax errors from parsing syntax extensions.
48848 2010-09-09  Bruno Haible  <bruno@clisp.org>
48850         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
48851         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
48852         a reliable way to determine whether the 'alias' command works.
48854 2010-09-08  Jim Meyering  <meyering@redhat.com>
48856         init.sh: penalize a set-x-impaired shell; don't disqualify it
48857         * tests/init.sh: Too many shells corrupt application stderr when
48858         you set -x, so we can't afford to disqualify them, since at least
48859         on Irix-6.5, that would disqualify all bourne shells.
48860         Instead, use a two-pass approach.
48861         On the first pass, try to find a shell that meets the stricter
48862         condition that set -x does not corrupt stderr.
48863         If no shell meets the stricter condition, retest each candidate
48864         shell, but without that extra condition.  Finally, when
48865         VERBOSE=yes is requested and set -x might cause trouble, simply
48866         issue a warning and refrain from enabling debug output.
48868 2010-09-08  Eric Blake  <eblake@redhat.com>
48870         unsetenv: fix OpenBSD bug
48871         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
48872         * doc/posix-functions/unsetenv.texi (unsetenv): Update
48873         documentation.
48874         Reported by Jim Meyering.
48876         strtod: work around IRIX 6.5 bug
48877         * lib/strtod.c (strtod): Reparse number on shorter string if
48878         exponent parse was invalid.
48879         * tests/test-strtod.c (main): Add check for "0x1p 2".
48880         Reported by Tom G. Christensen.
48882         getopt: optimize previous patch
48883         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
48884         empty variable.  Speed up awk script.
48885         Reported by Paolo Bonzini.
48887 2010-09-08  Jim Meyering  <meyering@redhat.com>
48889         test.sh: disqualify shells for which set -x corrupts stderr
48890         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
48891         and OpenBSD 4.7.  They make it so with "set -x", environment settings
48892         appear in stderr output.  For example, this command:
48893             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
48894         prints "P=1" on those two systems:
48896 2010-09-08  Bruno Haible  <bruno@clisp.org>
48898         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
48899         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
48900         commands, because some shells ignore redirections when there is an
48901         error in the command lookup.
48902         Reported by Eric Blake.
48904 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
48906         * lib/regex.h: Fix a mention of `regex_compile' (should be
48907         `re_compile_pattern').
48908         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
48909         (re_set_registers): Correct name of parameter in comment.
48911         * doc/regex.texi: Add documentation for missing syntax flags.
48912         Remove commented-out documentation of defunct syntax option
48913         RE_NO_EMPTY_ALTS.
48914         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
48915         Add documentation of re_set_registers.
48916         Document trick to re-use a pattern buffer by setting fastmap manually.
48917         Update documentation of struct re_pattern_buffer per public members.
48918         Uncomment documentation of equivalence class operators and
48919         collating symbol operators, since they are now implemented,
48920         Explain leftmost-longest matching in relation to alternatives.
48921         Tidy documentation of substring matching.
48922         Remove POSIX documentation, which is done better in
48923         glibc, and refer the reader there. Keep BSD API documentation, as
48924         that is not readily available elsewhere.
48926 2010-09-07  Eric Blake  <eblake@redhat.com>
48928         getopt: handle POSIXLY_CORRECT set but not exported
48929         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
48930         export state of POSIXLY_CORRECT, due to bash set -o posix.
48931         Reported by Dustin J. Mitchell.
48933 2010-09-05  Bruno Haible  <bruno@clisp.org>
48935         gnulib-tool: Highlight the changed options.
48936         * gnulib-tool (func_usage): Display the --import, --add-import,
48937         --remove-import explanations in bold font.
48939 2010-09-06  Karl Berry  <karl@gnu.org>
48941         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
48943 2010-09-05  Bruno Haible  <bruno@clisp.org>
48945         uniwidth/width: Update comment.
48946         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
48947         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
48949 2010-09-05  Bruno Haible  <bruno@clisp.org>
48951         isinf, isnan: Relax license.
48952         * modules/isinf (License): Change from GPL to LGPL, with consent from
48953         Ben Pfaff.
48954         * modules/isnan (License): Likewise.
48955         Requested by Ludovic Courtès.
48957 2010-09-04  Bruno Haible  <bruno@clisp.org>
48959         gnulib-tool: Help migration from --import to --add-import or --update.
48960         * gnulib-tool: Emit a verbose error message when --import is used
48961         without any module name.
48963 2010-09-04  Bruno Haible  <bruno@clisp.org>
48965         Update doc about gnulib-tool.
48966         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
48967         'gnulib-tool --update' in more detail.
48968         Reported by Eric Blake.
48970 2010-09-04  Bruno Haible  <bruno@clisp.org>
48972         gnulib-tool: Change --import. New options --add/remove-import.
48973         * gnulib-tool: New options --add-import, --remove-import.
48974         (func_usage): Document them.
48975         (have_associative): Define always.
48976         (func_import): In import mode, don't merge the specified settings with
48977         the cached settings. Implement remove-import mode.
48978         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
48979         Explain when to use them versus --import.
48980         (Simple update): Use --add-import instead of --import.
48981         * NEWS: Mention the change.
48983 2010-09-04  Bruno Haible  <bruno@clisp.org>
48985         * doc/gnulib-tool.texi (Initial import): Update paragraph about
48986         separate gnulib.mk.
48988 2010-09-04  Bruno Haible  <bruno@clisp.org>
48990         gnulib-tool: Don't talk about CVS any more.
48991         * gnulib-tool (func_usage, func_import): Write "version control"
48992         instead of CVS.
48994 2010-09-04  Jim Meyering  <meyering@redhat.com>
48996         maint.mk: avoid obscure sc_copyright_check failure in coreutils
48997         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
48998         false positives (whose names may be ill-chosen) when searching
48999         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
49000         would cause a false-positive.
49002         avoid coreutils "make distcheck" failure
49003         Coreutils tests with an absolute build directory name that contains
49004         a space.  Not quoting this directory name caused a failure.
49005         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
49006         * tests/test-vc-list-files-cvs.sh: Likewise.
49008 2010-09-04  Bruno Haible  <bruno@clisp.org>
49010         gnulib-tool: Avoid error when run in a package without Makefile.am.
49011         * gnulib-tool: When collecting the m4dirs in a package that does not
49012         have a Makefile.am, eliminate those directories that contain no
49013         gnulib-cache.m4. Fix expression that counts these directories.
49015 2010-09-04  Bruno Haible  <bruno@clisp.org>
49017         update-copyright test: Improve output when perl is missing or too old.
49018         * tests/test-update-copyright.sh: Move test of Perl version down after
49019         the test whether Perl exists. Provide an explanation relating Perl's
49020         error message to Automake's SKIP: message.
49022 2010-09-04  Bruno Haible  <bruno@clisp.org>
49024         Don't augment PATH in TESTS_ENVIRONMENT.
49025         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
49026         set abs_aux_dir instead of augmenting PATH.
49027         * modules/vc-list-files-tests (Makefile.am): Likewise.
49028         * tests/test-update-copyright.sh: Augment PATH here.
49029         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
49030         path_prepend_.
49031         * tests/test-vc-list-files-git.sh: Likewise.
49033 2010-09-04  Jim Meyering  <meyering@redhat.com>
49035         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
49036         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
49038 2010-09-04  Bruno Haible  <bruno@clisp.org>
49040         strdup: Fix compilation error in C++ mode.
49041         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
49042         the macro.
49044 2010-09-04  Bruno Haible  <bruno@clisp.org>
49046         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
49047         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
49048         macro into a function.
49049         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49051 2010-09-04  Bruno Haible  <bruno@clisp.org>
49053         Set PATH_SEPARATOR the same way autoconf does.
49054         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
49055         the value of PATH_SEPARATOR the same way autoconf-generated configure
49056         scripts do.
49057         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
49058         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49060 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
49062         Set PATH_SEPARATOR the same way autoconf does.
49063         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
49064         the same way autoconf-generated configure scripts do.
49065         * posix-modules: Likewise.
49067 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49069         hash: fix safe_hasher const typo
49070         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
49071         const; otherwise, there is a type error later.
49073 2010-09-02  Jim Meyering  <meyering@redhat.com>
49075         test-update-copyright.sh: require perl 5.8.0
49076         * tests/test-update-copyright.sh: Require 5.8.0,
49077         which Tom G. Christensen has confirmed is adequate,
49078         while 5.6.1 is not.
49080 2010-09-02  Eric Blake  <eblake@redhat.com>
49082         tests: init.sh improvements for re-exec'ing with zsh
49083         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
49084         -vx through shell re-exec.
49085         Reported by Tom G. Christensen.
49087         wctype: fix typo in previous commit
49088         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
49089         Reported by Ludovic Courtès.
49091 2010-09-02  Jim Meyering  <meyering@redhat.com>
49093         test-update-copyright.sh: skip test if Perl is too old
49094         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
49095         Reported by Tom G. Christensen.
49097 2010-09-02  Bruno Haible  <bruno@clisp.org>
49099         wctype: Avoid compilation error on IRIX 6.5.30.
49100         * lib/wctype.in.h (iswblank): Declare with a replacement if
49101         REPLACE_ISWBLANK is set.
49102         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
49103         declared. Set REPLACE_ISWBLANK.
49104         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
49105         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
49106         * doc/posix-headers/wctype.texi: Likewise.
49107         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49109 2010-09-01  Bruno Haible  <bruno@clisp.org>
49111         New module 'socketlib'.
49112         * modules/socketlib: New file.
49113         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
49114         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
49115         * modules/sockets (Depends-on): Add socketlib.
49116         Suggested by Sam Steingold <sds@gnu.org>.
49118 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49120         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
49122         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
49123         when one needs search access to a directory but not read access.
49124         On systems where it is available, it works in some cases where
49125         O_RDONLY does not, namely on directories that are searchable but
49126         not readable, and which need only to be searchable.  If O_SEARCH
49127         is not available, fall back to the traditional method of using
49128         O_RDONLY.
49130         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
49131         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
49132         when opening a directory that needs only to be searchable.
49133         * lib/chdir-safer.c (chdir_no_follow): Likewise.
49134         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
49135         * lib/openat-proc.c (openat_proc_name): Likewise.
49136         * lib/openat.c (openat_needs_fchdir): Likewise.
49137         * lib/save-cwd.c (save_cwd): Likewise.
49138         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
49140 2010-08-28  Bruno Haible  <bruno@clisp.org>
49142         New module 'host-cpu-c-abi'.
49143         * modules/host-cpu-c-abi: New file.
49144         * m4/host-cpu-c-abi.m4: New file, based on part of
49145         clisp/src/m4/general.m4.
49146         Requested by Sam Steingold <sds@gnu.org>.
49148 2010-08-31  Eric Blake  <eblake@redhat.com>
49149         and Jim Meyering  <meyering@redhat.com>
49151         hash: factor, and guard against misbehaving hasher function
49152         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
49153         of table->hasher's return value.  Also protect against a hash value
49154         so large that adding it to table->bucket results in a NULL pointer.
49155         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
49156         Use it in place of open-coded check-and-abort.
49158 2010-08-30  Bruno Haible  <bruno@clisp.org>
49160         hash: silence spurious clang warning
49161         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
49162         Reported by Eric Blake.
49164 2010-08-30  Eric Blake  <eblake@redhat.com>
49166         strstr, memmem, strcasestr: avoid leaked shell message
49167         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
49168         FreeBSD.
49169         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49170         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49172         tests: silence clang warning
49173         * tests/test-malloca.c (do_allocation): Avoid dead store.
49175 2010-08-29  Bruno Haible  <bruno@clisp.org>
49177         gettext: Fix recent mistake.
49178         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
49180 2010-08-29  Bruno Haible  <bruno@clisp.org>
49182         selinux-h: Offer a --without-selinux option.
49183         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
49184         --without-selinux was specified, skip all tests and define
49185         HAVE_SELINUX_SELINUX_H to 0.
49186         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
49187         set LIB_SELINUX to empty.
49188         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
49189         gl_LIBSELINUX. If --without-selinux was specified, replace
49190         selinux/context.h.
49191         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
49193 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49194             Bruno Haible  <bruno@clisp.org>
49196         Make the module 'realloc-gnu' work again on AIX and OSF/1.
49197         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
49198         of HAVE_REALLOC.
49199         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
49200         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
49201         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
49202         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49204 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49205             Bruno Haible  <bruno@clisp.org>
49207         Make the module 'calloc-gnu' work again on AIX and OSF/1.
49208         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
49209         HAVE_CALLOC.
49210         * lib/xmalloc.c: Update accordingly.
49211         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
49212         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
49213         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
49215 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49216             Bruno Haible  <bruno@clisp.org>
49218         Make the module 'malloc-gnu' work again on AIX and OSF/1.
49219         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
49220         HAVE_MALLOC.
49221         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
49222         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
49223         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49225 2010-08-29  Bruno Haible  <bruno@clisp.org>
49227         Update modules list.
49228         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49229         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
49230         (String handling <string.h>): Add astrxfrm.
49231         (File system functions): Add readlinkat.
49233 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49235         Tests for module 'realloc-gnu'.
49236         * modules/realloc-gnu-tests: New file.
49237         * tests/test-realloc-gnu.c: New file.
49239         Tests for module 'calloc-gnu'.
49240         * modules/calloc-gnu-tests: New file.
49241         * tests/test-calloc-gnu.c: New file.
49243         Tests for module 'malloc-gnu'.
49244         * modules/malloc-gnu-tests: New file.
49245         * tests/test-malloc-gnu.c: New file.
49247 2010-08-28  Bruno Haible  <bruno@clisp.org>
49249         Rename module 'realloc' -> 'realloc-gnu'.
49250         * modules/realloc-gnu: New file, copied from modules/realloc.
49251         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
49252         obsolete.
49253         * modules/mgetgroups (Depends-on): Update.
49254         * doc/posix-functions/realloc.texi: Update.
49255         * NEWS: Mention the change.
49257         Rename module 'calloc' -> 'calloc-gnu'.
49258         * modules/calloc-gnu: New file, copied from modules/calloc.
49259         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
49260         obsolete.
49261         * doc/posix-functions/calloc.texi: Update.
49262         * NEWS: Mention the change.
49264         Rename module 'malloc' -> 'malloc-gnu'.
49265         * modules/malloc-gnu: New file, copied from modules/malloc.
49266         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
49267         obsolete.
49268         * modules/argp (Depends-on): Update.
49269         * modules/regex (Depends-on): Update.
49270         * doc/posix-functions/malloc.texi: Update.
49271         * NEWS: Mention the change.
49273 2010-08-28  Eric Blake  <eblake@redhat.com>
49275         pread, pwrite: add missing dependency
49276         * modules/pread (Depends-on): Add extensions.
49277         * modules/pwrite (Depends-on): Likewise.
49279 2010-08-28  Bruno Haible  <bruno@clisp.org>
49281         unistr/u*-strchr: Fix tests dependencies.
49282         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
49283         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
49284         Reported by Ian Beckwith <ianb@erislabs.net>.
49286 2010-08-28  Bruno Haible  <bruno@clisp.org>
49288         read-file: Don't occupy too much unused memory.
49289         * lib/read-file.c (fread_file): Shrink the buffer at the end.
49291 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
49292             Eric Blake  <eblake@redhat.com>
49293             Bruno Haible  <bruno@clisp.org>
49295         read-file: Avoid memory reallocations with regular files.
49296         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
49297         (fread_file): With regular files, use the remaining length as the
49298         initial buffer size.  Check against overflow.
49299         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
49300         sys_stat.
49302 2010-08-28  Bruno Haible  <bruno@clisp.org>
49304         ftello: Relax license.
49305         * modules/ftello (License): Relax to LGPLv2+.
49306         Reported by Eric Blake.
49308 2010-08-28  Bruno Haible  <bruno@clisp.org>
49310         Avoid relocwrapper link errors due to gnulib replacement functions.
49311         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
49312         function.
49313         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49315 2010-08-28  Bruno Haible  <bruno@clisp.org>
49317         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
49318         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
49319         defined.
49320         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
49321         Suggested by Eric Blake.
49323 2010-08-28  Bruno Haible  <bruno@clisp.org>
49325         sys_socket, netdb: Ensure socklen_t gets defined.
49326         * modules/sys_socket (Depends-on): Add socklen.
49327         * modules/netdb (Depends-on): Likewise.
49328         * modules/getaddrinfo (Depends-on): Remove socklen.
49329         * modules/getsockopt (Depends-on): Likewise.
49330         * modules/setsockopt (Depends-on): Likewise.
49331         * tests/test-sys_socket.c: Check that socklen_t is defined.
49332         * tests/test-netdb.c: Likewise.
49333         * m4/socklen.m4: Update comments.
49334         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49336 2010-08-27  Eric Blake  <eblake@redhat.com>
49338         login_tty: add missing dependency
49339         * modules/login_tty (Depends-on): Add pty.
49341 2010-08-26  Eric Blake  <eblake@redhat.com>
49343         lib-symbol-versions: fix m4 quoting
49344         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
49345         format for AC_LINK_IFELSE.
49347         glob: fix compile test
49348         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
49350         btowc: fix missing file
49351         * modules/btowc (Files): Also ship locale-fr.m4.
49353         lseek: fix link test
49354         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
49355         AC_LINK_IFELSE.
49357         include_next: silence autoconf 2.68 warning
49358         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
49359         AC_COMPILE_IFELSE as special.
49360         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
49361         autoconf < 2.68.
49363         acl: fix compilation test
49364         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
49365         AC_COMPILE_IFELSE.
49367 2010-08-26  Bruno Haible  <bruno@clisp.org>
49369         Modernize AC_TRY_RUN invocations.
49370         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
49371         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
49372         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
49373         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
49374         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
49375         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
49376         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
49377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49378         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49379         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49380         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
49381         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49382         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
49383         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49384         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
49385         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
49386         gl_MBRLEN_NUL_RETVAL): Likewise.
49387         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49388         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49389         Likewise.
49390         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49391         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
49392         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
49393         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
49394         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
49395         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
49396         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
49397         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49398         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
49399         Likewise.
49400         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49401         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
49402         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49403         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49404         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49405         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
49406         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
49407         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
49408         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49409         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49411 2010-08-26  Bruno Haible  <bruno@clisp.org>
49413         Modernize AC_TRY_LINK invocations.
49414         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
49415         AC_TRY_LINK.
49416         * m4/argp.m4 (gl_ARGP): Likewise.
49417         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49418         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49419         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
49420         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49421         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49422         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
49423         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49424         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49425         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49426         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49427         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49428         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
49429         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
49430         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
49431         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49432         * m4/hostent.m4 (gl_HOSTENT): Likewise.
49433         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
49434         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
49435         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49436         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
49437         Likewise.
49438         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
49439         Likewise.
49440         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
49441         Likewise.
49442         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49443         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
49444         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
49445         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49446         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49447         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
49448         * m4/servent.m4 (gl_SERVENT): Likewise.
49449         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49450         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49451         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49452         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49453         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49454         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49455         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49456         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49457         * modules/tsearch-tests (configure.ac): Likewise.
49459 2010-08-26  Bruno Haible  <bruno@clisp.org>
49461         Modernize AC_TRY_COMPILE invocations.
49462         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
49463         AC_TRY_COMPILE.
49464         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
49465         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
49466         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49467         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49468         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49469         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49470         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49471         * m4/lock.m4 (gl_LOCK): Likewise.
49472         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
49473         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49474         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
49475         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
49476         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49477         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
49478         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49479         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
49480         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49481         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49482         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49483         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49484         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
49485         extraneous semicolon.
49487 2010-08-26  Jim Meyering  <meyering@redhat.com>
49489         stat-time: relax license LGPL
49490         * modules/stat-time (License): Change from GPL to LGPL,
49491         with consent from all contributors, for use in libguile.
49492         Requested by Ludovic Courtès.
49494 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
49496         poll: return immediately on POLLHUP.
49497         * lib/poll.c (poll): Always set timeout before wait_timeout is
49498         computed.
49500 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49502         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
49503         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
49504         rmdir ("dir/.//"), unlinkat.
49506 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49508         stdbool: avoid spurious failure with modern xlc
49509         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49511 2010-08-24  Bruno Haible  <bruno@clisp.org>
49513         getloadavg: simplify code
49514         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
49515         gl_have_func. Update comments.
49517 2010-08-24  Eric Blake  <eblake@redhat.com>
49519         getloadavg: don't define SVR4 on cygwin
49520         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
49521         only define SVR4 when -lkvm is required.
49522         Reported by Yaakov Selkowitz.
49524 2010-08-24  Bruno Haible  <bruno@clisp.org>
49526         priv-set: fix comment
49527         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
49529 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49531         priv-set: fix comments
49532         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
49533         to match code, as suggested by David Bartley in:
49534         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
49536 2010-08-23  Eric Blake  <eblake@redhat.com>
49538         stdbool: avoid rejecting clang
49539         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
49540         * tests/test-stdbool.c: Enable more tests if using the system
49541         <stdbool.h> instead of the gnulib replacement.
49542         (main): Move xlc bug test to a runtime test for all compilers.
49543         Reported by Anders Kaseorg.
49545         argz: fix shell quoting issue
49546         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
49547         Reported by Charles Wilson.
49549 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
49550             Erik Faye-Lund <kusmabite@gmail.com>
49552         poll, select: handle ERROR_BROKEN_PIPE.
49553         * lib/poll.c (win32_compute_revents): Return POLLHUP when
49554         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49555         * lib/select.c (win32_compute_revents): Do not mark a pipe
49556         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
49558 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
49560         fts: allow compilation with C++
49561         * lib/fts_.h: Specify extern "C" linkage with C++.
49563 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49565         Fix gnulib-tool sed script de-commentation for AIX sed.
49566         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
49567         sed.
49569 2010-08-17  Eric Blake  <eblake@redhat.com>
49571         test-stddef: test for (some) offsetof bugs
49572         * tests/test-stddef.c: Enhance test to ensure correct type of
49573         offsetof.
49574         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
49575         that we are not fixing at this time.
49577 2010-08-15  Bruno Haible  <bruno@clisp.org>
49579         stpncpy: Allow stpncpy to be defined as a macro.
49580         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
49581         if it's already correctly declared.
49582         * lib/string.in.h (stpncpy): Undefine before redefining.
49583         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
49585 2010-08-14  Bruno Haible  <bruno@clisp.org>
49587         Rename module 'memxfrm' to 'amemxfrm'.
49588         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
49589         (amemxfrm): Renamed from memxfrm.
49590         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
49591         (amemxfrm): Renamed from memxfrm.
49592         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
49593         * NEWS: Mention the change.
49594         * MODULES.html.sh (String handling <string.h>): Update.
49595         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
49596         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
49597         * lib/unicase/u16-casexfrm.c: Likewise.
49598         * lib/unicase/u32-casexfrm.c: Likewise.
49599         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
49600         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
49601         * lib/uninorm/u16-normxfrm.c: Likewise.
49602         * lib/uninorm/u32-normxfrm.c: Likewise.
49603         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
49604         memxfrm.
49605         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
49606         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
49607         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
49608         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
49609         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
49610         Suggested by Paul Eggert.
49612 2010-08-14  Bruno Haible  <bruno@clisp.org>
49614         Tests for module 'astrxfrm'.
49615         * modules/astrxfrm-tests: New file.
49616         * tests/test-astrxfrm.c: New file.
49618         New module 'astrxfrm'.
49619         * lib/astrxfrm.h: New file.
49620         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
49621         * modules/astrxfrm: New file.
49623 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
49625         regex: Tweak doc.
49626         * doc/regex.texi (Overview): Don't mention regex.c.
49627         (GNU Regular Expression Compiling): Likewise.
49628         (Match-end-of-line Operator): Mention 'not_eol'.
49630 2010-08-14  Brian Gough  <bjg@gnu.org>
49631             Bruno Haible  <bruno@clisp.org>
49633         git-merge-changelog: add doc relating to use with bzr and hg.
49634         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
49636 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
49638         pthread: fix pthread.h creation for srcdir != builddir
49639         * modules/pthread (Makefile.am): Fix the rule to work also in a
49640         non-srcdir build.
49642 2010-08-13  Karl Berry  <karl@gnu.org>
49644         * doc/regex.texi (Predefined Syntaxes): @smallexample.
49645         * doc/posix-*/*: force line break before @url of POSIX
49646         specifications.
49647         Suggested by Werner Lemberg.
49649 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49651         strtod: fix const diagnostic
49652         * lib/strtod.c (strtod): Don't assign const char * to char *,
49653         as this elicits a warning from GCC when warnings are enabled.
49655 2010-08-10  Pádraig Brady  <P@draigbrady.com>
49656         and Eric Blake  <eblake@redhat.com>
49658         copy-acl: ignore ENOTSUP on HP-UX
49659         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
49660         so that it is available for HP-UX.
49661         * lib/copy-acl.c (qcopy_acl): Use it.
49662         Reported by Patrick M. Callahan.
49664 2010-08-10  Eric Blake  <eblake@redhat.com>
49666         open, chown: relax license
49667         * modules/open (License): Change to LGPLv2+, with consent by all
49668         authors, for use in augeas.
49669         * modules/chown (License): Likewise.
49670         * modules/lchown (Likewise): Likewise.
49671         Requested by Adam Stokes.
49673 2010-08-09  Karl Berry  <karl@gnu.org>
49675         * build-aux/ar-lib: new file, import from Automake.
49676         * config/srclist.txt: autocheck for updates.
49678 2010-08-09  Eric Blake  <eblake@redhat.com>
49680         readlinkat: adjust client modules
49681         * modules/areadlinkat (Depends-on): Use readlinkat, not
49682         symlinkat.
49683         * modules/areadlinkat-with-size (Depends-on): Likewise.
49685         mknod: be more vocal about danger of running tests as root
49686         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
49687         root, since that is just asking for problems.
49688         Suggested by Bruno Haible, based on a report by Rainer Tammer.
49690         readlinkat: split into its own module
49691         * modules/symlinkat: Split readlinkat...
49692         * modules/readlinkat: ...into separate module.
49693         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
49694         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
49695         * lib/symlinkat.c (readlinkat): Move...
49696         * lib/readlinkat.c: ...into new file.
49697         * modules/symlinkat-tests: Split readlinkat test...
49698         * modules/readlinkat-tests: ...into separate module.
49699         * tests/test-symlinkat.c: Split...
49700         * tests/test-readlinkat.c: ...into new file.
49701         * NEWS: Document the split.
49702         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
49703         * lib/unistd.in.h (readlinkat): Likewise.
49704         Suggested by Bruno Haible.
49706 2010-08-08  Bruno Haible  <bruno@clisp.org>
49708         memxfrm: Speed up.
49709         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
49710         that usually only one call to strxfrm is necessary for each string
49711         part.
49712         Reported by Paul Eggert <eggert@cs.ucla.edu>.
49714 2010-08-07  Karl Berry  <karl@gnu.org>
49716         * doc/posix-headers/limits.texi,
49717         * doc/posix-functions/malloc.texi,
49718         * doc/posix-functions/strsignal.texi: missing @item.
49719         * doc/ld-version-script.texi: spurious leading i.
49720         * doc/regex.texi (Interval Operators): no commas inside @var.
49722 2010-08-01  Bruno Haible  <bruno@clisp.org>
49724         Integrate the regex documentation.
49725         * doc/gnulib.texi: Define 'cn' index.
49726         (Regular expressions): New a chapter that includes regex.texi and
49727         regexprops-generic.texi.
49728         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
49729         syntax.
49731         Whitespace cleanup.
49732         * doc/regex.texi: Remove trailing spaces.
49734         Add regex documentation.
49735         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
49736         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
49737         Written by Kathy A. Hargreaves and Karl Berry.
49739 2010-08-01  Bruno Haible  <bruno@clisp.org>
49741         link: Update documentation.
49742         * doc/posix-functions/link.texi: Update regarding Solaris.
49744 2010-07-31  Bruno Haible  <bruno@clisp.org>
49746         Update modules list.
49747         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
49748         (String handling <string.h>): Add memcmp2, memxfrm.
49749         (Container data structures): Add xlist, xsublist, xoset.
49750         (Core language properties): Add alignof, unused-parameter.
49751         (Process control, Numeric conversion functions <stdlib.h>): Renamed
49752         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
49753         (Unibyte characters <ctype.h>): New section.
49754         (String handling <string.h>): New section.
49755         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
49756         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
49757         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
49758         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
49759         tan, tanh, tanl, y0, y1, yn.
49760         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
49761         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
49762         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
49763         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
49764         unlockpt, vdprintf, vdprintf-posix.
49765         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
49766         (File system functions): Add concat-filename, sys_file, sys_ioctl,
49767         xconcat-filename.
49768         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
49769         getdtablesize, pipe2, pipe2-safer.
49770         (Security): New section.
49771         (Networking functions): Add accept4.
49772         (Signal handling): Add sigpipe.
49773         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
49774         mbmemcasecoll.
49775         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
49776         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
49777         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
49778         pipe-filter-ii.
49779         (Misc): Add argp-version-etc, login_tty, parse-duration.
49781 2010-07-31  Bruno Haible  <bruno@clisp.org>
49783         Improve doc in MODULES.html.
49784         * modules/linkat (Description): Add the word "function".
49785         * modules/mkfifo (Description): Likewise.
49786         * modules/mknod (Description): Likewise.
49787         * modules/remove (Description): Likewise.
49788         * modules/renameat (Description): Likewise.
49789         * modules/stat (Description): Likewise.
49790         * modules/symlink (Description): Likewise.
49791         * modules/unlink (Description): Likewise.
49793 2010-07-31  Bruno Haible  <bruno@clisp.org>
49795         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
49796         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
49797         option --enable/disable-c++ instead of --enable/disable-cxx.
49798         * NEWS: Mention the change.
49800 2010-07-31  Bruno Haible  <bruno@clisp.org>
49802         readlink, areadlink: Relax test a bit.
49803         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
49804         alternative to ENOTDIR.
49805         * tests/test-areadlink.h (test_areadlink): Likewise.
49806         Reported by Rainer Tammer.
49808 2010-07-31  Bruno Haible  <bruno@clisp.org>
49810         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
49811         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
49812         character, perform the search using U_STRCHR.
49813         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
49814         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
49815         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
49816         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
49817         Suggested by Paolo Bonzini.
49819 2010-07-31  Bruno Haible  <bruno@clisp.org>
49821         unistr/u*-strstr: Fix dependencies.
49822         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
49823         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
49824         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
49826 2010-07-31  Bruno Haible  <bruno@clisp.org>
49828         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
49829         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
49830         the beginning of the loop.
49831         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
49832         cases in 'switch' statement.
49834         unistr/u8-strchr: Fix several bugs.
49835         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
49836         the string. When not found, return NULL, not a pointer near the end.
49838         More tests for unistr/u8-strchr.
49839         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
49840         that the function does not read past the first occurrence of the byte
49841         being searched.
49842         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
49843         * tests/unistr/test-u16-strchr.c (main): New function.
49844         * tests/unistr/test-u32-strchr.c (main): New function.
49846 2010-07-31  Bruno Haible  <bruno@clisp.org>
49848         posix-modules: Ignore backup files of documentation files.
49849         * posix-modules: grep only through files named *.texi.
49851 2010-07-31  Bruno Haible  <bruno@clisp.org>
49853         symlinkat: Fix documentation.
49854         * doc/posix-functions/readlinkat.texi: Fix module name.
49856 2010-07-31  Bruno Haible  <bruno@clisp.org>
49858         fchownat: Replace also when chown has the trailing slash bug.
49859         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
49860         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
49861         introduced on 2010-04-10.
49862         Reported by Rainer Tammer.
49864 2010-07-31  Bruno Haible  <bruno@clisp.org>
49866         linkat: Work around AIX 7.1 bug.
49867         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
49868         whether linkat handles trailing slash correctly. If not, replace linkat
49869         and define LINKAT_TRAILING_SLASH_BUG.
49870         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
49871         check whether (fd1,file1) points to a directory if file1 or file2 ends
49872         in a slash. Code taken from lib/link.c.
49873         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
49874         Reported by Rainer Tammer.
49876 2010-07-31  Bruno Haible  <bruno@clisp.org>
49878         Correctly determine whether pow is available in libc on AIX 7 with xlc.
49879         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
49880         This disables an xlc optimization that was causing wrong test results.
49881         Reported by Rainer Tammer.
49883 2010-07-31  Bruno Haible  <bruno@clisp.org>
49885         iconv: Work around AIX 6.1..7.1 bug.
49886         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
49887         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
49888         cross-compiling, guess no on all versions of AIX.
49889         Reported by Rainer Tammer.
49891 2010-07-31  Bruno Haible  <bruno@clisp.org>
49893         readlink: Relax test a bit.
49894         * tests/test-readlink.h (test_readlink): Allow different errno value
49895         when readlink is called with a file name that ends in / and refers to
49896         a file.
49897         Suggested by Eric Blake.
49898         Reported by Rainer Tammer.
49900 2010-07-31  Bruno Haible  <bruno@clisp.org>
49902         copysign: Does not require -lm on glibc systems.
49903         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
49904         gl_COMMON_DOUBLE_MATHFUNC.
49905         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
49907 2010-07-31  Bruno Haible  <bruno@clisp.org>
49909         duplocale: Work around AIX 7.1 bug.
49910         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
49911         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
49912         * lib/duplocale.c (rpl_duplocale): Update comment.
49913         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
49914         Reported by Rainer Tammer.
49916 2010-07-30  Bruno Haible  <bruno@clisp.org>
49918         dirfd: Avoid link error on AIX 7.1.
49919         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
49920         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
49921         exist, set REPLACE_DIRFD.
49922         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
49923         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
49924         * doc/posix-functions/dirfd.texi: Update.
49925         Reported by Rainer Tammer.
49927 2010-07-30  Eric Blake  <eblake@redhat.com>
49929         strtod: next round of AIX fixes
49930         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
49931         exponent.
49932         * tests/test-strtod.c (main): Enhance tests.
49933         * doc/posix-functions/strtod.texi (strtod): Document next bug.
49934         Reported by Rainer Tammer.
49936         futimens: fix configure check
49937         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
49938         Reported by Bruno Haible.
49940 2010-07-30  Bruno Haible  <bruno@clisp.org>
49942         getline: Update regarding AIX.
49943         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
49944         Reported by Rainer Tammer.
49946 2010-07-30  Bruno Haible  <bruno@clisp.org>
49948         wcwidth: Drop replacement on AIX 7.
49949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
49950         AIX 7.
49951         Reported by Rainer Tammer.
49953 2010-07-30  Bruno Haible  <bruno@clisp.org>
49955         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
49956         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
49957         a 'char *'.
49958         Reported by Rainer Tammer.
49960 2010-07-30  Bruno Haible  <bruno@clisp.org>
49962         unlink: Update regarding AIX.
49963         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
49964         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
49965         Reported by Rainer Tammer.
49967 2010-07-30  Bruno Haible  <bruno@clisp.org>
49969         symlink: Update regarding AIX.
49970         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
49971         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
49972         Reported by Rainer Tammer.
49974 2010-07-30  Bruno Haible  <bruno@clisp.org>
49976         strndup: Update regarding AIX.
49977         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
49978         AIX 7.
49979         Reported by Rainer Tammer.
49981 2010-07-30  Bruno Haible  <bruno@clisp.org>
49983         stat: Update regarding AIX.
49984         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
49985         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
49986         Reported by Rainer Tammer.
49988 2010-07-30  Bruno Haible  <bruno@clisp.org>
49990         truncl: Fix autoconf test.
49991         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
49992         whether truncl works.
49993         Reported by Rainer Tammer.
49995 2010-07-30  Bruno Haible  <bruno@clisp.org>
49997         round: Update regarding AIX.
49998         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
49999         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
50000         Reported by Rainer Tammer.
50002 2010-07-30  Bruno Haible  <bruno@clisp.org>
50004         rename: Update regarding AIX.
50005         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
50006         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
50007         Reported by Rainer Tammer.
50009 2010-07-30  Bruno Haible  <bruno@clisp.org>
50011         printf.m4: Update regarding AIX.
50012         * m4/printf.m4: Update comments regarding AIX.
50013         Reported by Rainer Tammer.
50015 2010-07-30  Bruno Haible  <bruno@clisp.org>
50017         iconv: Update regarding AIX.
50018         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
50019         AIX 7.
50020         Reported by Rainer Tammer.
50022 2010-07-30  Bruno Haible  <bruno@clisp.org>
50024         getopt: Update regarding AIX.
50025         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
50026         no on AIX.
50027         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
50028         Reported by Rainer Tammer.
50030 2010-07-30  Bruno Haible  <bruno@clisp.org>
50032         ldexpl; Update regarding AIX.
50033         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
50034         on AIX 7.
50035         Reported by Rainer Tammer.
50037 2010-07-30  Bruno Haible  <bruno@clisp.org>
50039         frexpl: Update regarding AIX.
50040         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
50041         on AIX 7.
50042         Reported by Rainer Tammer.
50044 2010-07-30  Bruno Haible  <bruno@clisp.org>
50046         open, fopen: Update regarding AIX.
50047         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
50048         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
50049         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
50050         * doc/posix-functions/fopen.texi: Likewise.
50051         Reported by Rainer Tammer.
50053 2010-07-30  Bruno Haible  <bruno@clisp.org>
50055         chown: Update doc regarding AIX.
50056         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
50057         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
50058         Reported by Rainer Tammer.
50060 2010-07-30  Eric Blake  <eblake@redhat.com>
50062         strtod: fix bug in replacement function on AIX
50063         * lib/strtod.c (strtod): Special case broken "0x" parse in
50064         underlying strtod.
50065         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
50066         * doc/posix-functions/strtod.texi (strtod): Likewise.
50067         Reported by Rainer Tammer.
50069 2010-07-30  Bruno Haible  <bruno@clisp.org>
50071         mbrlen: Fix cross-compilation guess for AIX.
50072         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
50073         guess. Leftover from 2008-12-22.
50075 2010-07-30  Bruno Haible  <bruno@clisp.org>
50077         mbrtowc: Fix cross-compilation guess for AIX.
50078         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
50079         guess. Leftover from 2008-12-21.
50081 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
50083         init.sh: work around trap limitation of some shells
50084         * tests/init.sh (setup_): Move exit trap outside of shell function.
50086 2010-07-29  Eric Blake  <eblake@redhat.com>
50088         strtod: aid debugging
50089         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
50090         understanding why strtod is rejected.
50092 2010-07-28  Bruno Haible  <bruno@clisp.org>
50094         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
50095         * lib/unistr/u8-chr.c: Include <string.h>.
50096         * tests/unistr/test-u8-chr.c: Likewise.
50097         * tests/unistr/test-u16-chr.c: Likewise.
50098         * tests/unistr/test-u32-chr.c: Likewise.
50099         * tests/unistr/test-u8-strchr.c: Likewise.
50100         * tests/unistr/test-u16-strchr.c: Likewise.
50101         * tests/unistr/test-u32-strchr.c: Likewise.
50102         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
50103         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
50104         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
50105         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
50107 2010-07-28  Bruno Haible  <bruno@clisp.org>
50109         Use spaces for indentation, not tabs.
50110         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
50112 2010-07-27  Bruno Haible  <bruno@clisp.org>
50114         mbspcasecmp: Fix function specification.
50115         * lib/string.in.h (mbspcasecmp): Fix specification comment.
50116         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
50117         Reported by Eric Blake <eblake@redhat.com>.
50119 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
50121         timespec: use cast and not conditional, as truncation isn't possible
50122         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
50123         instead of a conditional.  Comment about the situation in more detail.
50124         This undoes most of the 2009-10-29 patch.
50126 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
50128         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
50129         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
50130         * lib/unistr/u8-strchr.c: Likewise.
50131         * modules/unistr/u8-chr: Depend on memchr.
50133         unistr/u*-strchr: add tests
50134         * modules/unistr/u8-strchr-tests: New file.
50135         * modules/unistr/u16-strchr-tests: New file.
50136         * modules/unistr/u32-strchr-tests: New file.
50137         * tests/unistr/test-strchr.h: New file.
50138         * tests/unistr/test-u8-strchr.c: New file.
50139         * tests/unistr/test-u16-strchr.c: New file.
50140         * tests/unistr/test-u32-strchr.c: New file.
50142         unistr/u*-chr: test multibyte sequences more
50143         * tests/unistr/test-chr.h: Do complete testing of the characters in the
50144         test vector.
50145         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
50146         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
50147         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
50149         unistr/u*-chr: test multibyte sequences
50150         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
50152         unistr/u*-chr: prepare for multibyte tests
50153         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
50154         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
50155         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
50156         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
50157         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
50158         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
50160 2010-07-18  Bruno Haible  <bruno@clisp.org>
50162         unistr/u8-strchr: Optimize non-ASCII argument case.
50163         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
50164         because the first byte often matches anyway.
50165         Reported by Pádraig Brady <P@draigbrady.com>.
50167 2010-07-15  Karl Berry  <karl@gnu.org>
50169         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
50171 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
50173         getcwd: on Solaris, work better if ancestors are inaccessible
50174         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
50175         buffer and size, try again with a large buffer.  This works better
50176         on Solaris, since its getcwd succeeds even if the path to the root
50177         is inaccessible, and this is helpful in common cases such as .zfs
50178         hidden directories.  Problem reported by J Chapman Flack in
50179         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
50180         Use system getcwd if it's declared, not merely if it's partly
50181         working; use the partly-working test only to avoid needless effort
50182         if the system getcwd fails.
50183         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
50184         comment that was already obsolete and is now even more obsolete.
50185         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
50186         now might call strdup.
50188 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
50190         pthread: Add enough so that coreutils/src/sort.c compiles.
50191         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
50192         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
50193         gnulib. Include <sched.h> and <time.h>, as per POSIX.
50194         Include <sys/types.h>, in case it defines pthread_t.
50195         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
50196         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
50197         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
50198         (pthread_rwlockattr_t, pthread_spinlock_t):
50199         New typedefs, if HAVE_PTHREAD_T is not defined.
50200         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
50201         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
50202         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
50203         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
50204         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
50205         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
50206         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
50207         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
50208         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
50209         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
50210         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
50211         New macros.
50212         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
50213         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
50214         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
50215         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
50216         (pthread_spin_unlock): New dummy functions.
50217         (pthread_create): Return EAGAIN; don't set errno.
50218         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
50219         require AC_C_INLINE.
50220         * modules/pthread (Depends-on): Add sched, time.
50221         (pthread.h): Use AM_V_GEN.
50223 2010-07-13  Bruno Haible  <bruno@clisp.org>
50225         striconveh: Don't malloc memory if the result buffer is sufficient.
50226         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
50227         buffer if its size is sufficient.
50228         Reported by Ludovic Courtès <ludo@gnu.org>.
50230 2010-07-13  Bruno Haible  <bruno@clisp.org>
50232         strtod: Add safety check.
50233         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
50235 2010-07-12  Bruno Haible  <bruno@clisp.org>
50237         Unify tests that set gl_cv_func_ldexpl_no_libm.
50238         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
50239         gl_FUNC_LDEXPL.
50240         (gl_FUNC_LDEXPL): Invoke it.
50241         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50243 2010-07-12  Bruno Haible  <bruno@clisp.org>
50245         Unify tests that set gl_cv_func_ldexp_no_libm.
50246         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
50247         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
50248         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
50249         (configure.ac): Simply invoke gl_FUNC_LDEXP.
50250         * modules/strtod (Files): Add m4/ldexp.m4.
50252 2010-07-12  Bruno Haible  <bruno@clisp.org>
50254         Unify tests that set gl_cv_func_frexpl_no_libm.
50255         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
50256         gl_FUNC_FREXPL_NO_LIBM.
50257         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
50258         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50260 2010-07-12  Bruno Haible  <bruno@clisp.org>
50262         Unify tests that set gl_cv_func_frexp_no_libm.
50263         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
50264         gl_FUNC_FREXP_NO_LIBM.
50265         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
50266         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
50268 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50270         memcoll: clarify sizes versus lengths, document better, and tweak perf
50271         * lib/memcoll.c (strcoll_loop, memcoll0):
50272         Improve quality of descriptive comments.  Name variables
50273         consistently as to whether they are lengths (which do not include
50274         terminating null) versus sizes (which do).
50275         * lib/xmemcoll.c (xmemcoll0): Likewise.
50276         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
50277         returned when s1size == 0; this is easier to compile and saves
50278         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
50280 2010-07-12  Bruno Haible  <bruno@clisp.org>
50282         Tests for module '_Exit'.
50283         * modules/_Exit-tests: New file.
50284         * tests/test-_Exit.sh: New file.
50285         * tests/test-_Exit.c: New file.
50287         New module '_Exit'.
50288         * lib/stdlib.in.h (__attribute__): New macro.
50289         (_Exit): New declaration.
50290         * lib/_Exit.c: New file.
50291         * m4/_Exit.m4: New file.
50292         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
50293         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
50294         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
50295         * modules/_Exit: New file.
50296         * tests/test-stdlib-c++.cc (_Exit): Check signature.
50297         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
50299 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
50301         strtod: make it more-accurate typically, and don't require libm
50302         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
50303         Include limits.h.  Don't include string.h.
50304         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
50305         (locale_isspace): New function, so that no casts are needed to
50306         check whether *s is a space.
50307         (ldexp): Provide an unused dummy if not available.
50308         (scale_radix_exp, parse_number, underlying_strtod): New functions.
50309         (strtod): Use them.  This implementation prefers to use the
50310         underlying strtod if available, falling back on our own code
50311         only to fix known bugs.  This is more likely to produce an
50312         accurate result.  Also, it avoids the use of libm functions.
50313         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
50314         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
50315         was absent, but it caused a test failure with coreutils.
50316         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
50317         with libm.
50318         * modules/strtod (Makefile.am, Link): libm is no longer needed.
50319         * modules/strtod-tests (Makefile.am): Likewise.
50321 2010-07-11  Pádraig Brady  <P@draigBrady.com>
50322             Bruno Haible  <bruno@clisp.org>
50324         unistr/u8-strchr: Optimize ASCII argument case.
50325         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
50327 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50329         (x)memcoll: minor tweaks
50330         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
50331         is after the type that it qualifies.
50332         (memcoll0): Likewise.
50333         * lib/memcoll.h (memcoll0): Likewise.
50334         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
50335         * lib/xmemcoll.h (xmemcoll0): Likewise.
50336         * lib/memcoll.c (memcoll0): Correct the comment.  This function
50337         differs from memcoll in that the NUL byte is part of the argument.
50338         Omit the abort-checks, as performance is a real issue here.  Plus,
50339         the checks were wrong anyway (an off-by-one error).  Omit local
50340         variable 'diff', as it's a bit clearer that way.
50341         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
50342         no longer needed.
50344 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
50346         (x)memcoll: speedup when input is known to be NUL delimited
50347         * lib/memcoll.c: Include stdlib.
50348         (memcoll0): New function.
50349         (strcoll_loop): New function, refactored for use in both memcoll
50350         and memcoll0.
50351         * lib/memcoll.h (memcoll0): Add prototype.
50352         * lib/xmemcoll.c (xmemcoll0): New function.
50353         (collate_error): New function, refactored for use in both xmemcoll
50354         and xmemcoll0.
50355         * lib/xmemcoll.h (xmemcoll0): Add prototype.
50356         * m4/memcoll.m4: add inline invocation.
50358 2010-07-06  Pádraig Brady  <P@draigBrady.com>
50360         * build-aux/bootstrap: Remove any local translations
50361         from the translation project synchronization directory,
50362         so that local only translations are not distributed.
50364 2010-07-04  Bruno Haible  <bruno@clisp.org>
50366         fsusage: Clarify which code applies to which platforms.
50367         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
50368         platform.
50369         * lib/fsusage.c (get_fs_usage): Likewise.
50371 2010-07-04  Bruno Haible  <bruno@clisp.org>
50373         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
50374         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
50375         Reported by Martin Lambers <marlam@marlam.de>.
50377 2010-07-04  Jim Meyering  <meyering@redhat.com>
50379         hash: once again explicitly disallow insertion of NULL
50380         * lib/hash.c (hash_insert0): Reinstate just-removed test:
50381         inserting a NULL pointer cannot work with these functions.
50382         Add a comment with details.
50383         This reverts part of the 2010-07-01 commit, 5bef1a35
50384         "hash: extend module to deal with non-pointer keys".
50386 2010-07-01  Bruno Haible  <bruno@clisp.org>
50388         stdbool: Update doc.
50389         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
50390         Info from Christian Weisgerber <naddy@mips.inka.de>.
50392 2010-07-01  Jim Meyering  <meyering@redhat.com>
50394         hash: extend module to deal with non-pointer keys
50395         * lib/hash.c (hash_insert0): New interface, much like hash_insert
50396         but that allows insertion of non-pointer entries.
50397         Do not disallow an ENTRY value of NULL.
50398         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
50399         * lib/hash.h (hash_insert0): Declare.
50401 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
50403         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
50404         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
50405         not present (i.e. with autoconf 2.59 and when using gettextize, not
50406         gnulib), require AC_GNU_SOURCE instead.
50408 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
50410         idpriv-drop: Fix tests.
50411         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
50412         not to the test-idpriv-droptemp program.
50414 2010-06-29  Bruno Haible  <bruno@clisp.org>
50416         string: Fix syntax error with g++ 2.96.
50417         * lib/string.in.h (__pure__): Remove definition.
50418         (_GL_ATTRIBUTE_PURE): New macro.
50419         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
50420         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
50421         Reported by Christian Weisgerber <naddy@mips.inka.de>.
50423 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
50425         unitypes: Fix bug introduced on 2010-05-18.
50426         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
50428 2010-06-22  Eric Blake  <eblake@redhat.com>
50430         memmem: slight optimization
50431         * lib/str-two-way.h (critical_factorization): Update comments.
50432         Reduce work during factorization phase.
50433         Reported by Carlos Bueno <carlos@bueno.org>.
50435 2010-06-21  Bruno Haible  <bruno@clisp.org>
50437         Fix HAVE_CALLOC_POSIX misnomer.
50438         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
50439         !HAVE_CALLOC_POSIX.
50440         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
50441         HAVE_CALLOC_POSIX.
50442         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
50443         instead of HAVE_CALLOC_POSIX.
50444         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
50445         HAVE_CALLOC_POSIX.
50447         Use modern idiom for calloc() replacement.
50448         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
50449         AC_FUNC_CALLOC.
50450         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
50451         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
50452         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50453         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
50454         (gl_REPLACE_CALLOC): New macro.
50456 2010-06-21  Bruno Haible  <bruno@clisp.org>
50458         Fix HAVE_REALLOC_POSIX misnomer.
50459         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
50460         !HAVE_REALLOC_POSIX.
50461         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
50462         HAVE_REALLOC_POSIX.
50463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
50464         instead of HAVE_REALLOC_POSIX.
50465         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
50466         HAVE_REALLOC_POSIX.
50468         Use modern idiom for realloc() replacement.
50469         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
50470         AC_FUNC_REALLOC.
50471         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
50472         Autoconf's AC_FUNC_REALLOC.
50473         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50474         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
50475         (gl_REPLACE_REALLOC): New macro.
50476         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50478 2010-06-21  Bruno Haible  <bruno@clisp.org>
50480         Fix HAVE_MALLOC_POSIX misnomer.
50481         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
50482         !HAVE_MALLOC_POSIX.
50483         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
50484         HAVE_MALLOC_POSIX.
50485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
50486         instead of HAVE_MALLOC_POSIX.
50487         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
50488         HAVE_MALLOC_POSIX.
50490         Use modern idiom for malloc() replacement.
50491         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
50492         AC_FUNC_MALLOC.
50493         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
50494         Autoconf's AC_FUNC_MALLOC.
50495         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
50496         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
50497         (gl_REPLACE_MALLOC): New macro.
50498         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
50500 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
50502         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
50503         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
50504         This macro takes 3 arguments, not 4.
50506 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
50508         ipv6: fix detection under mingw
50509         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
50510         in6_addr.
50512 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
50514         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
50515         that strtod() works when cross-compiling to a glibc version known
50516         to work.
50518 2010-06-15  Bruno Haible  <bruno@clisp.org>
50520         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
50522 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
50524         select: Correct timeout.
50525         * lib/select.c (rpl_select): Compute wait_timeout correctly.
50527 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50529         git-version-gen: init shell var to avoid env var influence
50530         * build-aux/git-version-gen (v): Init shell var to empty.
50532 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
50534         priv-set: Don't assume that priv.h exists merely because getppriv does.
50535         See Jan Andersen's bug report about AIX 5L in
50536         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
50537         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
50538         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
50539         * lib/priv-set.h: Likewise.
50540         * tests/test-priv-set.c: Likewise.
50542 2010-06-13  Bruno Haible  <bruno@clisp.org>
50544         relocatable: Make it easier to test whether to install wrappers.
50545         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
50546         RELOCATABLE_VIA_WRAPPER.
50548 2010-06-13  Bruno Haible  <bruno@clisp.org>
50550         gnulib-tool: Display specified modules and dependencies differently.
50551         * gnulib-tool (func_show_module_list): New function.
50552         (func_import, func_create_testdir): Invoke it.
50553         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50555 2010-06-13  Bruno Haible  <bruno@clisp.org>
50557         gnulib-tool: Align code of func_import and func_create_testdir.
50558         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
50559         specified_modules.
50561 2010-06-12  Jim Meyering  <meyering@redhat.com>
50563         test-inttostr: avoid spurious failure on Solaris 9
50564         * tests/test-inttostr.c (main): Skip the test when snprintf fails
50565         to accept "%ju".  Reported by Bruno Haible.
50567 2010-06-11  Jim Meyering  <meyering@redhat.com>
50569         test-sys_socket: mark variables as used more readably
50570         * tests/test-sys_socket.c (main): Mark otherwise unused variables
50571         as "used" explicitly via (void) statement casts.  This is more
50572         readable than using them in an artificial return expression.
50573         Suggestion from Bruno Haible.
50575 2010-06-11  Bruno Haible  <bruno@clisp.org>
50577         Avoid some more warnings from "gcc -Wwrite-strings".
50578         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
50579         to 'const char *'.
50580         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
50581         * tests/test-c-strcasestr.c (main): Likewise.
50582         * tests/test-mbscasestr1.c (main): Likewise.
50583         * tests/test-mbscasestr2.c (main): Likewise.
50584         * tests/test-memmem.c (main): Likewise.
50585         * tests/test-strstr.c (main): Likewise.
50586         * tests/test-strcasestr.c (main): Likewise.
50588 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50590         init.sh: change framework_failure_ to fail with status 99, not 1
50591         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
50592         automake's parallel-tests rule that this is an unexpected failure,
50593         even if the test is listed in XFAIL_TESTS.
50595 2010-06-11  Jim Meyering  <meyering@redhat.com>
50597         test-inttostr: avoid warnings about 4-6KB literal strings
50598         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
50599         Include "macros.h", for its definition of ASSERT.
50600         (CK): s/assert/ASSERT/
50601         * modules/inttostr-tests (Files): Add macros.h.
50603         init.sh: don't use $ME_ or skip_ before they are defined
50604         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
50605         their first uses.  Also hoist their companions: warn_, fail_,
50606         framework_failure_, $stderr_fileno.  Prompted by a patch from
50607         Stefano Lattarini.
50609         test-sys_socket: avoid set-but-not-used warnings from gcc
50610         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
50611         avoid warning about set-but-not-used variables.
50613         test-xvasprintf: avoid 'const' discard warnings
50614         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
50615         "const" when assigning from literal strings.
50616         (test_xasprintf): Add "void" in function argument list to placate
50617         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
50619         tests: avoid compilation warnings in argmatch and exclude tests...
50620         in packages that define ARGMATCH_DIE_DECL, like coreutils.
50621         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
50622         Since it always exits, declare with the "noreturn" attribute.
50623         * tests/test-argmatch.c: Likewise.
50625         tests: avoid 'const' discard warnings in mbsstr tests
50626         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
50627         * tests/test-mbsstr2.c (main): Likewise.
50629         test-verify: avoid warning from gcc's -Wmissing-declarations
50630         * tests/test-verify.c (function): Declare to be static.
50632         test-inttostr.c: include <string.h> for use of strcmp
50633         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
50635         test-linkat: avoid failed assertion on "other" architectures
50636         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
50637         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
50638         sparc: https://bugs.launchpad.net/bugs/591968
50640 2010-06-11  Jim Meyering  <meyering@redhat.com>
50642         printf.m4: avoid autoconf's "Expanded Before Required" warning
50643         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
50644         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
50645         autoconf warning.
50647 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
50649         Replacement header templates are now named with ".in", not "_".
50650         * doc/gnulib-intro.texi: Correct.
50652 2010-06-10  Jim Meyering  <meyering@redhat.com>
50654         inttostr-tests: depend on snprintf, not snprintf-posix
50655         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
50656         snprintf-posix, to avoid this aclocal failure:
50657           missing file gnulib-tests/vasnprintf.c
50658           configure.ac:45: error: expected source file, required through \
50659           AC_LIBSOURCES, not found
50661 2010-06-10  Jim Meyering  <meyering@redhat.com>
50663         inttostr: add a new function, inttostr, and tests
50664         The namesake function was not available.  The existence of the
50665         template file, inttostr.c makes its addition nontrivial.
50666         * lib/anytostr.c: Rename from inttostr.c.
50667         (anytostr): Rename from inttostr.
50668         * lib/inttostr.c: New file.
50669         * modules/inttostr (Files): Add anytostr.c.
50670         (Makefile.am): Set lib_SOURCES instead of ...
50671         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
50672         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
50673         * lib/offtostr.c: Likewise.
50674         * lib/uinttostr.c: Likewise.
50675         * lib/umaxtostr.c: Likewise.
50676         * modules/inttostr-tests: New file.
50677         * tests/test-inttostr.c: New file.  Test these functions.
50679 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
50680             Bruno Haible  <bruno@clisp.org>
50682         Add "Extending Gnulib" chapter to manual.
50683         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
50684         chapter.
50685         (Extending Gnulib): New chapter.
50686         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
50687         chapter.
50689 2010-06-09  Bruno Haible  <bruno@clisp.org>
50691         Avoid relocwrapper link errors due to gnulib replacement functions.
50692         * lib/areadlink.c: Use the system's malloc, realloc functions.
50693         (areadlink): Set errno to ENOMEM explicitly.
50694         * modules/areadlink (Depends-on): Remove malloc-posix.
50695         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50697 2010-06-09  Bruno Haible  <bruno@clisp.org>
50699         Avoid relocwrapper link errors due to gnulib replacement functions.
50700         * lib/canonicalize-lgpl.c: Use the system's malloc function.
50701         * lib/malloca.c: Likewise.
50702         * lib/relocatable.c: Likewise.
50703         * lib/progreloc.c: Use the system's malloc, sprintf functions.
50704         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
50705         * lib/setenv.c: Use the system's malloc, realloc functions.
50706         * lib/strerror.c: Use the system's sprintf function.
50707         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50709 2010-06-04  Bruno Haible  <bruno@clisp.org>
50711         Prefer documented low-level autoconf macro names.
50712         * m4/lib-link.m4: Use m4_translit instead of translit.
50713         * m4/environ.m4: Likewise.
50714         * m4/mathfunc.m4: Likewise.
50715         * m4/onceonly.m4: Likewise.
50716         * m4/stdint.m4: Likewise.
50717         Suggested by Eric Blake.
50719 2010-06-04  Martin Lambers  <marlam@marlam.de>
50720             Bruno Haible  <bruno@clisp.org>
50722         havelib: Allow library names with '+' characters.
50723         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
50724         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
50726 2010-06-09  Bruno Haible  <bruno@clisp.org>
50728         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
50729         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
50730         realloc failed.
50732 2010-06-08  Peter Simons  <simons@cryp.to>
50734         maint.mk: make the news-check rule more configurable
50735         * top/maint.mk (news-check-lines-spec): New variable.
50736         (news-check): Use "sed -n 1,10p" in place of "head".
50738 2010-06-07  Jim Meyering  <meyering@redhat.com>
50740         do-release-commit-and-tag: fix typo in --help
50741         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
50743         regex: avoid new dead-code warning with gcc-4.6.0
50744         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
50745         if-block containing a while-loop.  It's been unused for at least
50746         5 years.
50748 2010-06-05  Bruno Haible  <bruno@clisp.org>
50750         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
50751         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
50753 2010-06-04  Bruno Haible  <bruno@clisp.org>
50755         Update to GNU gettext 0.18.1.
50756         * modules/gettext (configure.ac): Require gettext infrastructure from
50757         version 0.18.1.
50759 2010-06-03  Bruno Haible  <bruno@clisp.org>
50761         Don't use AC_LIBOBJ with file names in subdirectories.
50762         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
50763         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
50764         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
50765         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
50766         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
50767         gl_LIBUNISTRING_LIBSOURCE.
50768         (Makefile.am): Augment lib_SOURCES here, conditionally.
50769         * NEWS: Drop requirement for Automake option 'subdir-objects'.
50771 2010-06-03  Bruno Haible  <bruno@clisp.org>
50773         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
50774         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
50775         expansion does not end with a newline.
50776         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
50777         unnecessary newline.
50779 2010-06-03  Bruno Haible  <bruno@clisp.org>
50781         Reduce dependencies.
50782         * tests/test-quotearg.h: New file, extracted from
50783         tests/test-quotearg.c.
50784         * tests/test-quotearg-simple.c: New file, extracted from
50785         tests/test-quotearg.c.
50786         * tests/test-quotearg.c: Don't include <ctype.h>.
50787         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
50788         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
50789         use_quote_double_quotes, use_quotearg_colon): Moved to
50790         tests/test-quotearg.h.
50791         (results_g, flag_results, custom_quotes, custom_results): Moved
50792         to tests/test-quotearg-simple.c.
50793         (main): Moved the part that does not depend on gettext to
50794         tests/test-quotearg-simple.c. Return 77 if the test cannot be
50795         performed.
50796         * modules/quotearg-simple: New file.
50797         * modules/quotearg-simple-tests: New file.
50798         * modules/quotearg (Depends-on): Add quotearg-simple.
50799         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
50800         (Files): Add tests/test-quotearg.h.
50801         Reported by Paolo Bonzini.
50803 2010-06-03  Bruno Haible  <bruno@clisp.org>
50805         Reduce dependencies.
50806         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
50808 2010-06-03  Bruno Haible  <bruno@clisp.org>
50810         time: Undefine more broken macros.
50811         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
50812         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
50813         Reported by Eric Blake.
50815 2010-06-03  Bruno Haible  <bruno@clisp.org>
50817         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
50818         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
50819         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
50820         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
50821         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
50822         Reported by Ludovic Courtès <ludo@gnu.org>.
50824 2010-06-02  Eric Blake  <eblake@redhat.com>
50826         time: work with mingw + pthreads-win32 library
50827         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
50828         if timespec is defined only in pthread.h.
50829         * modules/time (Makefile.am): Substitute it.
50830         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
50831         <pthread.h>, when needed.
50832         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
50833         from the library.
50835 2010-05-31  Bruno Haible  <bruno@clisp.org>
50837         Avoid expanding two macros in the wrong order.
50838         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
50839         gl_LIBUNISTRING if it is defined.
50840         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
50841         autoconf >= 2.64.
50842         Reported by Ludovic Courtès <ludo@gnu.org>.
50844 2010-05-27  Jim Meyering  <meyering@redhat.com>
50846         maint.mk: also prohibit "#undef" of always-defined symbols
50847         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
50848         Allow more than one space before the symbol name.
50849         (sc_prohibit_always-defined_macros): Use grep's -E, now that
50850         the regexp uses alternation.
50852 2010-05-26  Eric Blake  <eblake@redhat.com>
50854         maint.mk: avoid echo -e
50855         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
50856         Convert all uses of echo -* to printf.
50857         Reported by Matthias Bolte.
50859 2010-05-25  Bruno Haible  <bruno@clisp.org>
50861         Update to GNU gettext 0.18, part 2.
50862         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
50863         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
50865 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50867         Add missing include in test-pwrite.c.
50868         * tests/test-pwrite.c: Include string.h, for strcmp.
50870 2010-05-24  Bruno Haible  <bruno@clisp.org>
50872         * NEWS: Mention requirement for Automake option 'subdir-objects'.
50874 2010-05-24  Bruno Haible  <bruno@clisp.org>
50876         Don't use conversion with transliteration in u{8,16,32}_strcoll.
50877         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
50878         iconveh_error argument.
50879         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
50880         U_STRCONV_TO_LOCALE.
50881         * lib/unistr/u16-strcoll.c: Likewise.
50882         * lib/unistr/u32-strcoll.c: Likewise.
50883         * modules/unistr/u8-strcoll (Depends-on): Add
50884         uniconv/u8-strconv-to-enc, localcharset. Remove
50885         uniconv/u8-strconv-to-locale.
50886         (configure.ac): Bump version number.
50887         * modules/unistr/u16-strcoll (Depends-on): Add
50888         uniconv/u16-strconv-to-enc, localcharset. Remove
50889         uniconv/u16-strconv-to-locale.
50890         (configure.ac): Bump version number.
50891         * modules/unistr/u32-strcoll (Depends-on): Add
50892         uniconv/u32-strconv-to-enc, localcharset. Remove
50893         uniconv/u32-strconv-to-locale.
50894         (configure.ac): Bump version number.
50896 2010-05-24  Bruno Haible  <bruno@clisp.org>
50898         Avoid a test failure on NetBSD 5.0.
50899         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
50900         an iconv() bug.
50902 2010-05-24  Bruno Haible  <bruno@clisp.org>
50904         Adjust #include directive style.
50905         * modules/regex (Includes): Recommend to write <regex.h>.
50907 2010-05-24  Bruno Haible  <bruno@clisp.org>
50909         regex: Don't require alloca.
50910         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
50911         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
50912         only inside if (0).
50914 2010-05-23  Jim Meyering  <meyering@redhat.com>
50916         test-renameat.c: include <sys/stat.h>
50917         * tests/test-renameat.c: Include <sys/stat.h>; required for
50918         definition of S_IS* macros.
50920 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
50922         Update maintainer documentation for 'relocatable-prog' module.
50923         * doc/relocatable-maint.texi: Update.
50924         Comments by Bruno Haible.
50926 2010-05-23  Bruno Haible  <bruno@clisp.org>
50928         git-merge-changelog: Enable --split-merged-entry by default.
50929         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
50930         (usage): Don't mention this option any more.
50931         Reported by Ralf Wildenhues.
50933 2010-05-23  Jim Meyering  <meyering@redhat.com>
50935         test-pwrite: do not leave behind a test file named "out"
50936         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
50937         The trivial-looking use of init.sh is really necessary.
50938         It ensures that the temporary file, "out", is created in
50939         a temporary directory, and removed upon termination.
50940         * tests/test-pwrite.sh: Re-add file.
50941         * modules/pwrite-tests: Reference it.
50943 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50945         Fix output redirection buglet in init.sh.
50946         * tests/init.sh: Fix redirection of stderr.
50948 2010-05-20  Simon Josefsson  <simon@josefsson.org>
50950         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
50952 2010-05-17  Simon Josefsson  <simon@josefsson.org>
50954         * modules/valgrind-tests: New file.
50955         * m4/valgrind-tests.m4: New file.
50956         * doc/valgrind-tests.texi: New file.
50957         * doc/gnulib.texi (Running self-tests under valgrind): New
50958         section.
50960 2010-05-19  Bruno Haible  <bruno@clisp.org>
50962         Clean up dead code in recent commit.
50963         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
50964         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
50965         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
50966         Suggested by Paolo Bonzini.
50968 2010-05-19  Bruno Haible  <bruno@clisp.org>
50970         Avoid valgrind error reports from libunistring.
50971         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
50972         * modules/libunistring (Files): Add it.
50973         * modules/libunistring-optional (Files): Likewise.
50975 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
50976             Bruno Haible  <bruno@clisp.org>
50978         New module 'libunistring-optional'.
50979         * modules/libunistring-optional: New file.
50980         * m4/libunistring-base.m4: New file.
50981         * m4/libunistring-optional.m4: New file.
50982         * lib/unicase.in.h: Renamed from lib/unicase.h.
50983         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
50984         * lib/unictype.in.h: Renamed from lib/unictype.h.
50985         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
50986         * lib/uniname.in.h: Renamed from lib/uniname.h.
50987         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
50988         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
50989         * lib/unistr.in.h: Renamed from lib/unistr.h.
50990         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
50991         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
50992         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
50993         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
50994         gl_LIBUNISTRING. If the library was found, determine the installed
50995         version and set LIBUNISTRING_VERSION.
50996         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
50997         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
50998         handle a configuration option --with-included-libunistring.
50999         * modules/libunistring (Files): Add m4/absolute-header.m4.
51000         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
51001         Add m4/libunistring-base.m4.
51002         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51003         (Makefile.am): Build unicase.h from unicase.in.h.
51004         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
51005         Add m4/libunistring-base.m4.
51006         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51007         (Makefile.am): Build uniconv.h from uniconv.in.h.
51008         * modules/unictype/base (Files): Use unictype.in.h instead of
51009         unictype.h. Add m4/libunistring-base.m4.
51010         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51011         (Makefile.am): Build unictype.h from unictype.in.h.
51012         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
51013         Add m4/libunistring-base.m4.
51014         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51015         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
51016         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
51017         Add m4/libunistring-base.m4.
51018         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51019         (Makefile.am): Build uniname.h from uniname.in.h.
51020         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
51021         Add m4/libunistring-base.m4.
51022         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51023         (Makefile.am): Build uninorm.h from uninorm.in.h.
51024         * modules/unistdio/base (Files): Use unistdio.in.h instead of
51025         unistdio.h. Add m4/libunistring-base.m4.
51026         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51027         (Makefile.am): Build unistdio.h from unistdio.in.h.
51028         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
51029         Add m4/libunistring-base.m4.
51030         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51031         (Makefile.am): Build unistr.h from unistr.in.h.
51032         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
51033         Add m4/libunistring-base.m4.
51034         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51035         (Makefile.am): Build unitypes.h from unitypes.in.h.
51036         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
51037         Add m4/libunistring-base.m4.
51038         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51039         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
51040         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
51041         uniwidth.h. Add m4/libunistring-base.m4.
51042         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51043         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
51044         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
51045         instead of augmenting lib_SOURCES.
51046         * modules/unicase/empty-suffix-context: Likewise.
51047         * modules/unicase/locale-language: Likewise.
51048         * modules/unicase/tolower: Likewise.
51049         * modules/unicase/totitle: Likewise.
51050         * modules/unicase/toupper: Likewise.
51051         * modules/unicase/u8-casecmp: Likewise.
51052         * modules/unicase/u8-casecoll: Likewise.
51053         * modules/unicase/u8-casefold: Likewise.
51054         * modules/unicase/u8-casexfrm: Likewise.
51055         * modules/unicase/u8-ct-casefold: Likewise.
51056         * modules/unicase/u8-ct-tolower: Likewise.
51057         * modules/unicase/u8-ct-totitle: Likewise.
51058         * modules/unicase/u8-ct-toupper: Likewise.
51059         * modules/unicase/u8-is-cased: Likewise.
51060         * modules/unicase/u8-is-casefolded: Likewise.
51061         * modules/unicase/u8-is-lowercase: Likewise.
51062         * modules/unicase/u8-is-titlecase: Likewise.
51063         * modules/unicase/u8-is-uppercase: Likewise.
51064         * modules/unicase/u8-prefix-context: Likewise.
51065         * modules/unicase/u8-suffix-context: Likewise.
51066         * modules/unicase/u8-tolower: Likewise.
51067         * modules/unicase/u8-totitle: Likewise.
51068         * modules/unicase/u8-toupper: Likewise.
51069         * modules/unicase/u16-casecmp: Likewise.
51070         * modules/unicase/u16-casecoll: Likewise.
51071         * modules/unicase/u16-casefold: Likewise.
51072         * modules/unicase/u16-casexfrm: Likewise.
51073         * modules/unicase/u16-ct-casefold: Likewise.
51074         * modules/unicase/u16-ct-tolower: Likewise.
51075         * modules/unicase/u16-ct-totitle: Likewise.
51076         * modules/unicase/u16-ct-toupper: Likewise.
51077         * modules/unicase/u16-is-cased: Likewise.
51078         * modules/unicase/u16-is-casefolded: Likewise.
51079         * modules/unicase/u16-is-lowercase: Likewise.
51080         * modules/unicase/u16-is-titlecase: Likewise.
51081         * modules/unicase/u16-is-uppercase: Likewise.
51082         * modules/unicase/u16-prefix-context: Likewise.
51083         * modules/unicase/u16-suffix-context: Likewise.
51084         * modules/unicase/u16-tolower: Likewise.
51085         * modules/unicase/u16-totitle: Likewise.
51086         * modules/unicase/u16-toupper: Likewise.
51087         * modules/unicase/u32-casecmp: Likewise.
51088         * modules/unicase/u32-casecoll: Likewise.
51089         * modules/unicase/u32-casefold: Likewise.
51090         * modules/unicase/u32-casexfrm: Likewise.
51091         * modules/unicase/u32-ct-casefold: Likewise.
51092         * modules/unicase/u32-ct-tolower: Likewise.
51093         * modules/unicase/u32-ct-totitle: Likewise.
51094         * modules/unicase/u32-ct-toupper: Likewise.
51095         * modules/unicase/u32-is-cased: Likewise.
51096         * modules/unicase/u32-is-casefolded: Likewise.
51097         * modules/unicase/u32-is-lowercase: Likewise.
51098         * modules/unicase/u32-is-titlecase: Likewise.
51099         * modules/unicase/u32-is-uppercase: Likewise.
51100         * modules/unicase/u32-prefix-context: Likewise.
51101         * modules/unicase/u32-suffix-context: Likewise.
51102         * modules/unicase/u32-tolower: Likewise.
51103         * modules/unicase/u32-totitle: Likewise.
51104         * modules/unicase/u32-toupper: Likewise.
51105         * modules/unicase/ulc-casecmp: Likewise.
51106         * modules/unicase/ulc-casecoll: Likewise.
51107         * modules/unicase/ulc-casexfrm: Likewise.
51108         * modules/uniconv/u8-conv-from-enc: Likewise.
51109         * modules/uniconv/u8-conv-to-enc: Likewise.
51110         * modules/uniconv/u8-strconv-from-enc: Likewise.
51111         * modules/uniconv/u8-strconv-from-locale: Likewise.
51112         * modules/uniconv/u8-strconv-to-enc: Likewise.
51113         * modules/uniconv/u8-strconv-to-locale: Likewise.
51114         * modules/uniconv/u16-conv-from-enc: Likewise.
51115         * modules/uniconv/u16-conv-to-enc: Likewise.
51116         * modules/uniconv/u16-strconv-from-enc: Likewise.
51117         * modules/uniconv/u16-strconv-from-locale: Likewise.
51118         * modules/uniconv/u16-strconv-to-enc: Likewise.
51119         * modules/uniconv/u16-strconv-to-locale: Likewise.
51120         * modules/uniconv/u32-conv-from-enc: Likewise.
51121         * modules/uniconv/u32-conv-to-enc: Likewise.
51122         * modules/uniconv/u32-strconv-from-enc: Likewise.
51123         * modules/uniconv/u32-strconv-from-locale: Likewise.
51124         * modules/uniconv/u32-strconv-to-enc: Likewise.
51125         * modules/uniconv/u32-strconv-to-locale: Likewise.
51126         * modules/unictype/bidicategory-byname: Likewise.
51127         * modules/unictype/bidicategory-name: Likewise.
51128         * modules/unictype/bidicategory-of: Likewise.
51129         * modules/unictype/bidicategory-test: Likewise.
51130         * modules/unictype/block-list: Likewise.
51131         * modules/unictype/block-test: Likewise.
51132         * modules/unictype/category-C: Likewise.
51133         * modules/unictype/category-Cc: Likewise.
51134         * modules/unictype/category-Cf: Likewise.
51135         * modules/unictype/category-Cn: Likewise.
51136         * modules/unictype/category-Co: Likewise.
51137         * modules/unictype/category-Cs: Likewise.
51138         * modules/unictype/category-L: Likewise.
51139         * modules/unictype/category-Ll: Likewise.
51140         * modules/unictype/category-Lm: Likewise.
51141         * modules/unictype/category-Lo: Likewise.
51142         * modules/unictype/category-Lt: Likewise.
51143         * modules/unictype/category-Lu: Likewise.
51144         * modules/unictype/category-M: Likewise.
51145         * modules/unictype/category-Mc: Likewise.
51146         * modules/unictype/category-Me: Likewise.
51147         * modules/unictype/category-Mn: Likewise.
51148         * modules/unictype/category-N: Likewise.
51149         * modules/unictype/category-Nd: Likewise.
51150         * modules/unictype/category-Nl: Likewise.
51151         * modules/unictype/category-No: Likewise.
51152         * modules/unictype/category-P: Likewise.
51153         * modules/unictype/category-Pc: Likewise.
51154         * modules/unictype/category-Pd: Likewise.
51155         * modules/unictype/category-Pe: Likewise.
51156         * modules/unictype/category-Pf: Likewise.
51157         * modules/unictype/category-Pi: Likewise.
51158         * modules/unictype/category-Po: Likewise.
51159         * modules/unictype/category-Ps: Likewise.
51160         * modules/unictype/category-S: Likewise.
51161         * modules/unictype/category-Sc: Likewise.
51162         * modules/unictype/category-Sk: Likewise.
51163         * modules/unictype/category-Sm: Likewise.
51164         * modules/unictype/category-So: Likewise.
51165         * modules/unictype/category-Z: Likewise.
51166         * modules/unictype/category-Zl: Likewise.
51167         * modules/unictype/category-Zp: Likewise.
51168         * modules/unictype/category-Zs: Likewise.
51169         * modules/unictype/category-and: Likewise.
51170         * modules/unictype/category-and-not: Likewise.
51171         * modules/unictype/category-byname: Likewise.
51172         * modules/unictype/category-name: Likewise.
51173         * modules/unictype/category-none: Likewise.
51174         * modules/unictype/category-of: Likewise.
51175         * modules/unictype/category-or: Likewise.
51176         * modules/unictype/category-test: Likewise.
51177         * modules/unictype/combining-class: Likewise.
51178         * modules/unictype/ctype-alnum: Likewise.
51179         * modules/unictype/ctype-alpha: Likewise.
51180         * modules/unictype/ctype-blank: Likewise.
51181         * modules/unictype/ctype-cntrl: Likewise.
51182         * modules/unictype/ctype-digit: Likewise.
51183         * modules/unictype/ctype-graph: Likewise.
51184         * modules/unictype/ctype-lower: Likewise.
51185         * modules/unictype/ctype-print: Likewise.
51186         * modules/unictype/ctype-punct: Likewise.
51187         * modules/unictype/ctype-space: Likewise.
51188         * modules/unictype/ctype-upper: Likewise.
51189         * modules/unictype/ctype-xdigit: Likewise.
51190         * modules/unictype/decimal-digit: Likewise.
51191         * modules/unictype/digit: Likewise.
51192         * modules/unictype/mirror: Likewise.
51193         * modules/unictype/numeric: Likewise.
51194         * modules/unictype/property-alphabetic: Likewise.
51195         * modules/unictype/property-ascii-hex-digit: Likewise.
51196         * modules/unictype/property-bidi-arabic-digit: Likewise.
51197         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
51198         * modules/unictype/property-bidi-block-separator: Likewise.
51199         * modules/unictype/property-bidi-boundary-neutral: Likewise.
51200         * modules/unictype/property-bidi-common-separator: Likewise.
51201         * modules/unictype/property-bidi-control: Likewise.
51202         * modules/unictype/property-bidi-embedding-or-override: Likewise.
51203         * modules/unictype/property-bidi-eur-num-separator: Likewise.
51204         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
51205         * modules/unictype/property-bidi-european-digit: Likewise.
51206         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
51207         * modules/unictype/property-bidi-left-to-right: Likewise.
51208         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
51209         * modules/unictype/property-bidi-other-neutral: Likewise.
51210         * modules/unictype/property-bidi-pdf: Likewise.
51211         * modules/unictype/property-bidi-segment-separator: Likewise.
51212         * modules/unictype/property-bidi-whitespace: Likewise.
51213         * modules/unictype/property-byname: Likewise.
51214         * modules/unictype/property-combining: Likewise.
51215         * modules/unictype/property-composite: Likewise.
51216         * modules/unictype/property-currency-symbol: Likewise.
51217         * modules/unictype/property-dash: Likewise.
51218         * modules/unictype/property-decimal-digit: Likewise.
51219         * modules/unictype/property-default-ignorable-code-point: Likewise.
51220         * modules/unictype/property-deprecated: Likewise.
51221         * modules/unictype/property-diacritic: Likewise.
51222         * modules/unictype/property-extender: Likewise.
51223         * modules/unictype/property-format-control: Likewise.
51224         * modules/unictype/property-grapheme-base: Likewise.
51225         * modules/unictype/property-grapheme-extend: Likewise.
51226         * modules/unictype/property-grapheme-link: Likewise.
51227         * modules/unictype/property-hex-digit: Likewise.
51228         * modules/unictype/property-hyphen: Likewise.
51229         * modules/unictype/property-id-continue: Likewise.
51230         * modules/unictype/property-id-start: Likewise.
51231         * modules/unictype/property-ideographic: Likewise.
51232         * modules/unictype/property-ids-binary-operator: Likewise.
51233         * modules/unictype/property-ids-trinary-operator: Likewise.
51234         * modules/unictype/property-ignorable-control: Likewise.
51235         * modules/unictype/property-iso-control: Likewise.
51236         * modules/unictype/property-join-control: Likewise.
51237         * modules/unictype/property-left-of-pair: Likewise.
51238         * modules/unictype/property-line-separator: Likewise.
51239         * modules/unictype/property-logical-order-exception: Likewise.
51240         * modules/unictype/property-lowercase: Likewise.
51241         * modules/unictype/property-math: Likewise.
51242         * modules/unictype/property-non-break: Likewise.
51243         * modules/unictype/property-not-a-character: Likewise.
51244         * modules/unictype/property-numeric: Likewise.
51245         * modules/unictype/property-other-alphabetic: Likewise.
51246         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
51247         * modules/unictype/property-other-grapheme-extend: Likewise.
51248         * modules/unictype/property-other-id-continue: Likewise.
51249         * modules/unictype/property-other-id-start: Likewise.
51250         * modules/unictype/property-other-lowercase: Likewise.
51251         * modules/unictype/property-other-math: Likewise.
51252         * modules/unictype/property-other-uppercase: Likewise.
51253         * modules/unictype/property-paired-punctuation: Likewise.
51254         * modules/unictype/property-paragraph-separator: Likewise.
51255         * modules/unictype/property-pattern-syntax: Likewise.
51256         * modules/unictype/property-pattern-white-space: Likewise.
51257         * modules/unictype/property-private-use: Likewise.
51258         * modules/unictype/property-punctuation: Likewise.
51259         * modules/unictype/property-quotation-mark: Likewise.
51260         * modules/unictype/property-radical: Likewise.
51261         * modules/unictype/property-sentence-terminal: Likewise.
51262         * modules/unictype/property-soft-dotted: Likewise.
51263         * modules/unictype/property-space: Likewise.
51264         * modules/unictype/property-terminal-punctuation: Likewise.
51265         * modules/unictype/property-test: Likewise.
51266         * modules/unictype/property-titlecase: Likewise.
51267         * modules/unictype/property-unassigned-code-value: Likewise.
51268         * modules/unictype/property-unified-ideograph: Likewise.
51269         * modules/unictype/property-uppercase: Likewise.
51270         * modules/unictype/property-variation-selector: Likewise.
51271         * modules/unictype/property-white-space: Likewise.
51272         * modules/unictype/property-xid-continue: Likewise.
51273         * modules/unictype/property-xid-start: Likewise.
51274         * modules/unictype/property-zero-width: Likewise.
51275         * modules/unictype/scripts: Likewise.
51276         * modules/unictype/syntax-c-ident: Likewise.
51277         * modules/unictype/syntax-c-whitespace: Likewise.
51278         * modules/unictype/syntax-java-ident: Likewise.
51279         * modules/unictype/syntax-java-whitespace: Likewise.
51280         * modules/unilbrk/u8-possible-linebreaks: Likewise.
51281         * modules/unilbrk/u8-width-linebreaks: Likewise.
51282         * modules/unilbrk/u16-possible-linebreaks: Likewise.
51283         * modules/unilbrk/u16-width-linebreaks: Likewise.
51284         * modules/unilbrk/u32-possible-linebreaks: Likewise.
51285         * modules/unilbrk/u32-width-linebreaks: Likewise.
51286         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
51287         * modules/unilbrk/ulc-width-linebreaks: Likewise.
51288         * modules/uniname/uniname: Likewise.
51289         * modules/uninorm/canonical-decomposition: Likewise.
51290         * modules/uninorm/composition: Likewise.
51291         * modules/uninorm/decomposing-form: Likewise.
51292         * modules/uninorm/decomposition: Likewise.
51293         * modules/uninorm/filter: Likewise.
51294         * modules/uninorm/nfc: Likewise.
51295         * modules/uninorm/nfd: Likewise.
51296         * modules/uninorm/nfkc: Likewise.
51297         * modules/uninorm/nfkd: Likewise.
51298         * modules/uninorm/u8-normalize: Likewise.
51299         * modules/uninorm/u8-normcmp: Likewise.
51300         * modules/uninorm/u8-normcoll: Likewise.
51301         * modules/uninorm/u8-normxfrm: Likewise.
51302         * modules/uninorm/u16-normalize: Likewise.
51303         * modules/uninorm/u16-normcmp: Likewise.
51304         * modules/uninorm/u16-normcoll: Likewise.
51305         * modules/uninorm/u16-normxfrm: Likewise.
51306         * modules/uninorm/u32-normalize: Likewise.
51307         * modules/uninorm/u32-normcmp: Likewise.
51308         * modules/uninorm/u32-normcoll: Likewise.
51309         * modules/uninorm/u32-normxfrm: Likewise.
51310         * modules/unistdio/u8-asnprintf: Likewise.
51311         * modules/unistdio/u8-asprintf: Likewise.
51312         * modules/unistdio/u8-snprintf: Likewise.
51313         * modules/unistdio/u8-sprintf: Likewise.
51314         * modules/unistdio/u8-u8-asnprintf: Likewise.
51315         * modules/unistdio/u8-u8-asprintf: Likewise.
51316         * modules/unistdio/u8-u8-snprintf: Likewise.
51317         * modules/unistdio/u8-u8-sprintf: Likewise.
51318         * modules/unistdio/u8-u8-vasnprintf: Likewise.
51319         * modules/unistdio/u8-u8-vasprintf: Likewise.
51320         * modules/unistdio/u8-u8-vsnprintf: Likewise.
51321         * modules/unistdio/u8-u8-vsprintf: Likewise.
51322         * modules/unistdio/u8-vasnprintf: Likewise.
51323         * modules/unistdio/u8-vasprintf: Likewise.
51324         * modules/unistdio/u8-vsnprintf: Likewise.
51325         * modules/unistdio/u8-vsprintf: Likewise.
51326         * modules/unistdio/u16-asnprintf: Likewise.
51327         * modules/unistdio/u16-asprintf: Likewise.
51328         * modules/unistdio/u16-snprintf: Likewise.
51329         * modules/unistdio/u16-sprintf: Likewise.
51330         * modules/unistdio/u16-u16-asnprintf: Likewise.
51331         * modules/unistdio/u16-u16-asprintf: Likewise.
51332         * modules/unistdio/u16-u16-snprintf: Likewise.
51333         * modules/unistdio/u16-u16-sprintf: Likewise.
51334         * modules/unistdio/u16-u16-vasnprintf: Likewise.
51335         * modules/unistdio/u16-u16-vasprintf: Likewise.
51336         * modules/unistdio/u16-u16-vsnprintf: Likewise.
51337         * modules/unistdio/u16-u16-vsprintf: Likewise.
51338         * modules/unistdio/u16-vasnprintf: Likewise.
51339         * modules/unistdio/u16-vasprintf: Likewise.
51340         * modules/unistdio/u16-vsnprintf: Likewise.
51341         * modules/unistdio/u16-vsprintf: Likewise.
51342         * modules/unistdio/u32-asnprintf: Likewise.
51343         * modules/unistdio/u32-asprintf: Likewise.
51344         * modules/unistdio/u32-snprintf: Likewise.
51345         * modules/unistdio/u32-sprintf: Likewise.
51346         * modules/unistdio/u32-u32-asnprintf: Likewise.
51347         * modules/unistdio/u32-u32-asprintf: Likewise.
51348         * modules/unistdio/u32-u32-snprintf: Likewise.
51349         * modules/unistdio/u32-u32-sprintf: Likewise.
51350         * modules/unistdio/u32-u32-vasnprintf: Likewise.
51351         * modules/unistdio/u32-u32-vasprintf: Likewise.
51352         * modules/unistdio/u32-u32-vsnprintf: Likewise.
51353         * modules/unistdio/u32-u32-vsprintf: Likewise.
51354         * modules/unistdio/u32-vasnprintf: Likewise.
51355         * modules/unistdio/u32-vasprintf: Likewise.
51356         * modules/unistdio/u32-vsnprintf: Likewise.
51357         * modules/unistdio/u32-vsprintf: Likewise.
51358         * modules/unistdio/ulc-asnprintf: Likewise.
51359         * modules/unistdio/ulc-asprintf: Likewise.
51360         * modules/unistdio/ulc-fprintf: Likewise.
51361         * modules/unistdio/ulc-snprintf: Likewise.
51362         * modules/unistdio/ulc-sprintf: Likewise.
51363         * modules/unistdio/ulc-vasnprintf: Likewise.
51364         * modules/unistdio/ulc-vasprintf: Likewise.
51365         * modules/unistdio/ulc-vfprintf: Likewise.
51366         * modules/unistdio/ulc-vsnprintf: Likewise.
51367         * modules/unistdio/ulc-vsprintf: Likewise.
51368         * modules/unistr/u8-check: Likewise.
51369         * modules/unistr/u8-chr: Likewise.
51370         * modules/unistr/u8-cmp: Likewise.
51371         * modules/unistr/u8-cmp2: Likewise.
51372         * modules/unistr/u8-cpy: Likewise.
51373         * modules/unistr/u8-cpy-alloc: Likewise.
51374         * modules/unistr/u8-endswith: Likewise.
51375         * modules/unistr/u8-mblen: Likewise.
51376         * modules/unistr/u8-mbsnlen: Likewise.
51377         * modules/unistr/u8-mbtouc: Likewise.
51378         * modules/unistr/u8-mbtouc-unsafe: Likewise.
51379         * modules/unistr/u8-mbtoucr: Likewise.
51380         * modules/unistr/u8-move: Likewise.
51381         * modules/unistr/u8-next: Likewise.
51382         * modules/unistr/u8-prev: Likewise.
51383         * modules/unistr/u8-set: Likewise.
51384         * modules/unistr/u8-startswith: Likewise.
51385         * modules/unistr/u8-stpcpy: Likewise.
51386         * modules/unistr/u8-stpncpy: Likewise.
51387         * modules/unistr/u8-strcat: Likewise.
51388         * modules/unistr/u8-strchr: Likewise.
51389         * modules/unistr/u8-strcmp: Likewise.
51390         * modules/unistr/u8-strcoll: Likewise.
51391         * modules/unistr/u8-strcpy: Likewise.
51392         * modules/unistr/u8-strcspn: Likewise.
51393         * modules/unistr/u8-strdup: Likewise.
51394         * modules/unistr/u8-strlen: Likewise.
51395         * modules/unistr/u8-strmblen: Likewise.
51396         * modules/unistr/u8-strmbtouc: Likewise.
51397         * modules/unistr/u8-strncat: Likewise.
51398         * modules/unistr/u8-strncmp: Likewise.
51399         * modules/unistr/u8-strncpy: Likewise.
51400         * modules/unistr/u8-strnlen: Likewise.
51401         * modules/unistr/u8-strpbrk: Likewise.
51402         * modules/unistr/u8-strrchr: Likewise.
51403         * modules/unistr/u8-strspn: Likewise.
51404         * modules/unistr/u8-strstr: Likewise.
51405         * modules/unistr/u8-strtok: Likewise.
51406         * modules/unistr/u8-to-u16: Likewise.
51407         * modules/unistr/u8-to-u32: Likewise.
51408         * modules/unistr/u8-uctomb: Likewise.
51409         * modules/unistr/u16-check: Likewise.
51410         * modules/unistr/u16-chr: Likewise.
51411         * modules/unistr/u16-cmp: Likewise.
51412         * modules/unistr/u16-cmp2: Likewise.
51413         * modules/unistr/u16-cpy: Likewise.
51414         * modules/unistr/u16-cpy-alloc: Likewise.
51415         * modules/unistr/u16-endswith: Likewise.
51416         * modules/unistr/u16-mblen: Likewise.
51417         * modules/unistr/u16-mbsnlen: Likewise.
51418         * modules/unistr/u16-mbtouc: Likewise.
51419         * modules/unistr/u16-mbtouc-unsafe: Likewise.
51420         * modules/unistr/u16-mbtoucr: Likewise.
51421         * modules/unistr/u16-move: Likewise.
51422         * modules/unistr/u16-next: Likewise.
51423         * modules/unistr/u16-prev: Likewise.
51424         * modules/unistr/u16-set: Likewise.
51425         * modules/unistr/u16-startswith: Likewise.
51426         * modules/unistr/u16-stpcpy: Likewise.
51427         * modules/unistr/u16-stpncpy: Likewise.
51428         * modules/unistr/u16-strcat: Likewise.
51429         * modules/unistr/u16-strchr: Likewise.
51430         * modules/unistr/u16-strcmp: Likewise.
51431         * modules/unistr/u16-strcoll: Likewise.
51432         * modules/unistr/u16-strcpy: Likewise.
51433         * modules/unistr/u16-strcspn: Likewise.
51434         * modules/unistr/u16-strdup: Likewise.
51435         * modules/unistr/u16-strlen: Likewise.
51436         * modules/unistr/u16-strmblen: Likewise.
51437         * modules/unistr/u16-strmbtouc: Likewise.
51438         * modules/unistr/u16-strncat: Likewise.
51439         * modules/unistr/u16-strncmp: Likewise.
51440         * modules/unistr/u16-strncpy: Likewise.
51441         * modules/unistr/u16-strnlen: Likewise.
51442         * modules/unistr/u16-strpbrk: Likewise.
51443         * modules/unistr/u16-strrchr: Likewise.
51444         * modules/unistr/u16-strspn: Likewise.
51445         * modules/unistr/u16-strstr: Likewise.
51446         * modules/unistr/u16-strtok: Likewise.
51447         * modules/unistr/u16-to-u32: Likewise.
51448         * modules/unistr/u16-to-u8: Likewise.
51449         * modules/unistr/u16-uctomb: Likewise.
51450         * modules/unistr/u32-check: Likewise.
51451         * modules/unistr/u32-chr: Likewise.
51452         * modules/unistr/u32-cmp: Likewise.
51453         * modules/unistr/u32-cmp2: Likewise.
51454         * modules/unistr/u32-cpy: Likewise.
51455         * modules/unistr/u32-cpy-alloc: Likewise.
51456         * modules/unistr/u32-endswith: Likewise.
51457         * modules/unistr/u32-mblen: Likewise.
51458         * modules/unistr/u32-mbsnlen: Likewise.
51459         * modules/unistr/u32-mbtouc: Likewise.
51460         * modules/unistr/u32-mbtouc-unsafe: Likewise.
51461         * modules/unistr/u32-mbtoucr: Likewise.
51462         * modules/unistr/u32-move: Likewise.
51463         * modules/unistr/u32-next: Likewise.
51464         * modules/unistr/u32-prev: Likewise.
51465         * modules/unistr/u32-set: Likewise.
51466         * modules/unistr/u32-startswith: Likewise.
51467         * modules/unistr/u32-stpcpy: Likewise.
51468         * modules/unistr/u32-stpncpy: Likewise.
51469         * modules/unistr/u32-strcat: Likewise.
51470         * modules/unistr/u32-strchr: Likewise.
51471         * modules/unistr/u32-strcmp: Likewise.
51472         * modules/unistr/u32-strcoll: Likewise.
51473         * modules/unistr/u32-strcpy: Likewise.
51474         * modules/unistr/u32-strcspn: Likewise.
51475         * modules/unistr/u32-strdup: Likewise.
51476         * modules/unistr/u32-strlen: Likewise.
51477         * modules/unistr/u32-strmblen: Likewise.
51478         * modules/unistr/u32-strmbtouc: Likewise.
51479         * modules/unistr/u32-strncat: Likewise.
51480         * modules/unistr/u32-strncmp: Likewise.
51481         * modules/unistr/u32-strncpy: Likewise.
51482         * modules/unistr/u32-strnlen: Likewise.
51483         * modules/unistr/u32-strpbrk: Likewise.
51484         * modules/unistr/u32-strrchr: Likewise.
51485         * modules/unistr/u32-strspn: Likewise.
51486         * modules/unistr/u32-strstr: Likewise.
51487         * modules/unistr/u32-strtok: Likewise.
51488         * modules/unistr/u32-to-u16: Likewise.
51489         * modules/unistr/u32-to-u8: Likewise.
51490         * modules/unistr/u32-uctomb: Likewise.
51491         * modules/uniwbrk/u8-wordbreaks: Likewise.
51492         * modules/uniwbrk/u16-wordbreaks: Likewise.
51493         * modules/uniwbrk/u32-wordbreaks: Likewise.
51494         * modules/uniwbrk/ulc-wordbreaks: Likewise.
51495         * modules/uniwbrk/wordbreak-property: Likewise.
51496         * modules/uniwidth/u8-strwidth: Likewise.
51497         * modules/uniwidth/u8-width: Likewise.
51498         * modules/uniwidth/u16-strwidth: Likewise.
51499         * modules/uniwidth/u16-width: Likewise.
51500         * modules/uniwidth/u32-strwidth: Likewise.
51501         * modules/uniwidth/u32-width: Likewise.
51502         * modules/uniwidth/width: Likewise.
51503         * modules/unicase/cased-tests (Makefile.am): Link all test programs
51504         with $(LIBUNISTRING).
51505         * modules/unicase/ignorable-tests: Likewise.
51506         * modules/unicase/locale-language-tests: Likewise.
51507         * modules/unicase/tolower-tests: Likewise.
51508         * modules/unicase/totitle-tests: Likewise.
51509         * modules/unicase/toupper-tests: Likewise.
51510         * modules/unicase/u8-casecmp-tests: Likewise.
51511         * modules/unicase/u8-casecoll-tests: Likewise.
51512         * modules/unicase/u8-casefold-tests: Likewise.
51513         * modules/unicase/u8-is-cased-tests: Likewise.
51514         * modules/unicase/u8-is-casefolded-tests: Likewise.
51515         * modules/unicase/u8-is-lowercase-tests: Likewise.
51516         * modules/unicase/u8-is-titlecase-tests: Likewise.
51517         * modules/unicase/u8-is-uppercase-tests: Likewise.
51518         * modules/unicase/u8-tolower-tests: Likewise.
51519         * modules/unicase/u8-totitle-tests: Likewise.
51520         * modules/unicase/u8-toupper-tests: Likewise.
51521         * modules/unicase/u16-casecmp-tests: Likewise.
51522         * modules/unicase/u16-casecoll-tests: Likewise.
51523         * modules/unicase/u16-casefold-tests: Likewise.
51524         * modules/unicase/u16-is-cased-tests: Likewise.
51525         * modules/unicase/u16-is-casefolded-tests: Likewise.
51526         * modules/unicase/u16-is-lowercase-tests: Likewise.
51527         * modules/unicase/u16-is-titlecase-tests: Likewise.
51528         * modules/unicase/u16-is-uppercase-tests: Likewise.
51529         * modules/unicase/u16-tolower-tests: Likewise.
51530         * modules/unicase/u16-totitle-tests: Likewise.
51531         * modules/unicase/u16-toupper-tests: Likewise.
51532         * modules/unicase/u32-casecmp-tests: Likewise.
51533         * modules/unicase/u32-casecoll-tests: Likewise.
51534         * modules/unicase/u32-casefold-tests: Likewise.
51535         * modules/unicase/u32-is-cased-tests: Likewise.
51536         * modules/unicase/u32-is-casefolded-tests: Likewise.
51537         * modules/unicase/u32-is-lowercase-tests: Likewise.
51538         * modules/unicase/u32-is-titlecase-tests: Likewise.
51539         * modules/unicase/u32-is-uppercase-tests: Likewise.
51540         * modules/unicase/u32-tolower-tests: Likewise.
51541         * modules/unicase/u32-totitle-tests: Likewise.
51542         * modules/unicase/u32-toupper-tests: Likewise.
51543         * modules/unicase/ulc-casecmp-tests: Likewise.
51544         * modules/unicase/ulc-casecoll-tests: Likewise.
51545         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
51546         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
51547         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
51548         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
51549         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
51550         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
51551         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
51552         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
51553         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
51554         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
51555         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
51556         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
51557         * modules/unictype/bidicategory-byname-tests: Likewise.
51558         * modules/unictype/bidicategory-name-tests: Likewise.
51559         * modules/unictype/bidicategory-of-tests: Likewise.
51560         * modules/unictype/bidicategory-test-tests: Likewise.
51561         * modules/unictype/block-list-tests: Likewise.
51562         * modules/unictype/block-of-tests: Likewise.
51563         * modules/unictype/block-test-tests: Likewise.
51564         * modules/unictype/category-C-tests: Likewise.
51565         * modules/unictype/category-Cc-tests: Likewise.
51566         * modules/unictype/category-Cf-tests: Likewise.
51567         * modules/unictype/category-Cn-tests: Likewise.
51568         * modules/unictype/category-Co-tests: Likewise.
51569         * modules/unictype/category-Cs-tests: Likewise.
51570         * modules/unictype/category-L-tests: Likewise.
51571         * modules/unictype/category-Ll-tests: Likewise.
51572         * modules/unictype/category-Lm-tests: Likewise.
51573         * modules/unictype/category-Lo-tests: Likewise.
51574         * modules/unictype/category-Lt-tests: Likewise.
51575         * modules/unictype/category-Lu-tests: Likewise.
51576         * modules/unictype/category-M-tests: Likewise.
51577         * modules/unictype/category-Mc-tests: Likewise.
51578         * modules/unictype/category-Me-tests: Likewise.
51579         * modules/unictype/category-Mn-tests: Likewise.
51580         * modules/unictype/category-N-tests: Likewise.
51581         * modules/unictype/category-Nd-tests: Likewise.
51582         * modules/unictype/category-Nl-tests: Likewise.
51583         * modules/unictype/category-No-tests: Likewise.
51584         * modules/unictype/category-P-tests: Likewise.
51585         * modules/unictype/category-Pc-tests: Likewise.
51586         * modules/unictype/category-Pd-tests: Likewise.
51587         * modules/unictype/category-Pe-tests: Likewise.
51588         * modules/unictype/category-Pf-tests: Likewise.
51589         * modules/unictype/category-Pi-tests: Likewise.
51590         * modules/unictype/category-Po-tests: Likewise.
51591         * modules/unictype/category-Ps-tests: Likewise.
51592         * modules/unictype/category-S-tests: Likewise.
51593         * modules/unictype/category-Sc-tests: Likewise.
51594         * modules/unictype/category-Sk-tests: Likewise.
51595         * modules/unictype/category-Sm-tests: Likewise.
51596         * modules/unictype/category-So-tests: Likewise.
51597         * modules/unictype/category-Z-tests: Likewise.
51598         * modules/unictype/category-Zl-tests: Likewise.
51599         * modules/unictype/category-Zp-tests: Likewise.
51600         * modules/unictype/category-Zs-tests: Likewise.
51601         * modules/unictype/category-and-not-tests: Likewise.
51602         * modules/unictype/category-and-tests: Likewise.
51603         * modules/unictype/category-byname-tests: Likewise.
51604         * modules/unictype/category-name-tests: Likewise.
51605         * modules/unictype/category-none-tests: Likewise.
51606         * modules/unictype/category-of-tests: Likewise.
51607         * modules/unictype/category-or-tests: Likewise.
51608         * modules/unictype/category-test-withtable-tests: Likewise.
51609         * modules/unictype/combining-class-tests: Likewise.
51610         * modules/unictype/ctype-alnum-tests: Likewise.
51611         * modules/unictype/ctype-alpha-tests: Likewise.
51612         * modules/unictype/ctype-blank-tests: Likewise.
51613         * modules/unictype/ctype-cntrl-tests: Likewise.
51614         * modules/unictype/ctype-digit-tests: Likewise.
51615         * modules/unictype/ctype-graph-tests: Likewise.
51616         * modules/unictype/ctype-lower-tests: Likewise.
51617         * modules/unictype/ctype-print-tests: Likewise.
51618         * modules/unictype/ctype-punct-tests: Likewise.
51619         * modules/unictype/ctype-space-tests: Likewise.
51620         * modules/unictype/ctype-upper-tests: Likewise.
51621         * modules/unictype/ctype-xdigit-tests: Likewise.
51622         * modules/unictype/decimal-digit-tests: Likewise.
51623         * modules/unictype/digit-tests: Likewise.
51624         * modules/unictype/mirror-tests: Likewise.
51625         * modules/unictype/numeric-tests: Likewise.
51626         * modules/unictype/property-alphabetic-tests: Likewise.
51627         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
51628         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
51629         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
51630         * modules/unictype/property-bidi-block-separator-tests: Likewise.
51631         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
51632         * modules/unictype/property-bidi-common-separator-tests: Likewise.
51633         * modules/unictype/property-bidi-control-tests: Likewise.
51634         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
51635         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
51636         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
51637         * modules/unictype/property-bidi-european-digit-tests: Likewise.
51638         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
51639         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
51640         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
51641         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
51642         * modules/unictype/property-bidi-pdf-tests: Likewise.
51643         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
51644         * modules/unictype/property-bidi-whitespace-tests: Likewise.
51645         * modules/unictype/property-byname-tests: Likewise.
51646         * modules/unictype/property-combining-tests: Likewise.
51647         * modules/unictype/property-composite-tests: Likewise.
51648         * modules/unictype/property-currency-symbol-tests: Likewise.
51649         * modules/unictype/property-dash-tests: Likewise.
51650         * modules/unictype/property-decimal-digit-tests: Likewise.
51651         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
51652         * modules/unictype/property-deprecated-tests: Likewise.
51653         * modules/unictype/property-diacritic-tests: Likewise.
51654         * modules/unictype/property-extender-tests: Likewise.
51655         * modules/unictype/property-format-control-tests: Likewise.
51656         * modules/unictype/property-grapheme-base-tests: Likewise.
51657         * modules/unictype/property-grapheme-extend-tests: Likewise.
51658         * modules/unictype/property-grapheme-link-tests: Likewise.
51659         * modules/unictype/property-hex-digit-tests: Likewise.
51660         * modules/unictype/property-hyphen-tests: Likewise.
51661         * modules/unictype/property-id-continue-tests: Likewise.
51662         * modules/unictype/property-id-start-tests: Likewise.
51663         * modules/unictype/property-ideographic-tests: Likewise.
51664         * modules/unictype/property-ids-binary-operator-tests: Likewise.
51665         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
51666         * modules/unictype/property-ignorable-control-tests: Likewise.
51667         * modules/unictype/property-iso-control-tests: Likewise.
51668         * modules/unictype/property-join-control-tests: Likewise.
51669         * modules/unictype/property-left-of-pair-tests: Likewise.
51670         * modules/unictype/property-line-separator-tests: Likewise.
51671         * modules/unictype/property-logical-order-exception-tests: Likewise.
51672         * modules/unictype/property-lowercase-tests: Likewise.
51673         * modules/unictype/property-math-tests: Likewise.
51674         * modules/unictype/property-non-break-tests: Likewise.
51675         * modules/unictype/property-not-a-character-tests: Likewise.
51676         * modules/unictype/property-numeric-tests: Likewise.
51677         * modules/unictype/property-other-alphabetic-tests: Likewise.
51678         * modules/unictype/property-other-default-ignorable-code-point-tests:
51679         Likewise.
51680         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
51681         * modules/unictype/property-other-id-continue-tests: Likewise.
51682         * modules/unictype/property-other-id-start-tests: Likewise.
51683         * modules/unictype/property-other-lowercase-tests: Likewise.
51684         * modules/unictype/property-other-math-tests: Likewise.
51685         * modules/unictype/property-other-uppercase-tests: Likewise.
51686         * modules/unictype/property-paired-punctuation-tests: Likewise.
51687         * modules/unictype/property-paragraph-separator-tests: Likewise.
51688         * modules/unictype/property-pattern-syntax-tests: Likewise.
51689         * modules/unictype/property-pattern-white-space-tests: Likewise.
51690         * modules/unictype/property-private-use-tests: Likewise.
51691         * modules/unictype/property-punctuation-tests: Likewise.
51692         * modules/unictype/property-quotation-mark-tests: Likewise.
51693         * modules/unictype/property-radical-tests: Likewise.
51694         * modules/unictype/property-sentence-terminal-tests: Likewise.
51695         * modules/unictype/property-soft-dotted-tests: Likewise.
51696         * modules/unictype/property-space-tests: Likewise.
51697         * modules/unictype/property-terminal-punctuation-tests: Likewise.
51698         * modules/unictype/property-test-tests: Likewise.
51699         * modules/unictype/property-titlecase-tests: Likewise.
51700         * modules/unictype/property-unassigned-code-value-tests: Likewise.
51701         * modules/unictype/property-unified-ideograph-tests: Likewise.
51702         * modules/unictype/property-uppercase-tests: Likewise.
51703         * modules/unictype/property-variation-selector-tests: Likewise.
51704         * modules/unictype/property-white-space-tests: Likewise.
51705         * modules/unictype/property-xid-continue-tests: Likewise.
51706         * modules/unictype/property-xid-start-tests: Likewise.
51707         * modules/unictype/property-zero-width-tests: Likewise.
51708         * modules/unictype/scripts-tests: Likewise.
51709         * modules/unictype/syntax-c-ident-tests: Likewise.
51710         * modules/unictype/syntax-c-whitespace-tests: Likewise.
51711         * modules/unictype/syntax-java-ident-tests: Likewise.
51712         * modules/unictype/syntax-java-whitespace-tests: Likewise.
51713         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
51714         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
51715         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
51716         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
51717         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
51718         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
51719         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
51720         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
51721         * modules/uniname/uniname-tests: Likewise.
51722         * modules/uninorm/canonical-decomposition-tests: Likewise.
51723         * modules/uninorm/compat-decomposition-tests: Likewise.
51724         * modules/uninorm/composition-tests: Likewise.
51725         * modules/uninorm/decomposing-form-tests: Likewise.
51726         * modules/uninorm/decomposition-tests: Likewise.
51727         * modules/uninorm/filter-tests: Likewise.
51728         * modules/uninorm/nfc-tests: Likewise.
51729         * modules/uninorm/nfd-tests: Likewise.
51730         * modules/uninorm/nfkc-tests: Likewise.
51731         * modules/uninorm/nfkd-tests: Likewise.
51732         * modules/uninorm/u8-normcmp-tests: Likewise.
51733         * modules/uninorm/u8-normcoll-tests: Likewise.
51734         * modules/uninorm/u16-normcmp-tests: Likewise.
51735         * modules/uninorm/u16-normcoll-tests: Likewise.
51736         * modules/uninorm/u32-normcmp-tests: Likewise.
51737         * modules/uninorm/u32-normcoll-tests: Likewise.
51738         * modules/unistdio/u8-asnprintf-tests: Likewise.
51739         * modules/unistdio/u8-vasnprintf-tests: Likewise.
51740         * modules/unistdio/u8-vasprintf-tests: Likewise.
51741         * modules/unistdio/u8-vsnprintf-tests: Likewise.
51742         * modules/unistdio/u8-vsprintf-tests: Likewise.
51743         * modules/unistdio/u16-asnprintf-tests: Likewise.
51744         * modules/unistdio/u16-vasnprintf-tests: Likewise.
51745         * modules/unistdio/u16-vasprintf-tests: Likewise.
51746         * modules/unistdio/u16-vsnprintf-tests: Likewise.
51747         * modules/unistdio/u16-vsprintf-tests: Likewise.
51748         * modules/unistdio/u32-asnprintf-tests: Likewise.
51749         * modules/unistdio/u32-vasnprintf-tests: Likewise.
51750         * modules/unistdio/u32-vasprintf-tests: Likewise.
51751         * modules/unistdio/u32-vsnprintf-tests: Likewise.
51752         * modules/unistdio/u32-vsprintf-tests: Likewise.
51753         * modules/unistdio/ulc-asnprintf-tests: Likewise.
51754         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
51755         * modules/unistdio/ulc-vasprintf-tests: Likewise.
51756         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
51757         * modules/unistdio/ulc-vsprintf-tests: Likewise.
51758         * modules/unistr/u8-check-tests: Likewise.
51759         * modules/unistr/u8-chr-tests: Likewise.
51760         * modules/unistr/u8-cmp-tests: Likewise.
51761         * modules/unistr/u8-cmp2-tests: Likewise.
51762         * modules/unistr/u8-cpy-alloc-tests: Likewise.
51763         * modules/unistr/u8-cpy-tests: Likewise.
51764         * modules/unistr/u8-mblen-tests: Likewise.
51765         * modules/unistr/u8-mbsnlen-tests: Likewise.
51766         * modules/unistr/u8-mbtouc-tests: Likewise.
51767         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
51768         * modules/unistr/u8-mbtoucr-tests: Likewise.
51769         * modules/unistr/u8-move-tests: Likewise.
51770         * modules/unistr/u8-next-tests: Likewise.
51771         * modules/unistr/u8-prev-tests: Likewise.
51772         * modules/unistr/u8-set-tests: Likewise.
51773         * modules/unistr/u8-stpcpy-tests: Likewise.
51774         * modules/unistr/u8-stpncpy-tests: Likewise.
51775         * modules/unistr/u8-strcat-tests: Likewise.
51776         * modules/unistr/u8-strcmp-tests: Likewise.
51777         * modules/unistr/u8-strcoll-tests: Likewise.
51778         * modules/unistr/u8-strcpy-tests: Likewise.
51779         * modules/unistr/u8-strdup-tests: Likewise.
51780         * modules/unistr/u8-strlen-tests: Likewise.
51781         * modules/unistr/u8-strmblen-tests: Likewise.
51782         * modules/unistr/u8-strmbtouc-tests: Likewise.
51783         * modules/unistr/u8-strncat-tests: Likewise.
51784         * modules/unistr/u8-strncmp-tests: Likewise.
51785         * modules/unistr/u8-strncpy-tests: Likewise.
51786         * modules/unistr/u8-strnlen-tests: Likewise.
51787         * modules/unistr/u8-to-u16-tests: Likewise.
51788         * modules/unistr/u8-to-u32-tests: Likewise.
51789         * modules/unistr/u8-uctomb-tests: Likewise.
51790         * modules/unistr/u16-check-tests: Likewise.
51791         * modules/unistr/u16-chr-tests: Likewise.
51792         * modules/unistr/u16-cmp-tests: Likewise.
51793         * modules/unistr/u16-cmp2-tests: Likewise.
51794         * modules/unistr/u16-cpy-alloc-tests: Likewise.
51795         * modules/unistr/u16-cpy-tests: Likewise.
51796         * modules/unistr/u16-mblen-tests: Likewise.
51797         * modules/unistr/u16-mbsnlen-tests: Likewise.
51798         * modules/unistr/u16-mbtouc-tests: Likewise.
51799         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
51800         * modules/unistr/u16-mbtoucr-tests: Likewise.
51801         * modules/unistr/u16-move-tests: Likewise.
51802         * modules/unistr/u16-next-tests: Likewise.
51803         * modules/unistr/u16-prev-tests: Likewise.
51804         * modules/unistr/u16-set-tests: Likewise.
51805         * modules/unistr/u16-stpcpy-tests: Likewise.
51806         * modules/unistr/u16-stpncpy-tests: Likewise.
51807         * modules/unistr/u16-strcat-tests: Likewise.
51808         * modules/unistr/u16-strcmp-tests: Likewise.
51809         * modules/unistr/u16-strcoll-tests: Likewise.
51810         * modules/unistr/u16-strcpy-tests: Likewise.
51811         * modules/unistr/u16-strdup-tests: Likewise.
51812         * modules/unistr/u16-strlen-tests: Likewise.
51813         * modules/unistr/u16-strmblen-tests: Likewise.
51814         * modules/unistr/u16-strmbtouc-tests: Likewise.
51815         * modules/unistr/u16-strncat-tests: Likewise.
51816         * modules/unistr/u16-strncmp-tests: Likewise.
51817         * modules/unistr/u16-strncpy-tests: Likewise.
51818         * modules/unistr/u16-strnlen-tests: Likewise.
51819         * modules/unistr/u16-to-u32-tests: Likewise.
51820         * modules/unistr/u16-to-u8-tests: Likewise.
51821         * modules/unistr/u16-uctomb-tests: Likewise.
51822         * modules/unistr/u32-check-tests: Likewise.
51823         * modules/unistr/u32-chr-tests: Likewise.
51824         * modules/unistr/u32-cmp-tests: Likewise.
51825         * modules/unistr/u32-cmp2-tests: Likewise.
51826         * modules/unistr/u32-cpy-alloc-tests: Likewise.
51827         * modules/unistr/u32-cpy-tests: Likewise.
51828         * modules/unistr/u32-mblen-tests: Likewise.
51829         * modules/unistr/u32-mbsnlen-tests: Likewise.
51830         * modules/unistr/u32-mbtouc-tests: Likewise.
51831         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
51832         * modules/unistr/u32-mbtoucr-tests: Likewise.
51833         * modules/unistr/u32-move-tests: Likewise.
51834         * modules/unistr/u32-next-tests: Likewise.
51835         * modules/unistr/u32-prev-tests: Likewise.
51836         * modules/unistr/u32-set-tests: Likewise.
51837         * modules/unistr/u32-stpcpy-tests: Likewise.
51838         * modules/unistr/u32-stpncpy-tests: Likewise.
51839         * modules/unistr/u32-strcat-tests: Likewise.
51840         * modules/unistr/u32-strcmp-tests: Likewise.
51841         * modules/unistr/u32-strcoll-tests: Likewise.
51842         * modules/unistr/u32-strcpy-tests: Likewise.
51843         * modules/unistr/u32-strdup-tests: Likewise.
51844         * modules/unistr/u32-strlen-tests: Likewise.
51845         * modules/unistr/u32-strmblen-tests: Likewise.
51846         * modules/unistr/u32-strmbtouc-tests: Likewise.
51847         * modules/unistr/u32-strncat-tests: Likewise.
51848         * modules/unistr/u32-strncmp-tests: Likewise.
51849         * modules/unistr/u32-strncpy-tests: Likewise.
51850         * modules/unistr/u32-strnlen-tests: Likewise.
51851         * modules/unistr/u32-to-u16-tests: Likewise.
51852         * modules/unistr/u32-to-u8-tests: Likewise.
51853         * modules/unistr/u32-uctomb-tests: Likewise.
51854         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
51855         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
51856         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
51857         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
51858         * modules/uniwidth/u8-strwidth-tests: Likewise.
51859         * modules/uniwidth/u8-width-tests: Likewise.
51860         * modules/uniwidth/u16-strwidth-tests: Likewise.
51861         * modules/uniwidth/u16-width-tests: Likewise.
51862         * modules/uniwidth/u32-strwidth-tests: Likewise.
51863         * modules/uniwidth/u32-width-tests: Likewise.
51864         * modules/uniwidth/width-tests: Likewise.
51866 2010-05-18  Richard Jones  <rjones@redhat.com>
51868         doc: users.txt: list hivex
51869         * users.txt: Add hivex.
51871 2010-05-18  Richard Jones  <rjones@redhat.com>
51873         doc: users.txt: list febootstrap
51874         * users.txt: Add febootstrap.
51876 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
51878         bootstrap: fix an error when gnulib is not used as a git submodule
51879         * build-aux/bootstrap (gnulib_path): If its length is zero then
51880         assign "gnulib" to it.
51881         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
51883 2010-05-16  Bruno Haible  <bruno@clisp.org>
51885         Avoid autoconf warnings about AM_ICONV.
51886         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
51887         2.64.
51889 2010-05-16  Bruno Haible  <bruno@clisp.org>
51891         absolute-header: Make the macro usable in more situations.
51892         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
51893         from gl_ABSOLUTE_HEADER.
51894         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
51896 2010-05-16  James Youngman  <jay@gnu.org>
51898         doc: update users.txt
51899         * users.txt: Add CSSC.
51901 2010-05-16  Jim Meyering  <meyering@redhat.com>
51903         init.sh: fix an error in the previous change; add more comments
51904         * tests/init.sh: Compare exit code in loop against 9, not 2.
51905         Patch by Bruno Haible.
51906         Make the two tests more similar by adding an empty "then" clause.
51907         Add comments.
51909         init.sh: avoid unnecessary shell re-exec
51910         * tests/init.sh: Improve the re-exec-required check to first test the
51911         current shell.  If it passes the test, do not search for a shell that
51912         does pass, and do not re-exec.  This test is particularly contorted to
51913         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
51914         of $(...) evokes a syntax error and causes immediate shell exit with
51915         status 2.  Bruno Haible reported that the re-exec made it impossible
51916         to single-step through any init.sh-using script.
51918 2010-05-16  Bruno Haible  <bruno@clisp.org>
51920         Fix collision between gnulib's and libintl's printf replacements.
51921         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
51922         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
51923         (printf): When using GNU C, map the __printf__ function to rpl_printf
51924         via __asm__. When not using GNU C, define rpl_printf instead of
51925         __printf__.
51926         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
51927         commit.
51928         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
51929         commit.
51930         * m4/asm-underscore.m4: New file.
51931         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
51932         * modules/stdio (Files): Add m4/asm-underscore.m4.
51933         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
51934         Reported by Ben Pfaff.
51936 2010-05-16  Bruno Haible  <bruno@clisp.org>
51938         verify: Avoid skipping the test on openSUSE 11.0.
51939         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
51941 2010-05-13  Bruno Haible  <bruno@clisp.org>
51943         Avoid useless warnings from G++.
51944         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
51945         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
51946         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51948 2010-05-11  Jim Meyering  <meyering@redhat.com>
51950         maint.mk: tweak preceding change
51951         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
51952         regexps tighter by anchoring at EOL, and make the new group "shy"
51953         for slightly decreased overhead.
51955 2010-05-11  Eric Blake  <eblake@redhat.com>
51957         maint.mk: gnulib doesn't guarantee NSIG
51958         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
51960 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
51962         test-pwrite.c: Remove unused variable declaration.
51963         * tests/test-pwrite.c (main): Remove read_buf declaration.
51965         Remove useless test-pwrite.sh file.
51966         * tests/test-pwrite.sh: Delete file.
51967         * modules/pwrite-tests: Remove references.
51968         Reported by Bruno Haible.
51970 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
51972         init.sh: fix a typo
51973         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
51975 2010-05-10  Jim Meyering  <meyering@redhat.com>
51977         maint.mk: avoid using a temporary file in the always-defined-macros check
51978         * top/maint.mk (.re-defmac): Remove rule.
51979         (gl_trap_): Remove definition.
51980         (sc_prohibit_always-defined_macros): Rewrite not to create and
51981         depend on a temporary file.  Instead, depend on GNU grep's ability
51982         to read a list of regular expressions from stdin when given "-f -".
51984 2010-05-09  Bruno Haible  <bruno@clisp.org>
51986         Update to GNU gettext 0.18, part 1.
51987         * m4/gettext.m4: Update to GNU gettext 0.18.
51988         * m4/intl.m4: Likewise.
51989         * m4/po.m4: Likewise.
51990         * modules/gettext (Files): Add m4/fcntl-o.m4.
51991         (configure.ac): Require gettext infrastructure from version 0.18.
51993 2010-05-09  Jim Meyering  <meyering@redhat.com>
51995         init.sh: enable MALLOC_PERTURB_
51996         * tests/init.sh: Enable glibc's malloc-perturbing option.
51998         maint.mk: improve sc_cross_check_PATH_usage_in_tests
51999         With my recent change in init.sh from the two-line form:
52000             -#   : ${srcdir=.}
52001             -#   . "$srcdir/init.sh"; path_prepend_ .
52002             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
52003         I noticed that using the one-line form would cause this test
52004         to fail with a false-positive, or to stop working altogether,
52005         depending on whether help-version changed or all the tests did.
52006         * top/maint.mk (_hv_regex): Remove this definition.
52007         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
52008         (_hv_regex_strong): Use a stronger regex to check for conformance.
52009         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
52010         Give a separate diagnostic for lack of conforming use.
52012         maint.mk: prohibit definition of symbols defined by gnulib
52013         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
52014         definition of symbols defined by gnulib.
52016 2010-05-09  Bruno Haible  <bruno@clisp.org>
52018         acl: Avoid test failure on Cygwin-hosted mingw.
52019         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
52021 2010-05-09  Bruno Haible  <bruno@clisp.org>
52023         error: Use system's fcntl function.
52024         * lib/error.c (fcntl): Undefine.
52026 2010-05-09  Jim Meyering  <meyering@redhat.com>
52028         verify: adjust formatting to be more consistent
52029         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
52030         argument-list '('s, and after one comma.
52032 2010-05-09  Bruno Haible  <bruno@clisp.org>
52034         error: More reliable output on mingw.
52035         * lib/error.c: Include <windows.h>.
52036         (is_open): New function.
52037         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
52038         defined.
52040 2010-05-09  Bruno Haible  <bruno@clisp.org>
52042         vasnprintf: Fix syntax errors in libintl build on mingw.
52043         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
52044         pad_ourselves and prec_ourselves after use.
52046 2010-05-08  Bruno Haible  <bruno@clisp.org>
52048         * lib/config.charset: Update comments for Cygwin 1.7.
52049         * lib/localcharset.c: Likewise.
52051 2010-05-07  Jim Meyering  <meyering@redhat.com>
52053         init.sh: improve comments
52054         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
52055         . "${srcdir=.}/init.sh"; path_prepend_ .
52056         Add a note about path_prepend_ and the alternative of using
52057         TESTS_ENVIRONMENT.
52059 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
52061         exclude: Unescape hashed patterns in wildcard mode.
52062         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
52063         to the hash list.
52064         * tests/test-exclude8.sh: New test case.
52065         * modules/exclude-tests: Add new test.
52067 2010-05-05  Eric Blake  <eblake@redhat.com>
52069         verify: automate tests
52070         * modules/verify-tests: New module.
52071         * tests/test-verify.sh: New file.
52072         * tests/test-verify.c: Guard each negative test with a unique id.
52073         Also avoid warning about unused left hand of comma expressions.
52075 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52077         Further improvements to verify.h, suggested by Eric Blake.
52078         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
52079         the GL_* versions, to avoid collision with OpenGL.
52080         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
52081         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
52082         than testing merely whether it's defined.
52084         Modify verify.h to pacify gcc -Wredundant_decls.
52085         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
52086         These use the prefix "GL_" since they're likely to be useful elsewhere.
52087         We may need to break them out into a different .h file.
52088         (__COUNTER__): Define to 0 if the compiler doesn't support it.
52089         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
52090         of verify_function__.
52092 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52094         Tests for module pwrite.
52095         * modules/pwrite-tests: New file.
52096         * tests/test-pwrite.sh: New file.
52097         * tests/test-pwrite.c: New file.
52099         New module pwrite.
52100         * lib/unistd.in.h (pwrite): New declaration.
52101         * lib/pwrite.c: New file, from glibc with modifications.
52102         * m4/pwrite.m4: New file.
52103         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
52104         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
52105         REPLACE_PWRITE.
52106         * modules/pwrite: New file.
52107         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
52108         REPLACE_PWRITE.
52109         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
52110         * doc/posix-functions/pwrite.texi: Mention the new module.
52112 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52114         pread: Update documentation.
52115         * doc/posix-functions/pread.texi: Mention the 'pread' module.
52117 2010-05-04  Eric Blake  <eblake@redhat.com>
52119         docs: update cygwin progress
52120         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
52121         this bug.
52122         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
52123         Added in cygwin 1.7.2.
52124         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
52125         Likewise.
52126         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
52127         Likewise.
52128         * doc/glibc-functions/dup3.texi (dup3): Likewise.
52129         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
52130         * doc/glibc-functions/accept4.texi (accept4): Likewise.
52131         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
52132         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
52133         Mention nproc module.
52134         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
52135         bug in cygwin 1.7.5 addition.
52136         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
52137         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
52138         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
52139         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
52140         1.7.5.
52141         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
52142         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
52143         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
52144         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
52145         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
52146         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
52147         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
52148         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
52149         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
52150         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
52151         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
52152         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
52153         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
52154         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
52155         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
52156         Likewise.
52157         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
52158         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
52159         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
52160         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
52161         Likewise.
52162         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
52163         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
52164         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
52165         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
52166         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
52167         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
52168         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
52169         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
52170         Likewise.
52171         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
52172         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
52173         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
52174         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
52175         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
52176         Likewise.
52177         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
52178         Likewise.
52179         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
52180         Likewise.
52181         * doc/glibc-functions/xdrrec_endofrecord.texi
52182         (xdrrec_endofrecord): Likewise.
52183         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
52184         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
52185         Likewise.
52186         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
52187         Likewise.
52189 2010-05-04  Jim Meyering  <meyering@redhat.com>
52191         gendocs.sh: make its "-s FILE" option more useful
52192         * build-aux/gendocs.sh: When honoring the -s FILE option, update
52193         $PACKAGE to reflect the probably-different basename of "FILE".
52195 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
52197         bootstrap: don't ignore download_po_files failure
52198         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
52199         failure.
52201 2010-05-03  Jim Meyering  <meyering@redhat.com>
52203         maint.mk: allow to pass options to gendocs.sh
52204         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
52205         (gendocs_options_): New overridable variable.
52207         gnu-web-doc-update: don't ignore configure or build failure
52208         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
52210         announce-gen: backslash-escape '@'s in --help output
52211         * build-aux/announce-gen: Fix syntax errors.
52213         maint.mk, announce-gen: allow project-specific announcement mail headers
52214         * top/maint.mk (translation_project_): Define default.
52215         (announcement_Cc_, announcement_mail_headers_): Likewise.
52216         (announcement): Invoke announce-gen with new --mail-headers option.
52217         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
52219         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
52220         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
52221         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
52222         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
52223         line in the "err2" output file when running "make check" in verbose
52224         mode (i.e., with set -x enabled).
52226 2010-05-03  Bruno Haible  <bruno@clisp.org>
52228         wctob: Fix for weird platforms.
52229         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
52230         argument value.
52232 2010-05-03  Jim Meyering  <meyering@redhat.com>
52234         maint.mk: prohibit unwarranted use of <strings.h>
52235         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
52236         strings.h in a file that does not also use strcasecmp, strncasecmp,
52237         ffs or ffsll.
52239         maint.mk: remove obsolete comments
52240         * top/maint.mk: Remove stale, commented-out rules.
52242 2010-05-02  Bruno Haible  <bruno@clisp.org>
52244         wcwidth: Declare also when it's aliased.
52245         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
52246         macro.
52248 2010-05-02  Bruno Haible  <bruno@clisp.org>
52250         Fix regression from 2010-04-25.
52251         * gnulib-tool (func_modules_transitive_closure): Check the status of
52252         all modules, not only of the tests that are of the form foo-tests where
52253         foo is a module.
52255 2010-05-02  Bruno Haible  <bruno@clisp.org>
52257         wctob: Work around nasty Cygwin 1.7.2 bug.
52258         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
52259         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
52261 2010-05-01  Bruno Haible  <bruno@clisp.org>
52263         fpurge: Sharper test.
52264         * tests/test-fpurge.c (main): Add one more ftell check.
52265         * modules/fpurge-tests (Depends-on): Add ftell.
52266         Suggested by Eric Blake.
52268 2010-05-01  Bruno Haible  <bruno@clisp.org>
52270         ftello: Another test.
52271         * tests/test-ftello3.c: New file.
52272         * modules/ftello-tests (Files): Add it.
52273         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52274         MOSTLYCLEANFILES.
52276         ftell: Another test.
52277         * tests/test-ftell3.c: New file.
52278         * modules/ftell-tests (Files): Add it.
52279         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
52280         MOSTLYCLEANFILES.
52282 2010-05-01  Bruno Haible  <bruno@clisp.org>
52284         ftell, ftello: Work around Solaris bug.
52285         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
52286         * lib/ftello.c: Include stdio-impl.h.
52287         (ftello): On Solaris, when _IOWRT is set, compute the result without
52288         looking at _IOREAD.
52289         * modules/ftello (Files): Add lib/stdio-impl.h.
52290         * doc/posix-functions/ftell.texi: Mention Solaris bug.
52291         * doc/posix-functions/ftello.texi: Likewise.
52292         Reported by Eric Blake.
52294 2010-05-01  Bruno Haible  <bruno@clisp.org>
52296         freading: Adapt to special meaning of _IOREAD flag on Solaris.
52297         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
52298         the _IOWRT flag is also set.
52300 2010-05-01  Bruno Haible  <bruno@clisp.org>
52302         Fix doc about a HP-UX stdio bug.
52303         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
52304         * doc/posix-functions/ftello.texi: Likewise.
52306 2010-05-01  Bruno Haible  <bruno@clisp.org>
52308         lseek test: Fix failure on Solaris.
52309         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
52310         output.
52312 2010-04-30  Jim Meyering  <meyering@redhat.com>
52314         bootstrap: don't ignore failure to generate po*/Makevars
52315         * build-aux/bootstrap (with_gettext): Don't ignore failure
52316         to create po/Makevars or runtime-po/Makevars.
52318 2010-04-29  Eric Blake  <eblake@redhat.com>
52320         headers: relax license to LGPLv2+
52321         * modules/fcntl-h (License): Relax license.
52322         * modules/getopt-posix (License): Likewise.
52323         * modules/locale (License): Likewise.
52324         * modules/math (License): Likewise.
52325         * modules/pty (License): Likewise.
52326         * modules/sched (License): Likewise.
52327         * modules/search (License): Likewise.
52328         * modules/spawn (License): Likewise.
52329         * modules/stdarg (License): Likewise.
52330         * modules/sysexits (License): Likewise.
52332 2010-04-29  Jim Meyering  <meyering@redhat.com>
52334         inttypes: relax license to LGPLv2+
52335         * modules/inttypes (License): Relax license.
52337 2010-04-29  Simon Josefsson  <simon@josefsson.org>
52339         * top/maint.mk (indent): Run twice to produce idempotent results.
52341 2010-04-28  Bruno Haible  <bruno@clisp.org>
52343         getdate: Generate getdate.c in the source directory.
52344         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
52345         MOSTLYCLEANFILES.
52346         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
52348 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
52350         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
52351         is not declared as a const *; avoid warnings in that case.
52353 2010-04-28  Eric Blake  <eblake@redhat.com>
52355         canonicalize-lgpl: avoid compiler warning
52356         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
52357         declaration' / 'extraneous semicolon' warning with some compilers.
52358         Reported by Andreas Gruenbacher.
52360 2010-04-28  Jim Meyering  <meyering@redhat.com>
52362         init.sh: ensure a more reliable exit status when exiting via trap
52363         * tests/init.sh (setup_): Don't rely on $? in signal handler.
52364         Inspired by patches from Dmitry V. Levin.
52365         Also trap on signal 3 (SIGQUIT).
52367 2010-04-27  Bruno Haible  <bruno@clisp.org>
52369         Update doc about utimes().
52370         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
52371         'utimens' module.
52372         Reported by Andreas Gruenbacher <agruen@suse.de>.
52374 2010-04-27  Eric Blake  <eblake@redhat.com>
52376         full-read, full-write: relax license
52377         * modules/full-read (License): Drop to LGPLv2+.
52378         * modules/full-write (License): Likewise.
52379         * modules/safe-read (License): Likewise.
52380         * modules/safe-write (License): Likewise.
52382         pthread: mention library for linking
52383         * modules/pthread (Link): Mention $(LIB_PTHREAD).
52385 2010-04-27  Jim Meyering  <meyering@redhat.com>
52387         maint.mk: fix a bug introduced in last change
52388         * top/maint.mk (gl_assured_headers_): Now that all names are on
52389         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
52390         is not anchored to end of word, it should be adequate.
52392         maint.mk: avoid side-effect in latest syntax-check
52393         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
52394         to run commands via $(shell...), and hence to incur cost only when
52395         the new rule is actually run.
52397         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
52398         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
52399         and use that to create a regexp used to detect all #if HAVE_..._H uses.
52400         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
52401         (gl_assured_headers_, az_, AZ_): Define.
52402         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
52404 2010-04-26  Jim Meyering  <jim@meyering.net>
52405             Bruno Haible  <bruno@clisp.org>
52407         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
52408         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
52409         Prompted by an exchange with Gilles Espinasse.
52411 2010-04-26  Jim Meyering  <meyering@redhat.com>
52413         git-version-gen: aesthetic tweak
52414         * build-aux/git-version-gen: Use "$nl" rather than a literal,
52415         so that the command remains on a single line.
52417 2010-04-26  Eric Blake  <eblake@redhat.com>
52419         git-version-gen: allow use on EBCDIC hosts
52420         * build-aux/git-version-gen (dirty): Use literal rather than tying
52421         ourselves to ascii.
52422         Reported by Steve Goetze.
52424 2010-04-25  Bruno Haible  <bruno@clisp.org>
52426         netdb: Add support for GNULIB_POSIXCHECK.
52427         * lib/netdb.in.h: Include warn-on-use.h.
52428         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
52429         functions are used when GNULIB_POSIXCHECK is defined and the
52430         getaddrinfo module is not in use.
52431         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
52432         freeaddrinfo, gai_strerror, getnameinfo are declared.
52433         * modules/netdb (Depends-on): Add warn-on-use.
52434         (Makefile.am): Include warn-on-use.h in netdb.h.
52436 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
52438         build: avoid "make check" failure without .git/ directory
52439         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
52440         there is no .git/ directory.
52442 2010-04-25  Bruno Haible  <bruno@clisp.org>
52444         ptsname: Fix misuse of ttyname_r.
52445         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
52446         of errno.
52448 2010-04-25  Bruno Haible  <bruno@clisp.org>
52450         ttyname_r: Make it work on Solaris 10.
52451         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
52452         if the system function has the POSIX declaration. Test whether the
52453         function fails if the buffer is less than 128 bytes large.
52454         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
52455         system's ttyname_r function. Provide a reasonably large buffer.
52456         * modules/ttyname_r (Depends-on): Add extensions.
52457         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
52459 2010-04-25  Bruno Haible  <bruno@clisp.org>
52461         Use the 'extensions' module for some more functions on Solaris.
52462         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
52463         module.
52464         * doc/posix-functions/ctime_r.texi: Likewise.
52465         * doc/posix-functions/getgrgid_r.texi: Likewise.
52466         * doc/posix-functions/getgrnam_r.texi: Likewise.
52467         * doc/posix-functions/getpwnam_r.texi: Likewise.
52468         * doc/posix-functions/getpwuid_r.texi: Likewise.
52469         * doc/posix-functions/readdir_r.texi: Likewise.
52470         * doc/posix-functions/sigwait.texi: Likewise.
52471         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
52472         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
52474 2010-04-25  Bruno Haible  <bruno@clisp.org>
52476         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
52477         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
52478         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
52479         * lib/ttyname_r.c: Include <limits.h>.
52480         (ttyname_r): Define using the system's ttyname_r function, if it exists
52481         and not on Solaris.
52482         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
52483         set.
52484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
52485         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
52486         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
52487         Reported by Simon Josefsson.
52489 2010-04-25  Bruno Haible  <bruno@clisp.org>
52491         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
52492         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
52493         * doc/posix-functions/ctime_r.texi: Likewise.
52494         * doc/posix-functions/getgrgid_r.texi: Likewise.
52495         * doc/posix-functions/getgrnam_r.texi: Likewise.
52496         * doc/posix-functions/getlogin_r.texi: Likewise.
52497         * doc/posix-functions/getpwnam_r.texi: Likewise.
52498         * doc/posix-functions/getpwuid_r.texi: Likewise.
52499         * doc/posix-functions/readdir_r.texi: Likewise.
52500         * doc/posix-functions/sigwait.texi: Likewise.
52501         * doc/posix-functions/ttyname_r.texi: Likewise.
52502         Reported by Simon Josefsson.
52504 2010-04-25  Bruno Haible  <bruno@clisp.org>
52506         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
52507         * gnulib-tool (func_usage): Document that --with-*-tests options apply
52508         also to --create-testdir.
52509         (func_acceptable): Don't consider the status of *-tests modules here.
52510         (func_modules_transitive_closure): Consider it here, before including a
52511         test module.
52512         (func_import, func_create_testdir): Set inc_all_direct_tests,
52513         inc_all_indirect_tests.
52514         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
52515         --create-testdir and --create-megatestdir.
52517 2010-04-25  Bruno Haible  <bruno@clisp.org>
52519         gnulib-tool: Add --without-*-tests options.
52520         * gnulib-tool (func_usage): Document the --without-*-tests options.
52521         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
52522         excl_unportable_tests): New variables.
52523         Fail if they are specified with --import or --update.
52524         (func_acceptable): Respect the excl_*_tests variables.
52525         (func_import): Set the excl_*_tests variables to empty.
52527 2010-04-25  Simon Josefsson  <simon@josefsson.org>
52528             Bruno Haible  <bruno@clisp.org>
52530         Work around a MacOS X 10.4 bug with openpty.
52531         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
52532         * tests/test-openpty.c (main): Close the master side explicitly.
52534 2010-04-25  Bruno Haible  <bruno@clisp.org>
52536         strnlen: Fix a C++ test error on MacOS X and Solaris.
52537         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
52538         the function is not declared.
52539         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
52540         Simon Josefsson.
52542 2010-04-24  Bruno Haible  <bruno@clisp.org>
52544         Avoid a gcc warning.
52545         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
52546         of correct type for %08lx directive.
52547         Reported by Eric Blake.
52549 2010-04-24  Bruno Haible  <bruno@clisp.org>
52551         vasnprintf: Correct errno value in case of out-of-memory.
52552         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
52553         or sprintf. Use the errno value from SNPRINTF or sprintf.
52554         Reported by Ian Beckwith <ianb@erislabs.net>.
52556 2010-04-24  Bruno Haible  <bruno@clisp.org>
52558         ansi-c++-opt: Find correct compiler when cross-compiling.
52559         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
52560         AC_CHECK_PROGS.
52561         Reported by Simon Josefsson.
52563 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
52565         vc-list-files: Add support for subversion
52566         * build-aux/vc-list-files: Use "svn list" to generate the list of
52567         files controlled by subversion.
52569 2010-04-23  Jim Meyering  <meyering@redhat.com>
52571         vc-list-files tests: convert to use init.sh
52572         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
52573         path_prepend_.
52574         Use Exit, not exit.
52575         Use skip_ rather than open coding it.
52576         Remove trap set-up and compare definitions.
52577         * tests/test-vc-list-files-git.sh: Likewise.
52578         * modules/vc-list-files-tests (Files): Add tests/init.sh.
52580 2010-04-22  Simon Josefsson  <simon@josefsson.org>
52582         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
52583         backup files.
52585 2010-04-21  Simon Josefsson  <simon@josefsson.org>
52587         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
52589 2010-04-20  Eric Blake  <eblake@redhat.com>
52591         tests: be robust to ignored SIGPIPE
52592         * tests/test-select-in.sh: Consume all output.
52593         * tests/test-lseek.sh: Check correct exit status, while avoiding
52594         EPIPE.
52596 2010-04-20  Simon Josefsson  <simon@josefsson.org>
52597             Bruno Haible  <bruno@clisp.org>
52599         visibility: Don't use -fvisibility if it leads to a warning.
52600         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
52601         yes, don't pretend that visibility works if it leads to a warning.
52602         Reported by Mike Gran <spk121@yahoo.com>.
52604 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
52606         * build-aux/bootstrap: Use "git -h" for testing for supported options
52607         instead of "git --help".  The short-form option only shows a summary,
52608         and doesn't layout the full man page.  Grep for the full option name
52609         in the summary, too.
52611 2010-04-19  Bruno Haible  <bruno@clisp.org>
52613         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
52614         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
52615         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
52616         mention of RELOCATABLE_STRIP.
52617         Reported by Sylvain Beucler <beuc@beuc.net>.
52619 2010-04-19  Bruno Haible  <bruno@clisp.org>
52621         * lib/diffseq.h: Fix typo in comment.
52622         Reported by Eric Blake.
52624 2010-04-19  Bruno Haible  <bruno@clisp.org>
52626         ioctl: Move autoconf macro to a .m4 file.
52627         * m4/ioctl.m4: New file, extracted from modules/ioctl.
52628         * modules/ioctl (Files): Add it.
52629         (configure.ac): Simply invoke gl_FUNC_IOCTL.
52630         Reported by Ian Beckwith <ianb@erislabs.net>.
52632 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
52633             Bruno Haible  <bruno@clisp.org>
52635         diffseq: Accommodate use-case with abstract arrays.
52636         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
52637         is not defined.
52638         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
52639         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
52641 2010-04-18  Bruno Haible  <bruno@clisp.org>
52643         * doc/posix-headers/stdbool.texi: More precise wording.
52645 2010-04-17  Jim Meyering  <meyering@redhat.com>
52647         maint.mk: use gnu-style indentation in an embedded perl script
52648         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
52649         Rename variable: s/two/last_two_bytes/
52651 2010-04-16  Eric Blake  <eblake@redhat.com>
52653         test-stdbool: skip test that fails with Solaris CC
52654         * tests/test-stdbool.c (f): Skip test that causes compilation
52655         error under buggy C++ compiler.
52656         * lib/stdbool.in.h: Document the limitation.
52657         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
52659         setenv: allow compilation with C++
52660         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
52661         register keyword.
52663         stdint: allow test to pass with C++
52664         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
52666         getopt: allow compilation with C++
52667         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
52668         struct.
52669         * lib/getopt.c (_getopt_internal_r): Use correct type.
52670         Reported by Dagobert Michelson, via Joel E. Denny.
52672 2010-04-16  Bruno Haible  <bruno@clisp.org>
52674         Override netdb.h always.
52675         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
52676         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
52677         Reported by Ludovic Courtès <ludo@gnu.org>.
52679 2010-04-15  Bruno Haible  <bruno@clisp.org>
52681         openpty: Fix mistake from 2010-03-21.
52682         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
52683         Reported by Simon Josefsson.
52685 2010-04-15  Eric Blake  <eblake@redhat.com>
52687         test-forkpty: fix expected signature
52688         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
52689         Reported by Simon Josefsson.
52691 2010-04-15  Jim Meyering  <meyering@redhat.com>
52693         maint.mk: texinfo_suffix_re_: correct the default regexp
52694         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
52696         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
52697         make it configurable via texinfo_suffix_re_.
52699 2010-04-14  Eric Blake  <eblake@redhat.com>
52701         strtok_r: relax license to LGPLv2+
52702         * modules/strtok_r (License): Relax license.
52703         Reported by Matthias Bolte.
52705 2010-04-14  Simon Josefsson  <simon@josefsson.org>
52707         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
52708         version 1.4.4 by default instead of requiring the libgcrypt
52709         version used during build.  This makes it possible to use the
52710         application with older but still binary compatible libgcrypt
52711         versions.
52713 2010-04-13  Eric Blake  <eblake@redhat.com>
52715         getopt-gnu: match recent glibc fixes and posix ruling
52716         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
52717         '+' handling, when requesting extensions.
52718         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
52719         'W;' handling.
52720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
52721         * doc/posix-functions/getopt.texi (getopt): Document this.
52722         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
52723         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52724         Likewise.
52726         getopt: merge bug fixes from glibc
52727         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
52728         diagnostics.  Honor '+:' correctly.  Reject ';'.
52730         getopt-posix: detect MacOS bug
52731         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
52732         optind when missing a required argument.
52733         * doc/posix-functions/getopt.texi (getopt): Document the bug.
52734         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
52735         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
52736         Likewise.
52738         getopt-posix: avoid spurious failure on Solaris
52739         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
52740         an indicator that setting optind=1 is sufficient for reset.
52742         getopt-posix: avoid spurious failure on FreeBSD
52743         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
52744         in POSIX mode, since the m4 test uses it.
52746         gnulib-tool: silence warning on BSD sh
52747         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
52749 2010-04-13  Jim Meyering  <meyering@redhat.com>
52751         doc: users.txt: GNU patch now uses gnulib
52752         * users.txt: Add patch.
52754 2010-04-12  Jim Meyering  <meyering@redhat.com>
52756         maint.mk: generate more concise timing data for syntax-check rules
52757         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
52758         " done" from each line that reports a syntax-check test duration.
52760 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
52762         git-version-gen: use "git update-index..." rather than "git status"
52763         * build-aux/git-version-gen: Use git update-index --refresh, not
52764         "git status".  With some versions of git, "git status" would fail
52765         to update the index and result in an unwarranted "-dirty" suffix.
52767 2010-04-11  Jim Meyering  <meyering@redhat.com>
52769         openat: correct formatting (no semantic change)
52770         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
52771         Suggested by Bruno Haible.
52773 2010-04-11  Bruno Haible  <bruno@clisp.org>
52775         Stricter declaration checking in testdirs.
52776         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52777         If for_tests is true, augment AM_CPPFLAGS to define
52778         GNULIB_STRICT_CHECKING.
52779         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
52780         GNULIB_STRICT_CHECKING is defined, verify that the function is
52781         declared.
52783 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
52784             Bruno Haible  <bruno@clisp.org>
52786         libunistring: Improve configure output.
52787         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
52788         Don't say "consider installing GNU libunistring" when checking again
52789         with libiconv.
52791 2010-04-11  Bruno Haible  <bruno@clisp.org>
52793         libunistring: Correct value of $LTLIBUNISTRING.
52794         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
52795         correct the value of $LTLIBUNISTRING.
52797 2010-04-11  Bruno Haible  <bruno@clisp.org>
52799         havelib: Add static libraries to LIBS in the right order.
52800         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
52801         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
52803 2010-04-11  Bruno Haible  <bruno@clisp.org>
52805         libunistring: Detect libunistring also when it depends on libiconv.
52806         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
52807         the second AC_LIB_HAVE_LINKFLAGS invocation.
52809 2010-04-11  James Youngman  <jay@gnu.org>
52811         close-stream: declare local scalars to be "const"
52812         * lib/close-stream.c (close_stream): Make boolean variables const
52813         to document the fact that we set but do not change them.
52815 2010-04-11  Bruno Haible  <bruno@clisp.org>
52817         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
52819 2010-04-11  Jim Meyering  <meyering@redhat.com>
52821         maint.mk: don't include dist-check.mk
52822         * top/maint.mk: Remove bogus include directive.
52824         maint.mk: improve empty-line-at-EOF check
52825         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
52826         solution, rather than tail+Perl-based one.  The latter would read
52827         a few kilobytes from the end of each file, and did not handle empty
52828         files properly.
52830         maint.mk: print the elapsed time for each syntax-check rule
52831         * top/maint.mk (sc_m_rules_): Save start time in a file.
52832         (sc_z_rules_): New rules: remove temp file and print elapsed time.
52833         (local-check): Interpose the .z rules
52835 2010-04-11  Jim Meyering  <meyering@redhat.com>
52837         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
52838         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
52839         empty file with one that ends in an empty line.
52841 2010-04-10  Bruno Haible  <bruno@clisp.org>
52843         mkdir: Make it work on mingw64.
52844         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
52845         * lib/mkdir.c: Update comment.
52846         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
52848 2010-04-10  Bruno Haible  <bruno@clisp.org>
52850         Don't override improved macro from newer autoconf.
52851         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
52852         autoconf >= 2.62.
52853         Reported by Joel E. Denny <jdenny@clemson.edu>.
52855 2010-04-10  Jim Meyering  <meyering@redhat.com>
52857         maint.mk: new syntax-check rule: prohibit empty lines at end of file
52858         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
52860         maint.mk: correct a diagnostic
52861         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
52862         in diagnostic; now use $prohibit.
52864 2010-04-10  Bruno Haible  <address@hidden>
52866         fchownat: Fix a C++ test error on Solaris 8.
52867         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
52868         the function does not exist.
52870 2010-04-10  Bruno Haible  <bruno@clisp.org>
52872         vasnprintf: Add more tests.
52873         * tests/test-vasnprintf-posix.c: Include <errno.h>.
52874         (test_function): Test converting an invalid wide string.
52876         vasnprintf: Correct handling of unconvertible wide string arguments.
52877         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
52878         VASNPRINTF.
52879         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
52880         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
52881         smaller than the expected maximum need for the directive. Set errno to
52882         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
52883         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
52884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
52885         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
52886         * modules/vasnprintf (Files): Add m4/printf.m4.
52887         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52889 2010-04-10  Bruno Haible  <bruno@clisp.org>
52891         vasnprintf: Fix crash in %ls directive.
52892         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
52893         string is passed as argument to %ls, with no precision and no width.
52894         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52896 2010-04-10  Bruno Haible  <bruno@clisp.org>
52898         vasnprintf: Fix multiple test failures on mingw.
52899         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
52900         _snprintf, or snwprintf, not _snwprintf.
52902 2010-04-10  Bruno Haible  <bruno@clisp.org>
52904         write: Fix a C++ test error on mingw.
52905         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
52907 2010-04-10  Bruno Haible  <bruno@clisp.org>
52909         vasnprintf test: Reduce code duplication.
52910         * tests/test-vasnprintf.c (test_function): New function, extracted from
52911         test_vasnprintf.
52912         (test_vasnprintf, test_asnprintf): Invoke it.
52914 2010-04-10  Bruno Haible  <bruno@clisp.org>
52916         strnlen: Fix warning in C++ mode on MacOS X.
52917         * lib/string.in.h (strnlen): Use the modern idiom.
52918         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
52919         defining strnlen as a macro already in <config.h>.
52920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52921         REPLACE_STRNLEN.
52922         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
52923         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52925 2010-04-08  James Youngman  <jay@gnu.org>
52927         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
52928         the example.
52930 2010-04-09  Jim Meyering  <meyering@redhat.com>
52932         maint.mk: print better diagnostic when there is no $(_hv_file)
52933         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
52934         announce that when $(_hv_file) (aka help-version) does not exist.
52936         init.sh: run tr in the "C" locale to avoid multibyte interpretation
52937         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
52938         not try to interpret its random input bytes.  Jarno Rajahalme reported
52939         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
52940         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
52941         (mktempd_): Likewise, just in case.
52943         ftruncate: add two years to projected module removal date: 2012
52944         * m4/ftruncate.m4: Adjust comments.
52946         ftruncate: mark module as obsolete; even MinGW provides it, now
52947         * modules/ftruncate (Status): Obsolete.
52948         (Notice): Say that.
52949         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
52950         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
52952 2010-04-08  Bruno Haible  <bruno@clisp.org>
52954         Fix side effects from tests-related modules.
52955         * modules/dprintf-posix (Comment): New section.
52956         * modules/fprintf-posix (Comment): Likewise.
52957         * modules/obstack-printf-posix (Comment): Likewise.
52958         * modules/printf-posix (Comment): Likewise.
52959         * modules/snprintf-posix (Comment): Likewise.
52960         * modules/sprintf-posix (Comment): Likewise.
52961         * modules/vasnprintf-posix (Comment): Likewise.
52962         * modules/vasprintf-posix (Comment): Likewise.
52963         * modules/vdprintf-posix (Comment): Likewise.
52964         * modules/vfprintf-posix (Comment): Likewise.
52965         * modules/vprintf-posix (Comment): Likewise.
52966         * modules/vsnprintf-posix (Comment): Likewise.
52967         * modules/vsprintf-posix (Comment): Likewise.
52968         * modules/xprintf-posix (Comment): Likewise.
52969         * modules/xvasprintf-posix (Comment): Likewise.
52970         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
52971         * modules/floorf-tests (Depends-on): Likewise.
52972         * modules/round-tests (Depends-on): Likewise.
52973         * modules/roundf-tests (Depends-on): Likewise.
52974         * modules/trunc-tests (Depends-on): Likewise.
52975         * modules/truncf-tests (Depends-on): Likewise.
52976         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
52977         'fprintf-posix' module is not present.
52978         * tests/test-floorf2.c (check): Likewise.
52979         * tests/test-trunc2.c (check): Likewise.
52980         * tests/test-truncf2.c (check): Likewise.
52981         * tests/test-round2.c (equal): Likewise.
52982         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52984 2010-04-07  Karl Berry  <karl@gnu.org>
52986         * config/srclist.txt,
52987         * config/srclistvars.sh,
52988         * config/srclist-update: doc fixes.
52990 2010-04-07  Jim Meyering  <meyering@redhat.com>
52992         maint.mk: add a PATH crosschecking syntax-check rule
52993         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
52994         Useful if you use a test like the one in help-version (coreutils,
52995         diffutils, grep, gzip) that ensures $(VERSION) matches what is
52996         printed by prog --version.
52998 2010-04-06  Bruno Haible  <bruno@clisp.org>
53000         Fix link error on mingw.
53001         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
53002         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
53004 2010-04-06  Bruno Haible  <bruno@clisp.org>
53006         Assume rmdir exists.
53007         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
53009 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
53011         doc: update users.txt
53012         * users.txt: Add gcal.
53014 2010-04-06  Jim Meyering  <meyering@redhat.com>
53016         init.sh: simply unset TMPDIR rather than risking env -i
53017         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
53018         although it probably works fine on all Unix-based systems, some
53019         systems (Cygwin?) cannot tolerate a totally cleared environment.
53020         Suggestion from Eric Blake.
53022 2010-04-06  Jim Meyering  <meyering@redhat.com>
53024         init.sh: portability fix: use env's POSIX-specified -i option not -u
53025         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
53026         than unportable env -u.  Solaris 5.11's env lacks support for -u.
53028 2010-04-05  Bruno Haible  <bruno@clisp.org>
53030         btowc: Work around Cygwin 1.7.2 bug.
53031         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
53032         does not map NUL to 0.
53033         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
53035 2010-04-05  Bruno Haible  <bruno@clisp.org>
53037         Make the multithread modules work on Cygwin 1.7.2.
53038         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
53039         imported symbols can be declared weak, so that it returns "no" on
53040         Cygwin 1.7.2.
53042 2010-04-05  Bruno Haible  <bruno@clisp.org>
53044         Use the module 'strncat'.
53045         * modules/unistr/u8-strncat (Depends-on): Add strncat.
53047         Tests for module 'strncat'.
53048         * modules/strncat-tests: New file.
53049         * tests/test-strncat.c: New file.
53051         New module 'strncat'.
53052         * lib/string.in.h (strncat): New declaration.
53053         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
53054         * m4/strncat.m4: New file, based on m4/memchr.m4.
53055         * modules/strncat: New file.
53056         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
53057         is declared.
53058         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
53059         REPLACE_STRNCAT.
53060         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
53061         REPLACE_STRNCAT.
53062         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
53063         module.
53064         * tests/test-string-c++.cc: Check signature of strncat.
53066 2010-04-05  Jim Meyering  <meyering@redhat.com>
53068         xstrtoumax-tests: convert to use init.sh
53069         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
53070         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53071         Use Exit, not exit.
53072         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53074         xstrtoimax-tests: convert to use init.sh
53075         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
53076         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53077         Use Exit, not exit.
53078         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53080 2010-04-05  Bruno Haible  <bruno@clisp.org>
53082         sys_socket: Avoid #define replacements in C++ mode.
53083         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
53084         warning to the function if possible, rather than #defining the symbol
53085         to a dysfunctional alias.
53087 2010-04-05  Bruno Haible  <bruno@clisp.org>
53089         fseeko: Fix C++ test error on mingw.
53090         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
53091         gl_FUNC_FSEEKO.
53092         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
53093         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
53094         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
53095         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
53097 2010-04-05  Bruno Haible  <bruno@clisp.org>
53099         duplocale: Improve test output.
53100         * tests/test-duplocale.c (main): Print reason for skipped test.
53102 2010-04-05  Bruno Haible  <bruno@clisp.org>
53104         Assume rmdir exists.
53105         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
53106         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
53108 2010-04-05  Bruno Haible  <bruno@clisp.org>
53110         Fix link error on Solaris 8 with cc.
53111         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
53113 2010-04-05  Bruno Haible  <bruno@clisp.org>
53115         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53116         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
53118 2010-04-05  Bruno Haible  <bruno@clisp.org>
53120         vasprintf: Update documentation.
53121         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
53123 2010-04-05  Bruno Haible  <bruno@clisp.org>
53125         ptsname: Improve test.
53126         * tests/test-ptsname.c (main): Also try the various master names of BSD
53127         systems.
53129 2010-04-05  Bruno Haible  <bruno@clisp.org>
53131         memchr: Avoid a possible C++ test error.
53132         * lib/string.in.h (memchr): Provide declaration if function is missing.
53133         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
53134         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
53135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
53136         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
53138 2010-04-05  Bruno Haible  <bruno@clisp.org>
53140         strtok_r: Improve idiom.
53141         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
53142         AC_LIBOBJ is used.
53144 2010-04-05  Bruno Haible  <bruno@clisp.org>
53146         strdup: Improve idiom.
53147         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
53148         AC_LIBOBJ is used.
53149         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
53150         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
53151         when AC_LIBOBJ is used.
53153 2010-04-05  Bruno Haible  <bruno@clisp.org>
53155         mbsinit, mbrtowc, wcrtomb: Improve idioms.
53156         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
53157         don't set REPLACE_MBSINIT to 1.
53158         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
53159         don't set REPLACE_MBRTOWC to 1.
53160         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
53161         exist, don't set REPLACE_MBSRTOWCS to 1.
53162         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
53163         exist, don't set REPLACE_MBSNRTOWCS to 1.
53164         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
53165         don't set REPLACE_WCRTOMB to 1.
53166         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
53167         exist, don't set REPLACE_WCSRTOMBS to 1.
53168         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
53169         exist, don't set REPLACE_WCSNRTOMBS to 1.
53171 2010-04-05  Bruno Haible  <bruno@clisp.org>
53173         ldexpl: Improve idiom.
53174         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
53175         make sure to set HAVE_DECL_LDEXPL to 0.
53177 2010-04-05  Jim Meyering  <meyering@redhat.com>
53179         xstrtol-tests: convert to use init.sh
53180         * modules/xstrtol-tests (Files): Add tests/init.sh.
53181         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53182         Use Exit, not exit.
53183         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53185         atexit-tests: convert to use init.sh
53186         * modules/atexit-tests (Files): Add tests/init.sh.
53187         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53188         Use Exit, not exit.
53189         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53191         init.sh: fix typo
53192         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
53194         init.sh: make it easier for a test script to write to the tty, ...
53195         when using automake's parallel-tests mode.
53196         * tests/init.sh (stderr_fileno_): Define overridable variable.
53197         (warn_): New function, to use it.
53198         (fail_, skip_, framework_failure_): Use warn_.
53200 2010-04-04  Bruno Haible  <bruno@clisp.org>
53202         btowc: Avoid warning.
53203         * lib/btowc.c: Include <stdlib.h>.
53204         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
53206 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53207             Bruno Haible  <bruno@clisp.org>
53209         wchar: Port to NetBSD 1.5.
53210         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
53211         * lib/wctype.in.h (WEOF): Likewise.
53213 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53214             Bruno Haible  <bruno@clisp.org>
53216         Port extended stdio to NetBSD 1.5.
53217         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
53218         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
53219         older.
53221 2010-04-04  Bruno Haible  <bruno@clisp.org>
53223         string: Remove unused substitution.
53224         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53225         HAVE_DECL_STRERROR.
53226         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
53228 2010-04-04  Bruno Haible  <bruno@clisp.org>
53230         strtod: Avoid a possible C++ test error.
53231         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
53232         set REPLACE_STRTOD.
53234 2010-04-04  Bruno Haible  <bruno@clisp.org>
53236         strerror: Update documentation.
53237         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
53239 2010-04-04  Bruno Haible  <bruno@clisp.org>
53241         stdio: Fix some C++ test errors on Solaris 8 with GCC.
53242         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
53243         _GL_CXXALIAS_SYS_CAST.
53245 2010-04-04  Bruno Haible  <bruno@clisp.org>
53247         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53248         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
53249         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
53250         REPLACE_FREXPL to 1.
53251         * doc/posix-functions/frexpl.texi: Update documentation.
53253 2010-04-04  Bruno Haible  <bruno@clisp.org>
53255         math: Fix some C++ test errors on Solaris 8 and Cygwin.
53256         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
53258 2010-04-04  Bruno Haible  <bruno@clisp.org>
53260         Implement nanosleep for native Windows.
53261         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
53263 2010-04-04  Bruno Haible  <bruno@clisp.org>
53265         math: Fix some C++ test errors on Solaris 8.
53266         * lib/math.in.h (truncf, trunc): Use simpler idiom.
53268 2010-04-04  Bruno Haible  <bruno@clisp.org>
53270         math: Fix some C++ test errors on Cygwin.
53271         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
53272         truncl): Provide declaration if the system does not have it.
53273         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
53274         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
53275         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
53276         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
53277         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
53278         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
53279         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
53280         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
53281         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
53282         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
53283         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
53284         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
53285         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
53286         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
53287         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
53288         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
53289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
53290         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53291         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53292         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
53293         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
53294         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
53296 2010-04-04  Bruno Haible  <bruno@clisp.org>
53298         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
53299         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
53300         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
53301         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53302         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
53303         * m4/isinf.m4 (gl_ISINF): Likewise.
53304         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
53306 2010-04-04  Bruno Haible  <bruno@clisp.org>
53308         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
53309         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
53311 2010-04-04  Bruno Haible  <bruno@clisp.org>
53313         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
53314         * modules/tmpfile (configure.ac): Update.
53316         tmpfile: Fix C++ test error on mingw.
53317         * lib/stdio.in.h (tmpfile): New declaration.
53318         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
53319         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
53320         * modules/tmpfile (Depends-on): Add stdio.
53321         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53322         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
53323         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
53324         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
53325         REPLACE_TMPFILE.
53326         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
53328 2010-04-04  Bruno Haible  <bruno@clisp.org>
53330         ioctl: Fix C++ test error on mingw.
53331         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
53332         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
53333         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
53335 2010-04-03  Bruno Haible  <bruno@clisp.org>
53337         wcwidth: Fix C++ test error on mingw.
53338         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
53339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
53340         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
53342 2010-04-03  Bruno Haible  <bruno@clisp.org>
53344         nanosleep: Fix C++ test error on mingw.
53345         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
53346         * lib/time.in.h (nanosleep): Use modern idiom.
53347         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
53348         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
53349         REPLACE_NANOSLEEP to 1.
53350         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
53351         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
53353 2010-04-03  Bruno Haible  <bruno@clisp.org>
53355         strptime: Fix C++ test error on mingw.
53356         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
53357         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
53358         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
53359         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
53360         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
53361         not REPLACE_STRPTIME.
53362         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
53363         REPLACE_STRPTIME.
53365 2010-04-03  Bruno Haible  <bruno@clisp.org>
53367         timegm: Fix C++ test error on mingw.
53368         * lib/time.in.h (timegm): Use modern idiom.
53369         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
53370         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
53371         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
53372         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
53374 2010-04-03  Bruno Haible  <bruno@clisp.org>
53376         timegm: Assume declaration if function exists.
53377         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
53378         if it exists. Don't clobber ac_cv_func_timegm.
53380 2010-04-03  Bruno Haible  <bruno@clisp.org>
53382         time_r: Fix C++ test error on mingw.
53383         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
53384         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
53385         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
53386         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
53387         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
53389 2010-04-03  Bruno Haible  <bruno@clisp.org>
53391         time_r: Minor updates.
53392         * modules/time_r (Description): Mention the provided functions.
53393         * lib/time_r.c: Don't include <string.h>.
53394         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
53395         * doc/posix-functions/localtime_r.texi: Likewise.
53397 2010-04-03  Bruno Haible  <bruno@clisp.org>
53399         time: Fix regression introduced on 2010-03-08.
53400         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
53401         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
53403 2010-04-03  Jim Meyering  <meyering@redhat.com>
53405         maint.mk: don't silently disable project-specific syntax-check rules
53406         * top/maint.mk (_prohibit_regexp): Define, to help people realize
53407         that they need to convert their project-specific syntax-check rules
53408         to use the new _sc_search_regexp.
53410 2010-04-03  Bruno Haible  <bruno@clisp.org>
53412         fchdir: Fix regression introduced on 2010-03-08.
53413         * lib/unistd.in.h (fchdir): Fix declaration.
53414         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
53415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
53416         REPLACE_FCHDIR.
53417         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
53418         REPLACE_FCHDIR.
53420 2010-04-03  Bruno Haible  <bruno@clisp.org>
53422         getpagesize: Fix C++ test error on mingw.
53423         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
53424         system does not declare the function.
53425         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
53426         declared.
53427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53428         HAVE_DECL_GETPAGESIZE.
53429         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
53431 2010-04-03  Bruno Haible  <bruno@clisp.org>
53433         stdio: Make C++ tests work on mingw.
53434         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
53435         does not declare the function.
53437 2010-04-03  Bruno Haible  <bruno@clisp.org>
53439         ftello: Fix C++ test error on mingw.
53440         * lib/stdio.in.h (ftello): Use modern idiom.
53441         * lib/ftello.c (ftello): Renamed from rpl_ftello.
53442         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
53443         is missing and that it needs to be replaced.
53444         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
53445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
53446         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
53448 2010-04-03  Bruno Haible  <bruno@clisp.org>
53450         fseeko: Fix C++ test error on mingw.
53451         * lib/stdio.in.h (fseeko): Use modern idiom.
53452         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
53453         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
53454         is missing and that it needs to be replaced.
53455         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
53456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
53457         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
53459 2010-04-03  Bruno Haible  <bruno@clisp.org>
53461         mkstemp: Fix C++ test error on mingw.
53462         * lib/stdlib.in.h (mkstemp): Use modern idiom.
53463         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
53464         function is missing and that it needs to be replaced.
53465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
53466         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
53468 2010-04-03  Bruno Haible  <bruno@clisp.org>
53470         stpncpy: Fix C++ test error on mingw.
53471         * lib/string.in.h (stpncpy): Use modern idiom.
53472         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
53473         function is missing and that it needs to be replaced.
53474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53475         REPLACE_STPNCPY.
53476         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
53478 2010-04-03  Bruno Haible  <bruno@clisp.org>
53480         sys_stat: Fix C++ test error on mingw.
53481         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
53482         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
53484 2010-04-03  Bruno Haible  <bruno@clisp.org>
53486         pty: Update doc.
53487         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
53489 2010-04-03  Bruno Haible  <bruno@clisp.org>
53491         unistd: Fix C++ test error on mingw.
53492         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
53494 2010-04-03  Bruno Haible  <bruno@clisp.org>
53496         Update doc regarding mingw.
53497         * doc/glibc-functions/openpty.texi: Update regarding mingw.
53498         * doc/glibc-functions/login_tty.texi: Likewise.
53499         * doc/glibc-functions/forkpty.texi: Likewise.
53501 2010-04-03  Bruno Haible  <bruno@clisp.org>
53503         stdlib: Avoid compilation failure of c-strtold on mingw.
53504         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
53506 2010-04-03  Bruno Haible  <bruno@clisp.org>
53508         locale: Make C++ tests work on Cygwin and mingw.
53509         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
53510         cannot provide the function.
53511         Reported by Simon Josefsson.
53513 2010-04-03  Bruno Haible  <bruno@clisp.org>
53515         localename: Port to MacOS X 10.6.
53516         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
53517         memory layout of the locales in MacOS X 10.6 as well.
53518         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
53520 2010-04-02  Bruno Haible  <bruno@clisp.org>
53522         gnulib-tool: Ensure that long-running tests are executed last.
53523         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
53524         running tests after the one for the other tests.
53526 2010-04-02  Bruno Haible  <bruno@clisp.org>
53528         gnulib-tool: Ensure the tests in the main directory are executed first.
53529         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
53530         start with the current directory.
53532 2010-04-02  Bruno Haible  <bruno@clisp.org>
53534         Tests for module 'havelib', moved here from GNU gettext.
53535         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
53536         modifications.
53537         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
53538         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
53539         with modifications.
53540         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
53541         modifications.
53542         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
53543         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
53544         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
53545         with modifications.
53546         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
53547         with modifications.
53548         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
53549         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
53550         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
53551         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
53552         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
53553         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
53554         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
53555         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
53556         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
53557         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
53558         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
53559         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
53560         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
53561         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
53562         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
53563         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
53564         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
53565         with modifications.
53566         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
53567         with modifications.
53568         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
53569         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
53570         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
53571         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
53572         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
53573         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
53574         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
53575         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
53576         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
53577         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
53578         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
53579         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
53580         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
53581         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
53582         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
53583         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
53584         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
53585         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
53586         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
53587         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
53588         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
53589         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
53590         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
53591         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
53592         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
53593         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
53594         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
53595         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
53596         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
53597         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
53598         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
53599         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
53600         * tests/havelib/rpathx/rpathx.c: New file, from
53601         gettext/autoconf-lib-link.
53602         * tests/havelib/rpathx/Makefile.am: New file, from
53603         gettext/autoconf-lib-link.
53604         * tests/havelib/rpathx/configure.ac: New file, from
53605         gettext/autoconf-lib-link with modifications.
53606         * tests/havelib/rpathy/rpathy.c: New file, from
53607         gettext/autoconf-lib-link.
53608         * tests/havelib/rpathy/Makefile.am: New file, from
53609         gettext/autoconf-lib-link.
53610         * tests/havelib/rpathy/configure.ac: New file, from
53611         gettext/autoconf-lib-link with modifications.
53612         * tests/havelib/rpathz/rpathz.c: New file, from
53613         gettext/autoconf-lib-link.
53614         * tests/havelib/rpathz/Makefile.am: New file, from
53615         gettext/autoconf-lib-link.
53616         * tests/havelib/rpathz/configure.ac: New file, from
53617         gettext/autoconf-lib-link with modifications.
53618         * tests/havelib/rpathlx/usex.c: New file, from
53619         gettext/autoconf-lib-link.
53620         * tests/havelib/rpathlx/Makefile.am: New file, from
53621         gettext/autoconf-lib-link.
53622         * tests/havelib/rpathlx/configure.ac: New file, from
53623         gettext/autoconf-lib-link with modifications.
53624         * tests/havelib/rpathly/usey.c: New file, from
53625         gettext/autoconf-lib-link.
53626         * tests/havelib/rpathly/Makefile.am: New file, from
53627         gettext/autoconf-lib-link.
53628         * tests/havelib/rpathly/configure.ac: New file, from
53629         gettext/autoconf-lib-link with modifications.
53630         * tests/havelib/rpathlz/usez.c: New file, from
53631         gettext/autoconf-lib-link.
53632         * tests/havelib/rpathlz/Makefile.am: New file, from
53633         gettext/autoconf-lib-link.
53634         * tests/havelib/rpathlz/configure.ac: New file, from
53635         gettext/autoconf-lib-link with modifications.
53636         * tests/havelib/rpathlyx/usey.c: New file, from
53637         gettext/autoconf-lib-link.
53638         * tests/havelib/rpathlyx/Makefile.am: New file, from
53639         gettext/autoconf-lib-link.
53640         * tests/havelib/rpathlyx/configure.ac: New file, from
53641         gettext/autoconf-lib-link with modifications.
53642         * tests/havelib/rpathlzyx/usez.c: New file, from
53643         gettext/autoconf-lib-link.
53644         * tests/havelib/rpathlzyx/Makefile.am: New file, from
53645         gettext/autoconf-lib-link.
53646         * tests/havelib/rpathlzyx/configure.ac: New file, from
53647         gettext/autoconf-lib-link with modifications.
53648         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
53649         with modifications.
53651 2010-04-02  Bruno Haible  <bruno@clisp.org>
53653         gnulib-tool: Create distributed built sources also for the tests.
53654         * gnulib-tool (func_create_testdir): Also generate distributed built
53655         sources in the tests directory.
53657 2010-04-02  Bruno Haible  <bruno@clisp.org>
53659         gnulib-tool: Obey user's environment variables.
53660         * gnulib-tool (func_create_testdir): When creating built sources,
53661         respect the environment variables for autoconf, automake, etc. given by
53662         the user.
53664 2010-04-02  Bruno Haible  <bruno@clisp.org>
53666         gnulib-tool: Provide the value of --m4-base to modules.
53667         * gnulib-tool (func_import, func_create_testdir): Emit a definition
53668         of gl_m4_base.
53670 2010-04-02  Eric Blake  <eblake@redhat.com>
53672         maint.mk: fix some fallout
53673         * NEWS: Document the incompatible change, and its effect on cfg.mk.
53674         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
53676 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
53678         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
53679         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
53680         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
53681         (sc_cast_of_x_alloc_return_value): Likewise.
53682         (sc_cast_of_alloca_return_value): Likewise.
53683         (sc_space_tab): Likewise.
53684         (sc_prohibit_atoi_atof): Likewise.
53685         (sc_prohibit_magic_number_exit): Likewise.
53686         (sc_error_exit_success): Likewise.
53687         (sc_file_system): Likewise.
53688         (sc_prohibit_have_config_h): Likewise.
53689         (sc_require_config_h): Likewise.
53690         (sc_prohibit_HAVE_MBRTOWC): Likewise.
53691         (sc_obsolete_symbols): Likewise.
53692         (sc_changelog): Likewise.
53693         (sc_program_name): Likewise.
53694         (sc_the_the): Likewise.
53695         (sc_trailing_blank): Likewise.
53696         (sc_two_space_separator_in_usage): Likewise.
53697         (sc_useless_cpp_parens): Likewise.
53698         (sc_GPL_version): Likewise.
53699         (sc_GFDL_version): Likewise.
53700         (sc_texinfo_acronym): Likewise.
53701         (sc_prohibit_cvs_keyword): Likewise.
53702         (sc_prohibit_stat_st_blocks): Likewise.
53703         (sc_prohibit_S_IS_definition): Likewise.
53704         (sc_redundant_const): Likewise.
53705         (sc_makefile_TAB_only_indentation): Likewise.
53706         (sc_m4_quote_check): Likewise.
53707         (sc_makefile_path_separator_check): Likewise.
53708         (sc_copyright_check): Likewise.
53709         (sc_Wundef_boolean): Likewise.
53710         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
53712         maint.mk: match 0 or more whitespace-before-function-call '('
53713         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
53714         that have zero or two-and-more spaces between the function name
53715         and the open parenthesis.
53716         (sc_error_message_warn_fatal): Likewise.
53717         (sc_error_message_uppercase): Likewise.
53718         (sc_error_message_period): Likewise.
53720 2010-03-31  Eric Blake  <eblake@redhat.com>
53722         maint.mk: check for [ as well as test
53723         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
53724         Based on a libvirt report by Matthias Bolte.
53726         gnumakefile: don't squelch _version output
53727         * top/GNUmakefile (_version): Create one-shot dependency rather
53728         than using $(shell) when version must be regenerated.
53729         (_autoreconf): Run verbosely, by default.
53731         sys_time: avoid compiler warnings
53732         * lib/sys_time.in.h (includes): Ensure gcc pragma is
53733         unconditional, fixing regression from 2010-03-29.
53734         Reported by Simon Josefsson.
53736 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
53738         maint.mk: s/_header_without_use/_sc_header_without_use/
53739         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
53740         (sc_prohibit_assert_without_use): Use the new name.
53741         (sc_prohibit_close_stream_without_use): Likewise.
53742         (sc_prohibit_getopt_without_use): Likewise.
53743         (sc_prohibit_quotearg_without_use): Likewise.
53744         (sc_prohibit_quote_without_use): Likewise.
53745         (sc_prohibit_long_options_without_use): Likewise.
53746         (sc_prohibit_inttostr_without_use): Likewise.
53747         (sc_prohibit_ignore_value_without_use): Likewise.
53748         (sc_prohibit_error_without_use): Likewise.
53749         (sc_prohibit_xalloc_without_use): Likewise.
53750         (sc_prohibit_hash_without_use): Likewise.
53751         (sc_prohibit_hash_pjw_without_use): Likewise.
53752         (sc_prohibit_safe_read_without_use): Likewise.
53753         (sc_prohibit_argmatch_without_use): Likewise.
53754         (sc_prohibit_canonicalize_without_use): Likewise.
53755         (sc_prohibit_root_dev_ino_without_use): Likewise.
53756         (sc_prohibit_openat_without_use): Likewise.
53757         (sc_prohibit_c_ctype_without_use): Likewise.
53758         (sc_prohibit_signal_without_use): Likewise.
53759         (sc_prohibit_intprops_without_use): Likewise.
53761 2010-03-30  Eric Blake  <eblake@redhat.com>
53763         maint: improve module indicators
53764         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
53765         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
53766         columns, and avoid extra macro expansion.
53768         fdopendir: work around FreeBSD bug
53769         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
53770         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
53771         * modules/dirent (Makefile.am): Substitute it.
53772         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
53773         declaration.
53774         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
53775         fix.
53776         Reported by Christian Weisgerber <naddy@mips.inka.de>.
53778 2010-03-29  Bruno Haible  <bruno@clisp.org>
53780         Emit #pragma system_header after the inclusion guard, not before.
53781         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
53782         guard that spans the entire file, not before. This enables an
53783         optimization in GCC's preprocessor.
53784         * lib/ctype.in.h: Likewise.
53785         * lib/dirent.in.h: Likewise.
53786         * lib/errno.in.h: Likewise.
53787         * lib/float.in.h: Likewise.
53788         * lib/getopt.in.h: Likewise.
53789         * lib/iconv.in.h: Likewise.
53790         * lib/langinfo.in.h: Likewise.
53791         * lib/locale.in.h: Likewise.
53792         * lib/math.in.h: Likewise.
53793         * lib/netdb.in.h: Likewise.
53794         * lib/netinet_in.in.h: Likewise.
53795         * lib/pty.in.h: Likewise.
53796         * lib/sched.in.h: Likewise.
53797         * lib/se-selinux.in.h: Likewise.
53798         * lib/search.in.h: Likewise.
53799         * lib/spawn.in.h: Likewise.
53800         * lib/stdarg.in.h: Likewise.
53801         * lib/stdint.in.h: Likewise.
53802         * lib/string.in.h: Likewise.
53803         * lib/strings.in.h: Likewise.
53804         * lib/sys_file.in.h: Likewise.
53805         * lib/sys_ioctl.in.h: Likewise.
53806         * lib/sys_time.in.h: Likewise.
53807         * lib/sys_times.in.h: Likewise.
53808         * lib/sys_utsname.in.h: Likewise.
53809         * lib/sys_wait.in.h: Likewise.
53810         * lib/sysexits.in.h: Likewise.
53811         * lib/wctype.in.h: Likewise.
53813 2010-03-28  James Youngman  <jay@gnu.org>
53815         save-cwd: don't leak a file descriptor when the caller execs.
53816         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
53817         saved file descriptor.
53818         * modules/save-cwd (Depends-on): Depend on cloexec.
53820 2010-03-29  Bruno Haible  <bruno@clisp.org>
53822         Remove vestiges of fts-lgpl module.
53823         * lib/fts_.h: Assume GNULIB_FTS is 1.
53824         * lib/fts.c: Likewise.
53825         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
53827 2010-03-28  Bruno Haible  <bruno@clisp.org>
53829         Fix definition of tests witness macro.
53830         * gnulib-tool (func_import): Fix definition of witness macro.
53832 2010-03-28  Bruno Haible  <bruno@clisp.org>
53834         Fix ioctl's protoype on glibc systems.
53835         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
53836         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
53837         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
53838         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
53839         signature. If not, arrange to replace the ioctl function.
53840         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
53841         REPLACE_IOCTL.
53842         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
53843         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
53844         Reported by Ludovic Courtès <ludo@gnu.org>.
53846 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
53848         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
53849         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
53850         made it so grep -r --include=GLOB* ... did not work.
53852 2010-03-26  Jim Meyering  <meyering@redhat.com>
53853             Eric Blake  <eblake@redhat.com>
53855         maint.mk: prohibit use of test's -o and -a operators
53856         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
53858 2010-03-28  Bruno Haible  <bruno@clisp.org>
53860         Remove unused GNULIB_XYZ macro definitions.
53861         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
53862         invocation.
53864 2010-03-28  Bruno Haible  <bruno@clisp.org>
53866         Mark privileged tests modules.
53867         * modules/idpriv-drop-tests (Status): New section.
53868         * modules/idpriv-droptemp-tests (Status): New section.
53870 2010-03-28  Bruno Haible  <bruno@clisp.org>
53872         Split C++ tests into separate tests modules.
53873         * modules/dirent-c++-tests: New file, extracted from
53874         modules/dirent-tests.
53875         * modules/dirent-tests: Depend on it.
53876         * modules/fcntl-h-c++-tests: New file, extracted from
53877         modules/fcntl-h-tests.
53878         * modules/fcntl-h-tests: Depend on it.
53879         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
53880         * modules/glob-tests: Depend on it.
53881         * modules/iconv-h-c++-tests: New file, extracted from
53882         modules/iconv-h-tests.
53883         * modules/iconv-h-tests: Depend on it.
53884         * modules/langinfo-c++-tests: New file, extracted from
53885         modules/langinfo-tests.
53886         * modules/langinfo-tests: Depend on it.
53887         * modules/locale-c++-tests: New file, extracted from
53888         modules/locale-tests.
53889         * modules/locale-tests: Depend on it.
53890         * modules/math-c++-tests: New file, extracted from modules/math-tests.
53891         * modules/math-tests: Depend on it.
53892         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
53893         * modules/pty-tests: Depend on it.
53894         * modules/search-c++-tests: New file, extracted from
53895         modules/search-tests.
53896         * modules/search-tests: Depend on it.
53897         * modules/signal-c++-tests: New file, extracted from
53898         modules/signal-tests.
53899         * modules/signal-tests: Depend on it.
53900         * modules/spawn-c++-tests: New file, extracted from
53901         modules/spawn-tests.
53902         * modules/spawn-tests: Depend on it.
53903         * modules/stdio-c++-tests: New file, extracted from
53904         modules/stdio-tests.
53905         * modules/stdio-tests: Depend on it.
53906         * modules/stdlib-c++-tests: New file, extracted from
53907         modules/stdlib-tests.
53908         * modules/stdlib-tests: Depend on it.
53909         * modules/string-c++-tests: New file, extracted from
53910         modules/string-tests.
53911         * modules/string-tests: Depend on it.
53912         * modules/sys_ioctl-c++-tests: New file, extracted from
53913         modules/sys_ioctl-tests.
53914         * modules/sys_ioctl-tests: Depend on it.
53915         * modules/sys_select-c++-tests: New file, extracted from
53916         modules/sys_select-tests.
53917         * modules/sys_select-tests: Depend on it.
53918         * modules/sys_socket-c++-tests: New file, extracted from
53919         modules/sys_socket-tests.
53920         * modules/sys_socket-tests: Depend on it.
53921         * modules/sys_stat-c++-tests: New file, extracted from
53922         modules/sys_stat-tests.
53923         * modules/sys_stat-tests: Depend on it.
53924         * modules/sys_time-c++-tests: New file, extracted from
53925         modules/sys_time-tests.
53926         * modules/sys_time-tests: Depend on it.
53927         * modules/time-c++-tests: New file, extracted from modules/time-tests.
53928         * modules/time-tests: Depend on it.
53929         * modules/unistd-c++-tests: New file, extracted from
53930         modules/unistd-tests.
53931         * modules/unistd-tests: Depend on it.
53932         * modules/wchar-c++-tests: New file, extracted from
53933         modules/wchar-tests.
53934         * modules/wchar-tests: Depend on it.
53935         * modules/wctype-c++-tests: New file, extracted from
53936         modules/wctype-tests.
53937         * modules/wctype-tests: Depend on it.
53938         Reported by Simon Josefsson.
53940 2010-03-28  Bruno Haible  <bruno@clisp.org>
53942         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
53943         * gnulib-tool (func_exists_module): New function, extracted from
53944         func_verify_module.
53945         (func_verify_module): Use it.
53946         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
53947         'foo' only if 'foo' exists.
53948         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
53949         module.
53951 2010-03-28  Bruno Haible  <bruno@clisp.org>
53953         gnulib-tool: Add support for special categories of tests.
53954         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
53955         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
53956         (func_usage): Document them.
53957         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
53958         inc_unportable_tests, inc_all_tests): New variables.
53959         (func_acceptable): Consider these variables.
53960         (func_modules_transitive_closure): Make it work when the 'Status' field
53961         consists of multiple words.
53962         (func_import): Store and restore the values of inc_cxx_tests,
53963         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
53964         inc_all_tests in gnulib-comp.m4.
53965         (func_create_testdir): Set inc_all_tests to true.
53966         * doc/gnulib.texi (Extra tests modules): New section.
53967         Suggested by Jim Meyering.
53969 2010-03-28  Bruno Haible  <bruno@clisp.org>
53971         ansi-c++-opt: Allow turning off the C++ build by default.
53972         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
53973         gl_CXX_CHOICE_DEFAULT_NO is defined.
53974         Requested by Eric Blake.
53976 2010-03-28  Bruno Haible  <bruno@clisp.org>
53978         unistd: Avoid #define replacements in C++ mode.
53979         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
53980         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
53981         setsockopt, shutdown, select): In C++, attach a warning to the function
53982         if possible, rather than #defining the symbol to a dysfunctional alias.
53983         Reported by John W. Eaton <jwe@gnu.org>.
53985 2010-03-28  Bruno Haible  <bruno@clisp.org>
53987         Fix link errors on mingw.
53988         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
53989         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
53990         $(LIBSOCKET).
53991         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
53992         $(LIBSOCKET).
53994 2010-03-28  Bruno Haible  <bruno@clisp.org>
53995             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53997         lib-ignore: Determine different options for different compilers.
53998         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
53999         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
54000         Add comments.
54001         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
54002         * NEWS: Mention the change.
54004 2010-03-27  Bruno Haible  <bruno@clisp.org>
54006         Remove unused GNULIB_XYZ macro definitions.
54007         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54008         * modules/fseek (configure.ac): Likewise.
54009         * modules/ioctl (configure.ac): Likewise.
54010         * modules/open (configure.ac): Likewise.
54011         * modules/stdlib-safer (configure.ac): Likewise.
54013 2010-03-27  Bruno Haible  <bruno@clisp.org>
54015         Add a remark about certain modules.
54016         * modules/malloc (Comment): New section.
54017         * modules/realloc (Comment): Likewise.
54018         * modules/sigpipe (Comment): Likewise.
54020 2010-03-27  Bruno Haible  <bruno@clisp.org>
54022         Resolve conflict between the two kinds of module indicators.
54023         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
54024         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
54025         * modules/canonicalize (configure.ac): Invoke
54026         gl_MODULE_INDICATOR_FOR_TESTS.
54027         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
54028         GNULIB_XYZ.
54029         * tests/test-dirent-c++.cc: Likewise.
54030         * tests/test-dirent-safer.c: Likewise.
54031         * tests/test-dup2.c: Likewise.
54032         * tests/test-fchdir.c: Likewise.
54033         * tests/test-fcntl-h-c++.cc: Likewise.
54034         * tests/test-getopt.c: Likewise.
54035         * tests/test-getopt.h: Likewise.
54036         * tests/test-langinfo-c++.cc: Likewise.
54037         * tests/test-locale-c++.cc: Likewise.
54038         * tests/test-math-c++.cc: Likewise.
54039         * tests/test-pty-c++.cc: Likewise.
54040         * tests/test-search-c++.cc: Likewise.
54041         * tests/test-signal-c++.cc: Likewise.
54042         * tests/test-spawn-c++.cc: Likewise.
54043         * tests/test-stdio-c++.cc: Likewise.
54044         * tests/test-stdlib-c++.cc: Likewise.
54045         * tests/test-string-c++.cc: Likewise.
54046         * tests/test-sys_ioctl-c++.cc: Likewise.
54047         * tests/test-sys_select-c++.cc: Likewise.
54048         * tests/test-sys_socket-c++.cc: Likewise.
54049         * tests/test-sys_stat-c++.cc: Likewise.
54050         * tests/test-sys_time-c++.cc: Likewise.
54051         * tests/test-time-c++.cc: Likewise.
54052         * tests/test-unistd-c++.cc: Likewise.
54053         * tests/test-wchar-c++.cc: Likewise.
54054         * tests/uninorm/test-u8-nfc.c: Likewise.
54055         * tests/uninorm/test-u8-nfd.c: Likewise.
54056         * tests/uninorm/test-u8-nfkc.c: Likewise.
54057         * tests/uninorm/test-u8-nfkd.c: Likewise.
54058         * tests/uninorm/test-u16-nfc.c: Likewise.
54059         * tests/uninorm/test-u16-nfd.c: Likewise.
54060         * tests/uninorm/test-u16-nfkc.c: Likewise.
54061         * tests/uninorm/test-u16-nfkd.c: Likewise.
54062         * tests/uninorm/test-u32-nfc.c: Likewise.
54063         * tests/uninorm/test-u32-nfc-big.c: Likewise.
54064         * tests/uninorm/test-u32-nfd.c: Likewise.
54065         * tests/uninorm/test-u32-nfd-big.c: Likewise.
54066         * tests/uninorm/test-u32-nfkc.c: Likewise.
54067         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
54068         * tests/uninorm/test-u32-nfkd.c: Likewise.
54069         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
54070         * tests/uninorm/test-u32-normalize-big.c: Likewise.
54072 2010-03-27  Bruno Haible  <bruno@clisp.org>
54074         Distinguish two kinds of module indicators.
54075         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
54076         gl_MODULE_INDICATOR.
54077         (gl_MODULE_INDICATOR): New macro.
54078         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
54079         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
54080         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54081         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54082         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54083         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54084         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54085         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54086         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54087         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54088         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54089         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54090         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54091         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54092         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54093         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54094         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54095         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54096         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54097         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54098         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54099         * modules/cloexec (configure.ac): Likewise.
54100         * modules/getopt-gnu (configure.ac): Likewise.
54101         * modules/uninorm/u8-normalize (configure.ac): Likewise.
54102         * modules/uninorm/u16-normalize (configure.ac): Likewise.
54103         * modules/uninorm/u32-normalize (configure.ac): Likewise.
54104         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
54106 2010-03-27  Bruno Haible  <bruno@clisp.org>
54108         New module description field 'Comment'.
54109         * gnulib-tool: New option --extract-comment.
54110         (func_usage): Document it.
54111         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
54112         (func_get_comment): New function.
54113         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
54115 2010-03-27  Bruno Haible  <bruno@clisp.org>
54117         Addendum to 2010-02-07 commit.
54118         * gnulib-tool (func_usage): Document --extract-applicability option.
54120 2010-03-27  Bruno Haible  <bruno@clisp.org>
54122         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
54123         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
54124         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
54125         rather than link errors.
54127 2010-03-27  Bruno Haible  <bruno@clisp.org>
54129         Avoid side effects from tests-related modules on the compilation of lib.
54130         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
54131         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
54132         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
54133         parameter. Emit into AM_CPPFLAGS a definition of the designated C
54134         macro.
54135         (func_import): Define a witness macro. Assign it a value that depends
54136         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
54137         tests-related modules.
54138         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
54139         Reported by Jim Meyering.
54141 2010-03-27  Bruno Haible  <bruno@clisp.org>
54143         Factorize common .m4 code.
54144         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
54145         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
54146         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
54147         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
54148         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54149         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
54150         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
54151         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54152         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54153         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54154         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
54155         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54156         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54157         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54158         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54159         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
54160         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54161         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54162         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54163         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
54164         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
54165         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54166         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54167         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54168         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54169         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54170         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
54171         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
54172         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
54173         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54174         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54175         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54177 2010-03-27  Bruno Haible  <bruno@clisp.org>
54179         Fix a compilation error on Cygwin with g++ >= 4.3.
54180         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
54181         if it is undefined or if we alias it to chmod.
54182         (lstat): Don't warn about the use of this function if it is undefined
54183         or if we alias it to stat.
54184         Reported by Simon Josefsson.
54186 2010-03-27  Bruno Haible  <bruno@clisp.org>
54188         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
54189         * modules/getlogin (configure.ac): Update.
54191         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
54192         * modules/getlogin_r (configure.ac): Update.
54194         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
54195         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
54196         * modules/inet_ntop (configure.ac): Update.
54198         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
54199         * modules/inet_pton (configure.ac): Update.
54201         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
54202         * modules/mbslen (configure.ac): Update.
54204         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
54205         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
54206         * modules/forkpty (configure.ac): Update.
54207         * modules/openpty (configure.ac): Update.
54209 2010-03-26  Simon Josefsson  <simon@josefsson.org>
54211         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
54212         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
54214 2010-03-25  Eric Blake  <eblake@redhat.com>
54216         maint: use pragma consistently across replacement headers
54217         * lib/ctype.in.h (system_header): Hoist for consistent placement.
54218         * lib/dirent.in.h (system_header): Likewise.
54219         * lib/errno.in.h (system_header): Likewise.
54220         * lib/float.in.h (system_header): Likewise.
54221         * lib/getopt.in.h (system_header): Likewise.
54222         * lib/iconv.in.h (system_header): Likewise.
54223         * lib/inttypes.in.h (system_header): Likewise.
54224         * lib/langinfo.in.h (system_header): Likewise.
54225         * lib/locale.in.h (system_header): Likewise.
54226         * lib/math.in.h (system_header): Likewise.
54227         * lib/netdb.in.h (system_header): Likewise.
54228         * lib/netinet_in.in.h (system_header): Likewise.
54229         * lib/pty.in.h (system_header): Likewise.
54230         * lib/sched.in.h (system_header): Likewise.
54231         * lib/se-selinux.in.h (system_header): Likewise.
54232         * lib/search.in.h (system_header): Likewise.
54233         * lib/spawn.in.h (system_header): Likewise.
54234         * lib/stdarg.in.h (system_header): Likewise.
54235         * lib/stdint.in.h (system_header): Likewise.
54236         * lib/string.in.h (system_header): Likewise.
54237         * lib/strings.in.h (system_header): Likewise.
54238         * lib/sys_file.in.h (system_header): Likewise.
54239         * lib/sys_ioctl.in.h (system_header): Likewise.
54240         * lib/sys_socket.in.h (system_header): Likewise.
54241         * lib/sys_times.in.h (system_header): Likewise.
54242         * lib/sys_utsname.in.h (system_header): Likewise.
54243         * lib/sys_wait.in.h (system_header): Likewise.
54244         * lib/sysexits.in.h (system_header): Likewise.
54245         * lib/unistd.in.h (system_header): Likewise.
54246         * lib/wctype.in.h (system_header): Likewise.
54248         arpa/inet: fix mingw compilation warning
54249         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
54250         Reported by Matthew Bolte.
54252 2010-03-25  Bruno Haible  <bruno@clisp.org>
54254         Avoid collision between gnulib wrapper and libintl wrapper.
54255         * lib/printf.c (printf): Don't define if a printf wrapper is already
54256         defined in intl/printf.c.
54257         Reported by Michel Boaventura <michel@michelboaventura.com>.
54259 2010-03-25  Bruno Haible  <bruno@clisp.org>
54261         Use ANSI C.
54262         * lib/readutmp.h (getutent): Provide ANSI C prototype.
54264 2010-03-25  Bruno Haible  <bruno@clisp.org>
54266         Minor formatting changes.
54267         * lib/acosl.c: Insert space before function argument list.
54268         * lib/argz.c: Likewise.
54269         * lib/asinl.c: Likewise.
54270         * lib/expl.c: Likewise.
54271         * lib/gen-uni-tables.c: Likewise.
54272         * lib/gettext.h: Likewise.
54273         * lib/glthread/lock.h: Likewise.
54274         * lib/tanl.c: Likewise.
54275         * lib/uniname/uniname.c: Likewise.
54276         * tests/test-idpriv-drop.c: Likewise.
54277         * tests/test-idpriv-droptemp.c: Likewise.
54278         * tests/test-lock.c: Likewise.
54279         * tests/test-tls.c: Likewise.
54280         * lib/argp-help.c: Insert space before function-like macro argument
54281         list.
54282         * lib/memcmp.c: Likewise.
54283         * tests/test-base64.c: Likewise.
54284         * lib/localename.c: Insert space before sizeof's argument list.
54285         * lib/safe-alloc.h: Likewise.
54286         * lib/file-set.h: Insert space before macro argument list.
54287         * tests/test-argp.c: Likewise.
54288         * lib/argp-namefrob.h: Insert space before function parameter list.
54289         * lib/getaddrinfo.c: Likewise.
54290         * lib/netdb.in.h: Likewise.
54291         * lib/parse-duration.h: Likewise.
54292         * lib/parse-duration.c: Likewise.
54293         * lib/poll.c: Likewise.
54294         * lib/select.c: Likewise.
54295         * lib/trim.h: Likewise.
54296         * tests/test-usleep.c: Likewise.
54297         * lib/ldexpl.c: Insert space before function parameter list and before
54298         function argument list.
54299         * lib/logl.c: Likewise.
54300         * lib/sqrtl.c: Likewise.
54301         * lib/trim.c: Likewise.
54302         * lib/cosl.c: Use GNU style indentation. Insert space before function
54303         argument list.
54304         * lib/sinl.c: Likewise.
54305         * lib/tsearch.c: Insert space after 'for'.
54306         Reported by Jim Meyering.
54308 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
54310         * maint.mk (sc_Wundef_boolean): Check for the presence of the
54311         config header before grepping, as it's not present before
54312         autoreconf/configure are run.  Reported by Simon Josefsson.
54314 2010-03-23  Bruno Haible  <bruno@clisp.org>
54316         pt_chown: Make it work with automake < 1.11.
54317         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
54318         Reported by Simon Josefsson.
54320 2010-03-23  Bruno Haible  <bruno@clisp.org>
54322         pt_chown: Don't depend on GPLed modules.
54323         * lib/pt_chown.c: Don't include idpriv.h.
54324         (main): Don't drop privileges.
54325         * modules/pt_chown (Depends-on): Remove idpriv-drop.
54326         Reported by Simon Josefsson.
54328 2010-03-24  Simon Josefsson  <simon@josefsson.org>
54330         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
54331         suggestions from karl@freefriends.org (Karl Berry).
54333 2010-03-22  Eric Blake  <eblake@redhat.com>
54335         gethostname: further tweaks
54336         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
54337         are overriding gethostname.
54338         Suggested by Bruno Haible.
54340 2010-03-21  Bruno Haible  <bruno@clisp.org>
54342         Fix comments.
54343         * lib/forkpty.c (rpl_forkpty): Fix comment.
54344         * lib/openpty.c (rpl_openpty): Likewise.
54345         Reported by Eric Blake.
54347 2010-03-22  Eric Blake  <eblake@redhat.com>
54349         gethostname: fix build on mingw
54350         * lib/unistd.in.h (includes): Work around fact that mingw
54351         <winsock2.h> re-includes <unistd.h>, by avoiding any
54352         redeclarations if we are being included by <winsock2.h>.
54353         Reported by Matthias Bolte.
54355 2010-03-21  Bruno Haible  <bruno@clisp.org>
54357         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54358         * lib/forkpty.c (forkpty): New replacement function, from glibc with
54359         modifications.
54360         * lib/pty.in.h (forkpty): Update declaration. Add comments.
54361         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
54362         provide the replacement.
54363         * modules/forkpty (Depends-on): Add openpty, login_tty.
54364         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
54365         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
54366         * doc/glibc-functions/forkpty.texi: More supported platforms.
54367         * config/srclist.txt: Add forkpty.c (commented).
54369 2010-03-21  Bruno Haible  <bruno@clisp.org>
54371         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
54372         (Makefile.am): Verify that PTY_LIB is defined.
54374         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
54376 2010-03-21  Bruno Haible  <bruno@clisp.org>
54378         Tests for module 'login_tty'.
54379         * modules/login_tty-tests: New file.
54380         * tests/test-login_tty.c: New file.
54382         New module 'login_tty'.
54383         * lib/login_tty.c: New file.
54384         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
54385         * modules/login_tty: New file.
54386         * doc/glibc-functions/login_tty.texi: Mention the new module.
54388 2010-03-21  Bruno Haible  <bruno@clisp.org>
54390         login_tty: Documentation.
54391         * doc/glibc-functions/login_tty.texi: New file.
54392         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
54394 2010-03-21  Bruno Haible  <bruno@clisp.org>
54396         pty: Consistent macro naming.
54397         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
54398         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
54399         * modules/pty (configure.ac): Update.
54401 2010-03-21  Bruno Haible  <bruno@clisp.org>
54403         Tests for openpty: Make stricter.
54404         * tests/test-openpty.c (main): Add test of canonical processing and
54405         erase.
54406         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
54408         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
54409         * lib/openpty.c (openpty): New replacement function.
54410         * lib/pty.in.h: Include <termios.h>.
54411         (openpty): Update declaration. Add comments.
54412         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
54413         is not declared, arrange to provide the replacement. Check for _getpty
54414         and posix_openpt.
54415         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
54416         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
54417         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
54418         * modules/pty-tests (test_pty_c___LDADD): New variable.
54419         * doc/glibc-functions/openpty.texi: More supported platforms.
54421 2010-03-21  Bruno Haible  <bruno@clisp.org>
54423         setenv: Tweaks.
54424         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
54425         the test program.
54426         * doc/posix-functions/setenv.texi: Update platforms list.
54428 2010-03-21  Bruno Haible  <bruno@clisp.org>
54430         New module 'unlockpt'.
54431         * lib/unlockpt.c: New file, from glibc with modifications.
54432         * m4/unlockpt.m4: New file.
54433         * modules/unlockpt: New file.
54434         * lib/stdlib.in.h (unlockpt): New declaration.
54435         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
54436         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
54437         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
54438         HAVE_UNLOCKPT.
54439         * doc/posix-functions/unlockpt.texi: Mention the new module.
54440         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
54441         * config/srclist.txt: Add unlockpt.c (commented).
54443 2010-03-21  Jim Meyering  <meyering@redhat.com>
54445         maint.mk: prohibit inclusion of "intprops.h" without use
54446         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
54448 2010-03-21  Bruno Haible  <bruno@clisp.org>
54450         New module 'grantpt'.
54451         * lib/grantpt.c: New file, from glibc with modifications.
54452         * m4/grantpt.m4: New file.
54453         * modules/grantpt: New file.
54454         * lib/stdlib.in.h (grantpt): New declaration.
54455         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
54456         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
54457         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
54458         HAVE_GRANTPT.
54459         * doc/posix-functions/grantpt.texi: Mention the new module.
54460         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
54461         * config/srclist.txt: Add grantpt.c (commented).
54463 2010-03-21  Bruno Haible  <bruno@clisp.org>
54465         New module 'pt_chown'.
54466         * lib/pt_chown.c: New file, from glibc with modifications.
54467         * lib/pty-private.h: New file, from glibc with modifications.
54468         * modules/pt_chown: New file.
54469         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
54471 2010-03-21  Bruno Haible  <bruno@clisp.org>
54473         Tests for module 'ptsname'.
54474         * modules/ptsname-tests: New file.
54475         * tests/test-ptsname.c: New file.
54477         New module 'ptsname'.
54478         * lib/ptsname.c: New file, from glibc with modifications.
54479         * m4/ptsname.m4: New file.
54480         * modules/ptsname: New file.
54481         * lib/stdlib.in.h (ptsname): New declaration.
54482         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
54483         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
54484         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
54485         HAVE_PTSNAME.
54486         * doc/posix-functions/ptsname.texi: Mention the new module.
54487         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
54488         * config/srclist.txt: Add ptsname.c (commented).
54490 2010-03-21  Bruno Haible  <bruno@clisp.org>
54492         Tests for module 'ttyname_r'.
54493         * modules/ttyname_r-tests: New file.
54494         * tests/test-ttyname_r.c: New file.
54496         New module 'ttyname_r'.
54497         * lib/ttyname_r.c: New file.
54498         * m4/ttyname_r.m4: New file.
54499         * modules/ttyname_r: New file.
54500         * lib/unistd.in.h (ttyname_r): New declaration.
54501         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
54502         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
54503         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
54504         HAVE_TTYNAME_R.
54505         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
54506         * doc/posix-functions/ttyname_r.texi: Mention the new module.
54508 2010-03-20  Bruno Haible  <bruno@clisp.org>
54510         signal: Undefine macro definitions in C++ mode.
54511         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
54512         sigfillset): Undefine macro definitions from the system header in C++
54513         mode.
54514         Reported by John W. Eaton <jwe@gnu.org>.
54516 2010-03-20  Bruno Haible  <bruno@clisp.org>
54518         Ensure no #include statements inside extern "C" { ... }.
54519         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
54520         contain #include statements.
54521         * lib/time.in.h: Likewise.
54523 2010-03-20  Bruno Haible  <bruno@clisp.org>
54525         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
54526         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
54527         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
54528         Reported by John W. Eaton <jwe@gnu.org>.
54530 2010-03-20  Bruno Haible  <bruno@clisp.org>
54532         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
54533         Reported by Jim Meyering.
54535 2010-03-20  Bruno Haible  <bruno@clisp.org>
54537         pipe: Set errno upon failure.
54538         * lib/pipe.h: Specify that when -1 is returned, errno is set.
54539         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
54540         errno value in error message.
54542 2010-03-20  Bruno Haible  <bruno@clisp.org>
54543             Jim Meyering  <meyering@redhat.com>
54545         lchown: Avoid "unused variable" warning.
54546         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
54548 2010-03-20  Bruno Haible  <bruno@clisp.org>
54550         Work around unlink() bug on MacOS X 10.5.6.
54551         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
54552         attempting to unlink a parent directory.
54553         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
54554         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
54555         activate for the replacement function.
54556         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
54558 2010-03-20  Bruno Haible  <bruno@clisp.org>
54560         Fix link errors on Solaris 8.
54561         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
54562         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
54564 2010-03-19  Jim Meyering  <meyering@redhat.com>
54566         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
54567         The _LIBC implementation of build_range_exp correctly honors the
54568         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
54569         However, the non-_LIBC implementation would ignore that syntax-bit
54570         flag and return REG_ERANGE unconditionally.
54571         This change makes it honor that flag.
54572         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
54573         Make two pointer parameters "const".
54574         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
54575         (parse_bracket_exp): Update caller.
54577         regex.m4: correct the reversed range endpoint ([b-a]) test
54578         * m4/regex.m4: When requiring that [b-a] evoke failure,
54579         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
54580         test pass once again for x86-based systems.
54582 2010-03-19  Bruno Haible  <bruno@clisp.org>
54584         scandir: Fix link error on Solaris 8.
54585         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
54586         macros.
54588 2010-03-19  Bruno Haible  <bruno@clisp.org>
54590         getusershell: Fix documentation.
54591         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
54592         module.
54593         * doc/glibc-functions/setusershell.texi: Likewise.
54595         getusershell: Provide declaration, missing on Solaris 9.
54596         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
54597         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
54598         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
54599         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
54600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54601         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
54602         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
54603         HAVE_GETUSERSHELL.
54604         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
54606 2010-03-19  Bruno Haible  <bruno@clisp.org>
54608         wctype: Provide iswblank function.
54609         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
54610         exists and is fine.
54611         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
54612         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
54613         * tests/test-wctype.c (main): Re-enable the iswblank tests.
54614         * doc/posix-functions/iswblank.texi: Update.
54616 2010-03-19  Bruno Haible  <bruno@clisp.org>
54618         Tests of module 'pty' in C++ mode.
54619         * modules/pty-tests: New file.
54620         * tests/test-pty-c++.cc: New file.
54621         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
54623 2010-03-19  Eric Blake  <eblake@redhat.com>
54625         logb: fix documentation
54626         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
54627         1.5 declaration bug.
54629         forkpty, openpty: prefer glibc's const-safe prototype
54630         * lib/forkpty.c (rpl_forkpty): New file.
54631         * lib/openpty.c (rpl_openpty): Likewise.
54632         * modules/forkpty (Files): Distribute it.
54633         * modules/openpty (Files): Likewise.
54634         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
54635         check...
54636         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
54637         replacement for non-const BSD signature.
54638         * modules/pty (Makefile.am): Substitute witnesses.
54639         * lib/pty.in.h (forkpty, openpty): Declare replacements.
54640         * tests/test-forkpty.c: Update signature check.
54641         * tests/test-openpty.c: Likewise.
54642         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
54643         * doc/glibc-functions/openpty.texi (openpty): Likewise.
54645         forkpty, openpty: split functions into new modules
54646         * modules/pty (Makefile.am): Substitute new witnesses.
54647         (Libraries): Move library detection...
54648         * modules/forkpty: ...into new module.
54649         * modules/openpty: Another new module.
54650         * modules/pty-tests: Rename and split...
54651         * modules/forkpty-tests: ...to this...
54652         * modules/openpty-tests: ...and this.
54653         * tests/test-pty.c: Rename and split...
54654         * tests/test-forkpty.c: ...to this...
54655         * tests/test-openpty.c: ...and this.
54656         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
54657         (gl_PTY): Split library searching...
54658         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
54659         (gl_FORKPTY, gl_OPENPTY): New macros.
54660         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
54661         * NEWS: Mention the split.
54662         * MODULES.html.sh (Misc): Document the modules.
54663         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
54664         * doc/glibc-functions/openpty.texi (openpty): Likewise.
54666         pty: improve replacement header
54667         * lib/pty.in.h: New file.
54668         * modules/pty (Files): Ship it.
54669         (Makefile.am): Always build replacement.
54670         * m4/pty.m4: Rename...
54671         * m4/pty_h.m4: ...to this.
54672         (gl_PTY): Modernize setting of witness macros; update check of
54673         forkpty to take proper advantage of cache.
54674         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
54676         getopt: avoid compiler warning
54677         * lib/getopt.c (attribute_hidden): Remove unused macro.
54679 2010-03-18  Bruno Haible  <bruno@clisp.org>
54681         Fix link errors on Solaris 8.
54682         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
54683         * modules/search-tests (test_search_c___LDADD): Likewise.
54684         * modules/signal-tests (test_signal_c___LDADD): Likewise.
54685         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
54686         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
54687         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
54688         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
54689         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
54690         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
54692 2010-03-18  Bruno Haible  <bruno@clisp.org>
54694         Fix bug introduced on 2010-03-14.
54695         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
54696         (gl_SPAWN_H): Require it.
54697         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
54698         Reported by Simon Josefsson.
54700 2010-03-18  Bruno Haible  <bruno@clisp.org>
54702         Fix typo introduced on 2009-12-31.
54703         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
54704         posix_spawn_file_actions_adddup2.
54706 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
54707         and Eric Blake  <eblake@redhat.com>
54709         test-vc-list-files-git: make more robust
54710         * tests/test-vc-list-files-git.sh: Unset problematic environment
54711         variables.  Chain commands together.
54713 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
54715         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
54716         `AC_CHECK_DECL' invocation.
54718 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
54720         * lib/inttostr.c (inttostr): Make sure the invocation of verify
54721         appears before executable statements. Suggested by Petr Sumbera
54722         <Petr.Sumbera@Sun.COM>.
54724 2010-03-14  Bruno Haible  <bruno@clisp.org>
54726         * tests/test-flock.c (test_exclusive): Comment out a test that causes
54727         portability problems. Instead use a simpler test.
54728         (main): Check that invalid arguments are rejected only on Linux.
54730 2010-03-14  Bruno Haible  <bruno@clisp.org>
54732         Fix bug introduced on 2009-12-31.
54733         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
54734         gl_PREREQ_SYS_H_WINSOCK2 always.
54735         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
54736         SYS_SOCKET_H variable.
54737         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
54738         Update comments.
54739         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
54740         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
54741         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54742         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
54743         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
54745 2010-03-14  Bruno Haible  <bruno@clisp.org>
54747         Fix values returned by sinl, cosl.
54748         * lib/trigl.h: Add specification comments.
54749         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
54750         that combines the values from the precomputed table with the values of
54751         the Chebyshev polynomials.
54753 2010-03-14  Bruno Haible  <bruno@clisp.org>
54755         Fix compilation error when modules 'posix_spawn[p]' are not used.
54756         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
54757         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
54759 2010-03-14  Bruno Haible  <bruno@clisp.org>
54761         Fix compilation error on mingw when module 'time_r' is not used.
54762         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
54763         is 1.
54764         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
54765         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
54766         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
54767         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
54769 2010-03-14  Bruno Haible  <bruno@clisp.org>
54771         Fix compilation error with Sun C.
54772         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
54773         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
54774         instead of GCC specific ULONG_LONG_MAX.
54775         * lib/xstrtoll.c: Likewise.
54776         * lib/xstrtoull.c: Likewise.
54778 2010-03-13  Bruno Haible  <bruno@clisp.org>
54780         Allow the user to disable C++ code and tests.
54781         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
54782         (gl_PROG_ANSI_CXX): Require it.
54784 2010-03-13  Bruno Haible  <bruno@clisp.org>
54786         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
54787         cases.
54789 2010-03-13  Bruno Haible  <bruno@clisp.org>
54791         Test that gnulib does not break the standard C++ headers.
54792         * tests/test-locale-c++2.cc: New file.
54793         * modules/locale-tests (Files): Add it.
54794         (Makefile.am): Compile it for test-locale-c++.
54795         * tests/test-math-c++2.cc: New file.
54796         * modules/math-tests (Files): Add it.
54797         (Makefile.am): Compile it for test-math-c++.
54798         * tests/test-signal-c++2.cc: New file.
54799         * modules/signal-tests (Files): Add it.
54800         (Makefile.am): Compile it for test-signal-c++.
54801         * tests/test-stdio-c++2.cc: New file.
54802         * modules/stdio-tests (Files): Add it.
54803         (Makefile.am): Compile it for test-stdio-c++.
54804         * tests/test-stdlib-c++2.cc: New file.
54805         * modules/stdlib-tests (Files): Add it.
54806         (Makefile.am): Compile it for test-stdlib-c++.
54807         * tests/test-string-c++2.cc: New file.
54808         * modules/string-tests (Files): Add it.
54809         (Makefile.am): Compile it for test-string-c++.
54810         * tests/test-time-c++2.cc: New file.
54811         * modules/time-tests (Files): Add it.
54812         (Makefile.am): Compile it for test-time-c++.
54813         Reported by John W. Eaton <jwe@gnu.org>.
54815 2010-03-13  Bruno Haible  <bruno@clisp.org>
54817         * gnulib-tool (func_usage): Clarify which options are available for
54818         --create-testdir and --create-megatestdir.
54820 2010-03-13  Bruno Haible  <bruno@clisp.org>
54822         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
54823         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
54824         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
54825         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
54826         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
54827         when appropriate.
54828         Reported by Jim Meyering.
54830 2010-03-12  Simon Josefsson  <simon@josefsson.org>
54832         * gnulib-tool (func_import): Explain origin of code.
54834 2010-03-12  Bruno Haible  <bruno@clisp.org>
54836         Fix problem with automake's definition of CXXLINK.
54837         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
54838         Reported by Simon Josefsson and Ludovic Courtès.
54840 2010-03-12  Bruno Haible  <bruno@clisp.org>
54842         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
54843         stable releases.
54845 2010-03-11  Bruno Haible  <bruno@clisp.org>
54847         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
54848         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
54849         whether the system provides one variant or multiple variants of the
54850         function.
54851         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
54852         C++ compilers.
54853         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
54854         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
54855         Reported by Jim Meyering.
54857 2010-03-09  Simon Josefsson  <simon@josefsson.org>
54859         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
54861 2010-03-08  Bruno Haible  <bruno@clisp.org>
54863         gnulib-tool: Add support for --libtool in --create-testdir.
54864         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
54865         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
54867 2010-03-08  Eric Blake  <eblake@redhat.com>
54869         gnulib-tool.texi: mention possibility of git submodule
54870         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
54871         submodules.
54872         * doc/.gitignore: Ignore another generated file.
54874 2010-03-08  Karl Berry  <karl@gnu.org>
54876         * doc/gnulib-tool.texi (VCS Issues): Mention third option
54877         of committing gnulib files while skipping others.
54879 2010-03-07  Bruno Haible  <bruno@clisp.org>
54881         Tests of module 'wctype' in C++ mode.
54882         * tests/test-wctype-c++.cc: New file.
54883         * modules/wctype-tests (Files): Add it and tests/signature.h.
54884         (Depends-on): Add ansi-c++-opt.
54885         (Makefile.am): Arrange to compile and run test-wctype-c++.
54887         Tests of module 'wchar' in C++ mode.
54888         * tests/test-wchar-c++.cc: New file.
54889         * modules/wchar-tests (Files): Add it and tests/signature.h.
54890         (Depends-on): Add ansi-c++-opt.
54891         (Makefile.am): Arrange to compile and run test-wchar-c++.
54892         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
54893         gl_MODULE_INDICATOR.
54895         Tests of module 'unistd' in C++ mode.
54896         * tests/test-unistd-c++.cc: New file.
54897         * modules/unistd-tests (Files): Add it and tests/signature.h.
54898         (Depends-on): Add ansi-c++-opt.
54899         (Makefile.am): Arrange to compile and run test-unistd-c++.
54900         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
54901         gl_MODULE_INDICATOR.
54903         Tests of module 'time' in C++ mode.
54904         * tests/test-time-c++.cc: New file.
54905         * modules/time-tests (Files): Add it and tests/signature.h.
54906         (Depends-on): Add ansi-c++-opt.
54907         (Makefile.am): Arrange to compile and run test-time-c++.
54908         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
54910         Tests of module 'sys_time' in C++ mode.
54911         * tests/test-sys_time-c++.cc: New file.
54912         * modules/sys_time-tests (Files): Add it and tests/signature.h.
54913         (Depends-on): Add ansi-c++-opt.
54914         (Makefile.am): Arrange to compile and run test-sys_time-c++.
54915         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
54916         gl_MODULE_INDICATOR.
54918         Tests of module 'sys_stat' in C++ mode.
54919         * tests/test-sys_stat-c++.cc: New file.
54920         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
54921         (Depends-on): Add ansi-c++-opt.
54922         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
54923         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
54924         gl_MODULE_INDICATOR.
54926         Tests of module 'sys_socket' in C++ mode.
54927         * tests/test-sys_socket-c++.cc: New file.
54928         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
54929         (Depends-on): Add ansi-c++-opt.
54930         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
54931         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
54932         gl_MODULE_INDICATOR.
54934         Tests of module 'sys_select' in C++ mode.
54935         * tests/test-sys_select-c++.cc: New file.
54936         * modules/sys_select-tests (Files): Add it and tests/signature.h.
54937         (Depends-on): Add ansi-c++-opt.
54938         (Makefile.am): Arrange to compile and run test-sys_select-c++.
54939         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
54940         gl_MODULE_INDICATOR.
54942         Tests of module 'sys_ioctl' in C++ mode.
54943         * tests/test-sys_ioctl-c++.cc: New file.
54944         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
54945         (Depends-on): Add ansi-c++-opt.
54946         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
54947         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
54948         gl_MODULE_INDICATOR.
54950         Tests of module 'string' in C++ mode.
54951         * tests/test-string-c++.cc: New file.
54952         * modules/string-tests (Files): Add it and tests/signature.h.
54953         (Depends-on): Add ansi-c++-opt.
54954         (Makefile.am): Arrange to compile and run test-string-c++.
54955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
54956         gl_MODULE_INDICATOR.
54958         Tests of module 'stdlib' in C++ mode.
54959         * tests/test-stdlib-c++.cc: New file.
54960         * modules/stdlib-tests (Files): Add it and tests/signature.h.
54961         (Depends-on): Add ansi-c++-opt.
54962         (Makefile.am): Arrange to compile and run test-stdlib-c++.
54963         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
54964         gl_MODULE_INDICATOR.
54966         Tests of module 'stdio' in C++ mode.
54967         * tests/test-stdio-c++.cc: New file.
54968         * modules/stdio-tests (Files): Add it and tests/signature.h.
54969         (Depends-on): Add ansi-c++-opt.
54970         (Makefile.am): Arrange to compile and run test-stdio-c++.
54971         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
54972         gl_MODULE_INDICATOR.
54974         Tests of module 'spawn' in C++ mode.
54975         * tests/test-spawn-c++.cc: New file.
54976         * modules/spawn-tests (Files): Add it and tests/signature.h.
54977         (Depends-on): Add ansi-c++-opt.
54978         (Makefile.am): Arrange to compile and run test-spawn-c++.
54979         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
54980         gl_MODULE_INDICATOR.
54982         Tests of module 'signal' in C++ mode.
54983         * tests/test-signal-c++.cc: New file.
54984         * modules/signal-tests (Files): Add it and tests/signature.h.
54985         (Depends-on): Add ansi-c++-opt.
54986         (Makefile.am): Arrange to compile and run test-signal-c++.
54987         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
54988         gl_MODULE_INDICATOR.
54990         Tests of module 'search' in C++ mode.
54991         * tests/test-search-c++.cc: New file.
54992         * modules/search-tests (Files): Add it and tests/signature.h.
54993         (Depends-on): Add ansi-c++-opt.
54994         (Makefile.am): Arrange to compile and run test-search-c++.
54995         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
54996         gl_MODULE_INDICATOR.
54998         Tests of module 'math' in C++ mode.
54999         * tests/test-math-c++.cc: New file.
55000         * modules/math-tests (Files): Add it and tests/signature.h.
55001         (Depends-on): Add ansi-c++-opt.
55002         (Makefile.am): Arrange to compile and run test-math-c++.
55003         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55005         Tests of module 'locale' in C++ mode.
55006         * tests/test-locale-c++.cc: New file.
55007         * modules/locale-tests (Files): Add it and tests/signature.h.
55008         (Depends-on): Add ansi-c++-opt.
55009         (Makefile.am): Arrange to compile and run test-locale-c++.
55010         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
55011         gl_MODULE_INDICATOR.
55013         Tests of module 'langinfo' in C++ mode.
55014         * tests/test-langinfo-c++.cc: New file.
55015         * modules/langinfo-tests (Files): Add it and tests/signature.h.
55016         (Depends-on): Add ansi-c++-opt.
55017         (Makefile.am): Arrange to compile and run test-langinfo-c++.
55018         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
55019         gl_MODULE_INDICATOR.
55021         Tests of module 'iconv-h' in C++ mode.
55022         * tests/test-iconv-h-c++.cc: New file.
55023         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
55024         (Depends-on): Add ansi-c++-opt.
55025         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
55027         Tests of module 'glob' in C++ mode.
55028         * tests/test-glob-c++.cc: New file.
55029         * modules/glob-tests (Files): Add it.
55030         (Depends-on): Add ansi-c++-opt.
55031         (Makefile.am): Arrange to compile and run test-glob-c++.
55033         Tests of module 'fcntl-h' in C++ mode.
55034         * tests/test-fcntl-h-c++.cc: New file.
55035         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
55036         (Depends-on): Add ansi-c++-opt.
55037         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
55038         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
55039         gl_MODULE_INDICATOR.
55041         Tests of module 'dirent' in C++ mode.
55042         * tests/test-dirent-c++.cc: New file.
55043         * modules/dirent-tests (Files): Add it and tests/signature.h.
55044         (Depends-on): Add ansi-c++-opt.
55045         (Makefile.am): Arrange to compile and run test-dirent-c++.
55046         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
55047         gl_MODULE_INDICATOR.
55049         New module 'ansi-c++-opt'.
55050         * modules/ansi-c++-opt: New file.
55051         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
55053         Document C++ namespace mode.
55054         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
55056         wctype: Avoid #define replacements in C++ mode.
55057         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
55058         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
55059         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
55060         In C++, define a namespaced alias symbol.
55061         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
55062         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
55063         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
55064         rule.
55066         wchar: Avoid #define replacements in C++ mode.
55067         * lib/wchar.in.h: Include c++defs.h.
55068         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
55069         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
55070         symbol.
55071         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
55072         * modules/wchar (Depends-on): Add c++defs.
55073         (Makefile.am): Update wchar.h rule.
55075         unistd: Avoid #define replacements in C++ mode.
55076         * lib/unistd.in.h: Include c++defs.h.
55077         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
55078         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
55079         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
55080         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
55081         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
55082         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
55083         symbol.
55084         (environ): Update.
55085         * modules/unistd (Depends-on): Add c++defs.
55086         (Makefile.am): Update unistd.h rule.
55088         time: Avoid #define replacements in C++ mode.
55089         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
55090         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
55091         define a namespaced alias symbol.
55092         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
55093         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
55094         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
55095         * modules/time (Depends-on): Add c++defs, warn-on-use.
55096         (Makefile.am): Update time.h rule.
55097         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55098         * modules/nanosleep (configure.ac): Likewise.
55099         * modules/strptime (configure.ac): Likewise.
55100         * modules/timegm (configure.ac): Likewise.
55102         sys_time: Avoid #define replacements in C++ mode.
55103         * lib/sys_time.in.h: Include c++defs.h.
55104         (gettimeofday): In C++, define a namespaced alias symbol.
55105         * modules/sys_time (Depends-on): Add c++defs.
55106         (Makefile.am): Update sys/time.h rule.
55108         sys_stat: Avoid #define replacements in C++ mode.
55109         * lib/sys_stat.in.h: Include c++defs.h.
55110         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
55111         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
55112         namespaced alias symbol.
55113         In C++, define a namespaced alias symbol.
55114         * modules/sys_stat (Depends-on): Add c++defs.
55115         (Makefile.am): Update sys/stat.h rule.
55117         sys_socket: Avoid #define replacements in C++ mode.
55118         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
55119         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
55120         definitions also when the system has a <sys/socket.h>.
55121         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55122         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
55123         In C++, define a namespaced alias symbol.
55124         * modules/sys_socket (Depends-on): Add c++defs.
55125         (Makefile.am): Update sys/socket.h rule.
55127         sys_select: Avoid #define replacements in C++ mode.
55128         * lib/sys_select.in.h: Include c++defs.h. Enable the function
55129         definitions also when the system has a <sys/select.h>.
55130         (select): In C++, define a namespaced alias symbol.
55131         * modules/sys_select (Depends-on): Add c++defs.
55132         (Makefile.am): Update sys/select.h rule.
55134         sys_ioctl: Avoid #define replacements in C++ mode.
55135         * lib/sys_ioctl.in.h: Include c++defs.h.
55136         (ioctl): In C++, define a namespaced alias symbol.
55137         * modules/sys_ioctl (Depends-on): Add c++defs.
55138         (Makefile.am): Update sys/ioctl.h rule.
55140         string: Avoid #define replacements in C++ mode.
55141         * lib/string.in.h: Include c++defs.h.
55142         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
55143         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
55144         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
55145         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
55146         strsignal, strverscmp): In C++, define a namespaced alias symbol.
55147         * modules/string (Depends-on): Add c++defs.
55148         (Makefile.am): Update string.h rule.
55150         stdlib: Avoid #define replacements in C++ mode.
55151         * lib/stdlib.in.h: Include c++defs.h.
55152         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
55153         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
55154         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
55155         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
55156         symbol.
55157         * modules/stdlib (Depends-on): Add c++defs.
55158         (Makefile.am): Update stdlib.h rule.
55160         stdio: Avoid #define replacements in C++ mode.
55161         * lib/stdio.in.h: Include c++defs.h.
55162         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
55163         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
55164         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
55165         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
55166         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
55167         namespaced alias symbol.
55168         * modules/stdio (Depends-on): Add c++defs.
55169         (Makefile.am): Update stdio.h rule.
55171         spawn: Avoid #define replacements in C++ mode.
55172         * lib/spawn.in.h: Include c++defs.h.
55173         (posix_spawn, posix_spawnp, posix_spawnattr_init,
55174         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
55175         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
55176         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
55177         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
55178         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
55179         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
55180         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
55181         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
55182         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
55183         In C++, define a namespaced alias symbol.
55184         * modules/spawn (Depends-on): Add c++defs.
55185         (Makefile.am): Update spawn.h rule.
55187         signal: Avoid #define replacements in C++ mode.
55188         * lib/signal.in.h: Include c++defs.h.
55189         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
55190         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
55191         namespaced alias symbol.
55192         * modules/signal (Depends-on): Add c++defs.
55193         (Makefile.am): Update signal.h rule.
55195         search: Avoid #define replacements in C++ mode.
55196         * lib/search.in.h: Include c++defs.h.
55197         (_gl_search_compar_fn, _gl_search_action_fn): New types.
55198         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
55199         symbol.
55200         * modules/search (Depends-on): Add c++defs.
55201         (Makefile.am): Update search.h rule.
55203         math: Avoid #define replacements in C++ mode.
55204         * lib/math.in.h: Include c++defs.h.
55205         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
55206         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
55207         trunc, truncl): In C++, define a namespaced alias symbol.
55208         * modules/math (Depends-on): Add c++defs.
55209         (Makefile.am): Update math.h rule.
55211         locale: Avoid #define replacements in C++ mode.
55212         * lib/locale.in.h: Include c++defs.h.
55213         (duplocale): In C++, define a namespaced alias symbol.
55214         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
55215         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
55216         * modules/locale (Depends-on): Add c++defs.
55217         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
55219         langinfo: Avoid #define replacements in C++ mode.
55220         * lib/langinfo.in.h: Include c++defs.h.
55221         (nl_langinfo): In C++, define a namespaced alias symbol.
55222         * modules/langinfo (Depends-on): Add c++defs.
55223         (Makefile.am): Update langinfo.h rule.
55225         iconv-h: Avoid #define replacements in C++ mode.
55226         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
55227         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
55228         symbol.
55229         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55230         whenever iconv is present.
55231         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
55232         (Makefile.am): Update iconv.h rule.
55234         glob: Avoid #define replacements in C++ mode.
55235         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
55236         (_gl_glob_errfunc_fn): New type.
55237         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
55238         symbol.
55239         * modules/glob (Depends-on): Add c++defs, warn-on-use.
55240         (Makefile.am): Update glob.h rule.
55242         fcntl-h: Avoid #define replacements in C++ mode.
55243         * lib/fcntl.in.h: Include c++defs.h.
55244         (fcntl, open, openat): In C++, define a namespaced alias symbol.
55245         * modules/fcntl-h (Depends-on): Add c++defs.
55246         (Makefile.am): Update fcntl.h rule.
55248         dirent: Avoid #define replacements in C++ mode.
55249         * lib/dirent.in.h: Include c++defs.h.
55250         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
55251         namespaced alias symbol.
55252         (dirfd): Update declaration.
55253         * modules/dirent (Depends-on): Add c++defs.
55254         (Makefile.am): Update dirent.h rule.
55256         ctype: Make it usable in C++ code.
55257         * lib/ctype.in.h: Include c++defs.h.
55258         (isblank): Declare as extern "C".
55259         * modules/ctype (Depends-on): Add c++defs.
55260         (Makefile.am): Update ctype.h rule.
55262         New module 'c++defs'.
55263         * modules/c++defs: New file.
55264         * build-aux/c++defs.h: New file.
55265         Reported by John W. Eaton <jwe@gnu.org>.
55267 2010-03-07  Bruno Haible  <bruno@clisp.org>
55269         logb: Provide missing declaration for Cygwin.
55270         * lib/math.in.h (logb): New declaration.
55271         * m4/logb.m4: New file.
55272         * modules/logb (Files): Add m4/logb.m4.
55273         (Depends-on): Add math.
55274         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
55275         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
55276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
55277         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
55278         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
55280 2010-03-07  Bruno Haible  <bruno@clisp.org>
55282         Fix test-cond link error.
55283         * tests/test-cond.c: Include <stdio.h>.
55285 2010-03-07  Bruno Haible  <bruno@clisp.org>
55287         Fix test-dirent-safer link error.
55288         * modules/dirent-safer-tests (Makefile.am): Define
55289         test_dirent_safer_LDADD.
55291 2010-03-07  Bruno Haible  <bruno@clisp.org>
55293         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
55294         among default module list.
55296 2010-03-07  Bruno Haible  <bruno@clisp.org>
55298         Fix link error on platforms with GNU libiconv.
55299         * modules/unistr/u8-strcoll-tests (Makefile): Define
55300         test_u8_strcoll_LDADD.
55301         * modules/unistr/u16-strcoll-tests (Makefile): Define
55302         test_u16_strcoll_LDADD.
55303         * modules/unistr/u32-strcoll-tests (Makefile): Define
55304         test_u32_strcoll_LDADD.
55306 2010-03-07  Bruno Haible  <bruno@clisp.org>
55308         Use POSIX declarations for socket functions.
55309         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
55310         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
55311         rpl_sendto): Change declaration to match POSIX.
55312         * lib/connect.c (rpl_connect): Likewise.
55313         * lib/accept.c (rpl_accept): Likewise.
55314         * lib/bind.c (rpl_bind): Likewise.
55315         * lib/getpeername.c (rpl_getpeername): Likewise.
55316         * lib/getsockname.c (rpl_getsockname): Likewise.
55317         * lib/recv.c (rpl_recv): Likewise.
55318         * lib/send.c (rpl_send): Likewise.
55319         * lib/recvfrom.c (rpl_recvfrom): Likewise.
55320         * lib/sendto.c (rpl_sendto): Likewise.
55322 2010-03-06  Bruno Haible  <bruno@clisp.org>
55324         Clarify access, euidaccess, faccessat.
55325         * doc/posix-functions/faccessat.texi: Mention security problem under
55326         "Other problems", not "Portability problems".
55327         * doc/posix-functions/access.texi: Likewise. Mention a related security
55328         problem.
55329         * doc/glibc-functions/euidaccess.texi: Mention security problems.
55330         * lib/euidaccess.c: Add comments about platforms.
55331         * lib/unistd.in.h (access, euidaccess): Add warnings.
55333 2010-03-07  Bruno Haible  <bruno@clisp.org>
55335         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
55336         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
55337         (POSIX_SPAWN_SETSCHEDULER): Likewise.
55338         (POSIX_SPAWN_USEVFORK): Define in a way that works when
55339         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55340         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
55341         declare when POSIX_SPAWN_SETSCHEDULER is zero.
55342         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
55343         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
55344         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
55345         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
55346         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
55347         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
55348         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
55349         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
55350         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
55351         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
55352         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
55353         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
55354         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
55355         Likewise.
55356         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
55357         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
55358         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
55359         Likewise.
55360         * tests/test-spawn.c (main): Make it work when
55361         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
55363 2010-03-07  Bruno Haible  <bruno@clisp.org>
55365         Fix incorrect Makefile.am generation in German locale.
55366         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55367         Execute sed command with character range in C locale.
55369 2010-03-06  Bruno Haible  <bruno@clisp.org>
55371         Tests for module 'iconv-h'.
55372         * modules/iconv-h-tests: New file.
55373         * tests/test-iconv-h.c: New file.
55375         New module 'iconv-h'.
55376         * modules/iconv-h: New file.
55377         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
55378         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
55379         (configure.ac): Remove gl_ICONV_H.
55380         (Makefile.am): Remove rule for iconv.h.
55382 2010-03-06  Bruno Haible  <bruno@clisp.org>
55384         More consistent naming of *.m4 files.
55385         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
55386         * modules/wctype (Files): Update.
55388         More consistent naming of *.m4 files.
55389         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
55390         * modules/wchar (Files): Update.
55392 2010-03-06  Jim Meyering  <meyering@redhat.com>
55394         euidaccess: relax license to LGPLv2+
55395         * modules/euidaccess (License): Relax to LGPLv2+.
55397 2010-03-06  Bruno Haible  <bruno@clisp.org>
55399         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
55400         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
55401         (Makefile.am): Augment lib_SOURCES instead.
55403 2010-03-04  Jim Meyering  <meyering@redhat.com>
55405         utime: remove obsolete module
55406         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
55407         unnecessary for years, and has been marked as obsolete for 10 months.
55408         * modules/utime: Remove file.
55409         * lib/utime.c: Remove file.
55410         * m4/utime.m4: Remove file.
55411         * m4/utimes-null.m4: Remove file.
55412         * doc/posix-functions/utime.texi (utime): Remove reference to
55413         the module.  Move the sole "fixed by gnulib" item into the
55414         "problems not fixed by Gnulib" list.
55415         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
55417 2010-03-05  Simon Josefsson  <simon@josefsson.org>
55419         * modules/exit (License): Relax license to LGPLv2+.
55420         (Status): Mark as obsolete.
55421         * NEWS: Mention deprecated 'exit' module.
55422         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
55423         of now obsolete 'exit'.
55425 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55427         fts-lgpl: remove unused module
55428         * modules/fts-lgpl: Remove.
55429         * MODULES.html.sh (func_all_modules): Adjust.
55430         * check-module (find_included_lib_files): Adjust.
55431         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
55433 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
55435         copy-acl: enhance Solaris ACL error handling
55436         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
55437         * lib/set-mode-acl.c (qset_acl): Likewise.
55439 2010-03-02  Bruno Haible  <bruno@clisp.org>
55441         spawn: Don't override the system defined values on FreeBSD 8.
55442         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
55443         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
55444         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
55445         if HAVE_POSIX_SPAWN is 1.
55446         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
55448 2010-03-01  Bruno Haible  <bruno@clisp.org>
55450         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
55451         regarding Automake.
55453 2010-02-25  Bruno Haible  <bruno@clisp.org>
55455         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
55456         * gnulib-tool: Define 'echo' as a function only before the ksh alias
55457         setting, not afterwards.
55458         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
55460 2010-02-24  Eric Blake  <eblake@redhat.com>
55462         bootstrap, git-version-gen: use timestamp
55463         * build-aux/git-version-gen (scriptversion): Force UTC.
55464         * build-aux/bootstrap (scriptversion): New variable.
55466         bootstrap: allow older git
55467         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
55468         older than 1.6.4.  Requested by the libvirt project.
55470 2010-02-23  Eric Blake  <eblake@redhat.com>
55472         warn-on-use: work with old autoconf
55473         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
55474         AS_VAR semantics of autoconf 2.60.
55475         Reported by Bruno Haible.
55477         bootstrap: improve some comments
55478         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
55479         clarification comments.
55481         gettimeofday: provide correct function
55482         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
55483         when replacement is declared, otherwise provide gettimeofday.
55484         Reported by Michael Goffioul.
55486 2010-02-23  Jim Meyering  <meyering@redhat.com>
55488         lib-ignore: relax license to "unlimited", not LGPLv2+
55489         * modules/lib-ignore (License): Relax to "unlimited".
55491 2010-02-23  Jim Meyering  <meyering@redhat.com>
55493         lib-ignore: relax license to LGPLv2+
55494         * modules/lib-ignore (License): Relax to LGPLv2+.
55496 2010-02-22  Eric Blake  <eblake@redhat.com>
55498         lseek: avoid bash 3.2 broken pipe bug
55499         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
55500         warning from bash 3.2.
55501         Reported by Ben Pfaff, with analysis from Bruno Haible.
55503         bootstrap: support non-FSF copyright holder
55504         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
55505         bootstrap.conf override of COPYRIGHT_HOLDER.
55506         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
55508         bootstrap: interoperate with gettext 0.14.1
55509         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
55511         bootstrap: allow for alternate submodule location
55512         * build-aux/bootstrap (gnulib_path): New variable; use instead of
55513         hardcoding submodule location.
55514         (gnulib_mk): Allow direct use of Makefile.am.
55516         bootstrap: use GNULIB_SRCDIR to reduce disk usage
55517         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
55518         rather than reconfiguring where the submodule points.
55520         gettimeofday: restore support for platforms that lack function
55521         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
55522         replacement if function is missing.
55523         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
55524         * modules/sys_time (Makefile.am): Substitute it.
55525         * lib/sys_time.in.h (gettimeofday): Check it.
55526         Reported by Michael Goffioul.
55528 2010-02-21  Bruno Haible  <bruno@clisp.org>
55530         * lib/stdio.in.h (obstack_printf): Fix typo.
55532 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
55534         vc-list-files: use bzr ls's -R option
55535         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
55536         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
55538 2010-02-21  Jim Meyering  <meyering@redhat.com>
55540         init.sh: fix EXEEXT shims to work also for names like test-prog
55541         * tests/init.sh: Re-exec a better shell, when needed.
55542         If the current shell lacks support for posix $(...), an init.sh-using
55543         test will now try to find a shell that supports that.  If EXEEXT is
55544         nonempty, we also require support for hyphen-in-alias-name and shell
55545         substitutions like ${var#glob}.  Failure to find such a shell results
55546         in a skipped test.
55548 2010-02-21  Bruno Haible  <bruno@clisp.org>
55550         Really work around "broken pipe" error message from bash 3.2.
55551         * gnulib-tool (func_reset_sigpipe): Remove function.
55552         (echo): In bash 3.2, define to a function that uses printf.
55553         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
55555 2010-02-20  Bruno Haible  <bruno@clisp.org>
55557         Restore support for automake 1.9.6 with autoconf 2.61.
55558         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
55559         Reported by James Youngman <jay@gnu.org>.
55561 2010-02-20  Bruno Haible  <bruno@clisp.org>
55563         Improve *printf warning condition.
55564         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
55565         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
55566         and the function is overridden due to SIGPIPE emulation.
55568 2010-02-20  Bruno Haible  <bruno@clisp.org>
55570         * lib/stdio.in.h: Tweak comments.
55572 2010-02-19  Bruno Haible  <bruno@clisp.org>
55574         Make it easier to find modules. New gnulib-tool option '--find'.
55575         * gnulib-tool: New option --find.
55576         (func_usage): Document it.
55577         (func_sanitize_modulelist): New function, extracted from
55578         func_all_modules.
55579         (func_all_modules): Invoke it.
55580         * doc/gnulib-tool.texi (Which modules?): New node.
55582 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
55584         * lib/sys_select.in.h: Provide select replacement even if
55585         sys/select.h exists on a system, for Interix.
55587 2010-02-18  Jim Meyering  <meyering@redhat.com>
55589         init.sh: don't use $(...) just yet
55590         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
55591         to accommodate e.g., Solaris' /bin/sh.
55593 2010-02-17  Bruno Haible  <bruno@clisp.org>
55595         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
55596         Reported by Ludovic Courtès <ludo@gnu.org>.
55598 2010-02-16  Simon Josefsson  <simon@josefsson.org>
55600         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
55601         linking with -lintl.
55603 2010-02-17  Simon Josefsson  <simon@josefsson.org>
55605         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
55606         if not provided by the system's netdb.h.  Reported by
55607         ludo@gnu.org (Ludovic Courtès).
55609 2010-02-15  Jim Meyering  <meyering@redhat.com>
55611         init.sh: improve portability and efficiency
55612         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
55613         "dummy" in a for loop.
55614         Use '!', not '^' to select the complement of a character set used
55615         in a "case" statement.
55616         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
55617         Suggestions from Eric Blake.
55619         init.sh: automatically accommodate programs with the .exe suffix
55620         Automatically arrange for an invocation of "prog" to execute the
55621         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
55622         may use the simpler "prog", yet still work when built on a system
55623         that requires specifying the added suffix.
55624         Do this by constructing a function named "prog" that invokes
55625         "prog.exe" for each .exe file in selected directories.
55626         * tests/init.sh (find_exe_basenames_): New function.
55627         (create_exe_shim_functions_): New function.
55628         (path_prepend_): Use it.
55630         maint.mk: mark syntax-check sc_*.m rules as .PHONY
55631         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
55632         "make -t syntax-check" doesn't create a ton of sc_*.m files.
55634 2010-02-14  Jim Meyering  <meyering@redhat.com>
55636         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
55637         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
55638         (sc_prohibit_hash_pjw_without_use): New rule.
55640         maint.mk: allow the default upload destination dir to be overridden
55641         * top/maint.mk (upload_dest_dir_): Define with a default that
55642         preserves the status quo.
55643         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
55644         Reported by Peter Simons.
55646         maint.mk: prohibit inclusion of "hash.h" without_use
55647         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
55649 2010-02-10  Jim Meyering  <meyering@redhat.com>
55651         maint.mk: prohibit inclusion of "ignore-value.h" without_use
55652         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
55654 2010-02-09  Eric Blake  <ebb9@byu.net>
55655         and Bruno Haible  <bruno@clisp.org>
55657         obstack-printf-posix: ensure declaration
55658         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
55659         extracted from gl_FUNC_OBSTACK_PRINTF.
55660         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
55661         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
55662         Likewise.
55663         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
55664         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
55665         0.
55667 2010-02-08  Bruno Haible  <bruno@clisp.org>
55669         gnulib-tool: Fix typo in 2010-02-07 commit.
55670         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
55671         Reported by Eric Blake.
55673 2010-02-07  Bruno Haible  <bruno@clisp.org>
55675         gnulib-tool: Fix up caching patches.
55676         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
55677         option --no-cache. Use associative arrays when supported by the shell.
55678         (sed_comments): New variable.
55679         (modcache): Renamed from do_cache.
55680         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
55681         abbreviate unnecessarily.
55682         (have_associative): New variable.
55683         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
55684         way also for ksh and zsh.
55685         (func_init_sed_convert_to_cache_statements): New function, extracted
55686         from func_cache_lookup_module. Add support for associative arrays.
55687         Don't set the c_MODULE_cached variable here. Ignore all lines before
55688         the first field header. Remove only the final newline, not all trailing
55689         newlines. Support empty fields correctly. Limit the use of 'eval' to
55690         assignments.
55691         (func_get_description, func_get_status, func_get_notice,
55692         func_get_applicability, func_get_filelist, func_get_dependencies,
55693         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
55694         func_get_automake_snippet, func_get_include_directive,
55695         func_get_link_directive, func_get_license, func_get_maintainer):
55696         Update documentation. List the unoptimized code first. Add support for
55697         associative arrays. Limit the use of 'eval' to assignments.
55698         (func_get_applicability): Undo stylistic pessimisations.
55699         (func_get_automake_snippet, func_get_include_directive): Reduce code
55700         duplication.
55701         (func_modules_transitive_closure, func_modules_add_dummy,
55702         func_modules_notice, func_modules_to_filelist, func_add_file,
55703         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
55704         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
55705         func_create_testdir, func_create_megatestdir): Update documentation.
55707 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55709         * gnulib-tool (func_cache_lookup_module): Store the module name
55710         belonging to the cache variable; error out if two different
55711         module names map to the same cache variable name.
55713 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55715         gnulib-tool: Make caching optional.
55716         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
55717         Update matching short versions of --no-changelog.
55718         (func_usage): Update.
55719         (sed_extract_cache_prog): Renamed from ...
55720         (sed_extract_prog): ... this; revert to old extraction script.
55721         (func_get_description, func_get_status)
55722         (func_get_notice, func_get_applicability, func_get_filelist)
55723         (func_get_dependencies, func_get_autoconf_early_snippet)
55724         (func_get_autoconf_snippet, func_get_automake_snippet)
55725         (func_get_include_directive, func_get_link_directive)
55726         (func_get_license, func_get_maintainer): If $do_cache is false,
55727         use old, non-caching extraction scripts.
55728         Suggestion by Bruno Haible.
55730 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55732         gnulib-tool: cache module metainformation.
55733         * gnulib-tool (sed_extract_prog): Match newline before each
55734         header, and rewrite header to a shell variable suffix.
55735         (func_cache_var, func_cache_lookup_module): New functions,
55736         to turn a module name into a cache variable prefix, and to
55737         look up and cache module metainformation.
55738         (func_get_description, func_get_status)
55739         (func_get_notice, func_get_applicability, func_get_filelist)
55740         (func_get_dependencies, func_get_autoconf_early_snippet)
55741         (func_get_autoconf_snippet, func_get_automake_snippet)
55742         (func_get_include_directive, func_get_link_directive)
55743         (func_get_license, func_get_maintainer): Use
55744         func_cache_lookup_module.
55746 2010-02-07  Bruno Haible  <bruno@clisp.org>
55748         fnctl: Fix missing dependency.
55749         * modules/fcntl (Depends-on): Add getdtablesize.
55750         Reported by John W. Eaton <jwe@gnu.org>.
55752 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55754         Argp: fix recognition of short alias options.
55756         * lib/argp-parse.c (convert_options): Fix improper use of
55757         `|' between character values.
55758         * tests/test-argp.c (group1_option): New alias option
55759         --read (-r).
55760         (group1_parser): Special handling for 'r'.
55761         (test15): New test case.
55762         (test_fun): Add test15.
55763         * tests/test-argp-2.sh: Update expected --help and --usage
55764         outputs.
55766 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55768         * tests/test-argp.c: Fix indentation.
55770 2010-02-04  Eric Blake  <ebb9@byu.net>
55772         gettimeofday: expose type of second argument
55773         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
55774         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
55775         * tests/test-gettimeofday.c: Use it to silence warning.
55776         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
55777         the issue.
55779 2010-02-03  Jim Meyering  <meyering@redhat.com>
55781         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
55782         * lib/regcomp.c (TYPE_SIGNED): Define.
55783         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
55785         regcomp.c: avoid a new -Wshadow warning
55786         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
55788 2010-02-01  Jim Meyering  <meyering@redhat.com>
55790         removing useless parentheses in cpp #define directives
55791         For motivation, see commit c0221df4, "define STREQ(a,b)
55792         consistently, removing useless parentheses"
55793         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
55794         * lib/mountlist.c (MNT_IGNORE): Likewise.
55795         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
55797 2010-02-01  Eric Blake  <ebb9@byu.net>
55799         sys_time: use link-warning
55800         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
55801         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
55802         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
55803         * modules/sys_time (Depends-on): Add warn-on-use.
55804         (Makefile.am): Always build replacement.
55805         (configure.ac): Update substitutions.
55806         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
55807         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
55808         bother with SYS_TIME_H.
55809         * modules/gettimeofday (configure.ac): Declare indicator.
55810         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
55811         in use.
55813         closein-tests: silence compiler warning
55814         * tests/test-closein.c (main): Ignore fread result.
55815         * modules/closein-tests (Depends-on): Add ignore-value.
55817         tests: silence warning about system return
55818         * tests/test-areadlink-with-size.c (main): Ignore system result.
55819         * tests/test-areadlink.c (main): Likewise.
55820         * tests/test-areadlinkat-with-size.c (main): Likewise.
55821         * tests/test-areadlinkat.c (main): Likewise.
55822         * tests/test-canonicalize-lgpl.c (main): Likewise.
55823         * tests/test-canonicalize.c (main): Likewise.
55824         * tests/test-chown.c (main): Likewise.
55825         * tests/test-fchownat.c (main): Likewise.
55826         * tests/test-fdutimensat.c (main): Likewise.
55827         * tests/test-fstatat.c (main): Likewise.
55828         * tests/test-futimens.c (main): Likewise.
55829         * tests/test-lchown.c (main): Likewise.
55830         * tests/test-link.c (main): Likewise.
55831         * tests/test-linkat.c (main): Likewise.
55832         * tests/test-lstat.c (main): Likewise.
55833         * tests/test-mkdir.c (main): Likewise.
55834         * tests/test-mkdirat.c (main): Likewise.
55835         * tests/test-mkfifo.c (main): Likewise.
55836         * tests/test-mkfifoat.c (main): Likewise.
55837         * tests/test-mknod.c (main): Likewise.
55838         * tests/test-readlink.c (main): Likewise.
55839         * tests/test-remove.c (main): Likewise.
55840         * tests/test-rename.c (main): Likewise.
55841         * tests/test-renameat.c (main): Likewise.
55842         * tests/test-rmdir.c (main): Likewise.
55843         * tests/test-symlink.c (main): Likewise.
55844         * tests/test-symlinkat.c (main): Likewise.
55845         * tests/test-unlink.c (main): Likewise.
55846         * tests/test-unlinkat.c (main): Likewise.
55847         * tests/test-utimens.c (main): Likewise.
55848         * tests/test-utimensat.c (main): Likewise.
55849         * modules/areadlink-tests (Depends-on): Add ignore-value.
55850         * modules/areadlink-with-size-tests (Depends-on): Likewise.
55851         * modules/areadlinkat-tests (Depends-on): Likewise.
55852         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
55853         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
55854         * modules/canonicalize-tests (Depends-on): Likewise.
55855         * modules/chown-tests (Depends-on): Likewise.
55856         * modules/fdutimensat-tests (Depends-on): Likewise.
55857         * modules/futimens-tests (Depends-on): Likewise.
55858         * modules/lchown-tests (Depends-on): Likewise.
55859         * modules/link-tests (Depends-on): Likewise.
55860         * modules/linkat-tests (Depends-on): Likewise.
55861         * modules/lstat-tests (Depends-on): Likewise.
55862         * modules/mkdir-tests (Depends-on): Likewise.
55863         * modules/mkfifo-tests (Depends-on): Likewise.
55864         * modules/mkfifoat-tests (Depends-on): Likewise.
55865         * modules/mknod-tests (Depends-on): Likewise.
55866         * modules/openat-tests (Depends-on): Likewise.
55867         * modules/readlink-tests (Depends-on): Likewise.
55868         * modules/remove-tests (Depends-on): Likewise.
55869         * modules/rename-tests (Depends-on): Likewise.
55870         * modules/renameat-tests (Depends-on): Likewise.
55871         * modules/rmdir-tests (Depends-on): Likewise.
55872         * modules/symlink-tests (Depends-on): Likewise.
55873         * modules/symlinkat-tests (Depends-on): Likewise.
55874         * modules/unlink-tests (Depends-on): Likewise.
55875         * modules/utimens-tests (Depends-on): Likewise.
55876         * modules/utimensat-tests (Depends-on): Likewise.
55878 2010-01-31  Bruno Haible  <bruno@clisp.org>
55880         Perform the same test for many <math.h> functions.
55881         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
55882         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
55883         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
55884         of gl_MATHFUNC.
55885         * modules/acos (configure.ac): Likewise.
55886         * modules/asin (configure.ac): Likewise.
55887         * modules/atan (configure.ac): Likewise.
55888         * modules/atan2 (configure.ac): Likewise.
55889         * modules/cbrt (configure.ac): Likewise.
55890         * modules/copysign (configure.ac): Likewise.
55891         * modules/cos (configure.ac): Likewise.
55892         * modules/cosh (configure.ac): Likewise.
55893         * modules/erf (configure.ac): Likewise.
55894         * modules/erfc (configure.ac): Likewise.
55895         * modules/exp (configure.ac): Likewise.
55896         * modules/fmod (configure.ac): Likewise.
55897         * modules/hypot (configure.ac): Likewise.
55898         * modules/j0 (configure.ac): Likewise.
55899         * modules/j1 (configure.ac): Likewise.
55900         * modules/jn (configure.ac): Likewise.
55901         * modules/lgamma (configure.ac): Likewise.
55902         * modules/log (configure.ac): Likewise.
55903         * modules/log10 (configure.ac): Likewise.
55904         * modules/log1p (configure.ac): Likewise.
55905         * modules/pow (configure.ac): Likewise.
55906         * modules/remainder (configure.ac): Likewise.
55907         * modules/sin (configure.ac): Likewise.
55908         * modules/sinh (configure.ac): Likewise.
55909         * modules/tan (configure.ac): Likewise.
55910         * modules/tanh (configure.ac): Likewise.
55911         * modules/y0 (configure.ac): Likewise.
55912         * modules/y1 (configure.ac): Likewise.
55913         * modules/yn (configure.ac): Likewise.
55914         Suggested by Paolo Bonzini.
55916 2010-01-31  Bruno Haible  <bruno@clisp.org>
55918         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
55920 2010-01-31  Bruno Haible  <bruno@clisp.org>
55922         Work around getdelim() bug on FreeBSD 8.0.
55923         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
55924         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
55925         not work.
55926         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
55927         is 1.
55928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
55929         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
55930         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
55931         a non-zero size.
55932         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
55934 2010-01-31  Bruno Haible  <bruno@clisp.org>
55936         Work around getline() bug on FreeBSD 8.0.
55937         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
55938         and a non-zero size.
55939         * tests/test-getline.c (main): Likewise.
55940         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
55941         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
55943 2010-01-28  Eric Blake  <ebb9@byu.net>
55945         regex: fix build failure
55946         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
55947         platforms.
55949 2010-01-28  Jim Meyering  <meyering@redhat.com>
55951         regex: do not ignore memory allocation failure
55952         * lib/regex_internal.c (create_cd_newstate): Detect
55953         re_node_set_init_copy failure.   Extracted from glibc commit
55954         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
55956         regex: sync more white-space changes from libc
55957         * lib/regex_internal.c: White-space only changes.
55958         * lib/regexec.c: Likewise.
55960         regex: add many uses of __attribute_warn_unused_result__
55961         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
55962         * lib/regexec.c: Likewise.
55963         Extracted from a messy glibc commit.
55965         regcomp.c: spelling and merge-artifact from glibc
55966         * lib/regcomp.c: Merge remainder of glibc's
55967         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
55969         regcomp.c: sync white-space changes from glibc
55970         * lib/regcomp.c: Merge to accommodate white space
55971         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
55973         regcomp.c: do not ignore internal return values
55974         * lib/regcomp.c: Do not ignore internal return values.
55975         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
55976         but without its white-space changes and spelling fixes.
55978         regex_internal.h: define __attribute_warn_unused_result__
55979         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
55981         maint: add a syntax-check rule to check for vulnerable Makefile.in
55982         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
55984 2010-01-27  Jim Meyering  <meyering@redhat.com>
55986         ncftpput-ftp: clean up spaces
55987         * build-aux/ncftpput-ftp: Make Copyright line consistent.
55988         Remove trailing blanks.
55990 2010-01-27  Simon Josefsson  <simon@josefsson.org>
55992         * build-aux/git-version-gen: Fix copyright statement.
55993         * build-aux/gnupload: Likewise.
55994         * tests/test-arcfour.c: Likewise.
55995         * tests/test-arctwo.c: Likewise.
55996         * tests/test-count-one-bits.c: Likewise.
55997         * tests/test-crc.c: Likewise.
55998         * tests/test-des.c: Likewise.
55999         * tests/test-gc-arcfour.c: Likewise.
56000         * tests/test-gc-arctwo.c: Likewise.
56001         * tests/test-gc-des.c: Likewise.
56002         * tests/test-gc-hmac-md5.c: Likewise.
56003         * tests/test-gc-hmac-sha1.c: Likewise.
56004         * tests/test-gc-md2.c: Likewise.
56005         * tests/test-gc-md4.c: Likewise.
56006         * tests/test-gc-md5.c: Likewise.
56007         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56008         * tests/test-gc-rijndael.c: Likewise.
56009         * tests/test-gc-sha1.c: Likewise.
56010         * tests/test-gc.c: Likewise.
56011         * tests/test-gethostname.c: Likewise.
56012         * tests/test-gettimeofday.c: Likewise.
56013         * tests/test-hash.c: Likewise.
56014         * tests/test-hmac-md5.c: Likewise.
56015         * tests/test-hmac-sha1.c: Likewise.
56016         * tests/test-md2.c: Likewise.
56017         * tests/test-md4.c: Likewise.
56018         * tests/test-md5.c: Likewise.
56019         * tests/test-memchr.c: Likewise.
56020         * tests/test-memchr2.c: Likewise.
56021         * tests/test-memcmp.c: Likewise.
56022         * tests/test-memmem.c: Likewise.
56023         * tests/test-memrchr.c: Likewise.
56024         * tests/test-rawmemchr.c: Likewise.
56025         * tests/test-read-file.c: Likewise.
56026         * tests/test-rijndael.c: Likewise.
56027         * tests/test-sockets.c: Likewise.
56028         * tests/test-strchrnul.c: Likewise.
56029         * tests/test-strstr.c: Likewise.
56030         * tests/test-strtod.c: Likewise.
56031         * build-aux/ncftpput-ftp: Likewise.
56033 2010-01-26  Eric Blake  <ebb9@byu.net>
56035         ignore-value: update recommended header name
56036         * modules/ignore-value (Include): Only use <> for headers that
56037         exist in glibc.
56039 2010-01-26  Jim Meyering  <meyering@redhat.com>
56041         test-userspec.c: avoid compiler warnings
56042         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
56043         and "initialization discards qualifiers..." warnings.
56044         Put the first "uid" in its own scope, and make char* members "const".
56046 2010-01-25  Bruno Haible  <bruno@clisp.org>
56048         gnulib-tool: Make warning diagnostics consistent.
56049         * gnulib-tool (func_warning): New function.
56050         Use it everywhere where gnulib-tool produces output to stderr and it is
56051         not a fatal error.
56053 2010-01-25  Bruno Haible  <bruno@clisp.org>
56055         Fix test dependencies.
56056         * modules/xstrtol-tests (Depends-on): Add inttypes.
56057         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
56059 2010-01-25  Pádraig Brady  <P@draigBrady.com>
56061         syntax-check: detect incorrect boolean macro values in config.h
56062         * modules/maintainer-makefile (configure.ac): Parameterize the location
56063         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
56064         The logic is from Eric Blake and the location indicated by Jim Meyering.
56065         Note the more natural CONFIG_HEADER name is prohibited by automake
56066         for backwards compatibility reasons.
56067         * top/maint.mk (sc_Wundef_boolean): New rule.
56069 2010-01-25  Jim Meyering  <meyering@redhat.com>
56071         bootstrap: detect MacOS 10.6's shasum, too
56072         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
56073         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
56075 2010-01-23  Jim Meyering  <meyering@redhat.com>
56077         xstrtoll: new module
56078         * modules/xstrtoll: New file.
56079         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
56080         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
56081         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
56082         ./configure fails if you use this module and lack "long long".
56083         * modules/xstrtoll-tests: New module.
56084         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
56085         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
56086         new init.sh-based test framework.
56088 2010-01-24  Bruno Haible  <bruno@clisp.org>
56090         Tests for module 'yn'.
56091         * modules/yn-tests: New file.
56092         * tests/test-yn.c: New file.
56094         Tests for module 'y1'.
56095         * modules/y1-tests: New file.
56096         * tests/test-y1.c: New file.
56098         Tests for module 'y0'.
56099         * modules/y0-tests: New file.
56100         * tests/test-y0.c: New file.
56102         Tests for module 'tanh'.
56103         * modules/tanh-tests: New file.
56104         * tests/test-tanh.c: New file.
56106         Tests for module 'tan'.
56107         * modules/tan-tests: New file.
56108         * tests/test-tan.c: New file.
56110         Tests for module 'sqrt'.
56111         * modules/sqrt-tests: New file.
56112         * tests/test-sqrt.c: New file.
56114         Tests for module 'sinh'.
56115         * modules/sinh-tests: New file.
56116         * tests/test-sinh.c: New file.
56118         Tests for module 'sin'.
56119         * modules/sin-tests: New file.
56120         * tests/test-sin.c: New file.
56122         Tests for module 'rint'.
56123         * modules/rint-tests: New file.
56124         * tests/test-rint.c: New file.
56126         Tests for module 'remainder'.
56127         * modules/remainder-tests: New file.
56128         * tests/test-remainder.c: New file.
56130         Tests for module 'pow'.
56131         * modules/pow-tests: New file.
56132         * tests/test-pow.c: New file.
56134         Tests for module 'nextafter'.
56135         * modules/nextafter-tests: New file.
56136         * tests/test-nextafter.c: New file.
56138         Tests for module 'modf'.
56139         * modules/modf-tests: New file.
56140         * tests/test-modf.c: New file.
56142         Tests for module 'logb'.
56143         * modules/logb-tests: New file.
56144         * tests/test-logb.c: New file.
56146         Tests for module 'log1p'.
56147         * modules/log1p-tests: New file.
56148         * tests/test-log1p.c: New file.
56150         Tests for module 'log10'.
56151         * modules/log10-tests: New file.
56152         * tests/test-log10.c: New file.
56154         Tests for module 'log'.
56155         * modules/log-tests: New file.
56156         * tests/test-log.c: New file.
56158         Tests for module 'lgamma'.
56159         * modules/lgamma-tests: New file.
56160         * tests/test-lgamma.c: New file.
56162         Tests for module 'ldexp'.
56163         * modules/ldexp-tests: New file.
56164         * tests/test-ldexp.c: New file.
56166         Tests for module 'jn'.
56167         * modules/jn-tests: New file.
56168         * tests/test-jn.c: New file.
56170         Tests for module 'j1'.
56171         * modules/j1-tests: New file.
56172         * tests/test-j1.c: New file.
56174         Tests for module 'j0'.
56175         * modules/j0-tests: New file.
56176         * tests/test-j0.c: New file.
56178         Tests for module 'hypot'.
56179         * modules/hypot-tests: New file.
56180         * tests/test-hypot.c: New file.
56182         Tests for module 'fmod'.
56183         * modules/fmod-tests: New file.
56184         * tests/test-fmod.c: New file.
56186         Tests for module 'fabs'.
56187         * modules/fabs-tests: New file.
56188         * tests/test-fabs.c: New file.
56190         Tests for module 'exp'.
56191         * modules/exp-tests: New file.
56192         * tests/test-exp.c: New file.
56194         Tests for module 'erfc'.
56195         * modules/erfc-tests: New file.
56196         * tests/test-erfc.c: New file.
56198         Tests for module 'erf'.
56199         * modules/erf-tests: New file.
56200         * tests/test-erf.c: New file.
56202         Tests for module 'cosh'.
56203         * modules/cosh-tests: New file.
56204         * tests/test-cosh.c: New file.
56206         Tests for module 'cos'.
56207         * modules/cos-tests: New file.
56208         * tests/test-cos.c: New file.
56210         Tests for module 'copysign'.
56211         * modules/copysign-tests: New file.
56212         * tests/test-copysign.c: New file.
56214         Tests for module 'cbrt'.
56215         * modules/cbrt-tests: New file.
56216         * tests/test-cbrt.c: New file.
56218         Tests for module 'atan2'.
56219         * modules/atan2-tests: New file.
56220         * tests/test-atan2.c: New file.
56222         Tests for module 'atan'.
56223         * modules/atan-tests: New file.
56224         * tests/test-atan.c: New file.
56226         Tests for module 'asin'.
56227         * modules/asin-tests: New file.
56228         * tests/test-asin.c: New file.
56230         Tests for module 'acos'.
56231         * modules/acos-tests: New file.
56232         * tests/test-acos.c: New file.
56234 2010-01-24  Bruno Haible  <bruno@clisp.org>
56236         Fix tests for common <math.h> functions.
56237         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
56238         code snippet that references the function pointer, rather than merely
56239         calling the function. Substitute the FUNC_LIBM variable.
56240         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
56241         * modules/acos (configure.ac): Likewise.
56242         * modules/asin (configure.ac): Likewise.
56243         * modules/atan (configure.ac): Likewise.
56244         * modules/atan2 (configure.ac): Likewise.
56245         * modules/cbrt (configure.ac): Likewise.
56246         * modules/copysign (configure.ac): Likewise.
56247         * modules/cos (configure.ac): Likewise.
56248         * modules/cosh (configure.ac): Likewise.
56249         * modules/erf (configure.ac): Likewise.
56250         * modules/erfc (configure.ac): Likewise.
56251         * modules/exp (configure.ac): Likewise.
56252         * modules/fabs (configure.ac): Likewise.
56253         * modules/fmod (configure.ac): Likewise.
56254         * modules/hypot (configure.ac): Likewise.
56255         * modules/j0 (configure.ac): Likewise.
56256         * modules/j1 (configure.ac): Likewise.
56257         * modules/jn (configure.ac): Likewise.
56258         * modules/ldexp (configure.ac): Likewise.
56259         * modules/lgamma (configure.ac): Likewise.
56260         * modules/log (configure.ac): Likewise.
56261         * modules/log10 (configure.ac): Likewise.
56262         * modules/log1p (configure.ac): Likewise.
56263         * modules/logb (configure.ac): Likewise.
56264         * modules/modf (configure.ac): Likewise.
56265         * modules/nextafter (configure.ac): Likewise.
56266         * modules/pow (configure.ac): Likewise.
56267         * modules/remainder (configure.ac): Likewise.
56268         * modules/rint (configure.ac): Likewise.
56269         * modules/sin (configure.ac): Likewise.
56270         * modules/sinh (configure.ac): Likewise.
56271         * modules/tan (configure.ac): Likewise.
56272         * modules/tanh (configure.ac): Likewise.
56273         * modules/y0 (configure.ac): Likewise.
56274         * modules/y1 (configure.ac): Likewise.
56275         * modules/yn (configure.ac): Likewise.
56277 2010-01-24  Bruno Haible  <bruno@clisp.org>
56279         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
56280         * tests/test-acosl.c (x): New variable.
56281         (main): Store argument in x and fetch it from x.
56282         * tests/test-asinl.c (x): New variable.
56283         (main): Store argument in x and fetch it from x.
56284         * tests/test-atanl.c (x): New variable.
56285         (main): Store argument in x and fetch it from x.
56286         * tests/test-cosl.c (x): New variable.
56287         (main): Store argument in x and fetch it from x.
56288         * tests/test-expl.c (x): New variable.
56289         (main): Store argument in x and fetch it from x.
56290         * tests/test-logl.c (x): New variable.
56291         (main): Store argument in x and fetch it from x.
56292         * tests/test-sinl.c (x): New variable.
56293         (main): Store argument in x and fetch it from x.
56294         * tests/test-sqrtl.c (x): New variable.
56295         (main): Store argument in x and fetch it from x.
56296         * tests/test-tanl.c (x): New variable.
56297         (main): Store argument in x and fetch it from x.
56299 2010-01-24  Bruno Haible  <bruno@clisp.org>
56301         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
56302         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
56303         assignments to the initial TESTS_ENVIRONMENT.
56304         * doc/gnulib.texi (Unit test modules): Document it.
56305         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
56306         TESTS_ENVIRONMENT.
56307         * modules/btowc-tests (Makefile.am): Likewise.
56308         * modules/c-stack-tests (Makefile.am): Likewise.
56309         * modules/c-strcase-tests (Makefile.am): Likewise.
56310         * modules/copy-file-tests (Makefile.am): Likewise.
56311         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
56312         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
56313         * modules/mbrtowc-tests (Makefile.am): Likewise.
56314         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56315         * modules/mbscasestr-tests (Makefile.am): Likewise.
56316         * modules/mbschr-tests (Makefile.am): Likewise.
56317         * modules/mbscspn-tests (Makefile.am): Likewise.
56318         * modules/mbsinit-tests (Makefile.am): Likewise.
56319         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56320         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
56321         * modules/mbspbrk-tests (Makefile.am): Likewise.
56322         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56323         * modules/mbsrchr-tests (Makefile.am): Likewise.
56324         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
56325         * modules/mbsspn-tests (Makefile.am): Likewise.
56326         * modules/mbsstr-tests (Makefile.am): Likewise.
56327         * modules/nl_langinfo-tests (Makefile.am): Likewise.
56328         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
56329         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56330         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56331         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56332         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56333         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
56334         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56335         * modules/wcrtomb-tests (Makefile.am): Likewise.
56336         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
56337         * modules/wcsrtombs-tests (Makefile.am): Likewise.
56338         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
56339         assignments from TESTS_ENVIRONMENT.
56340         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
56341         augmentation.
56342         * modules/argp-version-etc-tests (Makefile.am): Likewise.
56343         * modules/atexit-tests (Makefile.am): Likewise.
56344         * modules/binary-io-tests (Makefile.am): Likewise.
56345         * modules/closein-tests (Makefile.am): Likewise.
56346         * modules/dprintf-posix-tests (Makefile.am): Likewise.
56347         * modules/exclude-tests (Makefile.am): Likewise.
56348         * modules/fflush-tests (Makefile.am): Likewise.
56349         * modules/fpending-tests (Makefile.am): Likewise.
56350         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56351         * modules/freadahead-tests (Makefile.am): Likewise.
56352         * modules/freadptr-tests (Makefile.am): Likewise.
56353         * modules/freadseek-tests (Makefile.am): Likewise.
56354         * modules/fseek-tests (Makefile.am): Likewise.
56355         * modules/fseeko-tests (Makefile.am): Likewise.
56356         * modules/ftell-tests (Makefile.am): Likewise.
56357         * modules/ftello-tests (Makefile.am): Likewise.
56358         * modules/idpriv-drop-tests (Makefile.am): Likewise.
56359         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
56360         * modules/lseek-tests (Makefile.am): Likewise.
56361         * modules/parse-duration-tests (Makefile.am): Likewise.
56362         * modules/perror-tests (Makefile.am): Likewise.
56363         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
56364         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
56365         * modules/pipe-tests (Makefile.am): Likewise.
56366         * modules/pread-tests (Makefile.am): Likewise.
56367         * modules/printf-posix-tests (Makefile.am): Likewise.
56368         * modules/select-tests (Makefile.am): Likewise.
56369         * modules/sigpipe-tests (Makefile.am): Likewise.
56370         * modules/tsearch-tests (Makefile.am): Likewise.
56371         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
56372         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
56373         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56374         * modules/uniwidth/width-tests (Makefile.am): Likewise.
56375         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
56376         * modules/version-etc-tests (Makefile.am): Likewise.
56377         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56378         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56379         * modules/xalloc-die-tests (Makefile.am): Likewise.
56380         * modules/xprintf-posix-tests (Makefile.am): Likewise.
56381         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56382         * modules/xstrtol-tests (Makefile.am): Likewise.
56383         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56384         * modules/yesno-tests (Makefile.am): Likewise.
56385         Suggested by Jim Meyering.
56387 2010-01-24  Bruno Haible  <bruno@clisp.org>
56389         More documentation.
56390         * doc/gnulib.texi (Writing modules): New chapter.
56391         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
56392         the new chapter.
56394 2010-01-24  Jim Meyering  <meyering@redhat.com>
56396         maint.mk: do not prepend "./" after filtering
56397         * top/maint.mk (_prepend_srcdir_prefix): New variable
56398         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
56399         "./" when $(srcdir) is ".".
56401         define STREQ(a,b) consistently, removing useless parentheses
56402         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
56403         since the only risk is that "a" or "b" contains an unparenthesized
56404         comma, but if either did that, STREQ would have 3 or more arguments.
56405         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
56406         * lib/fts.c (STREQ): Remove unnecessary parentheses.
56407         * lib/hash-triple.c (STREQ): Likewise.
56408         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
56409         * lib/getugroups.c (STREQ): Likewise.
56411 2010-01-23  Jim Meyering  <meyering@redhat.com>
56413         maint.mk: fix syntax-check in a non-srcdir build directory
56414         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
56415         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
56417 2010-01-22  Jim Meyering  <meyering@redhat.com>
56419         userspec: add unit tests
56420         * tests/test-userspec.c: New file.
56421         * modules/userspec-tests: Likewise.
56423 2010-01-21  Jim Meyering  <meyering@redhat.com>
56425         maint.mk: handle source file names containing "." robustly
56426         * top/maint.mk (_dot_escaped_srcdir): Define.
56427         (VC_LIST): Use it in LHS of sed substitution.
56429 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
56431         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
56432         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
56433         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
56434         from a non-srcdir build.
56436 2010-01-20  Eric Blake  <ebb9@byu.net>
56438         warn-on-use: use instead of link-warning
56439         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
56440         * modules/unistd (Depends-on, Makefile.am): Likewise.
56441         * modules/arpa_inet (Depends-on): Replace link-warning with
56442         warn-on-use.
56443         (Makefile.am): Update rules accordingly.
56444         * modules/ctype (Depends-on, Makefile.am): Likewise.
56445         * modules/dirent (Depends-on, Makefile.am): Likewise.
56446         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
56447         * modules/inttypes (Depends-on, Makefile.am): Likewise.
56448         * modules/langinfo (Depends-on, Makefile.am): Likewise.
56449         * modules/locale (Depends-on, Makefile.am): Likewise.
56450         * modules/math (Depends-on, Makefile.am): Likewise.
56451         * modules/search (Depends-on, Makefile.am): Likewise.
56452         * modules/signal (Depends-on, Makefile.am): Likewise.
56453         * modules/spawn (Depends-on, Makefile.am): Likewise.
56454         * modules/stdlib (Depends-on, Makefile.am): Likewise.
56455         * modules/string (Depends-on, Makefile.am): Likewise.
56456         * modules/strings (Depends-on, Makefile.am): Likewise.
56457         * modules/sys_file (Depends-on, Makefile.am): Likewise.
56458         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
56459         * modules/sys_select (Depends-on, Makefile.am): Likewise.
56460         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
56461         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
56462         * modules/sys_times (Depends-on, Makefile.am): Likewise.
56463         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
56464         * modules/wchar (Depends-on, Makefile.am): Likewise.
56465         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
56466         should be poisoned.
56467         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
56468         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
56469         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
56470         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56471         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
56472         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56473         * m4/math_h.m4 (gl_MATH_H): Likewise.
56474         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56475         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
56476         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56477         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
56478         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
56479         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
56480         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
56481         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
56482         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
56483         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56484         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56485         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
56486         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56487         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56488         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56489         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56490         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
56491         GL_LINK_WARNING.
56492         * lib/ctype.in.h: Likewise.
56493         * lib/dirent.in.h: Likewise.
56494         * lib/fcntl.in.h: Likewise.
56495         * lib/inttypes.in.h: Likewise.
56496         * lib/langinfo.in.h: Likewise.
56497         * lib/locale.in.h: Likewise.
56498         * lib/math.in.h: Likewise.
56499         * lib/search.in.h: Likewise.
56500         * lib/signal.in.h: Likewise.
56501         * lib/spawn.in.h: Likewise.
56502         * lib/stdio.in.h: Likewise.
56503         * lib/stdlib.in.h: Likewise.
56504         * lib/string.in.h: Likewise.
56505         * lib/strings.in.h: Likewise.
56506         * lib/sys_file.in.h: Likewise.
56507         * lib/sys_ioctl.in.h: Likewise.
56508         * lib/sys_select.in.h: Likewise.
56509         * lib/sys_socket.in.h: Likewise.
56510         * lib/sys_stat.in.h: Likewise.
56511         * lib/sys_times.in.h: Likewise.
56512         * lib/sys_utsname.in.h: Likewise.
56513         * lib/unistd.in.h: Likewise.
56514         * lib/wchar.in.h: Likewise.
56516 2010-01-20  Bruno Haible  <bruno@clisp.org>
56518         Avoid duplicate -lm.
56519         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
56520         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
56521         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
56522         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
56523         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
56524         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
56525         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
56526         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
56527         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
56528         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
56529         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
56530         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
56531         Reported by Paolo Bonzini.
56533 2010-01-19  Bruno Haible  <bruno@clisp.org>
56535         langinfo, nl_langinfo: Relicense under LGPLv2+.
56536         * modules/langinfo (License): Change to LGPLv2+.
56537         * modules/nl_langinfo (License): Likewise.
56538         Patch by David Lutterkort <lutter@redhat.com>.
56540 2010-01-19  Bruno Haible  <bruno@clisp.org>
56542         Avoid compilation error with cc on OSF/1 5.1.
56543         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
56544         statement, not before.
56545         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56547 2010-01-18  Bruno Haible  <bruno@clisp.org>
56549         Avoid a link error due to the __printf__ symbol.
56550         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
56551         and 2.6.x.
56552         (__format__, __printf__): Remove definitions.
56553         * lib/argp-fmtstream.h: Likewise.
56554         * lib/argp.h: Likewise.
56555         * lib/error.h: Likewise.
56556         * lib/vasnprintf.h: Likewise.
56557         * lib/xprintf.h: Likewise.
56558         * lib/xvasprintf.h: Likewise.
56559         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56561 2010-01-18  Bruno Haible  <bruno@clisp.org>
56563         Tests for module 'tanl'.
56564         * modules/tanl-tests: New file.
56565         * tests/test-tanl.c: New file.
56567         Tests for module 'sqrtl'.
56568         * modules/sqrtl-tests: New file.
56569         * tests/test-sqrtl.c: New file.
56571         Tests for module 'sinl'.
56572         * modules/sinl-tests: New file.
56573         * tests/test-sinl.c: New file.
56575         Tests for module 'logl'.
56576         * modules/logl-tests: New file.
56577         * tests/test-logl.c: New file.
56579         Tests for module 'expl'.
56580         * modules/expl-tests: New file.
56581         * tests/test-expl.c: New file.
56583         Tests for module 'cosl'.
56584         * modules/cosl-tests: New file.
56585         * tests/test-cosl.c: New file.
56587         Tests for module 'atanl'.
56588         * modules/atanl-tests: New file.
56589         * tests/test-atanl.c: New file.
56591         Tests for module 'asinl'.
56592         * modules/asinl-tests: New file.
56593         * tests/test-asinl.c: New file.
56595         Tests for module 'acosl'.
56596         * modules/acosl-tests: New file.
56597         * tests/test-acosl.c: New file.
56599         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
56600         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
56601         tanl): Use the standard gnulib idiom.
56602         * lib/cosl.c: Don't include trigl.c and sincosl.c.
56603         * lib/sinl.c: Likewise.
56604         * lib/tanl.c: Don't include trigl.c.
56605         (kernel_tanl): Make static.
56606         * lib/sincosl.c: Include trigl.h first.
56607         * lib/trigl.c: Likewise.
56608         * m4/acosl.m4: New file.
56609         * m4/asinl.m4: New file.
56610         * m4/atanl.m4: New file.
56611         * m4/cosl.m4: New file.
56612         * m4/expl.m4: New file.
56613         * m4/logl.m4: New file.
56614         * m4/sinl.m4: New file.
56615         * m4/sqrtl.m4: New file.
56616         * m4/tanl.m4: New file.
56617         * m4/mathl.m4: Remove file.
56618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
56619         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
56620         Don't initialize GNULIB_MATHL.
56621         * modules/acosl: New file.
56622         * modules/asinl: New file.
56623         * modules/atanl: New file.
56624         * modules/cosl: New file.
56625         * modules/expl: New file.
56626         * modules/logl: New file.
56627         * modules/sinl: New file.
56628         * modules/sqrtl: New file.
56629         * modules/tanl: New file.
56630         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
56631         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
56632         substitute GNULIB_MATHL.
56633         * modules/mathl: Rewritten.
56634         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
56635         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
56636         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
56637         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
56638         * doc/posix-functions/expl.texi: Mention the 'expl' module.
56639         * doc/posix-functions/logl.texi: Mention the 'logl' module.
56640         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
56641         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
56642         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
56644 2010-01-18  Bruno Haible  <bruno@clisp.org>
56646         sqrt: Make gl_FUNC_SQRT requirable.
56647         * m4/sqrt.m4: New file.
56648         * modules/sqrt (Files): Add it.
56649         (configure.ac): Invoke gl_FUNC_SQRT.
56651 2010-01-18  Bruno Haible  <bruno@clisp.org>
56653         New modules for common <math.h> functions.
56654         * m4/mathfunc.m4: New file.
56655         * modules/acos: New file.
56656         * modules/asin: New file.
56657         * modules/atan: New file.
56658         * modules/atan2: New file.
56659         * modules/cbrt: New file.
56660         * modules/copysign: New file.
56661         * modules/cos: New file.
56662         * modules/cosh: New file.
56663         * modules/erf: New file.
56664         * modules/erfc: New file.
56665         * modules/exp: New file.
56666         * modules/fabs: New file.
56667         * modules/fmod: New file.
56668         * modules/hypot: New file.
56669         * modules/j0: New file.
56670         * modules/j1: New file.
56671         * modules/jn: New file.
56672         * modules/ldexp: New file.
56673         * modules/lgamma: New file.
56674         * modules/log: New file.
56675         * modules/log10: New file.
56676         * modules/log1p: New file.
56677         * modules/logb: New file.
56678         * modules/modf: New file.
56679         * modules/nextafter: New file.
56680         * modules/pow: New file.
56681         * modules/remainder: New file.
56682         * modules/rint: New file.
56683         * modules/sin: New file.
56684         * modules/sinh: New file.
56685         * modules/sqrt: New file.
56686         * modules/tan: New file.
56687         * modules/tanh: New file.
56688         * modules/y0: New file.
56689         * modules/y1: New file.
56690         * modules/yn: New file.
56691         * doc/posix-functions/acos.texi: Mention the 'acos' module.
56692         * doc/posix-functions/asin.texi: Mention the 'asin' module.
56693         * doc/posix-functions/atan.texi: Mention the 'atan' module.
56694         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
56695         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
56696         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
56697         * doc/posix-functions/cos.texi: Mention the 'cos' module.
56698         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
56699         * doc/posix-functions/erf.texi: Mention the 'erf' module.
56700         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
56701         * doc/posix-functions/exp.texi: Mention the 'exp' module.
56702         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
56703         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
56704         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
56705         * doc/posix-functions/j0.texi: Mention the 'j0' module.
56706         * doc/posix-functions/j1.texi: Mention the 'j1' module.
56707         * doc/posix-functions/jn.texi: Mention the 'jn' module.
56708         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
56709         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
56710         * doc/posix-functions/log.texi: Mention the 'log' module.
56711         * doc/posix-functions/log10.texi: Mention the 'log10' module.
56712         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
56713         * doc/posix-functions/logb.texi: Mention the 'logb' module.
56714         * doc/posix-functions/modf.texi: Mention the 'modf' module.
56715         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
56716         * doc/posix-functions/pow.texi: Mention the 'pow' module.
56717         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
56718         * doc/posix-functions/rint.texi: Mention the 'rint' module.
56719         * doc/posix-functions/sin.texi: Mention the 'sin' module.
56720         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
56721         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
56722         * doc/posix-functions/tan.texi: Mention the 'tan' module.
56723         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
56724         * doc/posix-functions/y0.texi: Mention the 'y0' module.
56725         * doc/posix-functions/y1.texi: Mention the 'y1' module.
56726         * doc/posix-functions/yn.texi: Mention the 'yn' module.
56728 2010-01-18  Jim Meyering  <meyering@redhat.com>
56730         ignore-value: relax license to LGPLv2+
56731         * modules/ignore-value (License): Relax to LGPLv2+.
56733         getdate: don't leak when TZ contains two or more '"'s
56734         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
56735         double quote in TZ after the first one.
56737         readtokens: do not leak internal token_lengths buffer
56738         * lib/readtokens.c (readtokens): Free the local, lengths,
56739         when the supplied "token_lengths" parameter is NULL.
56741 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56743         Fix a couple of missing LIBTHREAD link failures on AIX.
56744         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
56745         $(LIBTHREAD).
56746         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
56748         Link test-poll against INET_PTON_LIB.
56749         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
56750         for inet_pton on Solaris 10.
56752 2010-01-17  Bruno Haible  <bruno@clisp.org>
56754         unistdio/*-sprintf: Fix typo in module description.
56755         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
56756         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
56757         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
56758         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
56759         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
56760         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
56761         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
56762         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56764 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56766         gnulib-tool: fix filelist for AIX, HP-UX ksh.
56767         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
56768         variables in shell case patterns, for AIX and HP-UX ksh.
56770         Split large sed scripts, for HP-UX sed.
56771         * modules/stdio: Split sed scripts around 50 sed commands,
56772         to avoid HP-UX limit of 99 commands, in the near future.
56773         * modules/string: Likewise.
56774         * modules/unistd: Likewise.
56776         gnulib-tool: avoid writing in the current directory.
56777         * gnulib-tool (func_emit_lib_Makefile_am)
56778         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
56779         not in the current directory, so concurrent gnulib-tool
56780         instances do not interfere.
56782 2010-01-16  Jim Meyering  <meyering@redhat.com>
56784         doc: update users.txt
56785         * users.txt: Add grep.
56786         (diffutils, gzip): Update URLs.
56788 2010-01-12  Bruno Haible  <bruno@clisp.org>
56790         posix_spawn: Avoid test failure on Cygwin.
56791         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
56792         characters.
56793         Reported by Simon Josefsson.
56795 2010-01-12  Bruno Haible  <bruno@clisp.org>
56797         * tests/test-cond.c (main): When skipping the test, show the reason.
56799 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56801         * lib/striconv.c (str_cd_iconv): Avoid if before free.
56803 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56805         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
56806         VC_LIST_ALWAYS_EXCLUDE_REGEX.
56808 2010-01-12  Eric Blake  <ebb9@byu.net>
56810         build: guarantee AS_VAR_IF
56811         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
56812         (gl_AS_VAR_IF): Move...
56813         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
56814         Reported by Simon Josefsson.
56816 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56818         * lib/stdio.in.h: Fix typo.
56820 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56822         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
56823         libgpg-error.
56825 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56827         * tests/test-xalloc-die.sh: Use $EXEEXT.
56829 2010-01-12  Simon Josefsson  <simon@josefsson.org>
56830             Bruno Haible  <bruno@clisp.org>
56832         getlogin, getlogin_r: Avoid test failure.
56833         * tests/test-getlogin.c: Include <stdio.h>.
56834         (main): Skip the test when the function fails because stdin is not a
56835         tty.
56836         * tests/test-getlogin_r.c: Include <stdio.h>.
56837         (main): Skip the test when the function fails because stdin is not a
56838         tty.
56840 2010-01-11  Eric Blake  <ebb9@byu.net>
56842         tests: avoid more large file warnings
56843         * tests/test-fflush.c: Avoid warning about ftell use.
56844         * tests/test-fseek.c: Avoid warning about fseek use.
56846 2010-01-10  Bruno Haible  <bruno@clisp.org>
56848         nproc: Work better on Linux when /proc and /sys are not mounted.
56849         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
56850         as lower bound when, on glibc/Linux systems,
56851         sysconf (_SC_NPROCESSORS_CONF) returns 1.
56852         Suggested by Pádraig Brady <P@draigbrady.com>.
56853         Reported by Dmitry V. Levin <ldv@altlinux.org>.
56855         nproc: Refactor.
56856         * lib/nproc.c (num_processors_via_affinity_mask): New function,
56857         extracted from num_processors.
56858         (num_processors): Call it.
56860 2010-01-11  Jim Meyering  <meyering@redhat.com>
56862         utimecmp: avoid new warning from upcoming gcc-4.5.0
56863         * lib/utimecmp.c (BILLION): Define using #define rather than an
56864         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
56866 2010-01-11  Eric Blake  <ebb9@byu.net>
56868         math: add portability warnings for classification macros
56869         * modules/math (Depends-on): Add warn-on-use.
56870         (Makefile.am): Provide new substitutions.
56871         * m4/math_h.m4 (gl_MATH_H): Require inline.
56872         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
56873         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
56874         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
56875         implement warnings.
56877         unistd: warn on use of environ without module
56878         * modules/unistd (Depends-on): Add warn-on-use.
56879         (Makefile.am): Provide new substitutions.
56880         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
56881         * lib/unistd.in.h (environ): Wrap with a warning helper function.
56883         stdio: warn on suspicious uses
56884         * modules/stdio (Depends-on): Add warn-on-use.
56885         (Makefile.am): Provide new substitutions.
56886         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
56887         fseeko.
56888         * lib/stdio.in.h (gets): Always warn on use.
56889         (fseek, ftell): Adjust when warnings are issued, and honor
56890         _GL_NO_LARGE_FILES as a way to silence the warning.
56891         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
56892         any warning about large file offsets.
56893         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
56894         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
56895         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
56896         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
56897         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
56898         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
56899         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
56900         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
56902         warn-on-use: new module
56903         * modules/warn-on-use: New file.
56904         * build-aux/warn-on-use.h: Likewise.
56905         * m4/warn-on-use.m4: Likewise.
56906         * MODULES.html.sh (Support for building): Mention it.
56908 2010-01-10  Bruno Haible  <bruno@clisp.org>
56910         Tests for module 'unistr/u32-strdup'.
56911         * modules/unistr/u32-strdup-tests: New file.
56912         * tests/unistr/test-u32-strdup.c: New file.
56914         Tests for module 'unistr/u16-strdup'.
56915         * modules/unistr/u16-strdup-tests: New file.
56916         * tests/unistr/test-u16-strdup.c: New file.
56918         Tests for module 'unistr/u8-strdup'.
56919         * modules/unistr/u8-strdup-tests: New file.
56920         * tests/unistr/test-u8-strdup.c: New file.
56921         * tests/unistr/test-strdup.h: New file.
56923         Tests for module 'unistr/u32-strncmp'.
56924         * modules/unistr/u32-strncmp-tests: New file.
56925         * tests/unistr/test-u32-strncmp.c: New file.
56927         Tests for module 'unistr/u16-strncmp'.
56928         * modules/unistr/u16-strncmp-tests: New file.
56929         * tests/unistr/test-u16-strncmp.c: New file.
56931         Tests for module 'unistr/u8-strncmp'.
56932         * modules/unistr/u8-strncmp-tests: New file.
56933         * tests/unistr/test-u8-strncmp.c: New file.
56934         * tests/unistr/test-strncmp.h: New file.
56936         Tests for module 'unistr/u32-strcoll'.
56937         * modules/unistr/u32-strcoll-tests: New file.
56938         * tests/unistr/test-u32-strcoll.c: New file.
56940         Tests for module 'unistr/u16-strcoll'.
56941         * modules/unistr/u16-strcoll-tests: New file.
56942         * tests/unistr/test-u16-strcoll.c: New file.
56944         Tests for module 'unistr/u8-strcoll'.
56945         * modules/unistr/u8-strcoll-tests: New file.
56946         * tests/unistr/test-u8-strcoll.c: New file.
56948         Tests for module 'unistr/u32-strcmp'.
56949         * modules/unistr/u32-strcmp-tests: New file.
56950         * tests/unistr/test-u32-strcmp.c: New file.
56951         * tests/unistr/test-u32-strcmp.h: New file.
56953         Tests for module 'unistr/u16-strcmp'.
56954         * modules/unistr/u16-strcmp-tests: New file.
56955         * tests/unistr/test-u16-strcmp.c: New file.
56956         * tests/unistr/test-u16-strcmp.h: New file.
56958         Tests for module 'unistr/u8-strcmp'.
56959         * modules/unistr/u8-strcmp-tests: New file.
56960         * tests/unistr/test-u8-strcmp.c: New file.
56961         * tests/unistr/test-u8-strcmp.h: New file.
56962         * tests/unistr/test-strcmp.h: New file.
56964         Tests for module 'unistr/u32-strncat'.
56965         * modules/unistr/u32-strncat-tests: New file.
56966         * tests/unistr/test-u32-strncat.c: New file.
56968         Tests for module 'unistr/u16-strncat'.
56969         * modules/unistr/u16-strncat-tests: New file.
56970         * tests/unistr/test-u16-strncat.c: New file.
56972         Tests for module 'unistr/u8-strncat'.
56973         * modules/unistr/u8-strncat-tests: New file.
56974         * tests/unistr/test-u8-strncat.c: New file.
56975         * tests/unistr/test-strncat.h: New file.
56977         Tests for module 'unistr/u32-strcat'.
56978         * modules/unistr/u32-strcat-tests: New file.
56979         * tests/unistr/test-u32-strcat.c: New file.
56981         Tests for module 'unistr/u16-strcat'.
56982         * modules/unistr/u16-strcat-tests: New file.
56983         * tests/unistr/test-u16-strcat.c: New file.
56985         Tests for module 'unistr/u8-strcat'.
56986         * modules/unistr/u8-strcat-tests: New file.
56987         * tests/unistr/test-u8-strcat.c: New file.
56988         * tests/unistr/test-strcat.h: New file.
56990         Tests for module 'unistr/u32-stpncpy'.
56991         * modules/unistr/u32-stpncpy-tests: New file.
56992         * tests/unistr/test-u32-stpncpy.c: New file.
56994         Tests for module 'unistr/u16-stpncpy'.
56995         * modules/unistr/u16-stpncpy-tests: New file.
56996         * tests/unistr/test-u16-stpncpy.c: New file.
56998         Tests for module 'unistr/u8-stpncpy'.
56999         * modules/unistr/u8-stpncpy-tests: New file.
57000         * tests/unistr/test-u8-stpncpy.c: New file.
57001         * tests/unistr/test-stpncpy.h: New file.
57003         Tests for module 'unistr/u32-strncpy'.
57004         * modules/unistr/u32-strncpy-tests: New file.
57005         * tests/unistr/test-u32-strncpy.c: New file.
57007         Tests for module 'unistr/u16-strncpy'.
57008         * modules/unistr/u16-strncpy-tests: New file.
57009         * tests/unistr/test-u16-strncpy.c: New file.
57011         Tests for module 'unistr/u8-strncpy'.
57012         * modules/unistr/u8-strncpy-tests: New file.
57013         * tests/unistr/test-u8-strncpy.c: New file.
57014         * tests/unistr/test-strncpy.h: New file.
57016         Tests for module 'unistr/u32-stpcpy'.
57017         * modules/unistr/u32-stpcpy-tests: New file.
57018         * tests/unistr/test-u32-stpcpy.c: New file.
57020         Tests for module 'unistr/u16-stpcpy'.
57021         * modules/unistr/u16-stpcpy-tests: New file.
57022         * tests/unistr/test-u16-stpcpy.c: New file.
57024         Tests for module 'unistr/u8-stpcpy'.
57025         * modules/unistr/u8-stpcpy-tests: New file.
57026         * tests/unistr/test-u8-stpcpy.c: New file.
57027         * tests/unistr/test-stpcpy.h: New file.
57029         Tests for module 'unistr/u32-strcpy'.
57030         * modules/unistr/u32-strcpy-tests: New file.
57031         * tests/unistr/test-u32-strcpy.c: New file.
57033         Tests for module 'unistr/u16-strcpy'.
57034         * modules/unistr/u16-strcpy-tests: New file.
57035         * tests/unistr/test-u16-strcpy.c: New file.
57037         Tests for module 'unistr/u8-strcpy'.
57038         * modules/unistr/u8-strcpy-tests: New file.
57039         * tests/unistr/test-u8-strcpy.c: New file.
57040         * tests/unistr/test-strcpy.h: New file.
57042         Tests for module 'unistr/u32-strnlen'.
57043         * modules/unistr/u32-strnlen-tests: New file.
57044         * tests/unistr/test-u32-strnlen.c: New file.
57046         Tests for module 'unistr/u16-strnlen'.
57047         * modules/unistr/u16-strnlen-tests: New file.
57048         * tests/unistr/test-u16-strnlen.c: New file.
57050         Tests for module 'unistr/u8-strnlen'.
57051         * modules/unistr/u8-strnlen-tests: New file.
57052         * tests/unistr/test-u8-strnlen.c: New file.
57053         * tests/unistr/test-strnlen.h: New file.
57055         Tests for module 'unistr/u32-strlen'.
57056         * modules/unistr/u32-strlen-tests: New file.
57057         * tests/unistr/test-u32-strlen.c: New file.
57059         Tests for module 'unistr/u16-strlen'.
57060         * modules/unistr/u16-strlen-tests: New file.
57061         * tests/unistr/test-u16-strlen.c: New file.
57063         Tests for module 'unistr/u8-strlen'.
57064         * modules/unistr/u8-strlen-tests: New file.
57065         * tests/unistr/test-u8-strlen.c: New file.
57067         Tests for module 'unistr/u32-prev'.
57068         * modules/unistr/u32-prev-tests: New file.
57069         * tests/unistr/test-u32-prev.c: New file.
57071         Tests for module 'unistr/u16-prev'.
57072         * modules/unistr/u16-prev-tests: New file.
57073         * tests/unistr/test-u16-prev.c: New file.
57075         Tests for module 'unistr/u8-prev'.
57076         * modules/unistr/u8-prev-tests: New file.
57077         * tests/unistr/test-u8-prev.c: New file.
57079         Tests for module 'unistr/u32-next'.
57080         * modules/unistr/u32-next-tests: New file.
57081         * tests/unistr/test-u32-next.c: New file.
57083         Tests for module 'unistr/u16-next'.
57084         * modules/unistr/u16-next-tests: New file.
57085         * tests/unistr/test-u16-next.c: New file.
57087         Tests for module 'unistr/u8-next'.
57088         * modules/unistr/u8-next-tests: New file.
57089         * tests/unistr/test-u8-next.c: New file.
57091         Tests for module 'unistr/u32-strmbtouc'.
57092         * modules/unistr/u32-strmbtouc-tests: New file.
57093         * tests/unistr/test-u32-strmbtouc.c: New file.
57095         Tests for module 'unistr/u16-strmbtouc'.
57096         * modules/unistr/u16-strmbtouc-tests: New file.
57097         * tests/unistr/test-u16-strmbtouc.c: New file.
57099         Tests for module 'unistr/u8-strmbtouc'.
57100         * modules/unistr/u8-strmbtouc-tests: New file.
57101         * tests/unistr/test-u8-strmbtouc.c: New file.
57103         Tests for module 'unistr/u32-strmblen'.
57104         * modules/unistr/u32-strmblen-tests: New file.
57105         * tests/unistr/test-u32-strmblen.c: New file.
57107         Tests for module 'unistr/u16-strmblen'.
57108         * modules/unistr/u16-strmblen-tests: New file.
57109         * tests/unistr/test-u16-strmblen.c: New file.
57111         Tests for module 'unistr/u8-strmblen'.
57112         * modules/unistr/u8-strmblen-tests: New file.
57113         * tests/unistr/test-u8-strmblen.c: New file.
57115         Tests for module 'unistr/u32-cpy-alloc'.
57116         * modules/unistr/u32-cpy-alloc-tests: New file.
57117         * tests/unistr/test-u32-cpy-alloc.c: New file.
57119         Tests for module 'unistr/u16-cpy-alloc'.
57120         * modules/unistr/u16-cpy-alloc-tests: New file.
57121         * tests/unistr/test-u16-cpy-alloc.c: New file.
57123         Tests for module 'unistr/u8-cpy-alloc'.
57124         * modules/unistr/u8-cpy-alloc-tests: New file.
57125         * tests/unistr/test-u8-cpy-alloc.c: New file.
57126         * tests/unistr/test-cpy-alloc.h: New file.
57128         Tests for module 'unistr/u32-mbsnlen'.
57129         * modules/unistr/u32-mbsnlen-tests: New file.
57130         * tests/unistr/test-u32-mbsnlen.c: New file.
57132         Tests for module 'unistr/u16-mbsnlen'.
57133         * modules/unistr/u16-mbsnlen-tests: New file.
57134         * tests/unistr/test-u16-mbsnlen.c: New file.
57136         Tests for module 'unistr/u8-mbsnlen'.
57137         * modules/unistr/u8-mbsnlen-tests: New file.
57138         * tests/unistr/test-u8-mbsnlen.c: New file.
57140         Tests for module 'unistr/u32-chr'.
57141         * modules/unistr/u32-chr-tests: New file.
57142         * tests/unistr/test-u32-chr.c: New file.
57144         Tests for module 'unistr/u16-chr'.
57145         * modules/unistr/u16-chr-tests: New file.
57146         * tests/unistr/test-u16-chr.c: New file.
57148         Tests for module 'unistr/u8-chr'.
57149         * modules/unistr/u8-chr-tests: New file.
57150         * tests/unistr/test-u8-chr.c: New file.
57151         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
57153         Tests for module 'unistr/u32-cmp2'.
57154         * modules/unistr/u32-cmp2-tests: New file.
57155         * tests/unistr/test-u32-cmp2.c: New file.
57157         Tests for module 'unistr/u16-cmp2'.
57158         * modules/unistr/u16-cmp2-tests: New file.
57159         * tests/unistr/test-u16-cmp2.c: New file.
57161         Tests for module 'unistr/u8-cmp2'.
57162         * modules/unistr/u8-cmp2-tests: New file.
57163         * tests/unistr/test-u8-cmp2.c: New file.
57164         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
57166         Tests for module 'unistr/u32-cmp'.
57167         * modules/unistr/u32-cmp-tests: New file.
57168         * tests/unistr/test-u32-cmp.c: New file.
57170         Tests for module 'unistr/u16-cmp'.
57171         * modules/unistr/u16-cmp-tests: New file.
57172         * tests/unistr/test-u16-cmp.c: New file.
57174         Tests for module 'unistr/u8-cmp'.
57175         * modules/unistr/u8-cmp-tests: New file.
57176         * tests/unistr/test-u8-cmp.c: New file.
57177         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
57179         Tests for module 'unistr/u32-set'.
57180         * modules/unistr/u32-set-tests: New file.
57181         * tests/unistr/test-u32-set.c: New file.
57183         Tests for module 'unistr/u16-set'.
57184         * modules/unistr/u16-set-tests: New file.
57185         * tests/unistr/test-u16-set.c: New file.
57187         Tests for module 'unistr/u8-set'.
57188         * modules/unistr/u8-set-tests: New file.
57189         * tests/unistr/test-u8-set.c: New file.
57190         * tests/unistr/test-set.h: New file.
57192         Tests for module 'unistr/u32-move'.
57193         * modules/unistr/u32-move-tests: New file.
57194         * tests/unistr/test-u32-move.c: New file.
57196         Tests for module 'unistr/u16-move'.
57197         * modules/unistr/u16-move-tests: New file.
57198         * tests/unistr/test-u16-move.c: New file.
57200         Tests for module 'unistr/u8-move'.
57201         * modules/unistr/u8-move-tests: New file.
57202         * tests/unistr/test-u8-move.c: New file.
57203         * tests/unistr/test-move.h: New file.
57205         Tests for module 'unistr/u32-cpy'.
57206         * modules/unistr/u32-cpy-tests: New file.
57207         * tests/unistr/test-u32-cpy.c: New file.
57209         Tests for module 'unistr/u16-cpy'.
57210         * modules/unistr/u16-cpy-tests: New file.
57211         * tests/unistr/test-u16-cpy.c: New file.
57213         Tests for module 'unistr/u8-cpy'.
57214         * modules/unistr/u8-cpy-tests: New file.
57215         * tests/unistr/test-u8-cpy.c: New file.
57216         * tests/unistr/test-cpy.h: New file.
57218 2010-01-09  Bruno Haible  <bruno@clisp.org>
57220         Tests for module 'unistr/u32-uctomb'.
57221         * modules/unistr/u32-uctomb-tests: New file.
57222         * tests/unistr/test-u32-uctomb.c: New file.
57224         Tests for module 'unistr/u16-uctomb'.
57225         * modules/unistr/u16-uctomb-tests: New file.
57226         * tests/unistr/test-u16-uctomb.c: New file.
57228         Tests for module 'unistr/u8-uctomb'.
57229         * modules/unistr/u8-uctomb-tests: New file.
57230         * tests/unistr/test-u8-uctomb.c: New file.
57232         Tests for module 'unistr/u32-mbtoucr'.
57233         * modules/unistr/u32-mbtoucr-tests: New file.
57234         * tests/unistr/test-u32-mbtoucr.c: New file.
57236         Tests for module 'unistr/u16-mbtoucr'.
57237         * modules/unistr/u16-mbtoucr-tests: New file.
57238         * tests/unistr/test-u16-mbtoucr.c: New file.
57240         Tests for module 'unistr/u8-mbtoucr'.
57241         * modules/unistr/u8-mbtoucr-tests: New file.
57242         * tests/unistr/test-u8-mbtoucr.c: New file.
57244         Tests for module 'unistr/u32-mbtouc'.
57245         * modules/unistr/u32-mbtouc-tests: New file.
57246         * tests/unistr/test-u32-mbtouc.c: New file.
57248         Tests for module 'unistr/u16-mbtouc'.
57249         * modules/unistr/u16-mbtouc-tests: New file.
57250         * tests/unistr/test-u16-mbtouc.c: New file.
57252         Tests for module 'unistr/u8-mbtouc'.
57253         * modules/unistr/u8-mbtouc-tests: New file.
57254         * tests/unistr/test-u8-mbtouc.c: New file.
57256         Tests for module 'unistr/u32-mbtouc-unsafe'.
57257         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
57258         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
57259         * tests/unistr/test-u32-mbtouc.h: New file.
57261         Tests for module 'unistr/u16-mbtouc-unsafe'.
57262         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
57263         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
57264         * tests/unistr/test-u16-mbtouc.h: New file.
57266         Tests for module 'unistr/u8-mbtouc-unsafe'.
57267         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
57268         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
57269         * tests/unistr/test-u8-mbtouc.h: New file.
57271         Tests for module 'unistr/u32-mblen'.
57272         * modules/unistr/u32-mblen-tests: New file.
57273         * tests/unistr/test-u32-mblen.c: New file.
57275         Tests for module 'unistr/u16-mblen'.
57276         * modules/unistr/u16-mblen-tests: New file.
57277         * tests/unistr/test-u16-mblen.c: New file.
57279         Tests for module 'unistr/u8-mblen'.
57280         * modules/unistr/u8-mblen-tests: New file.
57281         * tests/unistr/test-u8-mblen.c: New file.
57283         Tests for module 'unistr/u32-to-u16'.
57284         * modules/unistr/u32-to-u16-tests: New file.
57285         * tests/unistr/test-u32-to-u16.c: New file.
57287         Tests for module 'unistr/u32-to-u8'.
57288         * modules/unistr/u32-to-u8-tests: New file.
57289         * tests/unistr/test-u32-to-u8.c: New file.
57291         Tests for module 'unistr/u16-to-u32'.
57292         * modules/unistr/u16-to-u32-tests: New file.
57293         * tests/unistr/test-u16-to-u32.c: New file.
57295         Tests for module 'unistr/u16-to-u8'.
57296         * modules/unistr/u16-to-u8-tests: New file.
57297         * tests/unistr/test-u16-to-u8.c: New file.
57299         Tests for module 'unistr/u8-to-u32'.
57300         * modules/unistr/u8-to-u32-tests: New file.
57301         * tests/unistr/test-u8-to-u32.c: New file.
57303         Tests for module 'unistr/u8-to-u16'.
57304         * modules/unistr/u8-to-u16-tests: New file.
57305         * tests/unistr/test-u8-to-u16.c: New file.
57307         Tests for module 'unistr/u32-check'.
57308         * modules/unistr/u32-check-tests: New file.
57309         * tests/unistr/test-u32-check.c: New file.
57311         Tests for module 'unistr/u16-check'.
57312         * modules/unistr/u16-check-tests: New file.
57313         * tests/unistr/test-u16-check.c: New file.
57315         Tests for module 'unistr/u8-check'.
57316         * modules/unistr/u8-check-tests: New file.
57317         * tests/unistr/test-u8-check.c: New file.
57319         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
57320         (category_equals): New function.
57321         (main): Add more tests.
57322         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
57324         * tests/unictype/test-bidi_byname.c (main): Add more tests.
57326 2010-01-10  Bruno Haible  <bruno@clisp.org>
57328         unistr/u*-strcoll: Try harder to distinguish different strings.
57329         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
57330         compare s1 and s2 to see if they are different.
57332 2010-01-10  Bruno Haible  <bruno@clisp.org>
57334         unistr/u*-stpncpy: Fix the return value.
57335         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
57336         description of the return value consistent with stpncpy in glibc.
57337         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
57338         written non-NUL unit.
57340 2010-01-10  Bruno Haible  <bruno@clisp.org>
57342         unistr/u*-next: Add missing dependencies.
57343         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
57344         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
57345         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
57347 2010-01-10  Bruno Haible  <bruno@clisp.org>
57349         unistr/u8-mbsnlen: Fix return value for incomplete character.
57350         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
57351         u8_mblen.
57352         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
57353         Remove unistr/u8-mblen.
57354         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
57355         u16_mblen.
57356         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
57357         Remove unistr/u16-mblen.
57359 2010-01-10  Bruno Haible  <bruno@clisp.org>
57361         wchar: Fix compilation error when <wchar.h> is used from coreutils.
57362         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
57363         Reported by Brian Gough <bjg@gnu.org> and
57364         Chris Clayton <chris2553@googlemail.com> via
57365         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
57367 2010-01-09  Bruno Haible  <bruno@clisp.org>
57369         unistr/u16-to-u32: Reject invalid input.
57370         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
57371         u16_mbtouc.
57372         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
57373         Remove unistr/u16-mbtouc.
57375         unistr/u16-to-u8: Reject invalid input.
57376         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
57377         u16_mbtouc.
57378         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
57379         Remove unistr/u16-mbtouc.
57381         unistr/u8-to-u32: Reject invalid input.
57382         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
57383         u8_mbtouc.
57384         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
57385         Remove unistr/u8-mbtouc.
57387         unistr/u8-to-u16: Reject invalid input.
57388         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
57389         u8_mbtouc.
57390         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
57391         Remove unistr/u8-mbtouc.
57393 2010-01-09  Bruno Haible  <bruno@clisp.org>
57395         Tests for module 'getlogin'.
57396         * modules/getlogin-tests: New file.
57397         * tests/test-getlogin.c: New file.
57399         New module 'getlogin'.
57400         * lib/unistd.in.h (getlogin): New declaration.
57401         * lib/getlogin.c: New file.
57402         * m4/getlogin.m4: New file.
57403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
57404         HAVE_GETLOGIN.
57405         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
57406         HAVE_GETLOGIN.
57407         * modules/getlogin: New file.
57408         * doc/posix-functions/getlogin.texi: Mention the new module.
57409         Reported by John W. Eaton <jwe@gnu.org>.
57411 2010-01-09  Bruno Haible  <bruno@clisp.org>
57413         getlogin_r: Support for native Windows.
57414         * lib/getlogin_r.c: Include <windows.h>
57415         (getlogin_r): Implement for native Windows.
57416         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
57417         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
57418         via John W. Eaton <jwe@gnu.org>.
57420 2010-01-09  Bruno Haible  <bruno@clisp.org>
57422         getlogin_r: Small fixes.
57423         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
57424         succeeds.
57425         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
57426         before testing whether getlogin_r is declared. No need to set
57427         HAVE_DECL_GETLOGIN_R to 1.
57428         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
57430 2010-01-09  Bruno Haible  <bruno@clisp.org>
57432         * lib/unistd.in.h (getlogin_r): Add comment.
57434 2010-01-09  Bruno Haible  <bruno@clisp.org>
57436         Tests for module 'getlogin_r'.
57437         * modules/getlogin_r-tests: New file.
57438         * tests/test-getlogin_r.c: New file.
57440 2010-01-09  Jim Meyering  <meyering@redhat.com>
57442         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
57443         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
57444         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
57446 2010-01-08  Simon Josefsson  <simon@josefsson.org>
57448         * lib/dup2.c (rpl_dup2): Improve comment.
57450 2010-01-08  Eric Blake  <ebb9@byu.net>
57452         maint.mk: allow packages to add makefile @@ exceptions
57453         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
57454         (sc_makefile_check): Rename...
57455         (sc_makefile_at_at_check): ...to this, and use hook.
57457         dup2: work around mingw bug
57458         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
57459         Reported by Simon Josefsson.
57461 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
57463         glob: Fix C++ compilation.
57464         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
57465         C++.
57467 2010-01-07  Bruno Haible  <bruno@clisp.org>
57469         Fix indentation of wctype.in.h, broken since 2007-01-06.
57470         * lib/wctype.in.h: Fix indentation of preprocessor directives.
57472 2010-01-07  Bruno Haible  <bruno@clisp.org>
57474         mbslen: Avoid collision with system function.
57475         * lib/string.in.h [MirBSD]: Include <wchar.h>.
57476         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
57477         * m4/mbslen.m4: New file.
57478         * modules/mbslen (Files): Add it.
57479         (configure.ac): Invoke gl_MBSLEN.
57480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
57481         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
57482         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
57483         via Ian Beckwith <ianb@erislabs.net>.
57485 2010-01-07  Bruno Haible  <bruno@clisp.org>
57487         dirent: Document the last fix.
57488         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
57490 2010-01-07  Bruno Haible  <bruno@clisp.org>
57492         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
57493         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
57494         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
57495         va_list are defined.
57496         * doc/posix-headers/stdio.texi: Document the bug of missing types.
57497         Reported by Eric Blake.
57499 2010-01-07  Bruno Haible  <bruno@clisp.org>
57501         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
57502         * modules/xlist (Depends-on): Add 'list',
57503         * modules/xoset (Depends-on): Add 'oset'.
57504         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57506 2010-01-07  Bruno Haible  <bruno@clisp.org>
57508         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
57509         * doc/posix-functions/strncasecmp.texi: Likewise.
57511 2010-01-07  Bruno Haible  <bruno@clisp.org>
57513         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
57515 2010-01-07  John W. Eaton  <jwe@octave.org>
57517         wctype: allow C++ use
57518         * lib/wctype.in.h: Add extern "C" block for C++.
57520 2010-01-06  Eric Blake  <ebb9@byu.net>
57522         maint.mk: detect incorrect GFDL usage
57523         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
57525 2010-01-06  Jim Meyering  <meyering@redhat.com>
57526         and Eric Blake  <ebb9@byu.net>
57528         maint.mk: ignore multi-line copyright in NEWS
57529         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
57531 2010-01-06  Eric Blake  <ebb9@byu.net>
57533         select: add missing dependency
57534         * modules/select-tests (Depends-on): Move sockets dependency...
57535         * modules/select (Depends-on): ...here.
57536         Reported by Ian Beckwith.
57538         doc: regenerate INSTALL
57539         * doc/INSTALL: Reflect recent autoconf update.
57540         * doc/INSTALL.ISO: Likewise.
57541         * doc/INSTALL.UTF-8: Likewise.
57543         pread: fix compilation on glibc
57544         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
57545         Reported by Ralf Wildenhues.
57547         dirent: fix test failure
57548         * lib/dirent.in.h (includes): Guarantee ino_t.
57549         Reported by Ralf Wildenhues.
57551 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
57553         linkat, renameat: avoid bad free
57554         * lib/at-func2.c (at_func2): Fix typo.
57555         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
57557 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57559         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
57560         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
57561         to avoid failure of symlink test later.
57563 2010-01-06  Eric Blake  <ebb9@byu.net>
57565         stdio, unistd: guarantee ssize_t
57566         * lib/unistd.in.h (includes): Ensure that types required by POSIX
57567         2008 are exposed when needed.
57568         * lib/stdio.in.h (includes): Likewise.
57569         Reported by Ralf Wildenhues.
57571 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
57573         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
57574         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
57575         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
57577 2010-01-06  Jim Meyering  <meyering@redhat.com>
57579         readtokens: this module *does* require xalloc.h
57580         It uses only functions that were omitted by the old syntax-check rule.
57581         * lib/readtokens.c: Include "xalloc.h" once again.
57582         * modules/readtokens (Depends-on): Add xalloc.
57583         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
57585 2010-01-05  Eric Blake  <ebb9@byu.net>
57587         maint: support 'make announcement' from a VPATH build
57588         * top/maint.mk (announcement): Look for correct NEWS file.
57590 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
57592         utimens (fdutimens): ignore a negative FD, per contract
57593         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
57594         when we have a valid file descriptor.  Otherwise, using a brand
57595         new glibc (with just-patched futimens that now fails with EBADF)
57596         would cause this function to fail with ENOSYS.
57597         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
57598         See also http://bugzilla.redhat.com/552320.
57600 2010-01-05  Eric Blake  <ebb9@byu.net>
57602         strcase: document what it provides
57603         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
57604         gnulib module.
57605         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
57606         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
57608 2010-01-05  Jim Meyering  <meyering@redhat.com>
57610         maint: remove useless inclusions of "xalloc.h"
57611         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
57612         * lib/readtokens.c: Likewise.
57613         * lib/same.c: Likewise.
57614         * modules/getloadavg (Depends-on): Remove xalloc.
57615         * modules/readtokens: Likewise.
57616         * modules/same: Likewise.
57618         maint.mk: include 4 more function names in alloca.h-checking regexp
57619         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
57620         regexp.  Before, we would give a false-positive (saying alloca.h
57621         is included unnecessarily) when the only uses involved omitted symbols.
57623         xalloc.h: use consistent formatting
57624         * lib/xalloc.h: Move declarations to start in the first column.
57626 2010-01-05  Eric Blake  <ebb9@byu.net>
57628         mkdir: avoid xalloc
57629         * lib/mkdir.c (includes): Drop unused header.
57630         Reported by John W. Eaton.
57632 2010-01-04  Jim Meyering  <meyering@redhat.com>
57634         nl_langinfo: avoid configure-time syntax error
57635         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
57636         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
57637         the empty string.  Don't let that provoke a shell syntax error.
57639         regcomp, regexec, fnmatch: avoid array bounds read error
57640         * lib/regcomp.c (build_equiv_class): From glibc:
57641         Use only the low 24 bits of a findidx return value as an index
57642         into the weights array.  Patch by Ulrich Drepper:
57643         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
57644         * lib/regexec.c (check_node_accept_bytes): Likewise.
57645         * lib/fnmatch_loop.c (FCT): Likewise.
57647         regcomp: skip collseq lookup when there are no rules
57648         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
57649         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
57651         regcomp: recognize ill-formed { } expressions
57652         * lib/regcomp.c (parse_dup_op): From glibc:
57653         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
57655         regcomp: fix typo in comment
57656         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
57657         s/satisfy/satisfies/.
57659         regcomp: sync from glibc: remove dead store
57660         * lib/regcomp.c (duplicate_node_closure): Remove useless
57661         search_duplicated_node call and dead store.
57663         regcomp: sync from glibc; always use nl_langinfo
57664         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
57665         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
57666         * modules/regex (Depends-on): Add nl_langinfo.
57668 2010-01-04  Eric Blake  <ebb9@byu.net>
57670         fdopendir: fix configure test
57671         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
57673 2010-01-01  Bruno Haible  <bruno@clisp.org>
57675         wchar: Remove unused configure check.
57676         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
57678 2010-01-01  Eric Blake  <ebb9@byu.net>
57680         headers: make check of system header explicit
57681         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
57682         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
57683         ourselves.
57684         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57685         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57686         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
57687         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
57688         internals.
57689         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
57690         missing.
57691         Suggested by Bruno Haible.
57693 2010-01-01  Jim Meyering  <meyering@redhat.com>
57695         ChangeLog: tweak to eliminate unnecessary copyright line
57696         * ChangeLog: Remove a copyright line that was mistakenly updated
57697         by today's update-copyright run.  Reported by Eric Blake.
57699         test-update-copyright: don't let envvar setting cause test failure
57700         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
57702 2010-01-01  Bruno Haible  <bruno@clisp.org>
57704         localename: Avoid gcc warning.
57705         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
57706         function if it is not used.
57708 2010-01-01  Jim Meyering  <meyering@redhat.com>
57710         update nearly all FSF copyright year lists to include 2010
57711         Use the same procedure as for 2009, outlined in
57712         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
57714         version-etc: set COPYRIGHT_YEAR to 2010
57715         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
57717 2009-12-31  Eric Blake  <ebb9@byu.net>
57719         doc: correct availability of cygwin 1.5.x getopt
57720         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
57721         variables.
57722         * doc/posix-functions/opterr.texi (opterr): Likewise.
57723         * doc/posix-functions/optind.texi (optind): Likewise.
57724         * doc/posix-functions/optopt.texi (optopt): Likewise.
57725         * doc/posix-functions/tzname.texi (tzname): Likewise.
57727         openat: update maintainer
57728         * modules/openat (Maintainer): Add myself.
57730         utimens: avoid shadowing warning
57731         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
57732         buffers into one, to avoid shadowing, as well as avoiding a
57733         redundant stat.
57734         Reported by Jim Meyering.
57736         test-dup2: avoid compiler warning
57737         * tests/test-dup2.c (is_inheritable): Only define if used.
57739 2010-01-01  Bruno Haible  <bruno@clisp.org>
57741         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
57742         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
57743         defined, use wctomb instead of wcrtomb.
57745 2010-01-01  Bruno Haible  <bruno@clisp.org>
57747         iconv: Reject native Solaris iconv.
57748         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
57749         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
57751 2009-12-31  Bruno Haible  <bruno@clisp.org>
57753         * tests/test-signal.c (main): Remove test of 'SIG'.
57755 2009-12-31  Bruno Haible  <bruno@clisp.org>
57757         spawn: Fix incomplete fix.
57758         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
57759         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
57760         warnings for GNULIB_POSIXCHECK again.
57761         Reported by Eric Blake.
57763 2009-12-31  Bruno Haible  <bruno@clisp.org>
57765         Avoid namespace pollution on glibc systems.
57766         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
57767         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
57768         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
57769         glibc systems.
57771 2009-12-31  Bruno Haible  <bruno@clisp.org>
57773         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
57774         (gl_REPLACE_WCHAR_H): Turn into a no-op.
57775         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
57776         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
57777         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
57778         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
57779         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
57781 2009-12-31  Bruno Haible  <bruno@clisp.org>
57783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
57784         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
57785         afterwards.
57787 2009-12-31  Bruno Haible  <bruno@clisp.org>
57789         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
57790         SYS_UTSNAME_H.
57792 2009-12-31  Bruno Haible  <bruno@clisp.org>
57794         spawn: Fix misapplied patch.
57795         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
57796         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
57797         warnings for GNULIB_POSIXCHECK.
57799 2009-12-31  Bruno Haible  <bruno@clisp.org>
57801         times: Update after sys_times changed.
57802         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
57803         * modules/times (Files): Add it.
57804         (configure.ac): Invoke gl_FUNC_TIMES.
57806 2009-12-31  Bruno Haible  <bruno@clisp.org>
57808         Use AC_C_INLINE where necessary.
57809         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
57810         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57811         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
57812         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57813         * m4/mbfile.m4 (gl_MBFILE): Likewise.
57814         * m4/mbiter.m4 (gl_MBITER): Likewise.
57815         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57816         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57817         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
57818         * modules/u64 (configure.ac): Likewise.
57820 2009-12-31  Bruno Haible  <bruno@clisp.org>
57822         Use AC_C_INLINE instead of module 'inline' where possible.
57823         * modules/inline (Description): Clarify purpose.
57824         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
57825         * modules/count-one-bits (Depends-on): Remove inline.
57826         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
57827         * modules/openat (Depends-on): Remove inline.
57828         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
57829         instead of depending on module 'inline'.
57830         * modules/filevercmp (Depends-on, configure.ac): Likewise.
57831         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
57832         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
57833         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
57834         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
57835         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
57836         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
57837         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
57838         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
57839         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
57840         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
57841         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
57842         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
57843         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
57844         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
57845         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
57846         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
57847         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
57848         Likewise.
57849         * modules/unictype/property-ascii-hex-digit (Depends-on,
57850         configure.ac): Likewise.
57851         * modules/unictype/property-bidi-arabic-digit (Depends-on,
57852         configure.ac): Likewise.
57853         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
57854         configure.ac): Likewise.
57855         * modules/unictype/property-bidi-block-separator (Depends-on,
57856         configure.ac): Likewise.
57857         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
57858         configure.ac): Likewise.
57859         * modules/unictype/property-bidi-common-separator (Depends-on,
57860         configure.ac): Likewise.
57861         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
57862         Likewise.
57863         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
57864         configure.ac): Likewise.
57865         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
57866         configure.ac): Likewise.
57867         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
57868         configure.ac): Likewise.
57869         * modules/unictype/property-bidi-european-digit (Depends-on,
57870         configure.ac): Likewise.
57871         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
57872         configure.ac): Likewise.
57873         * modules/unictype/property-bidi-left-to-right (Depends-on,
57874         configure.ac): Likewise.
57875         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
57876         configure.ac): Likewise.
57877         * modules/unictype/property-bidi-other-neutral (Depends-on,
57878         configure.ac): Likewise.
57879         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
57880         Likewise.
57881         * modules/unictype/property-bidi-segment-separator (Depends-on,
57882         configure.ac): Likewise.
57883         * modules/unictype/property-bidi-whitespace (Depends-on,
57884         configure.ac): Likewise.
57885         * modules/unictype/property-combining (Depends-on, configure.ac):
57886         Likewise.
57887         * modules/unictype/property-composite (Depends-on, configure.ac):
57888         Likewise.
57889         * modules/unictype/property-currency-symbol (Depends-on,
57890         configure.ac): Likewise.
57891         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
57892         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
57893         Likewise.
57894         * modules/unictype/property-default-ignorable-code-point (Depends-on,
57895         configure.ac): Likewise.
57896         * modules/unictype/property-deprecated (Depends-on, configure.ac):
57897         Likewise.
57898         * modules/unictype/property-diacritic (Depends-on, configure.ac):
57899         Likewise.
57900         * modules/unictype/property-extender (Depends-on, configure.ac):
57901         Likewise.
57902         * modules/unictype/property-format-control (Depends-on, configure.ac):
57903         Likewise.
57904         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
57905         Likewise.
57906         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
57907         Likewise.
57908         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
57909         Likewise.
57910         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
57911         Likewise.
57912         * modules/unictype/property-hyphen (Depends-on, configure.ac):
57913         Likewise.
57914         * modules/unictype/property-id-continue (Depends-on, configure.ac):
57915         Likewise.
57916         * modules/unictype/property-id-start (Depends-on, configure.ac):
57917         Likewise.
57918         * modules/unictype/property-ideographic (Depends-on, configure.ac):
57919         Likewise.
57920         * modules/unictype/property-ids-binary-operator (Depends-on,
57921         configure.ac): Likewise.
57922         * modules/unictype/property-ids-trinary-operator (Depends-on,
57923         configure.ac): Likewise.
57924         * modules/unictype/property-ignorable-control (Depends-on,
57925         configure.ac): Likewise.
57926         * modules/unictype/property-iso-control (Depends-on, configure.ac):
57927         Likewise.
57928         * modules/unictype/property-join-control (Depends-on, configure.ac):
57929         Likewise.
57930         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
57931         Likewise.
57932         * modules/unictype/property-line-separator (Depends-on, configure.ac):
57933         Likewise.
57934         * modules/unictype/property-logical-order-exception (Depends-on,
57935         configure.ac): Likewise.
57936         * modules/unictype/property-lowercase (Depends-on, configure.ac):
57937         Likewise.
57938         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
57939         * modules/unictype/property-non-break (Depends-on, configure.ac):
57940         Likewise.
57941         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
57942         Likewise.
57943         * modules/unictype/property-numeric (Depends-on, configure.ac):
57944         Likewise.
57945         * modules/unictype/property-other-alphabetic (Depends-on,
57946         configure.ac): Likewise.
57947         * modules/unictype/property-other-default-ignorable-code-point
57948         (Depends-on, configure.ac): Likewise.
57949         * modules/unictype/property-other-grapheme-extend (Depends-on,
57950         configure.ac): Likewise.
57951         * modules/unictype/property-other-id-continue (Depends-on,
57952         configure.ac): Likewise.
57953         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
57954         Likewise.
57955         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
57956         Likewise.
57957         * modules/unictype/property-other-math (Depends-on, configure.ac):
57958         Likewise.
57959         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
57960         Likewise.
57961         * modules/unictype/property-paired-punctuation (Depends-on,
57962         configure.ac): Likewise.
57963         * modules/unictype/property-paragraph-separator (Depends-on,
57964         configure.ac): Likewise.
57965         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
57966         Likewise.
57967         * modules/unictype/property-pattern-white-space (Depends-on,
57968         configure.ac): Likewise.
57969         * modules/unictype/property-private-use (Depends-on, configure.ac):
57970         Likewise.
57971         * modules/unictype/property-punctuation (Depends-on, configure.ac):
57972         Likewise.
57973         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
57974         Likewise.
57975         * modules/unictype/property-radical (Depends-on, configure.ac):
57976         Likewise.
57977         * modules/unictype/property-sentence-terminal (Depends-on,
57978         configure.ac): Likewise.
57979         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
57980         Likewise.
57981         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
57982         * modules/unictype/property-terminal-punctuation (Depends-on,
57983         configure.ac): Likewise.
57984         * modules/unictype/property-titlecase (Depends-on, configure.ac):
57985         Likewise.
57986         * modules/unictype/property-unassigned-code-value (Depends-on,
57987         configure.ac): Likewise.
57988         * modules/unictype/property-unified-ideograph (Depends-on,
57989         configure.ac): Likewise.
57990         * modules/unictype/property-uppercase (Depends-on, configure.ac):
57991         Likewise.
57992         * modules/unictype/property-variation-selector (Depends-on,
57993         configure.ac): Likewise.
57994         * modules/unictype/property-white-space (Depends-on, configure.ac):
57995         Likewise.
57996         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
57997         Likewise.
57998         * modules/unictype/property-xid-start (Depends-on, configure.ac):
57999         Likewise.
58000         * modules/unictype/property-zero-width (Depends-on, configure.ac):
58001         Likewise.
58002         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
58003         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
58004         Likewise.
58006 2009-12-31  Bruno Haible  <bruno@clisp.org>
58008         Remove unnecessary AC_C_INLINE invocation.
58009         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
58010         since 2009-08-21.
58012 2009-12-31  Jim Meyering  <meyering@redhat.com>
58014         maint.mk: don't require explicit gpg_key_ID in cfg.mk
58015         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
58016         With this change, we can all remove the gpg_key_ID = ... definition
58017         from our respective cfg.mk files.
58019         maint.mk: create announcement template in ~/, not in /tmp
58020         * top/maint.mk (emit_upload_commands): Adjust.
58021         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
58022         Remove temporary file, .ci-msg.
58024 2009-12-31  Eric Blake  <ebb9@byu.net>
58026         link-warning: always build headers with link warnings
58027         * modules/arpa_inet (Makefile.am): Always build replacement
58028         header.
58029         * modules/ctype (Makefile.am): Likewise.
58030         * modules/dirent (Makefile.am): Likewise.
58031         * modules/inttypes (Makefile.am): Likewise.
58032         * modules/langinfo (Makefile.am): Likewise.
58033         * modules/locale (Makefile.am): Likewise.
58034         * modules/spawn (Makefile.am): Likewise.
58035         * modules/sys_file (Makefile.am): Likewise.
58036         * modules/sys_ioctl (Makefile.am): Likewise.
58037         * modules/sys_select (Makefile.am): Likewise.
58038         * modules/sys_socket (Makefile.am): Likewise.
58039         * modules/sys_times (Makefile.am): Likewise.
58040         * modules/sys_utsname (Makefile.am): Likewise.
58041         * modules/sys_wait (Makefile.am): Likewise.
58042         * modules/wchar (Makefile.am): Likewise.
58043         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
58044         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
58045         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
58046         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
58047         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
58048         Likewise.
58049         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58050         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
58051         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
58052         Likewise.
58053         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
58054         Likewise.
58055         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
58056         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
58057         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
58058         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58059         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58060         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58061         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58062         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
58063         (gl_WCHAR_H_DEFAULTS): Likewise.
58065 2009-12-31  Eric Blake  <ebb9@byu.net>
58067         signal, spawn: use link warnings
58068         * lib/signal.in.h (sigset_t): Make unconditional.
58069         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
58070         (sigpending, sigprocmask, sigaction): Add link warnings.
58071         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
58072         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
58073         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
58074         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
58075         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
58076         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
58077         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
58078         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
58079         (posix_spawn_file_actions_destroy)
58080         (posix_spawn_file_actions_addopen)
58081         (posix_spawn_file_actions_addclose)
58082         (posix_spawn_file_actions_adddup2): Likewise.
58083         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
58084         * tests/test-signal.c (main): Enhance test.
58086         spawn: improve wrapper support
58087         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
58088         (gl_SPAWN_H_DEFAULTS): New defaults.
58089         * modules/spawn (Makefile.am): Substitute them.
58090         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
58091         Only declare if missing or broken.
58093         sys_times, sys_utsname: use include_next
58094         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
58095         header.
58096         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
58097         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58098         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58099         * modules/sys_times (Depends-on): Add include_next.
58100         (Makefile.am): Substitute additional values.
58101         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
58102         * lib/sys_times.in.h (includes): Include native header, if
58103         available.
58104         * lib/sys_utsname.in.h (includes): Likewise.
58105         * tests/test-sys_times.c (main): Enhance test.
58107         fdutimensat: revert prior patch
58108         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
58109         utimens.h.
58110         Reported by Bruno Haible.
58112 2009-12-30  Eric Blake  <ebb9@byu.net>
58114         sys_wait: drop link-warning dependency
58115         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
58116         link-warning efforts.
58117         * lib/sys_wait.in.h: Likewise.
58119         fdutimensat: remove bogus dependency
58120         * modules/fdutimensat (Depends-on): Drop inline.
58122         unistd: fix typo
58123         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
58125 2009-12-30  Bruno Haible  <bruno@clisp.org>
58127         Fix compilation error with Solaris cc.
58128         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
58129         * lib/unicase/u16-is-invariant.c: Likewise.
58130         * lib/unicase/u32-is-invariant.c: Likewise.
58131         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58133 2009-12-30  Bruno Haible  <bruno@clisp.org>
58135         Fix test crash.
58136         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
58137         locales.
58138         Reported by Simon Josefsson <simon@josefsson.org>.
58140 2009-12-30  Bruno Haible  <bruno@clisp.org>
58142         Fix compilation error on most platforms.
58143         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
58144         Reported by Simon Josefsson <simon@josefsson.org>
58145         and Nelson H. F. Beebe <beebe@math.utah.edu>.
58147 2009-12-30  Eric Blake  <ebb9@byu.net>
58149         futimens, utimensat: work around ntfs-3g bug
58150         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
58151         a ctime bug is present, and expand workaround to cover ntfs-3g.
58152         * lib/utimens.c (fdutimens, lutimens): Likewise.
58153         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
58154         (validate_timespec): Adjust return value.
58155         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
58156         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58157         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
58159 2009-12-29  Eric Blake  <ebb9@byu.net>
58161         link-warning: make usage consistent
58162         * modules/ctype (Depends-on): Add link-warning.
58163         (Makefile.am): Update rules accordingly.
58164         * modules/langinfo (Depends-on, Makefile.am): Likewise.
58165         * modules/locale (Depends-on, Makefile.am): Likewise.
58166         * modules/sys_file (Makefile.am): Likewise.
58167         * modules/getopt-posix (Makefile.am): Delete unused link warning
58168         efforts.
58169         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
58170         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
58171         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
58172         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
58174         stdio: remove unused variables
58175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
58176         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
58177         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
58179         tests: test more substitute headers
58180         * modules/ctype-tests: New file.
58181         * modules/dirent-tests: Likewise.
58182         * modules/spawn-tests: Likewise.
58183         * modules/sys_file-tests: Likewise.
58184         * modules/sys_ioctl-tests: Likewise.
58185         * modules/sys_wait-tests: Likewise.
58186         * tests/test-ctype.c: Likewise.
58187         * tests/test-dirent.c: Likewise.
58188         * tests/test-spawn.c: Likewise.
58189         * tests/test-sys_file.c: Likewise.
58190         * tests/test-sys_ioctl.c: Likewise.
58191         * tests/test-sys_wait.c: Likewise.
58192         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
58193         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
58194         whether or not flock is in use.
58196         tests: remove License section from module
58197         * modules/arpa_inet-tests: Remove unneeded section.
58198         * modules/byteswap-tests: Likewise.
58199         * modules/ceilf-tests: Likewise.
58200         * modules/ceill-tests: Likewise.
58201         * modules/crypto/des-tests: Likewise.
58202         * modules/crypto/gc-arcfour-tests: Likewise.
58203         * modules/crypto/gc-arctwo-tests: Likewise.
58204         * modules/crypto/gc-des-tests: Likewise.
58205         * modules/crypto/gc-hmac-md5-tests: Likewise.
58206         * modules/crypto/gc-hmac-sha1-tests: Likewise.
58207         * modules/crypto/gc-md2-tests: Likewise.
58208         * modules/crypto/gc-md4-tests: Likewise.
58209         * modules/crypto/gc-md5-tests: Likewise.
58210         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
58211         * modules/crypto/gc-rijndael-tests: Likewise.
58212         * modules/crypto/gc-sha1-tests: Likewise.
58213         * modules/crypto/gc-tests: Likewise.
58214         * modules/crypto/md2-tests: Likewise.
58215         * modules/crypto/md4-tests: Likewise.
58216         * modules/fcntl-h-tests: Likewise.
58217         * modules/floorf-tests: Likewise.
58218         * modules/floorl-tests: Likewise.
58219         * modules/frexp-nolibm-tests: Likewise.
58220         * modules/frexp-tests: Likewise.
58221         * modules/frexpl-nolibm-tests: Likewise.
58222         * modules/frexpl-tests: Likewise.
58223         * modules/getaddrinfo-tests: Likewise.
58224         * modules/inttypes-tests: Likewise.
58225         * modules/isfinite-tests: Likewise.
58226         * modules/isinf-tests: Likewise.
58227         * modules/ldexpl-tests: Likewise.
58228         * modules/locale-tests: Likewise.
58229         * modules/math-tests: Likewise.
58230         * modules/netdb-tests: Likewise.
58231         * modules/netinet_in-tests: Likewise.
58232         * modules/printf-frexp-tests: Likewise.
58233         * modules/printf-frexpl-tests: Likewise.
58234         * modules/priv-set-tests: Likewise.
58235         * modules/random_r-tests: Likewise.
58236         * modules/round-tests: Likewise.
58237         * modules/roundf-tests: Likewise.
58238         * modules/roundl-tests: Likewise.
58239         * modules/search-tests: Likewise.
58240         * modules/select-tests: Likewise.
58241         * modules/signal-tests: Likewise.
58242         * modules/stdbool-tests: Likewise.
58243         * modules/stddef-tests: Likewise.
58244         * modules/stdint-tests: Likewise.
58245         * modules/stdio-tests: Likewise.
58246         * modules/stdlib-tests: Likewise.
58247         * modules/string-tests: Likewise.
58248         * modules/strings-tests: Likewise.
58249         * modules/sys_select-tests: Likewise.
58250         * modules/sys_socket-tests: Likewise.
58251         * modules/sys_stat-tests: Likewise.
58252         * modules/sys_time-tests: Likewise.
58253         * modules/sys_utsname-tests: Likewise.
58254         * modules/sysexits-tests: Likewise.
58255         * modules/time-tests: Likewise.
58256         * modules/trunc-tests: Likewise.
58257         * modules/truncf-tests: Likewise.
58258         * modules/truncl-tests: Likewise.
58259         * modules/tsearch-tests: Likewise.
58260         * modules/unistd-tests: Likewise.
58261         * modules/wchar-tests: Likewise.
58262         * modules/wctype-tests: Likewise.
58264         tests: fix license on several tests
58265         * tests/test-des.c: Update to GPLv3+.
58266         * tests/test-flock.c: Likewise.
58267         * tests/test-fsync.c: Likewise.
58268         * tests/test-futimens.h: Likewise.
58269         * tests/test-gc-arcfour.c: Likewise.
58270         * tests/test-gc-arctwo.c: Likewise.
58271         * tests/test-gc-des.c: Likewise.
58272         * tests/test-gc-hmac-md5.c: Likewise.
58273         * tests/test-gc-hmac-sha1.c: Likewise.
58274         * tests/test-gc-md2.c: Likewise.
58275         * tests/test-gc-md4.c: Likewise.
58276         * tests/test-gc-md5.c: Likewise.
58277         * tests/test-gc-pbkdf2-sha1.c: Likewise.
58278         * tests/test-gc-rijndael.c: Likewise.
58279         * tests/test-gc-sha1.c: Likewise.
58280         * tests/test-gc.c: Likewise.
58281         * tests/test-getcwd.c: Likewise.
58282         * tests/test-link.c: Likewise.
58283         * tests/test-link.h: Likewise.
58284         * tests/test-lutimens.h: Likewise.
58285         * tests/test-md2.c: Likewise.
58286         * tests/test-md4.c: Likewise.
58287         * tests/test-mkdir.h: Likewise.
58288         * tests/test-rename.c: Likewise.
58289         * tests/test-rename.h: Likewise.
58290         * tests/test-safe-alloc.c: Likewise.
58291         * tests/test-utimens-common.h: Likewise.
58292         * tests/test-utimens.h: Likewise.
58294         maint: sync license texts
58295         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
58296         * doc/gpl-3.0.texi: Revert copyright year update.
58297         * doc/lgpl-3.0.texi: Likewise.
58299 2009-12-29  Jim Meyering  <meyering@redhat.com>
58301         update nearly all FSF copyright year lists to include 2009
58302         The files named by the following are exempted:
58303             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
58304               test -f "$dst" && { echo "$dst"; continue; }
58305               test -d "$dst" || continue
58306               echo "$dst"/$(basename "$src")
58307             done > exempt
58308             git ls-files tests/unictype >> exempt
58309         In the remaining files, convert to all-interval notation if
58310         - there is already at least one year interval like 2000-2003
58311         - the file is maintained by me
58312         - the file is in lib/uni*/, where that style already prevails
58313         Otherwise, use update-copyright's default.
58315 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58316         and Eric Blake  <ebb9@byu.net>
58318         tests: don't require debug system() to pass
58319         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
58320         * tests/test-rmdir.h (test_rmdir_func): Likewise.
58321         * tests/test-unlink.h (test_unlink_func): Likewise.
58322         * tests/test-fstatat.c (main): ...into callers.
58323         * tests/test-lstat.c (main): Likewise.
58324         * tests/test-rmdir.c (main): Likewise.
58325         * tests/test-unlink.c (main): Likewise.
58326         * tests/test-unlinkat.c (main): Likewise.
58327         * tests/test-areadlink-with-size.c (main): Don't require a
58328         debug-only system call to pass, aiding cross-testing to mingw.
58329         * tests/test-areadlink.c (main): Likewise.
58330         * tests/test-areadlinkat-with-size.c (main): Likewise.
58331         * tests/test-areadlinkat.c (main): Likewise.
58332         * tests/test-canonicalize-lgpl.c (main): Likewise.
58333         * tests/test-canonicalize.c (main): Likewise.
58334         * tests/test-chown.c (main): Likewise.
58335         * tests/test-fchownat.c (main): Likewise.
58336         * tests/test-lchown.c (main): Likewise.
58337         * tests/test-fdutimensat.c (main): Likewise.
58338         * tests/test-futimens.c (main): Likewise.
58339         * tests/test-link.c (main): Likewise.
58340         * tests/test-linkat.c (main): Likewise.
58341         * tests/test-mkdir.c (main): Likewise.
58342         * tests/test-mkdirat.c (main): Likewise.
58343         * tests/test-mkfifo.c (main): Likewise.
58344         * tests/test-mkfifoat.c (main): Likewise.
58345         * tests/test-mknod.c (main): Likewise.
58346         * tests/test-readlink.c (main): Likewise.
58347         * tests/test-remove.c (main): Likewise.
58348         * tests/test-rename.c (main): Likewise.
58349         * tests/test-renameat.c (main): Likewise.
58350         * tests/test-symlink.c (main): Likewise.
58351         * tests/test-symlinkat.c (main): Likewise.
58352         * tests/test-utimens.c (main): Likewise.
58353         * tests/test-utimensat.c (main): Likewise.
58355 2009-12-29  Simon Josefsson  <simon@josefsson.org>
58357         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
58358         on $(UNUSED_PARAMETER_H) to avoid build failure.
58360 2009-12-28  Jim Meyering  <meyering@redhat.com>
58362         update-copyright: you may specify a max. line length other than 72
58363         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58365         maint: use consistent FSF copyright line syntax
58366         * lib/posixtm.c: Add missing comma in FSF copyright line.
58367         * lib/posixtm.h: Likewise.
58368         * lib/getugroups.c: Add missing ", Inc.".
58370         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
58371         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
58372         FSF copyright line.  Remove trailing blanks.
58374 2009-12-28  Eric Blake  <ebb9@byu.net>
58376         test-dup2: reduce dependencies
58377         * modules/cloexec (Configure.ac): Set witness.
58378         * modules/dup2-tests (Depends-on): Drop cloexec.
58379         * tests/test-dup2.c (main): Skip portion of test if cloexec module
58380         not present.
58381         Suggested by Bruno Haible.
58383 2009-12-26  Bruno Haible  <bruno@clisp.org>
58385         Remove an unneeded dependency.
58386         * modules/fseterr (Depends-on): Remove dup2.
58388 2009-12-26  Eric Blake  <ebb9@byu.net>
58390         tests: use macros.h in more places
58391         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
58392         (ASSERT_STREAM): Provide default of stderr.
58393         * tests/test-dirent-safer.c: Include macros.h, using alternate
58394         stream for assertions.
58395         * tests/test-dup-safer.c: Likewise.
58396         * tests/test-freopen-safer.c: Likewise.
58397         * tests/test-getopt.c: Likewise.
58398         * tests/test-openat-safer.c: Likewise.
58399         * tests/test-pipe.c: Likewise.
58400         * tests/test-popen-safer.c: Likewise.
58401         * modules/dirent-safer-tests (Files): Include macros.h.
58402         * modules/unistd-safer-tests (Files): Likewise.
58403         * modules/freopen-safer-tests (Files): Likewise.
58404         * modules/getopt-posix-tests (Files): Likewise.
58405         * modules/openat-safer-tests (Files): Likewise.
58406         * modules/pipe-tests (Files): Likewise.
58408 2009-12-26  Bruno Haible  <bruno@clisp.org>
58410         javacomp-script: Portability fix.
58411         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
58412         that it also works on Solaris.
58414 2009-12-26  Bruno Haible  <bruno@clisp.org>
58416         localename: Fix storage allocation of gl_locale_name_thread's result.
58417         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
58418         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
58419         all platforms that have 'uselocale'.
58420         (gl_locale_name_thread_unsafe): New function, extracted from
58421         gl_locale_name_thread.
58422         (gl_locale_name_thread): Call struniq on all platforms that have
58423         'uselocale'.
58424         * tests/test-localename.c (test_locale_name_thread): Check that the
58425         resulting strings are permanently allocated.
58426         * modules/localename-tests (Depends-on): Add strdup.
58428 2009-12-26  Bruno Haible  <bruno@clisp.org>
58430         * tests/test-localename.c (categories): Fill in the strings.
58432 2009-12-26  Jim Meyering  <meyering@redhat.com>
58434         isdir: complete the removal of m4/isdir.m4
58435         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
58437         isdir: clean up, since at least grep still uses it
58438         * lib/isdir.c: Include "isdir.h".
58439         (S_ISDIR): Remove now-unneeded definition.
58440         * modules/isdir (Files): Add lib/isdir.h.
58441         * lib/isdir.h: New file, with declaration.
58442         * m4/isdir.m4: Remove file -- unneeded.
58444 2009-12-25  Bruno Haible  <bruno@clisp.org>
58446         selinux-h: Make generated .h files standalone.
58447         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
58448         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
58449         * lib/se-selinux.in.h: Likewise.
58450         * modules/selinux-h (Depends-on): Add unused-parameter.
58451         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
58452         selinux/selinux.h and selinux/context.h.
58453         Suggested by Eric Blake.
58455 2009-12-25  Bruno Haible  <bruno@clisp.org>
58457         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
58458         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
58459         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
58460         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
58461         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
58463 2009-12-24  Bruno Haible  <bruno@clisp.org>
58465         openat: Fix warning.
58466         * lib/openat-proc.c: Include <unistd.h>.
58468 2009-12-24  Bruno Haible  <bruno@clisp.org>
58470         New module 'unused-parameter'.
58471         * build-aux/unused-parameter.h: New file, extracted from earlier
58472         gnulib-common.m4.
58473         * modules/unused-parameter: New file.
58474         * lib/unistr.h: Include unused-parameter.h.
58475         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
58476         _GL_UNUSED.
58477         * modules/unistr/base (Depends-on): Add unused-parameter.
58479 2009-12-24  Bruno Haible  <bruno@clisp.org>
58481         Add missing dependencies to 'extensions' module.
58482         * m4/extensions.m4: Add comment.
58483         * modules/accept4 (Depends-on): Add extensions.
58484         * modules/dup3 (Depends-on): Likewise.
58485         * modules/fcntl (Depends-on): Likewise.
58486         * modules/futimens (Depends-on): Likewise.
58487         * modules/mknod (Depends-on): Likewise.
58488         * modules/pipe2 (Depends-on): Likewise.
58489         * modules/stat-time (Depends-on): Likewise.
58490         * modules/strcasestr-simple (Depends-on): Likewise.
58491         * modules/strsignal (Depends-on): Likewise.
58492         * modules/utimensat (Depends-on): Likewise.
58493         * modules/localcharset (Depends-on): Likewise. Needed because of
58494         gl_FCNTL_O_FLAGS.
58495         * modules/wcrtomb (Depends-on): Likewise. Needed because of
58496         AC_TYPE_MBSTATE_T.
58497         * modules/wcsnrtombs (Depends-on): Likewise.
58498         * modules/wcsrtombs (Depends-on): Likewise.
58500 2009-12-24  Bruno Haible  <bruno@clisp.org>
58502         binary-io: Avoid gcc warning due to SET_BINARY.
58503         * lib/binary-io.h (SET_BINARY): Cast the result to void.
58504         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
58506 2009-12-24  Bruno Haible  <bruno@clisp.org>
58508         Avoid future namespace pollution on glibc systems.
58509         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
58510         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
58511         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
58512         glibc systems.
58514 2009-12-24  Bruno Haible  <bruno@clisp.org>
58516         Refactor common macros used in tests.
58517         * tests/macros.h: New file.
58518         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
58519         and/or <stdlib.h>, if appropriate.
58520         (ASSERT, SIZEOF): Remove macros.
58521         * tests/test-areadlink-with-size.c: Likewise.
58522         * tests/test-areadlinkat.c: Likewise.
58523         * tests/test-areadlinkat-with-size.c: Likewise.
58524         * tests/test-argmatch.c: Likewise.
58525         * tests/test-argv-iter.c: Likewise.
58526         * tests/test-array-mergesort.c: Likewise.
58527         * tests/test-array_list.c: Likewise.
58528         * tests/test-array_oset.c: Likewise.
58529         * tests/test-avltree_list.c: Likewise.
58530         * tests/test-avltree_oset.c: Likewise.
58531         * tests/test-avltreehash_list.c: Likewise.
58532         * tests/test-base64.c: Likewise.
58533         * tests/test-binary-io.c: Likewise.
58534         * tests/test-bitrotate.c: Likewise.
58535         * tests/test-btowc.c: Likewise.
58536         * tests/test-byteswap.c: Likewise.
58537         * tests/test-c-ctype.c: Likewise.
58538         * tests/test-c-stack.c: Likewise.
58539         * tests/test-c-strcasecmp.c: Likewise.
58540         * tests/test-c-strcasestr.c: Likewise.
58541         * tests/test-c-strncasecmp.c: Likewise.
58542         * tests/test-c-strstr.c: Likewise.
58543         * tests/test-canonicalize-lgpl.c: Likewise.
58544         * tests/test-canonicalize.c: Likewise.
58545         * tests/test-carray_list.c: Likewise.
58546         * tests/test-ceilf1.c: Likewise.
58547         * tests/test-ceilf2.c: Likewise.
58548         * tests/test-ceill.c: Likewise.
58549         * tests/test-chown.c: Likewise.
58550         * tests/test-cloexec.c: Likewise.
58551         * tests/test-copy-acl.c: Likewise.
58552         * tests/test-copy-file.c: Likewise.
58553         * tests/test-count-one-bits.c: Likewise.
58554         * tests/test-dprintf-posix.c: Likewise.
58555         * tests/test-dup2.c: Likewise.
58556         * tests/test-dup3.c: Likewise.
58557         * tests/test-duplocale.c: Likewise.
58558         * tests/test-fbufmode.c: Likewise.
58559         * tests/test-fchdir.c: Likewise.
58560         * tests/test-fchownat.c: Likewise.
58561         * tests/test-fcntl-safer.c: Likewise.
58562         * tests/test-fcntl.c: Likewise.
58563         * tests/test-fdopendir.c: Likewise.
58564         * tests/test-fdutimensat.c: Likewise.
58565         * tests/test-fflush2.c: Likewise.
58566         * tests/test-file-has-acl.c: Likewise.
58567         * tests/test-filevercmp.c: Likewise.
58568         * tests/test-flock.c: Likewise.
58569         * tests/test-floorf1.c: Likewise.
58570         * tests/test-floorf2.c: Likewise.
58571         * tests/test-floorl.c: Likewise.
58572         * tests/test-fnmatch.c: Likewise.
58573         * tests/test-fopen.h: Likewise.
58574         * tests/test-fpending.c: Likewise.
58575         * tests/test-fprintf-posix.c: Likewise.
58576         * tests/test-fpurge.c: Likewise.
58577         * tests/test-freadable.c: Likewise.
58578         * tests/test-freadahead.c: Likewise.
58579         * tests/test-freading.c: Likewise.
58580         * tests/test-freadptr.c: Likewise.
58581         * tests/test-freadptr2.c: Likewise.
58582         * tests/test-freadseek.c: Likewise.
58583         * tests/test-freopen.c: Likewise.
58584         * tests/test-frexp.c: Likewise.
58585         * tests/test-frexpl.c: Likewise.
58586         * tests/test-fseek.c: Likewise.
58587         * tests/test-fseeko.c: Likewise.
58588         * tests/test-fstatat.c: Likewise.
58589         * tests/test-fstrcmp.c: Likewise.
58590         * tests/test-fsync.c: Likewise.
58591         * tests/test-ftell.c: Likewise.
58592         * tests/test-ftello.c: Likewise.
58593         * tests/test-func.c: Likewise.
58594         * tests/test-futimens.c: Likewise.
58595         * tests/test-fwritable.c: Likewise.
58596         * tests/test-fwriting.c: Likewise.
58597         * tests/test-getcwd.c: Likewise.
58598         * tests/test-getdate.c: Likewise.
58599         * tests/test-getdelim.c: Likewise.
58600         * tests/test-getdtablesize.c: Likewise.
58601         * tests/test-getgroups.c: Likewise.
58602         * tests/test-getline.c: Likewise.
58603         * tests/test-getndelim2.c: Likewise.
58604         * tests/test-glob.c: Likewise.
58605         * tests/test-hash.c: Likewise.
58606         * tests/test-i-ring.c: Likewise.
58607         * tests/test-iconv-utf.c: Likewise.
58608         * tests/test-iconv.c: Likewise.
58609         * tests/test-idpriv-drop.c: Likewise.
58610         * tests/test-idpriv-droptemp.c: Likewise.
58611         * tests/test-inet_ntop.c: Likewise.
58612         * tests/test-inet_pton.c: Likewise.
58613         * tests/test-isblank.c: Likewise.
58614         * tests/test-isfinite.c: Likewise.
58615         * tests/test-isinf.c: Likewise.
58616         * tests/test-isnan.c: Likewise.
58617         * tests/test-isnand.h: Likewise.
58618         * tests/test-isnanf.h: Likewise.
58619         * tests/test-isnanl.h: Likewise.
58620         * tests/test-lchown.c: Likewise.
58621         * tests/test-ldexpl.c: Likewise.
58622         * tests/test-link.c: Likewise.
58623         * tests/test-linkat.c: Likewise.
58624         * tests/test-linked_list.c: Likewise.
58625         * tests/test-linkedhash_list.c: Likewise.
58626         * tests/test-localename.c: Likewise.
58627         * tests/test-lseek.c: Likewise.
58628         * tests/test-lstat.c: Likewise.
58629         * tests/test-mbmemcasecmp.c: Likewise.
58630         * tests/test-mbmemcasecoll.c: Likewise.
58631         * tests/test-mbrtowc.c: Likewise.
58632         * tests/test-mbscasecmp.c: Likewise.
58633         * tests/test-mbscasestr1.c: Likewise.
58634         * tests/test-mbscasestr2.c: Likewise.
58635         * tests/test-mbscasestr3.c: Likewise.
58636         * tests/test-mbscasestr4.c: Likewise.
58637         * tests/test-mbschr.c: Likewise.
58638         * tests/test-mbscspn.c: Likewise.
58639         * tests/test-mbsinit.c: Likewise.
58640         * tests/test-mbsncasecmp.c: Likewise.
58641         * tests/test-mbsnrtowcs.c: Likewise.
58642         * tests/test-mbspbrk.c: Likewise.
58643         * tests/test-mbspcasecmp.c: Likewise.
58644         * tests/test-mbsrchr.c: Likewise.
58645         * tests/test-mbsrtowcs.c: Likewise.
58646         * tests/test-mbsspn.c: Likewise.
58647         * tests/test-mbsstr1.c: Likewise.
58648         * tests/test-mbsstr2.c: Likewise.
58649         * tests/test-mbsstr3.c: Likewise.
58650         * tests/test-memchr.c: Likewise.
58651         * tests/test-memchr2.c: Likewise.
58652         * tests/test-memcmp.c: Likewise.
58653         * tests/test-memmem.c: Likewise.
58654         * tests/test-memrchr.c: Likewise.
58655         * tests/test-mkdir.c: Likewise.
58656         * tests/test-mkdirat.c: Likewise.
58657         * tests/test-mkfifo.c: Likewise.
58658         * tests/test-mkfifoat.c: Likewise.
58659         * tests/test-mknod.c: Likewise.
58660         * tests/test-nanosleep.c: Likewise.
58661         * tests/test-nl_langinfo.c: Likewise.
58662         * tests/test-obstack-printf.c: Likewise.
58663         * tests/test-open.c: Likewise.
58664         * tests/test-openat.c: Likewise.
58665         * tests/test-pipe-filter-gi1.c: Likewise.
58666         * tests/test-pipe-filter-gi2-main.c: Likewise.
58667         * tests/test-pipe-filter-ii1.c: Likewise.
58668         * tests/test-pipe-filter-ii2-main.c: Likewise.
58669         * tests/test-pipe2.c: Likewise.
58670         * tests/test-popen.h: Likewise.
58671         * tests/test-posixtm.c: Likewise.
58672         * tests/test-pread.c: Likewise.
58673         * tests/test-printf-frexp.c: Likewise.
58674         * tests/test-printf-frexpl.c: Likewise.
58675         * tests/test-printf-posix.c: Likewise.
58676         * tests/test-priv-set.c: Likewise.
58677         * tests/test-quotearg.c: Likewise.
58678         * tests/test-random_r.c: Likewise.
58679         * tests/test-rawmemchr.c: Likewise.
58680         * tests/test-rbtree_list.c: Likewise.
58681         * tests/test-rbtree_oset.c: Likewise.
58682         * tests/test-rbtreehash_list.c: Likewise.
58683         * tests/test-readlink.c: Likewise.
58684         * tests/test-remove.c: Likewise.
58685         * tests/test-rename.c: Likewise.
58686         * tests/test-renameat.c: Likewise.
58687         * tests/test-rmdir.c: Likewise.
58688         * tests/test-round1.c: Likewise.
58689         * tests/test-roundf1.c: Likewise.
58690         * tests/test-roundl.c: Likewise.
58691         * tests/test-safe-alloc.c: Likewise.
58692         * tests/test-sameacls.c: Likewise.
58693         * tests/test-set-mode-acl.c: Likewise.
58694         * tests/test-setenv.c: Likewise.
58695         * tests/test-sigaction.c: Likewise.
58696         * tests/test-signbit.c: Likewise.
58697         * tests/test-sleep.c: Likewise.
58698         * tests/test-snprintf-posix.c: Likewise.
58699         * tests/test-snprintf.c: Likewise.
58700         * tests/test-sprintf-posix.c: Likewise.
58701         * tests/test-stat-time.c: Likewise.
58702         * tests/test-stat.c: Likewise.
58703         * tests/test-strcasestr.c: Likewise.
58704         * tests/test-strchrnul.c: Likewise.
58705         * tests/test-strerror.c: Likewise.
58706         * tests/test-striconv.c: Likewise.
58707         * tests/test-striconveh.c: Likewise.
58708         * tests/test-striconveha.c: Likewise.
58709         * tests/test-strsignal.c: Likewise.
58710         * tests/test-strstr.c: Likewise.
58711         * tests/test-strtod.c: Likewise.
58712         * tests/test-strverscmp.c: Likewise.
58713         * tests/test-symlink.c: Likewise.
58714         * tests/test-symlinkat.c: Likewise.
58715         * tests/test-trunc1.c: Likewise.
58716         * tests/test-trunc2.c: Likewise.
58717         * tests/test-truncf1.c: Likewise.
58718         * tests/test-truncf2.c: Likewise.
58719         * tests/test-truncl.c: Likewise.
58720         * tests/test-uname.c: Likewise.
58721         * tests/test-unlink.c: Likewise.
58722         * tests/test-unlinkat.c: Likewise.
58723         * tests/test-unsetenv.c: Likewise.
58724         * tests/test-usleep.c: Likewise.
58725         * tests/test-utimens.c: Likewise.
58726         * tests/test-utimensat.c: Likewise.
58727         * tests/test-vasnprintf-posix.c: Likewise.
58728         * tests/test-vasnprintf-posix2.c: Likewise.
58729         * tests/test-vasnprintf.c: Likewise.
58730         * tests/test-vasprintf-posix.c: Likewise.
58731         * tests/test-vasprintf.c: Likewise.
58732         * tests/test-vdprintf-posix.c: Likewise.
58733         * tests/test-vfprintf-posix.c: Likewise.
58734         * tests/test-vprintf-posix.c: Likewise.
58735         * tests/test-vsnprintf-posix.c: Likewise.
58736         * tests/test-vsnprintf.c: Likewise.
58737         * tests/test-vsprintf-posix.c: Likewise.
58738         * tests/test-wcrtomb.c: Likewise.
58739         * tests/test-wcsnrtombs.c: Likewise.
58740         * tests/test-wcsrtombs.c: Likewise.
58741         * tests/test-wctype.c: Likewise.
58742         * tests/test-wcwidth.c: Likewise.
58743         * tests/test-xfprintf-posix.c: Likewise.
58744         * tests/test-xmemdup0.c: Likewise.
58745         * tests/test-xprintf-posix.c: Likewise.
58746         * tests/test-xvasprintf.c: Likewise.
58747         * tests/unicase/test-locale-language.c: Likewise.
58748         * tests/unicase/test-mapping-part1.h: Likewise.
58749         * tests/unicase/test-predicate-part1.h: Likewise.
58750         * tests/unicase/test-u8-casecmp.c: Likewise.
58751         * tests/unicase/test-u8-casecoll.c: Likewise.
58752         * tests/unicase/test-u8-casefold.c: Likewise.
58753         * tests/unicase/test-u8-is-cased.c: Likewise.
58754         * tests/unicase/test-u8-is-casefolded.c: Likewise.
58755         * tests/unicase/test-u8-is-lowercase.c: Likewise.
58756         * tests/unicase/test-u8-is-titlecase.c: Likewise.
58757         * tests/unicase/test-u8-is-uppercase.c: Likewise.
58758         * tests/unicase/test-u8-tolower.c: Likewise.
58759         * tests/unicase/test-u8-totitle.c: Likewise.
58760         * tests/unicase/test-u8-toupper.c: Likewise.
58761         * tests/unicase/test-u16-casecmp.c: Likewise.
58762         * tests/unicase/test-u16-casecoll.c: Likewise.
58763         * tests/unicase/test-u16-casefold.c: Likewise.
58764         * tests/unicase/test-u16-is-cased.c: Likewise.
58765         * tests/unicase/test-u16-is-casefolded.c: Likewise.
58766         * tests/unicase/test-u16-is-lowercase.c: Likewise.
58767         * tests/unicase/test-u16-is-titlecase.c: Likewise.
58768         * tests/unicase/test-u16-is-uppercase.c: Likewise.
58769         * tests/unicase/test-u16-tolower.c: Likewise.
58770         * tests/unicase/test-u16-totitle.c: Likewise.
58771         * tests/unicase/test-u16-toupper.c: Likewise.
58772         * tests/unicase/test-u32-casecmp.c: Likewise.
58773         * tests/unicase/test-u32-casecoll.c: Likewise.
58774         * tests/unicase/test-u32-casefold.c: Likewise.
58775         * tests/unicase/test-u32-is-cased.c: Likewise.
58776         * tests/unicase/test-u32-is-casefolded.c: Likewise.
58777         * tests/unicase/test-u32-is-lowercase.c: Likewise.
58778         * tests/unicase/test-u32-is-titlecase.c: Likewise.
58779         * tests/unicase/test-u32-is-uppercase.c: Likewise.
58780         * tests/unicase/test-u32-tolower.c: Likewise.
58781         * tests/unicase/test-u32-totitle.c: Likewise.
58782         * tests/unicase/test-u32-toupper.c: Likewise.
58783         * tests/unicase/test-ulc-casecmp.c: Likewise.
58784         * tests/unicase/test-ulc-casecoll.c: Likewise.
58785         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58786         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58787         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58788         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58789         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58790         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58791         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58792         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58793         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58794         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58795         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58796         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58797         * tests/unictype/test-bidi_byname.c: Likewise.
58798         * tests/unictype/test-bidi_name.c: Likewise.
58799         * tests/unictype/test-bidi_of.c: Likewise.
58800         * tests/unictype/test-bidi_test.c: Likewise.
58801         * tests/unictype/test-block_list.c: Likewise.
58802         * tests/unictype/test-block_of.c: Likewise.
58803         * tests/unictype/test-block_test.c: Likewise.
58804         * tests/unictype/test-categ_and.c: Likewise.
58805         * tests/unictype/test-categ_and_not.c: Likewise.
58806         * tests/unictype/test-categ_byname.c: Likewise.
58807         * tests/unictype/test-categ_name.c: Likewise.
58808         * tests/unictype/test-categ_none.c: Likewise.
58809         * tests/unictype/test-categ_of.c: Likewise.
58810         * tests/unictype/test-categ_or.c: Likewise.
58811         * tests/unictype/test-categ_test_withtable.c: Likewise.
58812         * tests/unictype/test-combining.c: Likewise.
58813         * tests/unictype/test-decdigit.c: Likewise.
58814         * tests/unictype/test-digit.c: Likewise.
58815         * tests/unictype/test-mirror.c: Likewise.
58816         * tests/unictype/test-numeric.c: Likewise.
58817         * tests/unictype/test-pr_byname.c: Likewise.
58818         * tests/unictype/test-pr_test.c: Likewise.
58819         * tests/unictype/test-predicate-part1.h: Likewise.
58820         * tests/unictype/test-scripts.c: Likewise.
58821         * tests/unictype/test-sy_c_ident.c: Likewise.
58822         * tests/unictype/test-sy_java_ident.c: Likewise.
58823         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
58824         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
58825         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
58826         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
58827         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
58828         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
58829         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
58830         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
58831         * tests/uninorm/test-canonical-decomposition.c: Likewise.
58832         * tests/uninorm/test-compat-decomposition.c: Likewise.
58833         * tests/uninorm/test-composition.c: Likewise.
58834         * tests/uninorm/test-decomposing-form.c: Likewise.
58835         * tests/uninorm/test-decomposition.c: Likewise.
58836         * tests/uninorm/test-u8-nfc.c: Likewise.
58837         * tests/uninorm/test-u8-nfd.c: Likewise.
58838         * tests/uninorm/test-u8-nfkc.c: Likewise.
58839         * tests/uninorm/test-u8-nfkd.c: Likewise.
58840         * tests/uninorm/test-u8-normcmp.c: Likewise.
58841         * tests/uninorm/test-u8-normcoll.c: Likewise.
58842         * tests/uninorm/test-u16-nfc.c: Likewise.
58843         * tests/uninorm/test-u16-nfd.c: Likewise.
58844         * tests/uninorm/test-u16-nfkc.c: Likewise.
58845         * tests/uninorm/test-u16-nfkd.c: Likewise.
58846         * tests/uninorm/test-u16-normcmp.c: Likewise.
58847         * tests/uninorm/test-u16-normcoll.c: Likewise.
58848         * tests/uninorm/test-u32-nfc.c: Likewise.
58849         * tests/uninorm/test-u32-nfd.c: Likewise.
58850         * tests/uninorm/test-u32-nfkc.c: Likewise.
58851         * tests/uninorm/test-u32-nfkd.c: Likewise.
58852         * tests/uninorm/test-u32-normalize-big.c: Likewise.
58853         * tests/uninorm/test-u32-normcmp.c: Likewise.
58854         * tests/uninorm/test-u32-normcoll.c: Likewise.
58855         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
58856         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58857         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58858         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58859         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58860         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58861         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58862         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58863         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58864         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58865         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58866         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58867         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58868         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58869         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58870         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58871         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58872         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58873         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58874         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58875         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58876         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58877         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58878         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58879         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58880         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58881         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58882         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58883         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58884         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
58885         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
58886         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
58887         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
58888         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58889         * tests/uniwidth/test-u8-width.c: Likewise.
58890         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58891         * tests/uniwidth/test-u16-width.c: Likewise.
58892         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58893         * tests/uniwidth/test-u32-width.c: Likewise.
58894         * tests/uniwidth/test-uc_width.c: Likewise.
58895         * tests/uniwidth/test-uc_width2.c: Likewise.
58896         * modules/acl-tests (Files): Add tests/macros.h.
58897         * modules/areadlink-tests (Files): Likewise.
58898         * modules/areadlink-with-size-tests (Files): Likewise.
58899         * modules/areadlinkat-tests (Files): Likewise.
58900         * modules/areadlinkat-with-size-tests (Files): Likewise.
58901         * modules/argmatch-tests (Files): Likewise.
58902         * modules/argv-iter-tests (Files): Likewise.
58903         * modules/array-list-tests (Files): Likewise.
58904         * modules/array-mergesort-tests (Files): Likewise.
58905         * modules/array-oset-tests (Files): Likewise.
58906         * modules/avltree-list-tests (Files): Likewise.
58907         * modules/avltree-oset-tests (Files): Likewise.
58908         * modules/avltreehash-list-tests (Files): Likewise.
58909         * modules/base64-tests (Files): Likewise.
58910         * modules/binary-io-tests (Files): Likewise.
58911         * modules/bitrotate-tests (Files): Likewise.
58912         * modules/btowc-tests (Files): Likewise.
58913         * modules/byteswap-tests (Files): Likewise.
58914         * modules/c-ctype-tests (Files): Likewise.
58915         * modules/c-stack-tests (Files): Likewise.
58916         * modules/c-strcase-tests (Files): Likewise.
58917         * modules/c-strcasestr-tests (Files): Likewise.
58918         * modules/c-strstr-tests (Files): Likewise.
58919         * modules/canonicalize-lgpl-tests (Files): Likewise.
58920         * modules/canonicalize-tests (Files): Likewise.
58921         * modules/carray-list-tests (Files): Likewise.
58922         * modules/ceilf-tests (Files): Likewise.
58923         * modules/ceill-tests (Files): Likewise.
58924         * modules/chown-tests (Files): Likewise.
58925         * modules/cloexec-tests (Files): Likewise.
58926         * modules/copy-file-tests (Files): Likewise.
58927         * modules/count-one-bits-tests (Files): Likewise.
58928         * modules/dprintf-posix-tests (Files): Likewise.
58929         * modules/dup2-tests (Files): Likewise.
58930         * modules/dup3-tests (Files): Likewise.
58931         * modules/duplocale-tests (Files): Likewise.
58932         * modules/fbufmode-tests (Files): Likewise.
58933         * modules/fchdir-tests (Files): Likewise.
58934         * modules/fcntl-safer-tests (Files): Likewise.
58935         * modules/fcntl-tests (Files): Likewise.
58936         * modules/fdopendir-tests (Files): Likewise.
58937         * modules/fdutimensat-tests (Files): Likewise.
58938         * modules/fflush-tests (Files): Likewise.
58939         * modules/filevercmp-tests (Files): Likewise.
58940         * modules/flock-tests (Files): Likewise.
58941         * modules/floorf-tests (Files): Likewise.
58942         * modules/floorl-tests (Files): Likewise.
58943         * modules/fnmatch-tests (Files): Likewise.
58944         * modules/fopen-safer-tests (Files): Likewise.
58945         * modules/fopen-tests (Files): Likewise.
58946         * modules/fpending-tests (Files): Likewise.
58947         * modules/fprintf-posix-tests (Files): Likewise.
58948         * modules/fpurge-tests (Files): Likewise.
58949         * modules/freadable-tests (Files): Likewise.
58950         * modules/freadahead-tests (Files): Likewise.
58951         * modules/freading-tests (Files): Likewise.
58952         * modules/freadptr-tests (Files): Likewise.
58953         * modules/freadseek-tests (Files): Likewise.
58954         * modules/freopen-tests (Files): Likewise.
58955         * modules/frexp-nolibm-tests (Files): Likewise.
58956         * modules/frexp-tests (Files): Likewise.
58957         * modules/frexpl-nolibm-tests (Files): Likewise.
58958         * modules/frexpl-tests (Files): Likewise.
58959         * modules/fseek-tests (Files): Likewise.
58960         * modules/fseeko-tests (Files): Likewise.
58961         * modules/fstrcmp-tests (Files): Likewise.
58962         * modules/fsync-tests (Files): Likewise.
58963         * modules/ftell-tests (Files): Likewise.
58964         * modules/ftello-tests (Files): Likewise.
58965         * modules/func-tests (Files): Likewise.
58966         * modules/futimens-tests (Files): Likewise.
58967         * modules/fwritable-tests (Files): Likewise.
58968         * modules/fwriting-tests (Files): Likewise.
58969         * modules/getcwd-tests (Files): Likewise.
58970         * modules/getdate-tests (Files): Likewise.
58971         * modules/getdelim-tests (Files): Likewise.
58972         * modules/getdtablesize-tests (Files): Likewise.
58973         * modules/getgroups-tests (Files): Likewise.
58974         * modules/getline-tests (Files): Likewise.
58975         * modules/getndelim2-tests (Files): Likewise.
58976         * modules/glob-tests (Files): Likewise.
58977         * modules/hash-tests (Files): Likewise.
58978         * modules/i-ring-tests (Files): Likewise.
58979         * modules/iconv-tests (Files): Likewise.
58980         * modules/iconv_open-utf-tests (Files): Likewise.
58981         * modules/idpriv-drop-tests (Files): Likewise.
58982         * modules/idpriv-droptemp-tests (Files): Likewise.
58983         * modules/inet_ntop-tests (Files): Likewise.
58984         * modules/inet_pton-tests (Files): Likewise.
58985         * modules/isblank-tests (Files): Likewise.
58986         * modules/isfinite-tests (Files): Likewise.
58987         * modules/isinf-tests (Files): Likewise.
58988         * modules/isnan-tests (Files): Likewise.
58989         * modules/isnand-nolibm-tests (Files): Likewise.
58990         * modules/isnand-tests (Files): Likewise.
58991         * modules/isnanf-nolibm-tests (Files): Likewise.
58992         * modules/isnanf-tests (Files): Likewise.
58993         * modules/isnanl-nolibm-tests (Files): Likewise.
58994         * modules/isnanl-tests (Files): Likewise.
58995         * modules/lchown-tests (Files): Likewise.
58996         * modules/ldexpl-tests (Files): Likewise.
58997         * modules/link-tests (Files): Likewise.
58998         * modules/linkat-tests (Files): Likewise.
58999         * modules/linked-list-tests (Files): Likewise.
59000         * modules/linkedhash-list-tests (Files): Likewise.
59001         * modules/localename-tests (Files): Likewise.
59002         * modules/lseek-tests (Files): Likewise.
59003         * modules/lstat-tests (Files): Likewise.
59004         * modules/mbmemcasecmp-tests (Files): Likewise.
59005         * modules/mbmemcasecoll-tests (Files): Likewise.
59006         * modules/mbrtowc-tests (Files): Likewise.
59007         * modules/mbscasecmp-tests (Files): Likewise.
59008         * modules/mbscasestr-tests (Files): Likewise.
59009         * modules/mbschr-tests (Files): Likewise.
59010         * modules/mbscspn-tests (Files): Likewise.
59011         * modules/mbsinit-tests (Files): Likewise.
59012         * modules/mbsncasecmp-tests (Files): Likewise.
59013         * modules/mbsnrtowcs-tests (Files): Likewise.
59014         * modules/mbspbrk-tests (Files): Likewise.
59015         * modules/mbspcasecmp-tests (Files): Likewise.
59016         * modules/mbsrchr-tests (Files): Likewise.
59017         * modules/mbsrtowcs-tests (Files): Likewise.
59018         * modules/mbsspn-tests (Files): Likewise.
59019         * modules/mbsstr-tests (Files): Likewise.
59020         * modules/memchr-tests (Files): Likewise.
59021         * modules/memchr2-tests (Files): Likewise.
59022         * modules/memcmp-tests (Files): Likewise.
59023         * modules/memmem-tests (Files): Likewise.
59024         * modules/memrchr-tests (Files): Likewise.
59025         * modules/mkdir-tests (Files): Likewise.
59026         * modules/mkfifo-tests (Files): Likewise.
59027         * modules/mkfifoat-tests (Files): Likewise.
59028         * modules/mknod-tests (Files): Likewise.
59029         * modules/nanosleep-tests (Files): Likewise.
59030         * modules/nl_langinfo-tests (Files): Likewise.
59031         * modules/obstack-printf-tests (Files): Likewise.
59032         * modules/open-tests (Files): Likewise.
59033         * modules/openat-tests (Files): Likewise.
59034         * modules/pipe-filter-gi-tests (Files): Likewise.
59035         * modules/pipe-filter-ii-tests (Files): Likewise.
59036         * modules/pipe2-tests (Files): Likewise.
59037         * modules/popen-safer-tests (Files): Likewise.
59038         * modules/popen-tests (Files): Likewise.
59039         * modules/posixtm-tests (Files): Likewise.
59040         * modules/pread-tests (Files): Likewise.
59041         * modules/printf-frexp-tests (Files): Likewise.
59042         * modules/printf-frexpl-tests (Files): Likewise.
59043         * modules/printf-posix-tests (Files): Likewise.
59044         * modules/priv-set-tests (Files): Likewise.
59045         * modules/quotearg-tests (Files): Likewise.
59046         * modules/random_r-tests (Files): Likewise.
59047         * modules/rawmemchr-tests (Files): Likewise.
59048         * modules/rbtree-list-tests (Files): Likewise.
59049         * modules/rbtree-oset-tests (Files): Likewise.
59050         * modules/rbtreehash-list-tests (Files): Likewise.
59051         * modules/readlink-tests (Files): Likewise.
59052         * modules/remove-tests (Files): Likewise.
59053         * modules/rename-tests (Files): Likewise.
59054         * modules/renameat-tests (Files): Likewise.
59055         * modules/rmdir-tests (Files): Likewise.
59056         * modules/round-tests (Files): Likewise.
59057         * modules/roundf-tests (Files): Likewise.
59058         * modules/roundl-tests (Files): Likewise.
59059         * modules/safe-alloc-tests (Files): Likewise.
59060         * modules/setenv-tests (Files): Likewise.
59061         * modules/sigaction-tests (Files): Likewise.
59062         * modules/signbit-tests (Files): Likewise.
59063         * modules/sleep-tests (Files): Likewise.
59064         * modules/snprintf-posix-tests (Files): Likewise.
59065         * modules/snprintf-tests (Files): Likewise.
59066         * modules/sprintf-posix-tests (Files): Likewise.
59067         * modules/stat-tests (Files): Likewise.
59068         * modules/stat-time-tests (Files): Likewise.
59069         * modules/strcasestr-tests (Files): Likewise.
59070         * modules/strchrnul-tests (Files): Likewise.
59071         * modules/strerror-tests (Files): Likewise.
59072         * modules/striconv-tests (Files): Likewise.
59073         * modules/striconveh-tests (Files): Likewise.
59074         * modules/striconveha-tests (Files): Likewise.
59075         * modules/strsignal-tests (Files): Likewise.
59076         * modules/strstr-tests (Files): Likewise.
59077         * modules/strtod-tests (Files): Likewise.
59078         * modules/strverscmp-tests (Files): Likewise.
59079         * modules/symlink-tests (Files): Likewise.
59080         * modules/symlinkat-tests (Files): Likewise.
59081         * modules/trunc-tests (Files): Likewise.
59082         * modules/truncf-tests (Files): Likewise.
59083         * modules/truncl-tests (Files): Likewise.
59084         * modules/uname-tests (Files): Likewise.
59085         * modules/unicase/cased-tests (Files): Likewise.
59086         * modules/unicase/ignorable-tests (Files): Likewise.
59087         * modules/unicase/locale-language-tests (Files): Likewise.
59088         * modules/unicase/tolower-tests (Files): Likewise.
59089         * modules/unicase/totitle-tests (Files): Likewise.
59090         * modules/unicase/toupper-tests (Files): Likewise.
59091         * modules/unicase/u8-casecmp-tests (Files): Likewise.
59092         * modules/unicase/u8-casecoll-tests (Files): Likewise.
59093         * modules/unicase/u8-casefold-tests (Files): Likewise.
59094         * modules/unicase/u8-is-cased-tests (Files): Likewise.
59095         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
59096         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
59097         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
59098         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
59099         * modules/unicase/u8-tolower-tests (Files): Likewise.
59100         * modules/unicase/u8-totitle-tests (Files): Likewise.
59101         * modules/unicase/u8-toupper-tests (Files): Likewise.
59102         * modules/unicase/u16-casecmp-tests (Files): Likewise.
59103         * modules/unicase/u16-casecoll-tests (Files): Likewise.
59104         * modules/unicase/u16-casefold-tests (Files): Likewise.
59105         * modules/unicase/u16-is-cased-tests (Files): Likewise.
59106         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
59107         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
59108         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
59109         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
59110         * modules/unicase/u16-tolower-tests (Files): Likewise.
59111         * modules/unicase/u16-totitle-tests (Files): Likewise.
59112         * modules/unicase/u16-toupper-tests (Files): Likewise.
59113         * modules/unicase/u32-casecmp-tests (Files): Likewise.
59114         * modules/unicase/u32-casecoll-tests (Files): Likewise.
59115         * modules/unicase/u32-casefold-tests (Files): Likewise.
59116         * modules/unicase/u32-is-cased-tests (Files): Likewise.
59117         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
59118         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
59119         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
59120         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
59121         * modules/unicase/u32-tolower-tests (Files): Likewise.
59122         * modules/unicase/u32-totitle-tests (Files): Likewise.
59123         * modules/unicase/u32-toupper-tests (Files): Likewise.
59124         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
59125         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
59126         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
59127         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
59128         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
59129         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
59130         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
59131         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
59132         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
59133         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
59134         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
59135         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
59136         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
59137         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
59138         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
59139         * modules/unictype/bidicategory-name-tests (Files): Likewise.
59140         * modules/unictype/bidicategory-of-tests (Files): Likewise.
59141         * modules/unictype/bidicategory-test-tests (Files): Likewise.
59142         * modules/unictype/block-list-tests (Files): Likewise.
59143         * modules/unictype/block-of-tests (Files): Likewise.
59144         * modules/unictype/block-test-tests (Files): Likewise.
59145         * modules/unictype/category-C-tests (Files): Likewise.
59146         * modules/unictype/category-Cc-tests (Files): Likewise.
59147         * modules/unictype/category-Cf-tests (Files): Likewise.
59148         * modules/unictype/category-Cn-tests (Files): Likewise.
59149         * modules/unictype/category-Co-tests (Files): Likewise.
59150         * modules/unictype/category-Cs-tests (Files): Likewise.
59151         * modules/unictype/category-L-tests (Files): Likewise.
59152         * modules/unictype/category-Ll-tests (Files): Likewise.
59153         * modules/unictype/category-Lm-tests (Files): Likewise.
59154         * modules/unictype/category-Lo-tests (Files): Likewise.
59155         * modules/unictype/category-Lt-tests (Files): Likewise.
59156         * modules/unictype/category-Lu-tests (Files): Likewise.
59157         * modules/unictype/category-M-tests (Files): Likewise.
59158         * modules/unictype/category-Mc-tests (Files): Likewise.
59159         * modules/unictype/category-Me-tests (Files): Likewise.
59160         * modules/unictype/category-Mn-tests (Files): Likewise.
59161         * modules/unictype/category-N-tests (Files): Likewise.
59162         * modules/unictype/category-Nd-tests (Files): Likewise.
59163         * modules/unictype/category-Nl-tests (Files): Likewise.
59164         * modules/unictype/category-No-tests (Files): Likewise.
59165         * modules/unictype/category-P-tests (Files): Likewise.
59166         * modules/unictype/category-Pc-tests (Files): Likewise.
59167         * modules/unictype/category-Pd-tests (Files): Likewise.
59168         * modules/unictype/category-Pe-tests (Files): Likewise.
59169         * modules/unictype/category-Pf-tests (Files): Likewise.
59170         * modules/unictype/category-Pi-tests (Files): Likewise.
59171         * modules/unictype/category-Po-tests (Files): Likewise.
59172         * modules/unictype/category-Ps-tests (Files): Likewise.
59173         * modules/unictype/category-S-tests (Files): Likewise.
59174         * modules/unictype/category-Sc-tests (Files): Likewise.
59175         * modules/unictype/category-Sk-tests (Files): Likewise.
59176         * modules/unictype/category-Sm-tests (Files): Likewise.
59177         * modules/unictype/category-So-tests (Files): Likewise.
59178         * modules/unictype/category-Z-tests (Files): Likewise.
59179         * modules/unictype/category-Zl-tests (Files): Likewise.
59180         * modules/unictype/category-Zp-tests (Files): Likewise.
59181         * modules/unictype/category-Zs-tests (Files): Likewise.
59182         * modules/unictype/category-and-not-tests (Files): Likewise.
59183         * modules/unictype/category-and-tests (Files): Likewise.
59184         * modules/unictype/category-byname-tests (Files): Likewise.
59185         * modules/unictype/category-name-tests (Files): Likewise.
59186         * modules/unictype/category-none-tests (Files): Likewise.
59187         * modules/unictype/category-of-tests (Files): Likewise.
59188         * modules/unictype/category-or-tests (Files): Likewise.
59189         * modules/unictype/category-test-withtable-tests (Files): Likewise.
59190         * modules/unictype/combining-class-tests (Files): Likewise.
59191         * modules/unictype/ctype-alnum-tests (Files): Likewise.
59192         * modules/unictype/ctype-alpha-tests (Files): Likewise.
59193         * modules/unictype/ctype-blank-tests (Files): Likewise.
59194         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
59195         * modules/unictype/ctype-digit-tests (Files): Likewise.
59196         * modules/unictype/ctype-graph-tests (Files): Likewise.
59197         * modules/unictype/ctype-lower-tests (Files): Likewise.
59198         * modules/unictype/ctype-print-tests (Files): Likewise.
59199         * modules/unictype/ctype-punct-tests (Files): Likewise.
59200         * modules/unictype/ctype-space-tests (Files): Likewise.
59201         * modules/unictype/ctype-upper-tests (Files): Likewise.
59202         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
59203         * modules/unictype/decimal-digit-tests (Files): Likewise.
59204         * modules/unictype/digit-tests (Files): Likewise.
59205         * modules/unictype/mirror-tests (Files): Likewise.
59206         * modules/unictype/numeric-tests (Files): Likewise.
59207         * modules/unictype/property-alphabetic-tests (Files): Likewise.
59208         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
59209         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
59210         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
59211         Likewise.
59212         * modules/unictype/property-bidi-block-separator-tests (Files):
59213         Likewise.
59214         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
59215         Likewise.
59216         * modules/unictype/property-bidi-common-separator-tests (Files):
59217         Likewise.
59218         * modules/unictype/property-bidi-control-tests (Files): Likewise.
59219         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
59220         Likewise.
59221         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
59222         Likewise.
59223         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
59224         Likewise.
59225         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
59226         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
59227         Likewise.
59228         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
59229         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
59230         Likewise.
59231         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
59232         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
59233         * modules/unictype/property-bidi-segment-separator-tests (Files):
59234         Likewise.
59235         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
59236         * modules/unictype/property-byname-tests (Files): Likewise.
59237         * modules/unictype/property-combining-tests (Files): Likewise.
59238         * modules/unictype/property-composite-tests (Files): Likewise.
59239         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
59240         * modules/unictype/property-dash-tests (Files): Likewise.
59241         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
59242         * modules/unictype/property-default-ignorable-code-point-tests (Files):
59243         Likewise.
59244         * modules/unictype/property-deprecated-tests (Files): Likewise.
59245         * modules/unictype/property-diacritic-tests (Files): Likewise.
59246         * modules/unictype/property-extender-tests (Files): Likewise.
59247         * modules/unictype/property-format-control-tests (Files): Likewise.
59248         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
59249         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
59250         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
59251         * modules/unictype/property-hex-digit-tests (Files): Likewise.
59252         * modules/unictype/property-hyphen-tests (Files): Likewise.
59253         * modules/unictype/property-id-continue-tests (Files): Likewise.
59254         * modules/unictype/property-id-start-tests (Files): Likewise.
59255         * modules/unictype/property-ideographic-tests (Files): Likewise.
59256         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
59257         * modules/unictype/property-ids-trinary-operator-tests (Files):
59258         Likewise.
59259         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
59260         * modules/unictype/property-iso-control-tests (Files): Likewise.
59261         * modules/unictype/property-join-control-tests (Files): Likewise.
59262         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
59263         * modules/unictype/property-line-separator-tests (Files): Likewise.
59264         * modules/unictype/property-logical-order-exception-tests (Files):
59265         Likewise.
59266         * modules/unictype/property-lowercase-tests (Files): Likewise.
59267         * modules/unictype/property-math-tests (Files): Likewise.
59268         * modules/unictype/property-non-break-tests (Files): Likewise.
59269         * modules/unictype/property-not-a-character-tests (Files): Likewise.
59270         * modules/unictype/property-numeric-tests (Files): Likewise.
59271         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
59272         * modules/unictype/property-other-default-ignorable-code-point-tests
59273         (Files): Likewise.
59274         * modules/unictype/property-other-grapheme-extend-tests (Files):
59275         Likewise.
59276         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
59277         * modules/unictype/property-other-id-start-tests (Files): Likewise.
59278         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
59279         * modules/unictype/property-other-math-tests (Files): Likewise.
59280         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
59281         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
59282         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
59283         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
59284         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
59285         * modules/unictype/property-private-use-tests (Files): Likewise.
59286         * modules/unictype/property-punctuation-tests (Files): Likewise.
59287         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
59288         * modules/unictype/property-radical-tests (Files): Likewise.
59289         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
59290         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
59291         * modules/unictype/property-space-tests (Files): Likewise.
59292         * modules/unictype/property-terminal-punctuation-tests (Files):
59293         Likewise.
59294         * modules/unictype/property-test-tests (Files): Likewise.
59295         * modules/unictype/property-titlecase-tests (Files): Likewise.
59296         * modules/unictype/property-unassigned-code-value-tests (Files):
59297         Likewise.
59298         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
59299         * modules/unictype/property-uppercase-tests (Files): Likewise.
59300         * modules/unictype/property-variation-selector-tests (Files): Likewise.
59301         * modules/unictype/property-white-space-tests (Files): Likewise.
59302         * modules/unictype/property-xid-continue-tests (Files): Likewise.
59303         * modules/unictype/property-xid-start-tests (Files): Likewise.
59304         * modules/unictype/property-zero-width-tests (Files): Likewise.
59305         * modules/unictype/scripts-tests (Files): Likewise.
59306         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
59307         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
59308         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
59309         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
59310         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
59311         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
59312         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
59313         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
59314         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
59315         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
59316         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
59317         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
59318         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
59319         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
59320         * modules/uninorm/composition-tests (Files): Likewise.
59321         * modules/uninorm/decomposing-form-tests (Files): Likewise.
59322         * modules/uninorm/decomposition-tests (Files): Likewise.
59323         * modules/uninorm/filter-tests (Files): Likewise.
59324         * modules/uninorm/nfc-tests (Files): Likewise.
59325         * modules/uninorm/nfd-tests (Files): Likewise.
59326         * modules/uninorm/nfkc-tests (Files): Likewise.
59327         * modules/uninorm/nfkd-tests (Files): Likewise.
59328         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
59329         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
59330         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
59331         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
59332         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
59333         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
59334         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
59335         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
59336         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
59337         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
59338         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
59339         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
59340         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
59341         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
59342         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
59343         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
59344         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
59345         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
59346         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
59347         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
59348         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
59349         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
59350         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
59351         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
59352         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
59353         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
59354         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
59355         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
59356         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
59357         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
59358         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
59359         * modules/uniwidth/u8-width-tests (Files): Likewise.
59360         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
59361         * modules/uniwidth/u16-width-tests (Files): Likewise.
59362         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
59363         * modules/uniwidth/u32-width-tests (Files): Likewise.
59364         * modules/uniwidth/width-tests (Files): Likewise.
59365         * modules/unlink-tests (Files): Likewise.
59366         * modules/unsetenv-tests (Files): Likewise.
59367         * modules/usleep-tests (Files): Likewise.
59368         * modules/utimens-tests (Files): Likewise.
59369         * modules/utimensat-tests (Files): Likewise.
59370         * modules/vasnprintf-posix-tests (Files): Likewise.
59371         * modules/vasnprintf-tests (Files): Likewise.
59372         * modules/vasprintf-posix-tests (Files): Likewise.
59373         * modules/vasprintf-tests (Files): Likewise.
59374         * modules/vdprintf-posix-tests (Files): Likewise.
59375         * modules/vfprintf-posix-tests (Files): Likewise.
59376         * modules/vprintf-posix-tests (Files): Likewise.
59377         * modules/vsnprintf-posix-tests (Files): Likewise.
59378         * modules/vsnprintf-tests (Files): Likewise.
59379         * modules/vsprintf-posix-tests (Files): Likewise.
59380         * modules/wcrtomb-tests (Files): Likewise.
59381         * modules/wcsnrtombs-tests (Files): Likewise.
59382         * modules/wcsrtombs-tests (Files): Likewise.
59383         * modules/wctype-tests (Files): Likewise.
59384         * modules/wcwidth-tests (Files): Likewise.
59385         * modules/xmemdup0-tests (Files): Likewise.
59386         * modules/xprintf-posix-tests (Files): Likewise.
59387         * modules/xvasprintf-tests (Files): Likewise.
59389 2009-12-24  Eric Blake  <ebb9@byu.net>
59391         test-nanosleep: fix typo
59392         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
59393         patch.
59394         Reported by Bruno Haible.
59396 2009-12-24  Bruno Haible  <bruno@clisp.org>
59398         Reduce namespace pollution on glibc systems.
59399         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
59400         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
59401         systems.
59402         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
59403         <getopt.h> on glibc systems.
59404         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
59405         systems.
59406         * lib/fcntl.c: Include <unistd.h> here instead.
59408 2009-12-24  Bruno Haible  <bruno@clisp.org>
59410         * lib/stdlib.in.h (includes): Fix typo in today's commit.
59412 2009-12-24  Eric Blake  <ebb9@byu.net>
59414         tests: add signature checks
59415         * tests/signature.h (SIGNATURE_CHECK): New file.
59416         * modules/atexit-tests (Files): Use it.
59417         * modules/btowc-tests (Files): Likewise.
59418         * modules/canonicalize-lgpl-tests (Files): Likewise.
59419         * modules/ceilf-tests (Files): Likewise.
59420         * modules/ceill-tests (Files): Likewise.
59421         * modules/chown-tests (Files): Likewise.
59422         * modules/dprintf-posix-tests (Files): Likewise.
59423         * modules/dup2-tests (Files): Likewise.
59424         * modules/dup3-tests (Files): Likewise.
59425         * modules/duplocale-tests (Files): Likewise.
59426         * modules/fchdir-tests (Files): Likewise.
59427         * modules/fcntl-tests (Files): Likewise.
59428         * modules/fdopendir-tests (Files): Likewise.
59429         * modules/fflush-tests (Files): Likewise.
59430         * modules/flock-tests (Files): Likewise.
59431         * modules/floorf-tests (Files): Likewise.
59432         * modules/floorl-tests (Files): Likewise.
59433         * modules/fnmatch-tests (Files): Likewise.
59434         * modules/fopen-tests (Files): Likewise.
59435         * modules/fprintf-posix-tests (Files): Likewise.
59436         * modules/freopen-tests (Files): Likewise.
59437         * modules/frexp-nolibm-tests (Files): Likewise.
59438         * modules/frexp-tests (Files): Likewise.
59439         * modules/frexpl-nolibm-tests (Files): Likewise.
59440         * modules/frexpl-tests (Files): Likewise.
59441         * modules/fseek-tests (Files): Likewise.
59442         * modules/fseeko-tests (Files): Likewise.
59443         * modules/fsync-tests (Files): Likewise.
59444         * modules/ftell-tests (Files): Likewise.
59445         * modules/ftello-tests (Files): Likewise.
59446         * modules/futimens-tests (Files): Likewise.
59447         * modules/getaddrinfo-tests (Files): Likewise.
59448         * modules/getcwd-tests (Files): Likewise.
59449         * modules/getdelim-tests (Files): Likewise.
59450         * modules/getdtablesize-tests (Files): Likewise.
59451         * modules/getgroups-tests (Files): Likewise.
59452         * modules/gethostname-tests (Files): Likewise.
59453         * modules/getline-tests (Files): Likewise.
59454         * modules/getopt-posix-tests (Files): Likewise.
59455         * modules/gettimeofday-tests (Files): Likewise.
59456         * modules/glob-tests (Files): Likewise.
59457         * modules/iconv-tests (Files): Likewise.
59458         * modules/inet_ntop-tests (Files): Likewise.
59459         * modules/inet_pton-tests (Files): Likewise.
59460         * modules/isblank-tests (Files): Likewise.
59461         * modules/lchown-tests (Files): Likewise.
59462         * modules/ldexpl-tests (Files): Likewise.
59463         * modules/link-tests (Files): Likewise.
59464         * modules/linkat-tests (Files): Likewise.
59465         * modules/lseek-tests (Files): Likewise.
59466         * modules/lstat-tests (Files): Likewise.
59467         * modules/mbrtowc-tests (Files): Likewise.
59468         * modules/mbsinit-tests (Files): Likewise.
59469         * modules/mbsnrtowcs-tests (Files): Likewise.
59470         * modules/mbsrtowcs-tests (Files): Likewise.
59471         * modules/memchr-tests (Files): Likewise.
59472         * modules/memcmp-tests (Files): Likewise.
59473         * modules/memmem-tests (Files): Likewise.
59474         * modules/memrchr-tests (Files): Likewise.
59475         * modules/mkdir-tests (Files): Likewise.
59476         * modules/mkfifo-tests (Files): Likewise.
59477         * modules/mkfifoat-tests (Files): Likewise.
59478         * modules/mknod-tests (Files): Likewise.
59479         * modules/nanosleep-tests (Files): Likewise.
59480         * modules/nl_langinfo-tests (Files): Likewise.
59481         * modules/obstack-printf-tests (Files): Likewise.
59482         * modules/open-tests (Files): Likewise.
59483         * modules/openat-tests (Files): Likewise.
59484         * modules/perror-tests (Files): Likewise.
59485         * modules/pipe2-tests (Files): Likewise.
59486         * modules/poll-tests (Files): Likewise.
59487         * modules/popen-tests (Files): Likewise.
59488         * modules/posix_spawn-tests (Files): Likewise.
59489         * modules/posix_spawnp-tests (Files): Likewise.
59490         * modules/pread-tests (Files): Likewise.
59491         * modules/printf-posix-tests (Files): Likewise.
59492         * modules/pty-tests (Files): Likewise.
59493         * modules/random_r-tests (Files): Likewise.
59494         * modules/rawmemchr-tests (Files): Likewise.
59495         * modules/readlink-tests (Files): Likewise.
59496         * modules/remove-tests (Files): Likewise.
59497         * modules/rename-tests (Files): Likewise.
59498         * modules/renameat-tests (Files): Likewise.
59499         * modules/rmdir-tests (Files): Likewise.
59500         * modules/round-tests (Files): Likewise.
59501         * modules/roundf-tests (Files): Likewise.
59502         * modules/roundl-tests (Files): Likewise.
59503         * modules/select-tests (Files): Likewise.
59504         * modules/setenv-tests (Files): Likewise.
59505         * modules/sigaction-tests (Files): Likewise.
59506         * modules/sleep-tests (Files): Likewise.
59507         * modules/snprintf-posix-tests (Files): Likewise.
59508         * modules/snprintf-tests (Files): Likewise.
59509         * modules/sprintf-posix-tests (Files): Likewise.
59510         * modules/stat-tests (Files): Likewise.
59511         * modules/strcasestr-tests (Files): Likewise.
59512         * modules/strchrnul-tests (Files): Likewise.
59513         * modules/strerror-tests (Files): Likewise.
59514         * modules/strsignal-tests (Files): Likewise.
59515         * modules/strstr-tests (Files): Likewise.
59516         * modules/strtod-tests (Files): Likewise.
59517         * modules/strverscmp-tests (Files): Likewise.
59518         * modules/symlink-tests (Files): Likewise.
59519         * modules/symlinkat-tests (Files): Likewise.
59520         * modules/times-tests (Files): Likewise.
59521         * modules/trunc-tests (Files): Likewise.
59522         * modules/truncf-tests (Files): Likewise.
59523         * modules/truncl-tests (Files): Likewise.
59524         * modules/tsearch-tests (Files): Likewise.
59525         * modules/uname-tests (Files): Likewise.
59526         * modules/unlink-tests (Files): Likewise.
59527         * modules/unsetenv-tests (Files): Likewise.
59528         * modules/usleep-tests (Files): Likewise.
59529         * modules/utimensat-tests (Files): Likewise.
59530         * modules/vasprintf-tests (Files): Likewise.
59531         * modules/vdprintf-posix-tests (Files): Likewise.
59532         * modules/vfprintf-posix-tests (Files): Likewise.
59533         * modules/vprintf-posix-tests (Files): Likewise.
59534         * modules/vsnprintf-posix-tests (Files): Likewise.
59535         * modules/vsnprintf-tests (Files): Likewise.
59536         * modules/vsprintf-posix-tests (Files): Likewise.
59537         * modules/wcrtomb-tests (Files): Likewise.
59538         * modules/wcsnrtombs-tests (Files): Likewise.
59539         * modules/wcsrtombs-tests (Files): Likewise.
59540         * modules/wcwidth-tests (Files): Likewise.
59541         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
59542         * tests/test-isinf.c (isinf): Likewise.
59543         * tests/test-isnan.c (isnan): Likewise.
59544         * tests/test-signbit.c (signbit): Likewise.
59545         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
59546         declaration, either as macro or with correct signature.
59547         (select): Ensure function under test is declared with correct
59548         signature in correct header.
59549         * tests/test-atexit.c (atexit): Likewise.
59550         * tests/test-btowc.c (btowc): Likewise.
59551         * tests/test-canonicalize-lgpl.c (realpath)
59552         (canonicalize_file_name): Likewise.
59553         * tests/test-ceilf1.c (ceilf): Likewise.
59554         * tests/test-ceill.c (ceill): Likewise.
59555         * tests/test-chown.c (chown): Likewise.
59556         * tests/test-dprintf-posix.c (dprintf): Likewise.
59557         * tests/test-dup2.c (dup2): Likewise.
59558         * tests/test-dup3.c (dup3): Likewise.
59559         * tests/test-duplocale.c (duplocale): Likewise.
59560         * tests/test-fchdir.c (fchdir): Likewise.
59561         * tests/test-fchownat.c (fchownat): Likewise.
59562         * tests/test-fcntl.c (fcntl): Likewise.
59563         * tests/test-fdopendir.c (fdopendir): Likewise.
59564         * tests/test-fflush.c (fflush): Likewise.
59565         * tests/test-flock.c (flock): Likewise.
59566         * tests/test-floorf1.c (floorf): Likewise.
59567         * tests/test-floorl.c (floorl): Likewise.
59568         * tests/test-fnmatch.c (fnmatch): Likewise.
59569         * tests/test-fopen.c (fopen): Likewise.
59570         * tests/test-fprintf-posix.c (fprintf): Likewise.
59571         * tests/test-freopen.c (freopen): Likewise.
59572         * tests/test-frexp.c (frexp): Likewise.
59573         * tests/test-frexpl.c (frexpl): Likewise.
59574         * tests/test-fseek.c (fseek): Likewise.
59575         * tests/test-fseeko.c (fseeko): Likewise.
59576         * tests/test-fstatat.c (fstatat): Likewise.
59577         * tests/test-fsync.c (fsync): Likewise.
59578         * tests/test-ftell.c (ftell): Likewise.
59579         * tests/test-ftello.c (ftello): Likewise.
59580         * tests/test-futimens.c (futimens): Likewise.
59581         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
59582         (gai_strerror): Likewise.
59583         * tests/test-getcwd.c (getcwd): Likewise.
59584         * tests/test-getdelim.c (getdelim): Likewise.
59585         * tests/test-getdtablesize.c (getdtablesize): Likewise.
59586         * tests/test-getgroups.c (getgroups): Likewise.
59587         * tests/test-gethostname.c (gethostname): Likewise.
59588         * tests/test-getline.c (getline): Likewise.
59589         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
59590         Likewise.
59591         * tests/test-gettimeofday.c (gettimeofday): Likewise.
59592         * tests/test-glob.c (glob, globfree): Likewise.
59593         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
59594         * tests/test-inet_ntop.c (inet_ntop): Likewise.
59595         * tests/test-inet_pton.c (inet_pton): Likewise.
59596         * tests/test-isblank.c (isblank): Likewise.
59597         * tests/test-lchown.c (lchown): Likewise.
59598         * tests/test-ldexpl.c (ldexpl): Likewise.
59599         * tests/test-link.c (link): Likewise.
59600         * tests/test-linkat.c (linkat): Likewise.
59601         * tests/test-lseek.c (lseek): Likewise.
59602         * tests/test-lstat.c (lstat): Likewise.
59603         * tests/test-mbrtowc.c (mbrtowc): Likewise.
59604         * tests/test-mbsinit.c (mbsinit): Likewise.
59605         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
59606         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
59607         * tests/test-memchr.c (memchr): Likewise.
59608         * tests/test-memcmp.c (memcmp): Likewise.
59609         * tests/test-memmem.c (memmem): Likewise.
59610         * tests/test-memrchr.c (memrchr): Likewise.
59611         * tests/test-mkdir.c (mkdir): Likewise.
59612         * tests/test-mkdirat.c (mkdirat): Likewise.
59613         * tests/test-mkfifo.c (mkfifo): Likewise.
59614         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
59615         * tests/test-mknod.c (mknod): Likewise.
59616         * tests/test-nanosleep.c (nanosleep): Likewise.
59617         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
59618         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
59619         Likewise.
59620         * tests/test-open.c (open): Likewise.
59621         * tests/test-openat.c (openat): Likewise.
59622         * tests/test-perror.c (perror): Likewise.
59623         * tests/test-pipe2.c (pipe2): Likewise.
59624         * tests/test-poll.c (poll): Likewise.
59625         * tests/test-popen.c (popen, pclose): Likewise.
59626         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
59627         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
59628         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
59629         (posix_spawn_file_actions_destroy)
59630         (posix_spawn_file_actions_addclose)
59631         (posix_spawn_file_actions_addopen)
59632         (posix_spawn_file_actions_adddup2): Likewise.
59633         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
59634         * tests/test-pread.c (pread): Likewise.
59635         * tests/test-printf-posix.c (printf): Likewise.
59636         * tests/test-pty.c (openpty, forkpty): Likewise.
59637         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
59638         (random_r): Likewise.
59639         * tests/test-rawmemchr.c (rawmemchr): Likewise.
59640         * tests/test-readlink.c (readlink): Likewise.
59641         * tests/test-remove.c (remove): Likewise.
59642         * tests/test-rename.c (rename): Likewise.
59643         * tests/test-renameat.c (renameat): Likewise.
59644         * tests/test-rmdir.c (rmdir): Likewise.
59645         * tests/test-round1.c (round): Likewise.
59646         * tests/test-roundf1.c (roundf): Likewise.
59647         * tests/test-roundl.c (roundl): Likewise.
59648         * tests/test-setenv.c (setenv): Likewise.
59649         * tests/test-sigaction.c (sigaction): Likewise.
59650         * tests/test-sleep.c (sleep): Likewise.
59651         * tests/test-snprintf.c (snprintf): Likewise.
59652         * tests/test-sprintf-posix.c (sprintf): Likewise.
59653         * tests/test-stat.c (stat): Likewise.
59654         * tests/test-stpncpy.c (stpncpy): Likewise.
59655         * tests/test-strcasestr.c (strcasestr): Likewise.
59656         * tests/test-strchrnul.c (strchrnul): Likewise.
59657         * tests/test-strerror.c (strerror): Likewise.
59658         * tests/test-strsignal.c (strsignal): Likewise.
59659         * tests/test-strstr.c (strstr): Likewise.
59660         * tests/test-strtod.c (strtod): Likewise.
59661         * tests/test-strverscmp.c (strverscmp): Likewise.
59662         * tests/test-symlink.c (symlink): Likewise.
59663         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
59664         * tests/test-times.c (times): Likewise.
59665         * tests/test-trunc1.c (trunc): Likewise.
59666         * tests/test-truncf1.c (truncf): Likewise.
59667         * tests/test-truncl.c (truncl): Likewise.
59668         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
59669         Likewise.
59670         * tests/test-uname.c (uname): Likewise.
59671         * tests/test-unlink.c (unlink): Likewise.
59672         * tests/test-unlinkat.c (unlinkat): Likewise.
59673         * tests/test-unsetenv.c (unsetenv): Likewise.
59674         * tests/test-usleep.c (usleep): Likewise.
59675         * tests/test-utimensat.c (utimensat): Likewise.
59676         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
59677         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
59678         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
59679         * tests/test-vprintf-posix.c (vprintf): Likewise.
59680         * tests/test-vsnprintf.c (vsnprintf): Likewise.
59681         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
59682         * tests/test-wcrtomb.c (wcrtomb): Likewise.
59683         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
59684         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
59685         * tests/test-wcwidth.c (wcwidth): Likewise.
59687         build: pull in conditional headers during GNULIB_POSIXCHECK
59688         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
59689         definitions from any conditionally-included headers.
59690         * lib/stdlib.in.h (includes): Likewise.
59691         * lib/unistd.in.h (includes): Likewise.
59693 2009-12-24  Bruno Haible  <bruno@clisp.org>
59695         * tests/test-argv-iter.c: Include header file being tested immediately
59696         after config.h.
59697         * tests/test-base64.c: Likewise.
59698         * tests/test-flock.c: Likewise.
59699         * tests/test-fsync.c: Likewise.
59700         * tests/test-getdate.c: Likewise.
59701         * tests/test-getndelim2.c: Likewise.
59702         * tests/test-isfinite.c: Likewise.
59703         * tests/test-isinf.c: Likewise.
59704         * tests/test-strerror.c: Likewise.
59705         * tests/test-strsignal.c: Likewise.
59707 2009-12-23  Eric Blake  <ebb9@byu.net>
59709         unistd: work around cygwin bug
59710         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
59711         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
59712         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
59714 2009-12-23  Bruno Haible  <bruno@clisp.org>
59716         localename: More tests.
59717         * tests/test-localename.c (SIZEOF): New macro.
59718         (categories): New variable.
59719         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
59720         test_locale_name_default): Add test w.r.t. thread locale.
59721         (test_locale_name_thread): New function.
59722         (main): Invoke it.
59724         localename: Make aware of thread locale.
59725         * lib/localename.h (gl_locale_name_thread): New declaration.
59726         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
59727         behaviour with respect to thread locale.
59728         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
59729         <langinfo.h>, glthread/lock.h.
59730         (SIZE_BITS): New macro.
59731         (string_hash): New function.
59732         (struct hash_node): New type.
59733         (HASH_TABLE_SIZE): New macro.
59734         (struniq_hash_table, struniq_lock): New variables.
59735         (struniq): New function.
59736         (gl_locale_name_thread): New function.
59737         (gl_locale_name): Invoke it.
59738         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
59739         * modules/localename (Depends-on): Add lock.
59740         Reported by Mike Gran <spk121@yahoo.com>.
59742 2009-12-23  Eric Blake  <ebb9@byu.net>
59744         va-args: new module
59745         * modules/va-args: New file.
59746         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
59747         * MODULES.html.sh (Core language properties): Mention it.
59749         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
59750         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
59751         named alias for __attribute__((__unused__)).
59752         * lib/chown.c: Update client.
59753         * lib/fchmodat.c: Likewise.
59754         * lib/fts.c: Likewise.
59755         * lib/getdate.y: Likewise.
59756         * lib/getgroups.c: Likewise.
59757         * lib/getopt.c: Likewise.
59758         * lib/getugroups.c: Likewise.
59759         * lib/mkdir.c: Likewise.
59760         * lib/mkfifo.c: Likewise.
59761         * lib/mkfifoat.c: Likewise.
59762         * lib/mknod.c: Likewise.
59763         * lib/mknodat.c: Likewise.
59764         * lib/readlink.c: Likewise.
59765         * lib/se-context.in.h: Likewise.
59766         * lib/se-selinux.in.h: Likewise.
59767         * lib/sockets.c: Likewise.
59768         * lib/symlink.c: Likewise.
59769         * lib/symlinkat.c: Likewise.
59770         * lib/unicodeio.c: Likewise.
59771         * lib/unistr.h: Likewise.
59772         * tests/test-areadlink.c: Likewise.
59773         * tests/test-areadlinkat.c: Likewise.
59774         * tests/test-filenamecat.c: Likewise.
59775         * tests/test-fseeko.c: Likewise.
59776         * tests/test-ftello.c: Likewise.
59777         * tests/test-getdate.c: Likewise.
59778         * tests/test-getgroups.c: Likewise.
59779         * tests/test-gethostname.c: Likewise.
59780         * tests/test-quotearg.c: Likewise.
59781         * tests/test-version-etc.c: Likewise.
59782         * tests/test-xalloc-die.c: Likewise.
59783         * tests/test-xfprintf-posix.c: Likewise.
59784         * tests/test-xprintf-posix.c: Likewise.
59785         * tests/test-xvasprintf.c: Likewise.
59787         tests: avoid compiler warnings
59788         * tests/test-fcntl.c (main): Delete unused parameters.
59789         * tests/test-freopen-safer.c (main): Likewise.
59790         * tests/test-xalloc-die.c (main): Mark unused parameters.
59791         * tests/test-fseeko.c (main): Likewise.
59792         * tests/test-ftello.c (main): Likewise.
59793         * tests/test-nanosleep.c (main): Avoid declaration warning.
59794         * tests/test-sleep.c (main): Likewise.
59795         * tests/test-unsetenv.c (main): Silence warning about string
59796         literal.
59797         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
59799 2009-12-23  Bruno Haible  <bruno@clisp.org>
59801         * tests/test-localename.c (test_locale_name): New function, extracted
59802         from main. Also test mixed situations.
59803         (test_locale_name_posix, test_locale_name_environ,
59804         test_locale_name_default): New functions.
59805         (main): Invoke them all.
59806         * modules/localename-tests (configure.ac): Test for newlocale.
59808 2009-12-23  Bruno Haible  <bruno@clisp.org>
59810         unistd: Ensure getcwd gets declared before being overridden.
59811         * lib/unistd.in.h: Conditionally include <io.h>.
59813 2009-12-22  Bruno Haible  <bruno@clisp.org>
59815         wchar: Diagnose broken combination of glibc and gcc versions and flags.
59816         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
59817         (gl_WCHAR_H): Invoke it.
59818         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
59819         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
59820         Reported by Karl Berry <karl@freefriends.org>.
59822 2009-12-22  Eric Blake  <ebb9@byu.net>
59824         math, unistd: avoid redundant includes
59825         * lib/math.in.h (isnan): No need to re-include <math.h>.
59826         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
59828         getsubopt: work around cygwin bug
59829         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
59830         avoid conflicting with system getsubopt.
59831         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
59832         bug.
59834         getopt: synchronize from glibc
59835         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
59836         parameter order.  Adjust all callers.
59837         (_getopt_internal_r, main): Adjust quoting in error messages.
59838         Drop considerations for outdated POSIX 1003.2 error message.
59839         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
59840         callers.
59841         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
59843         test-getopt: test stderr behavior
59844         * modules/getopt-posix-tests (Depends-on): Add dup2.
59845         * tests/test-getopt.c (ASSERT): Avoid stderr.
59846         (main): Move stderr to a temporary file.
59847         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
59848         Instead, add parameter to inform caller if output occurred.
59849         (test_getopt): Adjust all existing tests to expect silence, and
59850         add new tests of leading ":".
59851         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
59852         glibc shortcomings with leading "-:" or "+:" in optstring.
59853         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
59854         Likewise.
59855         * doc/posix-functions/getopt.texi (getopt): Likewise.
59857         test-getopt: enhance test
59858         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
59859         supports optind=0.
59860         * tests/test-getopt.c (OPTIND_MIN): Move...
59861         * tests/test-getopt.h (OPTIND_MIN): ...here.
59862         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
59863         Require that optind=0 works, since modern BSD supports it in
59864         addition to optreset, and since coreutils expects it.
59865         (test_getopt_long_only): New test.
59866         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
59867         glibc shortcomings with 'W;', and enforcement of optind=0.
59868         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
59869         Likewise.
59871 2009-12-21  Bruno Haible  <bruno@clisp.org>
59873         localename: Improvements for MacOS X and Cygwin.
59874         * lib/localename.h (gl_locale_name_environ): New declaration.
59875         * lib/localename.c (gl_locale_name_environ): New function, extracted from
59876         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
59877         (gl_locale_name_posix): Invoke it.
59878         (gl_locale_name_default): Add comments. Use Windows native API also on
59879         Cygwin.
59881 2009-12-21  Bruno Haible  <bruno@clisp.org>
59883         Update list of Win32 locale ids.
59884         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
59885         (LANG_SAMI): Renamed from LANG_SAAMI.
59886         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
59887         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
59888         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
59889         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
59890         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
59891         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
59892         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
59893         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
59894         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
59895         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
59896         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
59897         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
59898         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
59899         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
59900         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
59901         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
59902         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
59903         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
59904         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
59905         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
59906         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
59907         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
59908         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
59909         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
59910         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
59911         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
59912         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
59913         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
59914         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
59915         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
59916         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
59917         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
59918         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
59919         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
59920         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
59921         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
59922         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
59923         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
59924         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
59925         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
59926         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
59927         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
59928         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
59929         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
59930         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
59931         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
59932         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
59933         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
59934         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
59935         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
59936         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
59937         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
59938         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
59939         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
59940         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
59941         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
59942         Add more languages and countries for Sami, Sorbian. Add more countries
59943         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
59944         for Pashto. Change country for Syriac, Tswana.
59946 2009-12-21  Eric Blake  <ebb9@byu.net>
59948         test-utimens: avoid spurious failure
59949         * tests/test-chown.h (nap): Factor...
59950         * tests/nap.h: ...into new file.
59951         * tests/test-lchown.h (nap): Avoid duplication.
59952         * tests/test-utimens-common.h (nap): Use shared implementation,
59953         necessary on file systems with 1-second resolution.
59954         * modules/chown-tests (Files): Include new file.
59955         * modules/fdutimensat-tests (Files): Likewise.
59956         * modules/futimens-tests (Files): Likewise.
59957         * modules/lchown-tests (Files): Likewise.
59958         * modules/openat-tests (Files): Likewise.
59959         * modules/utimens-tests (Files): Likewise.
59960         * modules/utimensat-tests (Files): Likewise.
59962 2009-12-19  Eric Blake  <ebb9@byu.net>
59964         futimens, utimensat: work around Linux bug
59965         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
59966         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
59967         * lib/utimensat.c (rpl_utimensat): Work around it.
59968         * lib/futimens.c (rpl_futimens): Adjust comment.
59970         utimens: work around Linux ctime bug
59971         * lib/utimens.c (detect_ctime_bug): New helper function.
59972         (update_timespec): Differentiate between workaround needed for
59973         this bug vs. what is needed for systems that lack utimensat.
59974         (fdutimens, lutimens): Work around bug.
59976         utimens: check for ctime update
59977         * tests/test-utimens-common.h (check_ctime): Define.
59978         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
59979         * tests/test-futimens.h (test_futimens): Likewise.
59980         * tests/test-lutimens.h (test_lutimens): Likewise.
59981         * doc/posix-functions/futimens.texi (futimens): Document the bug.
59982         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
59984 2009-12-19  Bruno Haible  <bruno@clisp.org>
59986         dprintf-posix: Check against memory leak fixed on 2009-12-15.
59987         * tests/test-dprintf-posix2.sh: New file.
59988         * tests/test-dprintf-posix2.c: New file.
59989         * modules/dprintf-posix-tests (Files): Add them.
59990         (configure.ac): Check for getrlimit and setrlimit.
59991         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
59993 2009-12-19  Bruno Haible  <bruno@clisp.org>
59995         fprintf-posix: Check against memory leak fixed on 2009-12-15.
59996         * tests/test-fprintf-posix3.sh: New file.
59997         * tests/test-fprintf-posix3.c: New file.
59998         * modules/fprintf-posix-tests (Files): Add them.
59999         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60001 2009-12-19  Eric Blake  <ebb9@byu.net>
60003         dirfd: fix prototype
60004         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
60005         * lib/dirfd.c (dirfd): Likewise.
60007         canonicalize: reduce memory usage
60008         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
60009         allocation to size.
60010         Reported by Solar Designer <solar@openwall.com>.
60012 2009-12-19  Bruno Haible  <bruno@clisp.org>
60014         New module attribute 'Applicability'.
60015         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
60016         * gnulib-tool: New option --extract-applicability.
60017         (func_usage): Document it.
60018         (sed_extract_prog): Recognize it.
60019         (func_get_applicability): New function.
60020         (func_import): Generalize handling of 'link-warning' module.
60021         * modules/link-warning (Applicability): New section.
60022         * modules/arg-nonnull (Applicability): New section.
60023         Repoted by Simon Josefsson <simon@josefsson.org>.
60025 2009-12-19  Bruno Haible  <bruno@clisp.org>
60027         fflush: tweak
60028         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
60029         * lib/fseeko.c (rpl_fseeko): Likewise.
60031 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
60033         * lib/gl_list.h: Fix typo in comment.
60035 2009-12-16  Eric Blake  <ebb9@byu.net>
60037         fcntl: use to simplify other modules
60038         * modules/cloexec (Depends-on): Add fcntl.
60039         * modules/fchdir (Depends-on): Likewise.
60040         * modules/fd-safer-flag (Depends-on): Likewise.
60041         * modules/unistd-safer (Depends-on): Likewise.
60042         * modules/dup3 (configure.ac): Set module indicator.
60043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
60044         missing.
60045         * lib/fchdir.c (_gl_register_dup): Fix comment.
60046         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
60047         * lib/dup-safer.c (dup_safer): Likewise.
60048         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
60049         * lib/dup3.c (dup3): Likewise.
60050         * tests/test-fchdir.c (main): Enhance test.
60051         Fixes a dup_cloexec bug reported by Ondřej Vašík.
60053         fcntl: port portions of fcntl to mingw
60054         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
60055         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
60056         replacement for mingw.
60057         * modules/fcntl (Description): Update.
60058         (Depends-on): Add dup2.
60059         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
60060         * modules/fcntl-h (Makefile.am): Substitute it.
60061         * lib/fcntl.in.h (fcntl): Update declaration.
60062         (F_DUPFD, F_GETFD): New macros, when needed.
60063         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
60064         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
60065         * tests/test-fcntl.c (check_flags, main): Enhance test for items
60066         we now guarantee.
60068         fcntl: work around cygwin bug in F_DUPFD
60069         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
60070         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
60071         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
60072         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
60073         * doc/posix-functions/fcntl.texi (fcntl): Document it.
60075         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
60076         * modules/fcntl (Files): List new files.
60077         (configure.ac): Run a test.
60078         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
60079         * lib/fcntl.c (rpl_fcntl): Likewise.
60080         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
60081         (gl_FCNTL_H): Always replace fcntl.h.
60082         * modules/fcntl-h (Makefile.am): Substitute witnesses.
60083         * lib/fcntl.in.h (fcntl): Declare replacement.
60084         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
60085         needed, plus a witness.
60086         * doc/posix-functions/fcntl.texi (fcntl): Document this.
60087         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60088         * tests/test-fcntl.c: New file.
60089         * modules/fcntl-tests: Likewise.
60091         binary-io: avoid potential compilation warning
60092         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
60093         directives.
60095         fflush: avoid compilation error on NetBSD
60096         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
60097         between off_t and fpos_t, since the latter is sometimes a struct.
60098         * lib/fseeko.c (rpl_fseeko): Likewise.
60099         Reported by Alexander Nasonov <alnsn@yandex.ru>.
60101 2009-12-15  Eric Blake  <ebb9@byu.net>
60103         fcntl-h, stdio, sys_ioctl: fix declarations
60104         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
60105         function must not take arguments.
60106         * lib/sys_ioctl.in.h (ioctl): Likewise.
60107         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
60108         (open): Add a link warning.
60110 2009-12-15  Jim Meyering  <meyering@redhat.com>
60112         areadlink, areadlink-with-size: relax license to LGPLv2+
60113         * modules/areadlink (License): Relax to LGPLv2+.
60114         * modules/areadlink-with-size (License): Likewise.
60116 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
60117             Bruno Haible  <bruno@clisp.org>
60119         *printf: Fix memory leak.
60120         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
60121         * lib/vfprintf.c (vfprintf): Likewise.
60122         * lib/dprintf.c (dprintf): Likewise.
60123         * lib/vdprintf.c (vdprintf): Likewise.
60125 2009-12-14  Eric Blake  <ebb9@byu.net>
60127         accept4: adjust module dependencies
60128         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
60130         utimens: one more try at avoiding compiler warning
60131         * lib/utimens.c (lutimens): Lower scope of result.
60133 2009-12-13  Bruno Haible  <bruno@clisp.org>
60135         Move the malloc checking from module 'list' to new module 'xlist'.
60136         * modules/xlist: New file.
60137         * lib/gl_xlist.h: New file.
60138         * lib/gl_xlist.c: New file.
60139         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
60140         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
60141         gl_list_add_last, gl_list_add_before, gl_list_add_after,
60142         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
60143         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
60144         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
60145         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
60146         gl_sortedlist_nx_add): New declarations.
60147         (struct gl_list_implementation): Rename and change methods accordingly.
60148         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
60149         (gl_list_nx_create): Renamed from gl_list_create.
60150         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60151         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60152         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60153         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60154         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60155         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60156         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60157         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60158         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
60159         gl_list_create_empty.
60160         (gl_list_nx_create): Renamed from gl_list_create.
60161         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60162         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60163         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60164         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60165         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60166         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60167         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60168         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60169         * lib/gl_array_list.c: Don't include xalloc.h.
60170         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
60171         NULL upon out-of-memory.
60172         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
60173         out-of-memory.
60174         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
60175         Change return type to 'int'.
60176         (gl_array_nx_set_at): Renamed from gl_array_set_at.
60177         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60178         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
60179         upon out-of-memory.
60180         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
60181         upon out-of-memory.
60182         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
60183         upon out-of-memory.
60184         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
60185         upon out-of-memory.
60186         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
60187         out-of-memory.
60188         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
60189         Update.
60190         (gl_array_list_implementation): Update.
60191         * lib/gl_carray_list.c: Don't include xalloc.h.
60192         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
60193         Return NULL upon out-of-memory.
60194         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
60195         out-of-memory.
60196         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
60197         Change return type to 'int'.
60198         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
60199         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60200         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
60201         upon out-of-memory.
60202         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
60203         upon out-of-memory.
60204         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
60205         out-of-memory.
60206         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
60207         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
60208         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
60209         Update.
60210         (gl_carray_list_implementation): Update.
60211         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
60212         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
60213         gl_linked_create_empty. Return NULL upon out-of-memory.
60214         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
60215         out-of-memory.
60216         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
60217         Change return type to 'int'. Return -1 upon out-of-memory.
60218         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
60219         out-of-memory.
60220         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
60221         upon out-of-memory.
60222         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
60223         upon out-of-memory.
60224         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
60225         NULL upon out-of-memory.
60226         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
60227         upon out-of-memory.
60228         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
60229         out-of-memory.
60230         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
60231         Update.
60232         * lib/gl_linked_list.c: Don't include xalloc.h.
60233         (gl_linked_list_implementation): Update.
60234         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
60235         (add_to_bucket): Change return type to 'int'.
60236         (gl_linkedhash_list_implementation): Update.
60237         * lib/gl_anytree_list1.h (free_subtree): New function.
60238         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
60239         gl_tree_create_empty. Return NULL upon out-of-memory.
60240         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
60241         Change return type to 'int'. Return -1 upon out-of-memory.
60242         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
60243         out-of-memory.
60244         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
60245         (gl_tree_remove_node): New function, moved here from
60246         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
60247         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
60248         Update.
60249         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
60250         malloc, not xmalloc. Return NULL upon out-of-memory.
60251         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60252         out-of-memory.
60253         (gl_tree_remove_node_from_tree): New function, extracted from
60254         gl_tree_remove_node.
60255         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60256         upon out-of-memory.
60257         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60258         out-of-memory.
60259         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60260         upon out-of-memory.
60261         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60262         upon out-of-memory.
60263         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60264         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
60265         not xmalloc. Return NULL upon out-of-memory.
60266         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
60267         out-of-memory.
60268         (gl_tree_remove_node_from_tree): New function, extracted from
60269         gl_tree_remove_node.
60270         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
60271         upon out-of-memory.
60272         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
60273         out-of-memory.
60274         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
60275         upon out-of-memory.
60276         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
60277         upon out-of-memory.
60278         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
60279         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
60280         gl_anytree_list1.h before gl_anyavltree_list2.h.
60281         (gl_avltree_list_implementation): Update.
60282         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
60283         gl_anytree_list1.h before gl_anyavltree_list2.h.
60284         (gl_rbtree_list_implementation): Update.
60285         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
60286         Change return type to 'int'. Return -1 upon out-of-memory. Use
60287         __builtin_expect.
60288         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
60289         (gl_avltreehash_list_implementation): Update.
60290         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
60291         (gl_rbtreehash_list_implementation): Update.
60292         * modules/array-list (Depends-on): Remove xalloc.
60293         * modules/carray-list (Depends-on): Likewise.
60294         * modules/linked-list (Depends-on): Likewise.
60295         * modules/linkedhash-list (Depends-on): Likewise.
60296         * modules/avltree-list (Depends-on): Likewise.
60297         * modules/rbtree-list (Depends-on): Likewise.
60298         * modules/avltreehash-list (Depends-on): Likewise.
60299         * modules/rbtreehash-list (Depends-on): Likewise.
60301         * modules/xsublist: New file.
60302         * lib/gl_xsublist.h: New file.
60303         * lib/gl_xsublist.c: New file.
60304         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
60305         (gl_sublist_nx_create): New declaration.
60306         * lib/gl_sublist.c: Don't include xalloc.h.
60307         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
60308         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
60309         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
60310         Change return type to 'int'. Return -1 upon out-of-memory.
60311         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
60312         upon out-of-memory.
60313         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
60314         NULL upon out-of-memory.
60315         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
60316         upon out-of-memory.
60317         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
60318         NULL upon out-of-memory.
60319         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
60320         NULL upon out-of-memory.
60321         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
60322         upon out-of-memory.
60323         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
60324         (gl_sublist_list_implementation): Update.
60325         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
60326         upon out-of-memory.
60327         * modules/sublist (Depends-on): Remove xalloc.
60329         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
60330         * tests/test-carray_list.c: Likewise.
60331         * tests/test-linked_list.c: Likewise.
60332         * tests/test-linkedhash_list.c: Likewise.
60333         * tests/test-avltree_list.c: Likewise.
60334         * tests/test-rbtree_list.c: Likewise.
60335         * tests/test-avltreehash_list.c: Likewise.
60336         * tests/test-rbtreehash_list.c: Likewise.
60337         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
60338         * modules/carray-list-tests (Makefile.am): Likewise.
60339         * modules/linked-list-tests (Makefile.am): Likewise.
60340         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60341         * modules/avltree-list-tests (Makefile.am): Likewise.
60342         * modules/rbtree-list-tests (Makefile.am): Likewise.
60343         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60344         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60346         * NEWS: Mention the changes.
60348         * lib/clean-temp.c: Include gl_xlist.h.
60349         * modules/clean-temp (Depends-on): Add xlist.
60351         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
60352         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
60354         * tests/test-array_oset.c: Include gl_xlist.h.
60355         * modules/array-oset-tests (Depends-on): Add xlist.
60357         Reported by José E. Marchesi <jemarch@gnu.org>.
60359 2009-12-13  Bruno Haible  <bruno@clisp.org>
60361         Move the malloc checking from module 'oset' to new module 'xoset'.
60362         * modules/xoset: New file.
60363         * lib/gl_xoset.h: New file.
60364         * lib/gl_xoset.c: New file.
60365         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
60366         declarations.
60367         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
60368         (struct gl_oset_implementation): Rename and change methods accordingly.
60369         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
60370         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60371         'int'. Mark as __warn_unused_result__.
60372         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
60373         gl_oset_create_empty.
60374         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
60375         'int'.
60376         * lib/gl_array_oset.c: Don't include xalloc.h.
60377         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
60378         malloc, not xmalloc.
60379         (grow): Change return type to 'int'. Don't call xalloc_die.
60380         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
60381         to 'int'.
60382         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
60383         'int'.
60384         (gl_array_oset_implementation): Update.
60385         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
60386         gl_tree_create_empty.
60387         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
60388         'int'.
60389         * lib/gl_avltree_oset.c: Don't include xalloc.h.
60390         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60391         xmalloc.
60392         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60393         not xmalloc.
60394         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60395         xmalloc.
60396         (gl_avltree_oset_implementation): Update.
60397         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
60398         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
60399         xmalloc.
60400         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
60401         not xmalloc.
60402         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
60403         xmalloc.
60404         (gl_rbtree_oset_implementation): Update.
60405         * modules/array-oset (Depends-on): Remove xalloc.
60406         * modules/avltree-oset (Depends-on): Likewise.
60407         * modules/rbtree-oset (Depends-on): Likewise.
60408         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
60409         * tests/test-avltree_oset.c: Likewise.
60410         * tests/test-rbtree_oset.c: Likewise.
60411         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
60412         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
60413         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60414         * NEWS: Mention the change.
60416 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
60418         maint.mk: allow a project to override release-prep commands
60419         * top/maint.mk (alpha, beta, stable): Move release-preparatory
60420         commands into a new rule.
60421         (release-prep): New rule.
60422         (release-prep-hook): New overridable variable.
60424 2009-12-13  Bruno Haible  <bruno@clisp.org>
60426         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
60428 2009-12-13  Jim Meyering  <meyering@redhat.com>
60430         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
60431         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
60433 2009-12-12  Bruno Haible  <bruno@clisp.org>
60435         duplocale: Tweak.
60436         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
60438 2009-12-12  Karl Berry  <karl@gnu.org>
60440         * config/srclist.txt (strtoll.c): tab changes, no more sync.
60442 2009-12-12  Bruno Haible  <bruno@clisp.org>
60444         * m4/po.m4: Undo incorrect untabification.
60446 2009-12-12  Bruno Haible  <bruno@clisp.org>
60448         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
60449         * modules/c-strtod (Depends-on): Add locale.
60450         * modules/c-strtold (Depends-on): Likewise.
60452 2009-12-12  Bruno Haible  <bruno@clisp.org>
60454         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
60456 2009-12-11  Eric Blake  <ebb9@byu.net>
60458         setenv: relax requirement in light of POSIX ruling
60459         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
60460         not NULL.
60461         * tests/test-setenv.c (main): Relax test.
60462         * tests/test-unsetenv.c (main): Likewise.
60463         * doc/posix-functions/setenv.texi (setenv): Document this.
60464         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
60466 2009-12-11  Bruno Haible  <bruno@clisp.org>
60468         New module 'fd-safer-flag'.
60469         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
60470         * lib/dup-safer.c (dup_safer_flag): Remove function.
60471         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
60472         * lib/fd-safer.c (fd_safer_flag): Remove function.
60473         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
60474         * modules/cloexec (configure.ac): Drop indicator macro.
60475         * modules/fd-safer-flag: New file.
60476         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
60477         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
60478         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
60480 2009-12-11  Bruno Haible  <bruno@clisp.org>
60482         Tests for module 'nl_langinfo'.
60483         * modules/nl_langinfo-tests: New file.
60484         * tests/test-nl_langinfo.sh: New file.
60485         * tests/test-nl_langinfo.c: New file.
60487         New module 'nl_langinfo'.
60488         * lib/nl_langinfo.c: New file.
60489         * m4/nl_langinfo.m4: New file.
60490         * modules/nl_langinfo: New file.
60491         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
60493 2009-12-11  Bruno Haible  <bruno@clisp.org>
60495         Tests for module 'langinfo'.
60496         * modules/langinfo-tests: New file.
60497         * tests/test-langinfo.c: New file.
60499         New module 'langinfo'.
60500         * lib/langinfo.in.h: New file.
60501         * m4/langinfo_h.m4: New file.
60502         * modules/langinfo: New file.
60503         * doc/posix-headers/langinfo.texi: Mention the new module.
60505 2009-12-11  Bruno Haible  <bruno@clisp.org>
60507         * lib/config.charset: Untabify.
60509 2009-12-11  Bruno Haible  <bruno@clisp.org>
60511         * modules/unistd-safer (configure.ac): Drop indicator macro.
60513 2009-12-11  Bruno Haible  <bruno@clisp.org>
60515         Move pipe2-safer code to its own file.
60516         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
60517         * lib/pipe-safer.c (pipe2_safer): Remove function.
60518         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
60519         (Makefile.am): Add it to lib_SOURCES.
60521 2009-12-10  Bruno Haible  <bruno@clisp.org>
60523         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
60525 2009-12-10  Bruno Haible  <bruno@clisp.org>
60527         Declare which arguments expect non-NULL values, for GCC and clang.
60528         * build-aux/arg-nonnull.h: New file.
60529         * modules/arg-nonnull: New file.
60530         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
60531         (inet_ntop, inet_pton): Use it.
60532         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
60533         (closedir, dirfd, opendir, scandir, alphasort): Use it.
60534         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
60535         (open, openat): Use it.
60536         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
60537         (fnmatch): Use it.
60538         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
60539         (getopt, getopt_long, getopt_long_only): Use it.
60540         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
60541         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
60542         Use it.
60543         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
60544         (iconv_open): Use it.
60545         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
60546         (strtoimax, strtoumax): Use it.
60547         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
60548         (duplocale): Use it.
60549         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
60550         (frexp, frexpl): Use it.
60551         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
60552         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
60553         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
60554         (tsearch, tfind, tdelete, twalk): Use it.
60555         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
60556         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
60557         sigpending): Use it.
60558         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
60559         (posix_spawn, posix_spawnp, posix_spawnattr_init,
60560         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
60561         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
60562         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
60563         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
60564         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
60565         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
60566         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
60567         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
60568         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
60569         Use it.
60570         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
60571         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
60572         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
60573         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
60574         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
60575         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
60576         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
60577         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
60578         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
60579         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
60580         strtoull, unsetenv): Use it.
60581         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
60582         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
60583         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
60584         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
60585         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
60586         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
60587         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
60588         (strcasecmp, strncasecmp): Use it.
60589         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
60590         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
60591         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
60592         rpl_setsockopt): Use it.
60593         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
60594         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
60595         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
60596         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
60597         (gettimeofday): Use it.
60598         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
60599         (times): Use it.
60600         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
60601         (uname): Use it.
60602         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
60603         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
60604         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
60605         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
60606         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
60607         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
60608         unlinkat, write): Use it.
60609         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
60610         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
60611         * lib/argv-iter.h: Include arg-nonnull.h.
60612         (_ATTRIBUTE_NONNULL_): Remove macro.
60613         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
60614         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
60615         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
60616         optimization.
60617         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
60618         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
60619         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
60620         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
60621         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
60622         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
60623         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
60624         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
60625         * modules/arpa_inet (Depends-on): Add arg-nonnull.
60626         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
60627         * modules/dirent (Depends-on): Add arg-nonnull.
60628         (Makefile.am): Insert arg-nonnull.h into dirent.h.
60629         * modules/fcntl-h (Depends-on): Add arg-nonnull.
60630         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
60631         * modules/fnmatch (Depends-on): Add arg-nonnull.
60632         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
60633         * modules/getopt-posix (Depends-on): Add arg-nonnull.
60634         (Makefile.am): Insert arg-nonnull.h into getopt.h.
60635         * modules/glob (Depends-on): Add arg-nonnull.
60636         (Makefile.am): Insert arg-nonnull.h into glob.h.
60637         * modules/iconv_open (Depends-on): Add arg-nonnull.
60638         (Makefile.am): Insert arg-nonnull.h into iconv.h.
60639         * modules/inttypes (Depends-on): Add arg-nonnull.
60640         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
60641         * modules/locale (Depends-on): Add arg-nonnull.
60642         (Makefile.am): Insert arg-nonnull.h into locale.h.
60643         * modules/math (Depends-on): Add arg-nonnull.
60644         (Makefile.am): Insert arg-nonnull.h into math.h.
60645         * modules/netdb (Depends-on): Add arg-nonnull.
60646         (Makefile.am): Insert arg-nonnull.h into netdb.h.
60647         * modules/search (Depends-on): Add arg-nonnull.
60648         (Makefile.am): Insert arg-nonnull.h into search.h.
60649         * modules/signal (Depends-on): Add arg-nonnull.
60650         (Makefile.am): Insert arg-nonnull.h into signal.h.
60651         * modules/spawn (Depends-on): Add arg-nonnull.
60652         (Makefile.am): Insert arg-nonnull.h into spawn.h.
60653         * modules/stdio (Depends-on): Add arg-nonnull.
60654         (Makefile.am): Insert arg-nonnull.h into stdio.h.
60655         * modules/stdlib (Depends-on): Add arg-nonnull.
60656         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
60657         * modules/string (Depends-on): Add arg-nonnull.
60658         (Makefile.am): Insert arg-nonnull.h into string.h.
60659         * modules/strings (Depends-on): Add arg-nonnull.
60660         (Makefile.am): Insert arg-nonnull.h into strings.h.
60661         * modules/sys_socket (Depends-on): Add arg-nonnull.
60662         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
60663         * modules/sys_stat (Depends-on): Add arg-nonnull.
60664         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
60665         * modules/sys_time (Depends-on): Add arg-nonnull.
60666         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
60667         * modules/sys_times (Depends-on): Add arg-nonnull.
60668         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
60669         * modules/sys_utsname (Depends-on): Add arg-nonnull.
60670         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
60671         * modules/time (Depends-on): Add arg-nonnull.
60672         (Makefile.am): Insert arg-nonnull.h into time.h.
60673         * modules/unistd (Depends-on): Add arg-nonnull.
60674         (Makefile.am): Insert arg-nonnull.h into unistd.h.
60675         * modules/wchar (Depends-on): Add arg-nonnull.
60676         (Makefile.am): Insert arg-nonnull.h into wchar.h.
60677         * modules/argv-iter (Depends-on): Add arg-nonnull.
60678         * tests/test-canonicalize.c (null_ptr): New function.
60679         (main): Use it.
60680         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
60681         (main): Use it.
60682         * tests/test-memmem.c (null_ptr): New function.
60683         (main): Use it.
60684         Reported by Jim Meyering.
60686 2009-12-10  Bruno Haible  <bruno@clisp.org>
60688         Use spaces for indentation, not tabs.
60689         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
60690         * m4/*.m4: Untabify.
60691         * build-aux/*.h: Untabify.
60692         * tests/**/*.[hc]: Untabify.
60693         * README: New section "Indent with spaces, not TABs", based on
60694         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
60695         * NEWS: Mention the change.
60697 2009-12-10  Bruno Haible  <bruno@clisp.org>
60699         pty test: Fix link error.
60700         * modules/pty-tests (Makefile.am): Add the default LDADD value to
60701         test_pty_LDADD.
60703 2009-12-07  Simon Josefsson  <simon@josefsson.org>
60705         * modules/pty: New file.
60706         * modules/pty-tests: New file.
60707         * m4/pty.m4: New file.
60708         * tests/test-pty.c: New file.
60709         * doc/glibc-headers/pty.texi: Modified.
60710         * doc/glibc-functions/forkpty.texi: Modified.
60711         * doc/glibc-functions/openpty.texi: Modified.
60713 2009-12-10  Bruno Haible  <bruno@clisp.org>
60715         Avoid syntax error in C++ mode.
60716         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
60718 2009-12-10  Bruno Haible  <bruno@clisp.org>
60720         Use sed with option -e.
60721         * gnulib-tool (func_version, func_emit_copyright_notice,
60722         func_emit_initmacro_end, func_import, func_create_testdir): Pass
60723         option -e to sed.
60724         * modules/link-warning (Makefile.am): Likewise.
60726 2009-12-10  Jim Meyering  <meyering@redhat.com>
60728         mgetgroups: do not write bytes beyond end of malloc'd buffer
60729         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
60730         username, we call getgroups with a one-element-shorter buffer,
60731         but still told it the length was original, max_n_groups.
60733 2009-12-09  Eric Blake  <ebb9@byu.net>
60735         cloexec: relax license
60736         * modules/cloexec (Maintainer): Add myself.
60737         (License): Use LGPL, not GPL.
60739         link-warning: optimize generation
60740         * modules/link-warning (Makefile.am): Reduce process usage.
60742 2009-12-09  Bruno Haible  <bruno@clisp.org>
60744         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
60745         workaround was added on 2009-11-17.
60747 2009-12-09  Jim Meyering  <meyering@redhat.com>
60748             Bruno Haible  <bruno@clisp.org>
60750         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
60751         * modules/link-warning (Makefile.am): Make the comment-removing sed
60752         command more robust in the face of bootstrap-prepended comment lines.
60754 2009-12-09  Bruno Haible  <bruno@clisp.org>
60756         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
60757         most one group.
60759 2009-12-09  Simon Josefsson  <simon@josefsson.org>
60760             Bruno Haible  <bruno@clisp.org>
60762         * build-aux/link-warning.h: Add copyright notice.
60763         * modules/link-warning (Makefile.am): Generate link-warning.h from
60764         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
60765         * NEWS: Mention change in link-warning module.
60766         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
60767         * modules/dirent (Makefile.am): Add dependency to dirent.h.
60768         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
60769         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
60770         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
60771         * modules/math (Makefile.am): Add dependency to math.h.
60772         * modules/search (Makefile.am): Add dependency to search.h.
60773         * modules/signal (Makefile.am): Add dependency to signal.h.
60774         * modules/spawn (Makefile.am): Add dependency to spawn.h.
60775         * modules/stdio (Makefile.am): Add dependency to stdio.h.
60776         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
60777         * modules/string (Makefile.am): Add dependency to string.h.
60778         * modules/strings (Makefile.am): Add dependency to strings.h.
60779         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
60780         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
60781         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
60782         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
60783         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
60784         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
60785         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
60786         * modules/unistd (Makefile.am): Add dependency to unistd.h.
60787         * modules/wchar (Makefile.am): Add dependency to wchar.h.
60789 2009-12-09  Bruno Haible  <bruno@clisp.org>
60791         fchdir: Optimize away rpl_fstat when possible.
60792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
60793         REPLACE_OPEN_DIRECTORY.
60794         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
60796 2009-12-09  Bruno Haible  <bruno@clisp.org>
60798         * lib/fchdir.c: Update comment.
60800 2009-12-09  Bruno Haible  <bruno@clisp.org>
60802         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
60804 2009-12-08  Eric Blake  <ebb9@byu.net>
60806         fchdir: avoid memory leak on re-registration.
60807         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
60809 2009-12-08  Jim Meyering  <meyering@redhat.com>
60811         init.sh: avoid Solaris 10 /bin/sh portability problem
60812         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
60813         sourced script:
60814           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
60815           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
60816           bar
60817         tests/init.sh relied on that, accepting a --set-path=DIR argument,
60818         and two tests used that idiom.
60819         * tests/init.sh: Update suggested usage comments.
60820         (path_prepend_): New function, to be used in place
60821         of the --src-path=DIR option.
60822         (setup_): Move PATH-prepending code into path_prepend_.
60823         * tests/test-pread.sh: Adapt to new usage.
60824         * tests/test-xalloc-die.sh: Likewise.
60826 2009-12-08  Simon Josefsson  <simon@josefsson.org>
60828         * doc/gnulib.texi (Glibc pty.h): Add.
60829         * doc/glibc-functions/forkpty.texi: Add.
60830         * doc/glibc-functions/openpty.texi: Add.
60831         Suggested by Bruno Haible.
60833 2009-12-08  Eric Blake  <ebb9@byu.net>
60835         fchdir: fix logic bugs
60836         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
60837         * tests/test-fchdir.c (main): Enhance test.
60838         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
60839         is in use.
60841         dup2: fix logic bugs
60842         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
60843         REPLACE_DUP2 to decide when rpl_dup2 is needed.
60844         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
60845         exists.
60846         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
60848 2009-12-07  Eric Blake  <ebb9@byu.net>
60850         unlink: fix m4 detection
60851         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
60853         unistd-safer: add unit test
60854         * modules/unistd-safer-tests: New file.
60855         * tests/test-dup-safer.c: Likewise.
60856         * tests/test-cloexec.c (setmode): Avoid compiler warning.
60857         * tests/test-dup2.c (setmode): Likewise.
60858         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
60860         cloexec: preserve text vs. binary across dup_cloexec
60861         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
60862         mode.
60863         * modules/dup2-tests (Depends-on): Add binary-io.
60864         * modules/cloexec-tests (Depends-on): Likewise.
60865         * tests/test-dup2.c (setmode, is_mode): New helpers.
60866         (main): Add tests that translation mode is preserved.
60867         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
60868         Reported by Bruno Haible.
60870         mgetgroups: reduce duplicate listings
60871         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
60872         resulting array.
60873         * tests/test-chown.h (test_chown): Simplify client.
60874         * tests/test-lchown.h (test_lchown): Likewise.
60876 2009-12-06  Bruno Haible  <bruno@clisp.org>
60878         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
60879         value.
60881 2009-12-06  Bruno Haible  <bruno@clisp.org>
60883         * lib/progname.c: Include stdio.h, stdlib.h.
60884         (set_program_name): Reject a NULL argument.
60886 2009-12-05  Eric Blake  <ebb9@byu.net>
60888         pipe2-safer: new module
60889         * modules/pipe2-safer: New file.
60890         * lib/unistd-safer.h (pipe2_safer): New prototype.
60891         * lib/unistd--.h (pipe2): New wrapper.
60892         * lib/pipe-safer.c (pipe2_safer): New function.
60893         * modules/pipe (Depends-on): Add pipe2-safer.
60894         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
60896         stdlib-safer: preserve cloexec flag for mkostemp[s]
60897         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
60898         fd_safer_flag.
60900         unistd-safer: allow preservation of cloexec status via flag
60901         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
60902         prototypes.
60903         * lib/dup-safer.c (dup_safer_flag): New function.
60904         * lib/fd-safer.c (fd_safer_flag): Likewise.
60905         * modules/cloexec (configure.ac): Set witness.
60907         test-dup2: enhance test
60908         * modules/dup2-tests (Depends-on): Add cloexec.
60909         * tests/test-dup2.c (main): Enhance test.
60911         cloexec: add dup_cloexec
60912         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
60913         header and comments.
60914         * lib/cloexec.c (set_cloexec_flag): Add comments.
60915         (dup_cloexec): New function, with mingw implementation borrowed
60916         from...
60917         * lib/w32spawn.h (dup_noinherit): ...here.
60918         * modules/execute (Depends-on): Add cloexec.
60919         * modules/pipe (Depends-on): Likewise.
60920         * modules/cloexec (Depends-on): Add dup2.
60921         * modules/cloexec-tests (Files): New file.
60922         * tests/test-cloexec.c: Likewise.
60924         test-xalloc-die: fix test for mingw
60925         * modules/xalloc-die-tests (Files): Add tests/init.sh.
60926         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
60927         directory and .exe suffix off argv[0] output.
60929         test-fseeko: fix test for mingw
60930         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
60931         than undefining fseek, so test will pass on mingw.
60933 2009-12-05  Bruno Haible  <bruno@clisp.org>
60935         * lib/progname.h (set_program_name): Clarify specification.
60936         * lib/progname.c (set_program_name): Likewise.
60937         Reported by Jim Meyering.
60939 2009-12-05  Jim Meyering  <meyering@redhat.com>
60941         maint.mk: backslash-escape parens in default regexp
60942         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
60943         backslash-escape the literal parentheses.
60945         maint.mk: news-date-check: use grep -E
60946         * top/maint.mk (today): Define a Make variable, not a...
60947         (news-date-check): ...shell variable.
60948         (news-date-regexp): Use the Make variable.
60949         Use grep's -E option.  Change the failing diagnostic to mention
60950         the variable, $(news-date-regexp).
60952 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
60954         maintainer-makefile: allow customization of NEWS entry format
60955         * top/maint.mk (news-date-regexp): New overridable variable.
60956         (news-date-check): Use it.
60958 2009-12-04  Eric Blake  <ebb9@byu.net>
60960         mgetgroups: add xgetgroups, and avoid ENOSYS failures
60961         * lib/mgetgroups.h (xgetgroups): New prototype.
60962         * lib/mgetgroups.c (xgetgroups): New wrapper.
60963         (mgetgroups): Handle ENOSYS.
60964         * modules/mgetgroups (Depends-on): Add realloc.
60965         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
60967         mgetgroups: avoid argument promotion issues with -1
60968         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
60969         for invalid gid_t.
60970         * tests/test-chown.h (getegid, test_chown): Likewise.
60971         * tests/test-lchown.h (getegid, test_lchown): Likewise.
60973 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
60975         exclude: Fix header file problems.
60976         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
60978 2009-12-01  Jim Meyering  <meyering@redhat.com>
60980         fts: fts_open: do not let an empty string cause immediate failure
60981         This is required in support of GNU rm, for which the command
60982         "rm A '' B" must process and remove both A and B, in spite of
60983         the empty string argument.
60984         * lib/fts.c (fts_open): Do not let the presence of an empty string
60985         cause fts_open to fail immediately.  Most fts-using tools must be
60986         able to process all arguments, in order, and can be expected to
60987         diagnose such arguments themselves.
60989 2009-11-30  Eric Blake  <ebb9@byu.net>
60991         utimens: fix compilation error
60992         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
60993         Declare variable at right scope.
60995 2009-11-29  Jim Meyering  <meyering@redhat.com>
60997         bootstrap: handle perl-5.11's changed --version output
60998         * build-aux/bootstrap (get_version): Handle perl separately,
60999         since perl-5.11's --version output is different.
61001 2009-11-28  Jim Meyering  <meyering@redhat.com>
61003         userspec: depend on the inttostr module, too
61004         * modules/userspec (Depends-on): Add inttostr.
61006         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
61007         * lib/userspec.c (parse_with_separator): Do not accept a user ID
61008         number of MAXUID when it evaluates to (uid_t) -1.
61009         Likewise for group ID.  Reported by Matt McCutchen in
61010         <http://savannah.gnu.org/bugs/?28113>
61012         userspec: reformat to use spaces, not TABs
61013         * lib/userspec.c: Expand TABs to spaces.
61014         Add Emacs' "indent-tabs-mode: nil" hint.
61016 2009-11-27  Eric Blake  <ebb9@byu.net>
61018         getopt-gnu: flush out another BSD bug
61019         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
61020         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
61021         flush out BSD bug.
61022         * tests/test-getopt.h (test_getopt): End lists with NULL.
61023         * tests/test-getopt_long.h (test_getopt_long): Likewise.
61024         (test_getopt_long_posix): Enhance test.
61025         * modules/getopt-posix-tests (Depends-on): Add stdbool.
61026         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
61027         getopt-gnu.
61028         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
61029         Likewise.
61031 2009-11-27  Simon Josefsson  <simon@josefsson.org>
61033         * modules/idpriv-droptemp-tests (Notice): Fix text.
61035 2009-11-27  Jim Meyering  <meyering@redhat.com>
61037         test-xalloc-die: avoid spurious failure due to libtool argv difference
61038         In a libtool-enabled project, this test would fail due to a difference
61039         in the emitted program name, e.g.,
61040         -test-xalloc-die: memory exhausted
61041         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
61042         Use program to avoid that.
61043         * modules/xalloc-die-tests (Depends-on): Add progname.
61044         * tests/test-xalloc-die.c: Include progname.h".
61045         (program_name): Remove decl.
61046         (main): Call set_program_name.
61047         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
61049 2009-11-26  Richard Jones  <rjones@redhat.com>
61051         w32sock: leave win32 error in place.
61052         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
61054 2009-11-26  Eric Blake  <ebb9@byu.net>
61056         init.sh: suggest to use skip_ and fail_ functions in comments
61057         * tests/init.sh: Add a sentence.
61059 2009-11-25  Bruno Haible  <bruno@clisp.org>
61061         init.sh: add documentation in comments
61062         * tests/init.sh: Add some developer and user documentation.
61064 2009-11-26  Jim Meyering  <meyering@redhat.com>
61066         init.sh: accommodate even those who specify bogus srcdir manually
61067         * tests/init.sh: Normally, srcdir is guaranteed by automake and
61068         configure-time tests to be sanitized, so that there is no need to
61069         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
61070         (with no double quotes) suffices.  However, since tests may be
61071         invoked manually, and since you may explicitly set srcdir to the
61072         name of a directory containing spaces, do quote its uses here.
61073         * tests/test-pread.sh: Likewise.
61074         Suggested by Bruno Haible.
61076         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
61077         * tests/test-pread.sh: Write no data into the pipe, because
61078         test-pread actually reads none.  This avoids a diagnostic,
61079         "bash: echo: write error: Broken pipe", that arises in the unusual
61080         event something is ignoring SIGPIPE, and might be interpreted
61081         as some sort of failure.  Reported by Bruno Haible.
61083 2009-11-25  Jim Meyering  <meyering@redhat.com>
61085         test-pread: cover failure with ESPIPE and EINVAL
61086         * tests/test-pread.c (main): Test for failure, too.
61087         * tests/test-pread.sh: Invoke with stdin on a pipe.
61088         Suggested by Eric Blake.
61090         pread: improvement and fix
61091         * modules/pread (Depends-on): Depend on lseek, for portability to
61092         e.g., mingw.  Suggested by Eric Blake.
61093         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
61095         unistd.in.h: correct declaration of pread
61096         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
61097         Reported by Richard W.M. Jones.
61099         test-pread.sh: distribute the test script
61100         * modules/pread-tests (Files): Include test-pread.sh.
61102         test-pread.sh: clean up
61103         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
61104         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
61105         That is unnecessary, since it's always ".".
61106         Suggestion from Eric Blake.
61108         test-pread.sh: make executable
61109         * tests/test-pread.sh: Set executable bit.
61110         Reported by Eric Blake.
61112         correct typo in test-pread.sh
61113         * tests/test-pread.sh: Add #! line.
61115         test pread
61116         * tests/test-pread.c: New file.
61117         * tests/test-pread.sh: Likewise.
61118         * modules/pread-tests: Likewise.
61120         pread: new module
61121         * modules/pread: New file.
61122         * lib/unistd.in.h (pread): Define/declare.
61123         * lib/pread.c (pread): New file.
61124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
61125         * modules/unistd (Makefile.am): Substitute witnesses.
61126         * doc/posix-functions/pread.texi (pread): Update.
61127         * MODULES.html.sh: Add pread.
61129 2009-11-25  Jim Meyering  <meyering@redhat.com>
61131         tests/init.sh: new file to be used via most *.sh tests
61132         * tests/init.sh: New file.
61134 2009-11-25  Eric Blake  <ebb9@byu.net>
61136         utimens: work around older Linux failure with symlinks
61137         * lib/utimens.c (lutimensat_works_really): New variable.
61138         (fdutimens, lutimens): Use it to manage kernels that support
61139         nanosecond times on files, but not on symlinks.
61140         Reported by Ondřej Vašík.
61142         utimes: fix configure grammar
61143         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
61145 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
61147         regex: Fix fastmap for multibyte character ranges.
61148         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
61149         characters when a multibyte character range is included.
61151 2009-11-22  Andy Wingo  <wingo@pobox.com>
61153         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
61154         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
61156 2009-11-24  Bruno Haible  <bruno@clisp.org>
61158         doc: Most *_l functions exist in MacOS X 10.5.
61159         * doc/posix-functions/duplocale.texi: Update platforms list.
61160         * doc/posix-functions/freelocale.texi: Likewise.
61161         * doc/posix-functions/newlocale.texi: Likewise.
61162         * doc/posix-functions/uselocale.texi: Likewise.
61163         * doc/posix-functions/isalnum_l.texi: Likewise.
61164         * doc/posix-functions/isalpha_l.texi: Likewise.
61165         * doc/posix-functions/isblank_l.texi: Likewise.
61166         * doc/posix-functions/iscntrl_l.texi: Likewise.
61167         * doc/posix-functions/isdigit_l.texi: Likewise.
61168         * doc/posix-functions/isgraph_l.texi: Likewise.
61169         * doc/posix-functions/islower_l.texi: Likewise.
61170         * doc/posix-functions/isprint_l.texi: Likewise.
61171         * doc/posix-functions/ispunct_l.texi: Likewise.
61172         * doc/posix-functions/isspace_l.texi: Likewise.
61173         * doc/posix-functions/isupper_l.texi: Likewise.
61174         * doc/posix-functions/iswalnum_l.texi: Likewise.
61175         * doc/posix-functions/iswalpha_l.texi: Likewise.
61176         * doc/posix-functions/iswblank_l.texi: Likewise.
61177         * doc/posix-functions/iswcntrl_l.texi: Likewise.
61178         * doc/posix-functions/iswctype_l.texi: Likewise.
61179         * doc/posix-functions/iswdigit_l.texi: Likewise.
61180         * doc/posix-functions/iswgraph_l.texi: Likewise.
61181         * doc/posix-functions/iswlower_l.texi: Likewise.
61182         * doc/posix-functions/iswprint_l.texi: Likewise.
61183         * doc/posix-functions/iswpunct_l.texi: Likewise.
61184         * doc/posix-functions/iswspace_l.texi: Likewise.
61185         * doc/posix-functions/iswupper_l.texi: Likewise.
61186         * doc/posix-functions/iswxdigit_l.texi: Likewise.
61187         * doc/posix-functions/isxdigit_l.texi: Likewise.
61188         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
61189         * doc/posix-functions/strcasecmp_l.texi: Likewise.
61190         * doc/posix-functions/strcoll_l.texi: Likewise.
61191         * doc/posix-functions/strfmon_l.texi: Likewise.
61192         * doc/posix-functions/strftime_l.texi: Likewise.
61193         * doc/posix-functions/strncasecmp_l.texi: Likewise.
61194         * doc/posix-functions/strxfrm_l.texi: Likewise.
61195         * doc/posix-functions/tolower_l.texi: Likewise.
61196         * doc/posix-functions/toupper_l.texi: Likewise.
61197         * doc/posix-functions/towctrans_l.texi: Likewise.
61198         * doc/posix-functions/towlower_l.texi: Likewise.
61199         * doc/posix-functions/towupper_l.texi: Likewise.
61200         * doc/posix-functions/wcscoll_l.texi: Likewise.
61201         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
61202         * doc/posix-functions/wctrans_l.texi: Likewise.
61203         * doc/posix-functions/wctype_l.texi: Likewise.
61204         * doc/glibc-functions/strptime_l.texi: Likewise.
61205         * doc/glibc-functions/strtod_l.texi: Likewise.
61206         * doc/glibc-functions/strtof_l.texi: Likewise.
61207         * doc/glibc-functions/strtol_l.texi: Likewise.
61208         * doc/glibc-functions/strtold_l.texi: Likewise.
61209         * doc/glibc-functions/strtoll_l.texi: Likewise.
61210         * doc/glibc-functions/strtoul_l.texi: Likewise.
61211         * doc/glibc-functions/strtoull_l.texi: Likewise.
61212         * doc/glibc-functions/wcsftime_l.texi: Likewise.
61213         * doc/glibc-functions/wcstod_l.texi: Likewise.
61214         * doc/glibc-functions/wcstof_l.texi: Likewise.
61215         * doc/glibc-functions/wcstol_l.texi: Likewise.
61216         * doc/glibc-functions/wcstold_l.texi: Likewise.
61217         * doc/glibc-functions/wcstoll_l.texi: Likewise.
61218         * doc/glibc-functions/wcstoul_l.texi: Likewise.
61219         * doc/glibc-functions/wcstoull_l.texi: Likewise.
61221 2009-11-24  Bruno Haible  <bruno@clisp.org>
61223         duplocale: Fix logic bug.
61224         * lib/duplocale.c: Don't include <langinfo.h>.
61225         (_NL_LOCALE_NAME): Remove macro.
61226         (rpl_duplocale): Use setlocale instead of nl_langinfo.
61227         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
61229 2009-11-23  Jim Meyering  <meyering@redhat.com>
61231         test-update-copyright: don't hard-code /usr/bin/perl
61232         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
61233         perl to print the current year.  Gilles Espinasse reported that
61234         the replaced use of perl was hard-coded as /usr/bin/perl.
61236 2009-11-23  Bruno Haible  <bruno@clisp.org>
61238         duplocale: Add support for glibc 2.3.x.
61239         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
61241 2009-11-22  Bruno Haible  <bruno@clisp.org>
61243         vasnprintf: Tiny optimization.
61244         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
61245         MacOS X.
61247 2009-11-22  Bruno Haible  <bruno@clisp.org>
61249         Tests for module 'duplocale'.
61250         * modules/duplocale-tests: New file.
61251         * tests/test-duplocale.c: New file.
61253         New module 'duplocale'.
61254         * m4/duplocale.m4: New file.
61255         * lib/locale.in.h (duplocale): New declaration.
61256         * lib/duplocale.c: New file.
61257         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
61258         gl_LOCALE_H_DEFAULTS): New macros.
61259         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
61260         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
61261         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
61262         REPLACE_DUPLOCALE.
61263         * modules/duplocale: New file.
61264         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
61266 2009-11-22  Bruno Haible  <bruno@clisp.org>
61268         * modules/locale-tests (configure.ac): Test for newlocale function.
61269         * tests/test-locale.c: When the system has extended locale functions,
61270         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
61272         locale: Make locale_t available when possible.
61273         * lib/locale.in.h: Include <xlocale.h> when it exists.
61274         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
61275         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
61276         * modules/locale (Depends-on): Add extensions.
61277         (Makefile.am): Also substitute HAVE_XLOCALE_H.
61278         * doc/posix-headers/locale.texi: Document the problem with locale_t.
61280 2009-11-22  Bruno Haible  <bruno@clisp.org>
61282         Add comments.
61283         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
61284         invocation.
61285         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
61286         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
61287         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61289 2009-11-22  Bruno Haible  <bruno@clisp.org>
61291         error: account for the possibility of freopen (stdout).
61292         * lib/error.c: Include <unistd.h>.
61293         (flush_stdout): New function, extracted from error and error_at_line.
61294         Determine stdout's fd dynamically.
61295         (error, error_at_line): Invoke flush_stdout.
61296         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
61297         * modules/error (Depends-on): Add unistd.
61299 2009-11-22  Bruno Haible  <bruno@clisp.org>
61301         diffseq: Add comment.
61302         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
61304 2009-11-22  Jim Meyering  <meyering@redhat.com>
61306         c-stack: avoid defining an unused static function
61307         * lib/c-stack.c (find_stack_direction): Do not define this function
61308         when it will not be used.
61310         diffseq: avoid spurious gcc warnings
61311         * lib/diffseq.h (IF_LINT2): Define.
61312         (compareseq): Use it to initialize two members of "part".
61313         This avoids two used-uninitialized warnings.
61315 2009-11-21  Jim Meyering  <meyering@redhat.com>
61317         c-stack: avoid "ignoring return value of `write'" warning
61318         * lib/c-stack.c: Include "ignore-value.h".
61319         (die): Explicitly ignore each write return value.
61320         * modules/c-stack (Depends-on): Add ignore-value.
61322 2009-11-21  Bruno Haible  <bruno@clisp.org>
61324         diffseq: reduce scope of variable 'best'.
61325         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
61326         variable, earlier used for two different purposes.
61328 2009-11-21  Jim Meyering  <meyering@redhat.com>
61330         diffseq: remove useless assignment to "best"
61331         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
61332         assignment.  At that point "best" is already guaranteed to be zero.
61334 2009-11-20  Eric Blake  <ebb9@byu.net>
61336         build: mention ftp redirector in release announcements
61337         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
61338         values that used to come from cfg.mk; mention FTP redirect URL.
61339         * build-aux/announce-gen: Mention the mirror list.
61340         Suggested by Karl Berry.
61342         nanosleep: improve port to mingw
61343         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
61344         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
61345         LIB_NANOSLEEP, but only when needed.
61346         * modules/select (Link): Document LIBSOCKET.
61347         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
61348         enough.
61350         nanosleep: work around cygwin bug
61351         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
61352         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
61353         bug.
61354         (getnow): Delete, not needed.
61355         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
61356         LIB_CLOCK_GETTIME.
61357         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
61358         clock-time, gettime.
61359         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
61360         bug.
61361         * modules/nanosleep-tests: New test.
61362         * tests/test-nanosleep.c: New file.
61364         sleep: work around cygwin bug
61365         * lib/sleep.c (rpl_sleep): Work around the bug.
61366         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
61367         (gl_PREREQ_SLEEP): Delete unused macro.
61368         * modules/sleep (Depends-on): Add verify.
61369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
61370         * modules/unistd (Makefile.am): Substitute witness.
61371         * lib/unistd.in.h (sleep): Update prototype.
61372         * doc/posix-functions/sleep.texi (sleep): Document the bug.
61373         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
61374         * modules/sleep-tests (Depends-on): Check for alarm.
61376 2009-11-20  Jim Meyering  <meyering@redhat.com>
61378         maint.mk: improve sc_prohibit_magic_number_exit
61379         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
61380         so it does not match uses like System.exit(1).
61381         Add comments showing how to correct all offenders.
61383 2009-11-19  Eric Blake  <ebb9@byu.net>
61385         xalloc-die-tests: add missing library
61386         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
61388         test-xvasprintf: silence compiler warnings
61389         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
61390         empty string from gcc.
61392 2009-11-19  Jim Meyering  <meyering@redhat.com>
61394         xfreopen: new module, from coreutils
61395         * modules/xfreopen: New module.
61396         * lib/xfreopen.c: New file.
61397         * lib/xfreopen.h: New file.
61398         * MODULES.html.sh (File stream based Input/Output"): Add it.
61400 2009-11-19  Eric Blake  <ebb9@byu.net>
61402         manywarnings: depend on warnings
61403         * modules/manywarnings (Depends-on): Add warnings.
61405         build: avoid compiler warnings
61406         * lib/select.c (rpl_select): Delete unused variable.
61407         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
61409 2009-11-18  Eric Blake  <ebb9@byu.net>
61411         tests: avoid false negative with --with-packager
61412         * tests/test-version-etc.sh: Discard packager information.
61413         * tests/test-argp-version-etc-1.sh: Likewise.
61414         Reported by Mike Frysinger.
61416         utimens: fix regression on Solaris
61417         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
61418         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
61419         can only change fd timestamps via futimesat.  Instead, use an
61420         additional witness macro to avoid BSD bug.
61421         Reported by Jim Meyering.
61423 2009-11-17  Eric Blake  <ebb9@byu.net>
61425         usleep: use it to simplify tests
61426         * modules/stat-time-tests (Depends-on): Add usleep.
61427         (configure.ac): Drop usleep check.
61428         * modules/chown-tests (Depends-on, configure.ac): Likewise.
61429         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
61430         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
61431         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
61432         * modules/openat-tests (Depends-on, configure.ac): Likewise.
61433         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
61434         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
61435         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
61436         Likewise.
61437         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
61438         * tests/test-lchown.h (nap): Likewise.
61439         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
61440         * tests/test-stat-time.c (nap): Likewise.
61441         * tests/test-utimens-common.h (nap): Update comments.
61443         usleep: new module
61444         * modules/usleep: New file.
61445         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
61446         * lib/usleep.c (usleep): Likewise.
61447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
61448         * modules/unistd (Makefile.am): Substitute witnesses.
61449         * lib/unistd.in.h (usleep): Add declaration.
61450         * doc/pastposix-functions/usleep.texi (usleep): Document this.
61451         * MODULES.html.sh (Date and time): Likewise.
61452         * modules/usleep-tests (Depends-on): New test.
61453         * tests/test-usleep.c: New file.
61455         chown: work around OpenBSD bug
61456         * lib/chown.c (rpl_chown): Work around the bug.
61457         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
61458         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
61459         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
61460         * modules/chown (Depends-on): Add stdbool.
61461         * modules/lchown (Depends-on): Likewise.
61462         * doc/posix-functions/chown.texi (chown): Document the bug.
61463         * doc/posix-functions/lchown.texi (lchown): Likewise.
61464         * tests/test-lchown.h (test_chown): Relax test.
61466         mkstemp: avoid conflict with C++ keyword template
61467         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
61468         * lib/mkostemp.c (mkostemp): Likewise.
61469         * lib/mkostemps.c (mkostemps): Likewise.
61470         * lib/mkstemp.c (mkstemp): Likewise.
61471         * lib/mkstemps.c (mkstemps): Likewise.
61473         xalloc-die-tests: optimize
61474         * tests/test-xalloc-die.sh: Reduce number of processes.
61476 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61478         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
61479         patch from ludo@gnu.org (Ludovic Courtès).
61481 2009-11-17  Jim Meyering  <meyering@redhat.com>
61483         version-etc: use proper license string
61484         * modules/version-etc (License): Use LGPL, not LGPLv3+.
61485         * modules/version-etc-fsf: Likewise.
61487 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61489         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
61490         printed to stdout.  Deal with EOL differences.
61492 2009-11-17  Eric Blake  <ebb9@byu.net>
61494         unsetenv: work around Solaris bug
61495         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
61496         * lib/unsetenv.c (rpl_unsetenv): Work around it.
61497         Reported by Jim Meyering.
61499         vasnprintf: avoid compiler warnings
61500         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
61501         variables.
61502         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
61504 2009-11-17  Simon Josefsson  <simon@josefsson.org>
61506         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
61507         settings since xalloc-die is no longer the self test,
61508         xalloc-die.sh is.
61510 2009-11-17  Jim Meyering  <meyering@redhat.com>
61512         test-xalloc-die.sh: make the code agree with the commit log
61513         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
61514         at the end, just in case you happen to have a test-xalloc-die
61515         program in some other PATH directory.
61517         test-xalloc-die.sh: fix a portability bug
61518         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
61519         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
61520         Otherwise, argv[0] (as often seen in diagnostics) would be too
61521         system-dependent, sometimes with, and sometimes without the leading "./".
61523         version-etc-fsf: relax license to LGPLv3+
61524         * modules/version-etc-fsf (License): Relax license.
61526 2009-11-16  Eric Blake  <ebb9@byu.net>
61528         xalloc-die-tests: avoid printing null pointer
61529         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
61530         shell script.
61531         * tests/test-xalloc-die.c (program_name): Declare.
61532         * tests/test-xalloc-die.sh (tmpfiles): New file.
61534         setenv, unsetenv: work around various bugs
61535         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
61536         (setenv) [HAVE_SETENV]: Work around bugs.
61537         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
61538         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
61539         for bugs.
61540         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
61541         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
61542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
61543         * modules/stdlib (Makefile.am): Update substitutions.
61544         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
61545         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
61546         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
61547         * modules/setenv-tests: New test.
61548         * modules/unsetenv-tests: Likewise.
61549         * tests/test-setenv.c: New file.
61550         * tests/test-unsetenv.c: Likewise.
61552 2009-11-16  Jim Meyering  <meyering@redhat.com>
61554         version-etc: relax license to LGPLv3+
61555         * modules/version-etc (License): Relax license.
61557         better AC_REQUIRE expanded-before-required-warning avoidance
61558         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
61559         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
61560         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
61561         which is no longer needed.
61563 2009-11-16  Eric Blake  <ebb9@byu.net>
61565         test-freading: clean up temporary file
61566         * tests/test-freading.c (main): Remove file on success, and use
61567         ASSERT more liberally.
61568         Reported by Jim Meyering.
61570 2009-11-16  Jim Meyering  <meyering@redhat.com>
61572         avoid new AC_REQUIRE expanded-before-required warnings
61573         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
61574         merely using it.
61575         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
61576         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
61578 2009-11-15  Simon Josefsson  <simon@josefsson.org>
61580         * tests/test-xalloc-die.c: New file.
61581         * modules/xalloc-die-tests: New file.
61582         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
61583         XFAIL_TESTS so it can be appended by modules.
61585 2009-11-15  Simon Josefsson  <simon@josefsson.org>
61587         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
61588         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
61590 2009-11-14  Eric Blake  <ebb9@byu.net>
61592         fnmatch: avoid compiler warning
61593         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
61594         to silence compiler warning about mismatch signedness in ?:.
61595         Reported by Robert Millan.
61597         intprops: add double-inclusion guard
61598         * lib/intprops.h: Allow idempotent includes.
61599         Suggested by Bruce Korb.
61601         openat: detect Solaris fchownat bug
61602         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
61603         penalizing glibc chownat when only lchownat is broken.
61604         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
61605         trailing slash bugs.
61606         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
61607         * modules/openat-tests (Files): Include more files.
61608         (Depends-on): Add mgetgroups, sleep, stat-time.
61609         (configure.ac): Add additional checks.
61610         (Makefile.am): Build new test.
61611         * tests/test-fchownat.c: New file.
61613         lchown: detect Solaris and FreeBSD bug
61614         * lib/lchown.c (rpl_lchown): Work around bug.
61615         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
61616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61617         * modules/unistd (Makefile.am): Populate it.
61618         * lib/unistd.in.h (lchown): Update declaration.
61619         * doc/posix-functions/lchown.texi (lchown): Document the bug.
61620         * modules/lchown-tests: New file.
61621         * tests/test-lchown.h (test_lchown): Likewise.
61622         * tests/test-lchown.c (main): Likewise.
61624         chown: detect Solaris and FreeBSD bug
61625         * lib/chown.c (rpl_chown): Work around bug.
61626         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
61627         (gl_PREREQ_CHOWN): Delete.
61628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61629         * modules/unistd (Makefile.am): Populate it.
61630         * lib/unistd.in.h (chown): Update declaration.
61631         * lib/lchown.c (chown): Update client.
61632         * modules/lchown (Depends-on): Add lstat.
61633         * doc/posix-functions/chown.texi (chown): Document the bug.
61634         * doc/posix-functions/getgroups.texi (getgroups): Document
61635         getgroups pitfall.
61636         * modules/chown-tests: New file.
61637         * tests/test-chown.h (test_chown): Likewise.
61638         * tests/test-chown.c (main): Likewise.
61640 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
61642         gnulib-tool: correctly detect absence of m4 directories
61643         * gnulib-tool: Avoid extra newline on data passed to wc -l.
61645 2009-11-14  Jim Meyering  <meyering@redhat.com>
61647         maint.mk: Prohibit inclusion of "xalloc.h" without use.
61648         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
61650 2009-11-14  John W. Eaton  <jwe@gnu.org>
61652         strftime.h: wrap function declaration in extern "C" block
61653         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
61655 2009-11-13  Eric Blake  <ebb9@byu.net>
61657         getgroups: avoid compiler warning
61658         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
61660         getgroups: work around FreeBSD bug
61661         * lib/getgroups.c (rpl_getgroups): Work around the bug.
61662         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
61663         * doc/posix-functions/getgroups.texi (getgroups): Document it.
61664         * tests/test-getgroups.c (main): Fix buffer overrun.
61666         getgroups: avoid compilation failure
61667         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
61668         * modules/getgroups (Depends-on): Add stdint.
61670 2009-11-13  Jim Meyering  <meyering@redhat.com>
61672         test-getgroups: avoid compilation failure
61673         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
61675 2009-11-13  Eric Blake  <ebb9@byu.net>
61677         mgetgroups: new module, taken from coreutils
61678         * modules/mgetgroups: New file.
61679         * lib/mgetgroups.h: Likewise.
61680         * lib/mgetgroups.c (mgetgroups): Likewise.
61681         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
61682         * MODULES.html.sh (Users and groups): Mention it.
61684         getgroups: don't expose GETGROUPS_T to user
61685         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
61686         an element at a time if GETGROUPS_T is wrong size.
61687         * lib/getugroups.h (getugroups): Change signature.
61688         * lib/unistd.in.h (getgroups): Likewise.
61689         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
61690         signature needs fixing.
61691         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
61692         AC_TYPE_GETGROUPS.
61693         * modules/group-member (Depends-on): Add getgroups.
61694         * lib/group-member.c (group_info, get_group_info): Use gid_t.
61695         (group_member): Rely on getgroups replacement.
61696         * lib/getugroups.c (getugroups): Use gid_t.
61697         * tests/test-getgroups.c (main): Likewise.
61698         * NEWS: Mention the signature change.
61699         * doc/posix-functions/getgroups.texi (getgroups): Mention the
61700         problem with signature.
61701         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
61702         GETGROUPS_T is still useful for setgroups.
61704         getgroups, getugroups: provide stubs for mingw
61705         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
61706         * lib/getugroups.c (getugroups): Likewise.
61707         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
61708         function.  Modernize replacement scheme.
61709         (gl_PREREQ_GETGROUPS): Delete.
61710         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
61711         * modules/getgroups (configure.ac): Declare witness.
61712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
61713         * modules/unistd (Depends-on): Substitute witness.
61714         * lib/unistd.in.h (getgroups): Declare replacement.
61716         getgroups: avoid calling exit
61717         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
61718         drop xalloc.
61719         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
61720         dependencies.
61721         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
61722         exiting, in the rare case of malloc failure.
61724         getgroups: fix logic error
61725         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
61726         has more than 20 groups.
61727         * modules/getgroups-tests: New test.
61728         * tests/test-getgroups.c: New file.
61730 2009-11-13  Simon Josefsson  <simon@josefsson.org>
61732         * tests/test-base64.c: Improve.
61734 2009-11-13  Simon Josefsson  <simon@josefsson.org>
61736         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
61737         Blake <ebb9@byu.net>.
61739 2009-11-13  Simon Josefsson  <simon@josefsson.org>
61741         * tests/test-xvasprintf.c: Add %s%s related checks.
61743 2009-11-12  Eric Blake  <ebb9@byu.net>
61745         version-etc: match standards.texi style
61746         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
61747         and use <> only for URLs.
61749 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
61751         fts: do not fail on a submount during traversal
61752         * lib/fts.c (fts_build): Read the stat info again after opening
61753         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
61754         Original report at http://bugzilla.redhat.com/501848.
61756 2009-11-12  Jim Meyering  <meyering@redhat.com>
61758         bootstrap: sync from coreutils
61759         * build-aux/bootstrap (bootstrap_epilogue): New function.
61760         Use git_modules_config in one more place.  This make bootstrap's
61761         --gnulib-srcdir option more useful for testing.
61763         bootstrap: generalize autoheader check
61764         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
61765         AC_CONFIG_HEADERS.
61767 2009-11-11  Eric Blake  <ebb9@byu.net>
61769         mkfifoat: use new modules for Solaris and BSD bugs
61770         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
61771         * lib/mkfifoat.c (mknodat): Split...
61772         * lib/mknodat.c (mknodat): ...into new file.
61773         * modules/mkfifoat (Files): Ship new file.
61774         (Depends-on): Add mkfifo, mknod.
61775         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
61776         (Depends-on): Add symlink.
61777         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
61778         redundant with test_mkfifo.h.
61779         (do_mkfifoat, do_mknodat): New helpers.
61781         mknod: new module
61782         * modules/mknod: New file.
61783         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
61784         * lib/mknod.c (mknod): Likewise.
61785         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
61786         defaults.
61787         * modules/sys_stat (Makefile.am): Substitute them.
61788         * lib/sys_stat.in.h (mknod): Declare replacement.
61789         * MODULES.html.sh (Support for systems lacking POSIX:2008):
61790         Document it.
61791         * doc/posix-functions/mknod.texi (mknod): Likewise.
61792         * modules/mknod-tests: New test.
61793         * tests/test-mknod.c: Likewise.
61795         mkfifo: new module
61796         * modules/mkfifo: New file.
61797         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
61798         * lib/mkfifo.c (mkfifo): Likewise.
61799         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
61800         defaults.
61801         * modules/sys_stat (Makefile.am): Substitute them.
61802         * lib/sys_stat.in.h (mkfifo): Declare replacement.
61803         * MODULES.html.sh (Support for systems lacking POSIX:2008):
61804         Document it.
61805         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
61806         * modules/mkfifo-tests: New test.
61807         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
61808         from test-mkfifoat.c.
61809         * tests/test-mkfifo.c: New file.
61811         readlink: detect FreeBSD bug
61812         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
61813         slash on symlink.
61814         * doc/posix-functions/readlink.texi (readlink): Document the bug.
61815         * tests/test-readlink.h (test_readlink): Enhance test.
61817         symlink: detect FreeBSD bug
61818         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
61819         slash on symlink.
61820         * doc/posix-functions/symlink.texi (symlink): Document the bug.
61821         * tests/test-symlink.h (test_symlink): Enhance test.
61823 2009-11-10  Eric Blake  <ebb9@byu.net>
61825         link: detect FreeBSD bug
61826         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
61827         symlink.
61828         * doc/posix-functions/link.texi (link): Document the bug.
61829         * tests/test-link.h (test_link): Enhance test.
61830         * tests/test-linkat.c (main): Update caller.
61832         unlink, remove: detect FreeBSD bug
61833         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
61834         slash on symlink.
61835         * doc/posix-functions/unlink.texi (unlink): Document the bug.
61836         * doc/posix-functions/remove.texi (remove): Likewise.
61837         * tests/test-unlink.h (test_unlink): Enhance test.
61838         * tests/test-remove.c (main): Likewise.
61840 2009-11-09  Eric Blake  <ebb9@byu.net>
61842         rename: detect FreeBSD bug
61843         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
61844         slash on symlink.
61845         * modules/renameat-tests (Depends-on): Add filenamecat.
61846         * tests/test-rename.h (test_rename): Allow one more errno.
61847         * tests/test-renameat.c (main): Likewise.
61848         * doc/posix-functions/rename.texi (rename): Document the bug.
61850         open: detect FreeBSD bug
61851         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
61852         symlink.
61853         * doc/posix-functions/open.texi (open): Document the bug.
61854         * doc/posix-functions/utimes.texi (utimes): Likewise.
61855         * tests/test-open.h (test_open): Add parameters, and test symlink
61856         handling.
61857         * tests/test-open.c (main): Adjust caller.
61858         * tests/test-fcntl-safer.c (main): Likewise.
61859         * modules/open-tests (Depends-on): Add stdbool, symlink.
61860         * modules/fcntl-safer-tests (Depends-on): Likewise.
61861         * tests/test-openat.c (main): Add test-open tests.
61863         stat: detect FreeBSD bug
61864         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
61865         symlink.
61866         * doc/posix-functions/stat.texi (stat): Document the bug.
61867         * tests/test-stat.h (test_stat_func): Add argument.
61868         * tests/test-stat.c (main): Adjust caller.
61869         * tests/test-fstatat.c (main): Likewise.
61870         * modules/stat-tests (Depends-on): Add stdbool, symlink.
61871         Reported by Jim Meyering.
61873 2009-11-09  James Youngman  <jay@gnu.org>
61875         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
61876         * lib/strftime.c: Correct placement of #include "ignore-value.h".
61878 2009-11-08  Jim Meyering  <meyering@redhat.com>
61880         utimens: remove invalid futimesat call
61881         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
61882         It used the file descriptor of the target file as the DIR_FD
61883         parameter and NULL as the file name.  That caused failure with
61884         errno == EFAULT on FreeBSD-8.0-rc2
61886 2009-11-07  Eric Blake  <ebb9@byu.net>
61888         fflush, freadseek: use fseeko, not fseek
61889         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
61890         (clear_ungetc_buffer): Avoid potential problems on large files.
61891         * lib/freadseek.c (freadseek): Likewise.
61892         * modules/freadseek (Depends-on): Add fseeko.
61893         * modules/fseek (configure.ac): Set a witness.
61894         * tests/test-fflush.c (main): Use fseeko.
61895         * tests/test-fpurge.c (fseek): Disable link warning.
61896         * tests/test-freadable.c (fseek): Likewise.
61897         * tests/test-freading.c (fseek): Likewise.
61898         * tests/test-fseeko.c (fseek): Likewise.
61899         * tests/test-ftell.c (fseek): Likewise.
61900         * tests/test-ftello.c (fseek): Likewise.
61901         * tests/test-fwritable.c (fseek): Likewise.
61902         * tests/test-fwriting.c (fseek): Likewise.
61904 2009-11-06  Simon Josefsson  <simon@josefsson.org>
61906         * modules/memchr (Depends-on): Drop getpagesize dependency.
61908 2009-11-06  Simon Josefsson  <simon@josefsson.org>
61910         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
61911         Reported by Ludovic Courtès.
61912         * build-aux/pmccabe2html: Improve example usage.
61913         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
61915 2009-11-06  Jim Meyering  <meyering@redhat.com>
61917         do-release-commit-and-tag: New module.
61918         Automate the release-commit and tag process.
61919         * build-aux/do-release-commit-and-tag: New script, from coreutils.
61920         * modules/do-release-commit-and-tag: New file.
61921         * MODULES.html.sh (Support for maintaining and releasing): Add it.
61923 2009-11-06  Simon Josefsson  <simon@josefsson.org>
61925         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
61926         because test-select.c uses inet_pton.
61928 2009-11-06  Simon Josefsson  <simon@josefsson.org>
61930         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
61931         GETADDRINFO_LIB.  Bump serial number.
61932         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
61933         Suggested by Eric Blake <ebb9@byu.net>.
61935 2009-11-05  Eric Blake  <ebb9@byu.net>
61937         strtod: detect darwin bug
61938         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
61939         Reported by Leo Davis.
61941         freopen-safer: new module
61942         * modules/freopen-safer: New module.
61943         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
61944         * lib/freopen-safer.c (freopen_safer): New file.
61945         * lib/stdio-safer.h (freopen_safer): New declaration.
61946         * lib/stdio--.h (freopen): New override.
61947         * MODULES.html.sh (File stream based Input/Output): Mention it.
61948         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
61949         freopen-safer module.
61950         * doc/posix-functions/stderr.texi (stderr): Likewise.
61951         * doc/posix-functions/stdin.texi (stdin): Likewise.
61952         * doc/posix-functions/stdout.texi (stdout): Likewise.
61953         * modules/freopen-safer-tests: New test.
61954         * tests/test-reopen-safer.c: New file.
61956 2009-11-05  Jim Meyering  <meyering@redhat.com>
61958         maint.mk: Prohibit inclusion of "close-stream.h" without use.
61959         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
61961 2009-11-05  Simon Josefsson  <simon@josefsson.org>
61963         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
61965 2009-11-05  Simon Josefsson  <simon@josefsson.org>
61967         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
61969 2009-11-05  Simon Josefsson  <simon@josefsson.org>
61971         Fix link error.
61972         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
61973         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
61975 2009-11-05  Simon Josefsson  <simon@josefsson.org>
61977         * tests/test-func.c: Also test value of __func__.
61979 2009-11-05  Simon Josefsson  <simon@josefsson.org>
61981         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
61982         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
61984 2009-11-05  Bruno Haible  <bruno@clisp.org>
61986         Fix link error.
61987         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
61988         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
61989         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
61991 2009-11-05  Bruno Haible  <bruno@clisp.org>
61993         Tests for module 'inet_pton'.
61994         * modules/inet_pton-tests: New file.
61995         * tests/test-inet_pton.c: New file.
61997 2009-11-05  Bruno Haible  <bruno@clisp.org>
61999         Tests for module 'inet_ntop'.
62000         * modules/inet_ntop-tests: New file.
62001         * tests/test-inet_ntop.c: New file.
62003 2009-11-04  Eric Blake  <ebb9@byu.net>
62005         stdlib-safer: wrap all mkstemp variants
62006         * modules/mkostemp (configure.ac): Set witness.
62007         * modules/mkostemps (configure.ac): Likewise.
62008         * modules/mkstemps (configure.ac): Likewise.
62009         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
62010         (mkstemps_safer): Wrap more functions.
62011         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
62012         wrapping.
62013         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
62014         (mkstemps_safer): Implement the wrappers.
62016         mkstemps, mkostemps: new modules
62017         * modules/mkostemps: New module.
62018         * modules/mkstemps: Likewise.
62019         * lib/mkostemps.c (mkostemps): New file.
62020         * lib/mkstemps.c (mkstemps): Likewise.
62021         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
62022         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
62023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
62024         * modules/stdlib (Makefile.am): Substitute them.
62025         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
62026         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
62027         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
62028         * doc/gnulib.texi (Glibc stdlib.h): Include them.
62029         * MODULES.html.sh (File system functions): Mention them.
62031         tempname: resync from glibc
62032         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
62033         same values for __GT_FILE as glibc.  Abort even when assertions
62034         are disabled.
62035         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
62036         match its value otherwise.  Allow idempotent inclusion.
62037         * lib/mkdtemp.c (mkdtemp): Adjust caller.
62038         * lib/mkostemp.c (mkostemp): Likewise.
62039         * lib/mkstemp.c (mkstemp): Likewise.
62040         * lib/tmpfile.c (tmpfile): Likewise.
62041         * NEWS: Document this.
62043         utimens: fix use of futimens on older Linux
62044         * lib/utimens.c (fdutimens): Use updated, rather than original,
62045         timespec to avoid bug in older Linux kernel.
62046         Reported by Simon Josefsson.
62048 2009-11-04  Bruno Haible  <bruno@clisp.org>
62050         Make num_processors more flexible and consistent.
62051         * lib/nproc.h (enum nproc_query): New type.
62052         (num_processors): Add a 'query' argument.
62053         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
62054         (num_processors): Add a 'query' argument. Test the value of the
62055         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
62056         mingw, count the number of CPUs available for the current process.
62057         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
62058         Check for sched_getaffinity and sched_getaffinity_np.
62059         * modules/nproc (Depends-on): Add c-ctype, extensions.
62060         * NEWS: Mention the change.
62062 2009-11-03  Bruno Haible  <bruno@clisp.org>
62064         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
62066 2009-11-03  Jim Meyering  <meyering@redhat.com>
62068         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
62069         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
62070         if it is defined.
62072 2009-11-02  Eric Blake  <ebb9@byu.net>
62074         mktime, timegm: share common declaration
62075         * lib/mktime-internal.h: New file.
62076         * lib/mktime.c: Use it rather than open-coding a declaration.
62077         * lib/timegm.c: Likewise.
62078         * modules/mktime (Files): Ship it.
62079         * modules/timegm (Files): Likewise.
62080         Suggested by Bruno Haible.
62082         test-update-copyright: update test to match script changes
62083         * tests/test-update-copyright.sh: Avoid hard-coding perl
62084         location.  Don't update *.bak created by earlier runs.
62086 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62087             Simon Josefsson  <simon@josefsson.org>
62088             Bruno Haible  <bruno@clisp.org>
62090         Fix link error on Solaris 8.
62091         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
62092         also in libnsl. Define also INET_PTON_LIB.
62093         * modules/inet_pton (Link): New section.
62095 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62096             Bruno Haible  <bruno@clisp.org>
62098         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
62099         * modules/inet_ntop (Link): New section.
62100         Reported by Boyan Kasarov <bkasarov@gmail.com>.
62102 2009-11-02  Eric Blake  <ebb9@byu.net>
62104         maint: avoid compiler warnings in m4 macros
62105         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
62106         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
62108 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62110         * m4/pmccabe2html.m4: Remove file.
62111         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
62112         function.  Change maintainer.
62113         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
62114         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
62115         Courtès).
62117 2009-10-31  Eric Blake  <ebb9@byu.net>
62119         fseeko: fix m4 regression
62120         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
62121         regression from 2009-10-27.
62122         Reported by Ralf Wildenhues.
62124 2009-10-31  Jim Meyering  <meyering@redhat.com>
62126         inttostr: aesthetics and improved (compile-time) safety
62127         Define inttype_is_signed rather than inttype_is_unsigned,
62128         since the sole use is via "#if inttype_is_signed".
62129         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
62130         inttype_is_unsigned.
62131         * lib/offtostr.c (inttype_is_signed): Likewise.
62132         * lib/uinttostr.c (inttype_is_signed): Likewise.
62133         * lib/umaxtostr.c (inttype_is_signed): Likewise.
62134         * lib/inttostr.c (inttostr): Use verify to cross-check the
62135         inttype_is_signed value and the signedness of the actual type.
62136         * modules/inttostr (Depends-on): Add verify.
62138 2009-10-30  Eric Blake  <ebb9@byu.net>
62140         build: avoid compiler warnings
62141         * lib/fchmodat.c (lchmod): Mark unused variables.
62142         * lib/getopt.c (_getopt_initialize): Likewise.
62143         * lib/mktime.c (__mktime_internal): Provide prototype.
62144         * lib/inttostr.c (inttostr): Avoid compiler warning even with
62145         older gcc that do not understand #pragma GCC diagnostic.
62146         * lib/uinttostr.c (inttype_is_unsigned): Define.
62147         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
62149 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
62151         stat: fix compilation on AIX
62152         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
62153         only see struct stat64.
62155 2009-10-30  Eric Blake  <ebb9@byu.net>
62157         exclude: make more robust
62158         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
62159         rather than masking a coding bug.
62160         Suggested by Bruno Haible.
62162 2009-10-30  Jim Meyering  <meyering@redhat.com>
62164         perl scripts: remove #!/usr/bin/perl in favor of more portable...
62165         Rather than putting #!/usr/bin/perl on the first line,
62166         start with a variant of what's recommended by "man perlrun" that
62167         invokes the first "perl" program from your shell's search path.
62168         * build-aux/gitlog-to-changelog: Replace #!... as above.
62169         Add a "Local Variables" perl mode setting.
62170         Prompted by a patch from Ludovic Courtès.
62171         Improved by Eric Blake.
62172         * build-aux/useless-if-before-free: Likewise.
62173         * build-aux/announce-gen: Likewise.
62174         * build-aux/update-copyright: Likewise.
62176 2009-10-29  Eric Blake  <ebb9@byu.net>
62178         filenamecat-lgpl: adjust clients
62179         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
62180         filenamecat.
62181         * modules/renameat (Depends-on): Likewise.
62183         filenamecat: split into filenamecat-lgpl
62184         * modules/filenamecat-lgpl: New module.
62185         * modules/filenamecat (Files): Move library-safe files into
62186         filenamecat-lgpl.
62187         (Depends-on): Add filenamecat-lgpl.
62188         (configure.ac): Declare witness.
62189         * lib/filenamecat.h (file_name_concat): Only declare when using
62190         GPL module.
62191         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
62192         Move...
62193         * lib/filenamecat-lgpl.c: ...into new file.
62194         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
62195         (gl_FILE_NAME_CONCAT): Use it.
62196         * MODULES.html.sh (File system functions): Mention new module.
62198         argp: avoid memory leak
62199         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
62200         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
62201         base_name, since the latter malloc()s and can call exit().
62202         Leak introduced 2006-07-03.
62204         dirname-lgpl: adjust clients that don't need full dirname
62205         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
62206         * modules/filenamecat (Depends-on): Likewise.
62207         * modules/linkat (Depends-on): Likewise.
62208         * modules/mkancesdirs (Depends-on): Likewise.
62209         * modules/mkdir (Depends-on): Likewise.
62210         * modules/openat (Depends-on): Likewise.
62211         * modules/savewd (Depends-on): Likewise.
62212         * modules/rename (Depends-on): Likewise.
62213         (License): Relax license.
62214         * modules/mkdir-tests (Depends-on): Drop progname.
62215         (Makefile.am): Delete unneeded LDADD.
62216         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
62218         dirname: split into dirname-lgpl
62219         * modules/dirname-lgpl: New module.
62220         * modules/dirname (Files): Move library-safe files into
62221         dirname-lgpl.
62222         (Depends-on): Add dirname-lgpl.
62223         (configure.ac): Declare witness.
62224         * modules/double-slash-root (License): Relax license.
62225         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
62226         module.
62227         * lib/dirname.c (dir_len, mdir_name): Move...
62228         * lib/dirname-lgpl.c: ...into new file.
62229         * lib/basename.c (last_component, base_len): Move...
62230         * lib/basename-lgpl.c: ...into new file.
62231         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
62232         (gl_DIRNAME): Use it.
62233         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
62234         Mention new module.
62235         * modules/dirname-tests (Depends-on): Add progname.
62236         * tests/test-dirname.c (program_name): Delete.
62238         mkdir: make safe for libraries
62239         * modules/mkdir (Depends-on): Drop xalloc.
62240         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
62241         exit.
62243         tests: avoid some compiler warnings
62244         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
62245         literals.
62246         * tests/test-memchr.c (main): Avoid type mismatch.
62247         * tests/test-arpa_inet.c (main): Avoid unused parameters.
62248         * tests/test-base64.c (main): Likewise.
62249         * tests/test-getdelim.c (main): Likewise.
62250         * tests/test-gethostname.c (main): Likewise.
62251         * tests/test-getline.c (main): Likewise.
62252         * tests/test-netinet_in.c (main): Likewise.
62253         * tests/test-select.c (open_server_socket, main): Likewise.
62254         * tests/test-select-stdin.c (main): Likewise.
62255         * tests/test-sockets.c (main): Likewise.
62256         * tests/test-strsignal.c (main): Likewise.
62257         * tests/test-sys_select.c (main): Likewise.
62258         * tests/test-sys_socket.c (main): Likewise.
62259         * tests/test-u64.c (main): Likewise.
62260         * tests/test-xfprintf-posix.c (main): Likewise.
62261         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
62263         sockets: avoid compiler warning
62264         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
62266         maint: detect usage(1) and other suspicious exits
62267         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
62269 2009-10-29  Jim Meyering  <meyering@redhat.com>
62271         timespec: long-to-int truncation could make timespec_cmp malfunction
62272         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
62273         a multiple of 2^32 nanoseconds as no difference.
62275 2009-10-28  Jim Meyering  <meyering@redhat.com>
62277         fprintftime: wrap macro code argument in "do {...} while(0)"
62278         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
62279         cpy macro must be a statement that can be followed by a semicolon.
62280         Now that the else clause contains a comment and is hence longer
62281         than one line, I require curly braces.  That in turn requires
62282         that we wrap this code block in the standard do...while(0).
62284         fprintftime: remove stray semicolon from previous change
62285         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
62287         fprintftime: avoid a warning about ignored fwrite return value
62288         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
62289         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
62290         that is unsafe.
62291         * modules/fprintftime (Depends-on): Add ignore-value.
62293         exclude: avoid an unwarranted warning
62294         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
62296 2009-10-27  Eric Blake  <ebb9@byu.net>
62298         fseek: avoid compilation failure when fflush is replaced
62299         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
62300         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
62301         module is in use.
62302         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
62303         module is not in use; since REPLACE_FSEEK worked otherwise.
62304         (GNULIB_FTELLO): Likewise for ftell.
62305         Reported by Ian Beckwith and others.
62307 2009-10-27  Bruno Haible  <bruno@clisp.org>
62309         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
62310         Reported by Jim Meyering.
62312 2009-10-27  Jim Meyering  <jim@meyering.net>
62313             Bruno Haible  <bruno@clisp.org>
62315         Avoid warning despite dropping the return value of fwrite.
62316         * lib/unicodeio.c: Include ignore-value.h.
62317         (fwrite_success_callback): Explicitly ignore fwrite's return value.
62318         * modules/unicodeio (Depends-on): Add ignore-value.
62320 2009-10-26  Eric Blake  <ebb9@byu.net>
62322         areadlinkat: fix fallback path
62323         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
62324         pointer and zero.
62326 2009-10-22  Pádraig Brady  <P@draigBrady.com>
62328         Use a better IO block size for modern systems
62329         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
62330         * lib/md2.c: Likewise.
62331         * lib/md4.c: Likewise.
62332         * lib/md5.c: Likewise.
62333         * lib/sha1.c: Likewise.
62334         * lib/sha256.c: Likewise.
62335         * lib/sha512.c: Likewise.
62337 2009-10-22  Eric Blake  <ebb9@byu.net>
62339         tests: avoid several compiler warnings
62340         * tests/test-getcwd.c (main): Avoid buffer underflow.
62341         * tests/test-getdate.c (main): String literals are not safe with
62342         putenv, so use setenv.  Declare unused argument.
62343         * modules/getdate-tests (Depends-on): Add setenv.
62344         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
62345         problems with string literals in char *.
62346         * tests/test-hash.c (main): Avoid shadowing declaration.
62347         (insert_new): Treat string literals as char const *.
62348         * tests/test-getopt.h (test_getopt): Likewise.
62349         (getopt_loop): Alter types to minimize casting elsewhere.
62350         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
62351         (test_getopt_long_posix): Likewise.
62352         (do_getopt_long): Add wrapper to minimize casting.
62353         * tests/test-atexit.c (clear_temp_file): Use void.
62354         * tests/test-areadlink-with-size.c (main): Declare unused
62355         arguments.
62356         * tests/test-areadlink.c (main): Likewise.
62357         * tests/test-areadlinkat-with-size.c (main): Likewise.
62358         * tests/test-areadlinkat.c (main): Likewise.
62359         * tests/test-canonicalize-lgpl.c (main): Likewise.
62360         * tests/test-canonicalize.c (main): Likewise.
62361         * tests/test-dirent-safer.c (main): Likewise.
62362         * tests/test-dirname.c (main): Likewise.
62363         * tests/test-dup2.c (main): Likewise.
62364         * tests/test-fchdir.c (main): Likewise.
62365         * tests/test-fcntl-h.c (main): Likewise.
62366         * tests/test-fcntl-safer.c (main): Likewise.
62367         * tests/test-fdopendir.c (main): Likewise.
62368         * tests/test-fdutimensat.c (main): Likewise.
62369         * tests/test-fflush.c (main): Likewise.
62370         * tests/test-filenamecat.c (main): Likewise.
62371         * tests/test-filevercmp.c (main): Likewise.
62372         * tests/test-fopen-safer.c (main): Likewise.
62373         * tests/test-fopen.c (main): Likewise.
62374         * tests/test-fpending.c (main): Likewise.
62375         * tests/test-fpurge.c (main): Likewise.
62376         * tests/test-freading.c (main): Likewise.
62377         * tests/test-fstatat.c (main): Likewise.
62378         * tests/test-fsync.c (main): Likewise.
62379         * tests/test-futimens.c (main): Likewise.
62380         * tests/test-getndelim2.c (main): Likewise.
62381         * tests/test-gettimeofday.c (main): Likewise.
62382         * tests/test-getopt.c (main): Likewise.
62383         * tests/test-i-ring.c (main): Likewise.
62384         * tests/test-inttypes.c (main): Likewise.
62385         * tests/test-link.c (main): Likewise.
62386         * tests/test-lstat.c (main): Likewise.
62387         * tests/test-math.c (main): Likewise.
62388         * tests/test-md5.c (main): Likewise.
62389         * tests/test-memchr2.c (main): Likewise.
62390         * tests/test-memrchr.c (main): Likewise.
62391         * tests/test-mkdir.c (main): Likewise.
62392         * tests/test-mkdirat.c (main): Likewise.
62393         * tests/test-mkfifoat.c (main): Likewise.
62394         * tests/test-open.c (main): Likewise.
62395         * tests/test-openat-safer.c (main): Likewise.
62396         * tests/test-openat.c (main): Likewise.
62397         * tests/test-quotearg.c (main): Likewise.
62398         * tests/test-rawmemchr.c (main): Likewise.
62399         * tests/test-readlink.c (main): Likewise.
62400         * tests/test-remove.c (main): Likewise.
62401         * tests/test-rename.c (main): Likewise.
62402         * tests/test-renameat.c (main): Likewise.
62403         * tests/test-rmdir.c (main): Likewise.
62404         * tests/test-sha1.c (main): Likewise.
62405         * tests/test-signal.c (main): Likewise.
62406         * tests/test-sigaction.c (main): Likewise.
62407         * tests/test-stat.c (main): Likewise.
62408         * tests/test-stat-time.c (main): Likewise.
62409         * tests/test-stddef.c (main): Likewise.
62410         * tests/test-stdint.c (main): Likewise.
62411         * tests/test-stdio.c (main): Likewise.
62412         * tests/test-stdlib.c (main): Likewise.
62413         * tests/test-strchrnul.c (main): Likewise.
62414         * tests/test-strerror.c (main): Likewise.
62415         * tests/test-string.c (main): Likewise.
62416         * tests/test-strtod.c (main): Likewise.
62417         * tests/test-strverscmp.c (main): Likewise.
62418         * tests/test-symlink.c (main): Likewise.
62419         * tests/test-symlinkat.c (main): Likewise.
62420         * tests/test-sys_stat.c (main): Likewise.
62421         * tests/test-sys_time.c (main): Likewise.
62422         * tests/test-time.c (main): Likewise.
62423         * tests/test-unistd.c (main): Likewise.
62424         * tests/test-unlink.c (main): Likewise.
62425         * tests/test-unlinkat.c (main): Likewise.
62426         * tests/test-utimens.c (main): Likewise.
62427         * tests/test-utimensat.c (main): Likewise.
62428         * tests/test-version-etc.c (main): Likewise.
62429         * tests/test-wchar.c (main): Likewise.
62430         * tests/test-wctype.c (main): Likewise.
62431         * tests/test-xprintf-posix.c (main): Likewise.
62432         * tests/test-posixtm.c (main): Likewise.
62433         (STREQ): Delete unused macro.
62434         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
62435         shadowed variables.
62436         * tests/test-memchr.c (main): Likewise.
62438 2009-10-21  Eric Blake  <ebb9@byu.net>
62440         areadlinkat: avoid failure on older glibc
62441         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
62442         rather than mis-comparing 0 against FUNC_RESULT of char*.
62444 2009-10-21  Bruno Haible  <bruno@clisp.org>
62446         * modules/stpncpy (License): Relicense under LGPLv2+.
62447         Reported by David Lutterkort <lutter@redhat.com>.
62449 2009-10-20  Eric Blake  <ebb9@byu.net>
62451         utimensat: work around Solaris 9 bug
62452         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
62453         has trailing slash bugs.
62454         * tests/test-lutimens.h (test_lutimens): Enhance test.
62455         * tests/test-utimens.h (test_utimens): Likewise.
62456         * doc/posix-functions/utime.texi (utime): Enhance documentation.
62457         * doc/posix-functions/utimes.texi (utimes): Likewise.
62458         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62459         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
62460         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
62461         * doc/posix-functions/futimens.texi (futimens): Likewise.
62463         fdutimensat: new module
62464         * modules/fdutimensat: New file.
62465         * lib/fdutimensat.c (fdutimensat): Likewise.
62466         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
62467         * MODULES.html.sh (File system functions): Mention module.
62468         * modules/fdutimensat-tests: New test.
62469         * tests/test-fdutimensat.c: Likewise.
62471         doc: regenerate INSTALL
62472         * doc/INSTALL: Reflect recent autoconf update.
62473         * doc/INSTALL.ISO: Likewise.
62474         * doc/INSTALL.UTF-8: Likewise.
62476 2009-10-20  Pádraig Brady  <P@draigBrady.com>
62478         acl: warn if ACL support is not detected
62479         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
62481 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
62483         * lib/nproc.h: Add extern "C" block for C++.
62485 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
62486             Bruno Haible  <bruno@clisp.org>
62488         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
62489         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
62490         * doc/posix-functions/isalpha.texi: Likewise.
62491         * doc/posix-functions/isblank.texi: Likewise.
62492         * doc/posix-functions/iscntrl.texi: Likewise.
62493         * doc/posix-functions/isdigit.texi: Likewise.
62494         * doc/posix-functions/isgraph.texi: Likewise.
62495         * doc/posix-functions/islower.texi: Likewise.
62496         * doc/posix-functions/isprint.texi: Likewise.
62497         * doc/posix-functions/ispunct.texi: Likewise.
62498         * doc/posix-functions/isspace.texi: Likewise.
62499         * doc/posix-functions/isupper.texi: Likewise.
62500         * doc/posix-functions/isxdigit.texi: Likewise.
62502 2009-10-18  Bruno Haible  <bruno@clisp.org>
62504         Tests for module 'isblank'.
62505         * modules/isblank-tests: New file.
62506         * tests/test-isblank.c: New file.
62508         New module 'isblank'.
62509         * lib/isblank.c: New file.
62510         * m4/isblank.m4: New file.
62511         * modules/isblank: New file.
62512         * doc/posix-functions/isblank.texi: Mention the new module.
62514 2009-10-18  Bruno Haible  <bruno@clisp.org>
62516         New module 'ctype'.
62517         * lib/ctype.in.h: New file.
62518         * m4/ctype.m4: New file.
62519         * modules/ctype: New file.
62520         * doc/posix-headers/ctype.texi: Mention the new module.
62522 2009-10-18  Jim Meyering  <meyering@redhat.com>
62524         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
62525         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
62526         right after its initialization, rather than farther down.
62527         Keeping these in close proximity makes it easier to ensure
62528         that each such variable is initialized.  E.g.,
62530             LIB_CLOCK_GETTIME=
62531             AC_SUBST([LIB_CLOCK_GETTIME])
62533         This change also increments these serial numbers.
62534         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
62535         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62536         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62538 2009-10-18  Bruno Haible  <bruno@clisp.org>
62540         Don't let environment variables perturb build.
62541         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
62542         (gl_PREREQ_GETHRXTIME): ... not here.
62544 2009-10-18  Bruno Haible  <bruno@clisp.org>
62546         Avoid symlink attack in localcharset module.
62547         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
62548         (O_NOFOLLOW): Define fallback.
62549         (get_charset_aliases): Don't open the file if it is a symbolic link.
62550         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
62551         gl_FCNTL_H.
62552         (gl_FCNTL_H): Require it.
62553         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
62554         * modules/localcharset (Files): Add m4/fcntl_h.m4.
62555         Reported by Fergal Glynn <fglynn@veracode.com>.
62557 2009-10-18  Bruno Haible  <bruno@clisp.org>
62559         Implement nproc for mingw.
62560         * lib/nproc.c: Include <windows.h>
62561         (num_processors): On native Windows platforms, try GetSystemInfo.
62563 2009-10-18  Bruno Haible  <bruno@clisp.org>
62565         Implement nproc for IRIX.
62566         * lib/nproc.c: Include <sys/sysmp.h>.
62567         (num_processors): On IRIX systems, try sysmp.
62568         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
62570 2009-10-18  Bruno Haible  <bruno@clisp.org>
62572         Implement nproc for HP-UX.
62573         * lib/nproc.c: Include <sys/pstat.h>
62574         (num_processors): On HP-UX systems, try pstat_getdynamic.
62575         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
62576         pstat_getdynamic.
62578 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
62579             Bruno Haible  <bruno@clisp.org>
62581         Implement nproc for NetBSD, OpenBSD.
62582         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
62583         (ARRAY_SIZE): New macro.
62584         (num_processors): On BSD systems, try sysctl of HW_NCPU.
62585         * m4/nproc.m4: New file.
62586         * modules/nproc (Files): Add m4/nproc.m4.
62587         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
62588         (Makefile.am): Instead, augment lib_SOURCES.
62590 2009-10-18  Bruno Haible  <bruno@clisp.org>
62592         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
62593         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
62594         sys/param.h.
62596 2009-10-16  Eric Blake  <ebb9@byu.net>
62598         utimensat: new module
62599         * modules/utimensat: New file.
62600         * lib/utimensat.c (utimensat): Likewise.
62601         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
62602         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
62603         so we can work around Linux bugs.
62604         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62605         * modules/sys_stat (Makefile.am): Substitute them.
62606         * lib/sys_stat.in.h (utimensat): Declare it.
62607         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62608         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62609         * modules/utimensat-tests: New test.
62610         * tests/test-utimensat.c: Likewise.
62612         utimens: let lutimens work on non-symlinks
62613         * lib/utimens.c (lutimens): Fall back to utimens rather than
62614         failing with ENOSYS, when file is not a symlink.
62615         (utimens): Reduce redirection.
62616         * tests/test-lutimens.h (test_lutimens): Update test to cover
62617         non-symlinks.
62618         * tests/test-utimens.h (test_utimens): Update test to cover
62619         symlinks.
62620         * tests/test-utimens.c (main): Update caller.
62622         utimens: cache whether utimensat syscall works
62623         * lib/utimens.c (utimensat_works_really): New cache variable.
62624         (fdutimens, lutimens): Use it to avoid failing syscall.
62626         test-stat-time, test-utimens: improve portability
62627         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
62628         ext4 on alpha, and for cygwin.
62629         * tests/test-utimens-common.h: New file.
62630         (nap): Factor delays into single function.
62631         * tests/test-lutimens.h (test_lutimens): Use new header.
62632         * tests/test-futimens.h (test_futimens): Likewise.
62633         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
62634         timestamps to occur from same machine, as was done previously for
62635         test_utimens.
62636         * modules/utimens-tests (Files): Ship new file.
62637         * modules/futimens-tests (Files): Likewise.
62638         Reported in part by Jim Meyering.
62640         sys_stat: sort replacement declarations
62641         * lib/sys_stat.in.h: Sort declarations.
62642         * lib/futimens.c (futimens): Fix typo.
62644 2009-10-15  Jim Meyering  <meyering@redhat.com>
62646         don't let environment settings perturb build
62647         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
62648         could cause a configure-time and/or build-time malfunction.
62649         Typically, a configure-time function-in-library test is performed
62650         via code like this:
62652           LIB_VAR=
62653           AC_SUBST([LIB_VAR])
62654           prefix_saved_LIBS=$LIBS
62655             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
62656                        [test "$ac_cv_search_FUNC" = "none required" ||
62657                         LIB_VAR=$ac_cv_search_FUNC])
62658           LIBS=$prefix_saved_LIBS
62660         However, in each of the files affected by this change, the LIB_VAR=
62661         initialization was omitted.  Thus, when set in the environment, its
62662         value would propagate into generated Makefiles when FUNC is not found
62663         in LIB_NAME.
62664         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
62665         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62668 2009-10-14  Eric Blake  <ebb9@byu.net>
62670         fchdir: avoid infinite recursion in mingw
62671         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
62672         recursing.
62674         test-stat-time: port to mingw
62675         * tests/test-stat-time.c (force_unlink): Return a value.
62676         (test_ctime) [W32]: Fix compilation error.
62677         (nap): Don't call usleep with too large an argument.  Use
62678         force_unlink.
62679         * doc/pastposix-functions/usleep.texi (usleep): Document the
62680         portability issue.
62682 2009-10-13  Jim Meyering  <meyering@redhat.com>
62684         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
62685         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
62686         * modules/pipe-filter-ii: Likewise.
62687         * modules/sys_socket-tests: Likewise.
62688         * modules/tsearch-tests: Likewise.
62689         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
62690         (check): Depend on it.
62692 2009-10-12  Eric Blake  <ebb9@byu.net>
62694         utimens-tests: port to NFS file systems
62695         * tests/test-utimens.h (test_utimens): Refactor utimecmp
62696         comparisons to avoid spurious failures from timestamp drift
62697         between NFS machines.
62699 2009-10-12  Eric Blake  <ebb9@byu.net>
62701         stat-time-tests: minor cleanups
62702         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
62703         * tests/test-stat-time.c (nap): Separate assignment from call.
62704         Suggested by Paolo Bonzini and Bruno Haible.
62706         sys_stat: guarantee struct timespec
62707         * lib/sys_stat.in.h (includes): Always include <time.h>
62708         * modules/sys_stat (Depends-on): Add time.
62709         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
62710         mode_t permission values.
62711         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
62712         get at subsecond timestamps.
62714 2009-10-10  Eric Blake  <ebb9@byu.net>
62716         futimens: new module
62717         * modules/futimens: New file.
62718         * lib/futimens.c (futimens): Likewise.
62719         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
62720         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
62721         we can work around Linux bugs.
62722         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62723         * modules/sys_stat (Makefile.am): Substitute them.
62724         * lib/sys_stat.in.h (futimens): Declare it.
62725         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62726         * doc/posix-functions/futimens.texi (futimens): Likewise.
62727         * modules/futimens-tests: New test.
62728         * tests/test-futimens.c: Likewise.
62730         utimens: introduce fdutimens
62731         * lib/utimens.h (fdutimens): New prototype.
62732         * lib/utimens.c (gl_futimens): Move guts...
62733         (fdutimens): ...to new interface.
62734         * tests/test-utimens.c (do_fdutimens): Use it.
62736         utimens: add UTIME_NOW and UTIME_OMIT support
62737         * lib/utimens.c (validate_timespec, update_timespec): New helper
62738         functions.
62739         (gl_futimens, lutimens): Use them.
62740         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
62741         stdbool, sys_stat.
62742         (Link): Mention resulting library dependency.
62743         * modules/utimecmp (Link): Likewise.
62744         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
62745         (Makefile.am): Pick up library dependency.
62746         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
62747         definition.
62748         * tests/test-sys_stat.c: Test the definitions.
62749         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
62750         * NEWS: Document library dependency.
62752         utimecmp: support symlink timestamps
62753         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
62754         hashing when possible.  Use pathconf when available.
62755         (SYSCALL_RESOLUTION): Recognize tighter resolution.
62756         * modules/utimecmp (Depends-on): Add lstat.
62758         utimens: add lutimens interface
62759         * lib/utimens.c (lutimens): New function.
62760         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
62761         * lib/utimens.h (lutimens): Declare new interface.
62762         * tests/test-utimens.c (main): Enhance test.
62763         * tests/test-lutimens.h (test_lutimens): New file.
62764         * modules/utimens-tests (Files): Distribute it.
62765         (Depends-on): Add symlink.
62766         (configure.ac): Check for usleep.
62768         utimens: validate futimens usage
62769         * lib/utimens.c (gl_futimens): Require valid fd up front, using
62770         fewer syscalls on failure later on.  Avoid compiler warning on
62771         mingw.
62772         * modules/utimens (Depends-on): Add dup2.
62774         utimens: add test
62775         * modules/utimens-tests: New test.
62776         * tests/test-utimens.h: New file.
62777         * tests/test-futimens.h: Likewise.
62778         * tests/test-utimens.c: Likewise.
62780         doc: mention timestamp portability issues
62781         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
62782         instead.
62783         * doc/posix-functions/utime.texi (utime): Likewise.
62784         * doc/posix-functions/utimes.texi (utimes): Likewise.
62785         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
62786         instead.
62787         * doc/posix-functions/futimens.texi (futimens): Mention utimens
62788         module.
62789         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
62790         Mention weakness with symlink timestamps.
62791         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
62792         to utimensat/futimens instead.
62793         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
62795         test-dup2: enhance test
62796         * tests/test-dup2.c (main): Also check AT_FDCWD.
62798         test-stat-time: avoid more spurious failures
62799         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
62800         xfs; and avoid race if the two timestamps cross quantization edge.
62802         relocatable: prefer 'file system' over 'filesystem'
62803         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
62804         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
62805         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
62806         * doc/relocatable.texi (Enabling Relocatability): Likewise.
62807         * lib/relocatable.c (compute_curr_prefix): Likewise.
62809 2009-10-10  Jim Meyering  <meyering@redhat.com>
62811         stat-time-tests: check for the usleep function
62812         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
62814 2009-10-10  Bruno Haible  <bruno@clisp.org>
62816         * modules/xnanosleep: Put the Link section after the Include section.
62818 2009-10-09  Eric Blake  <ebb9@byu.net>
62820         dup2: work around FreeBSD 6.1 bug
62821         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
62822         * doc/posix-functions/dup2.texi (dup2): Document it.
62823         Reported by Nelson H. F. Beebe and Jim Meyering.
62825         test-stat-time: port to buggy NFS clients
62826         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
62827         (test_ctime): Also skip test if mtime and ctime are skewed.
62829         maint: prefer 'file system' over 'filesystem'
62830         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
62831         * doc/posix-functions/lstat.texi (lstat): Likewise.
62832         * lib/file-has-acl.c (file_has_acl): Likewise.
62833         * lib/fwriteerror.c [TEST]: Likewise.
62834         * tests/test-areadlink.h (test_areadlink): Likewise.
62835         * tests/test-areadlinkat-with-size.c (main): Likewise.
62836         * tests/test-areadlinkat.c (main): Likewise.
62837         * tests/test-canonicalize-lgpl.c (main): Likewise.
62838         * tests/test-canonicalize.c (main): Likewise.
62839         * tests/test-fstatat.c (main): Likewise.
62840         * tests/test-linkat.c (main): Likewise.
62841         * tests/test-lstat.h (test_lstat_func): Likewise.
62842         * tests/test-mkdir.h (test_mkdir): Likewise.
62843         * tests/test-readlink.h (test_readlink): Likewise.
62844         * tests/test-remove.c (main): Likewise.
62845         * tests/test-rename.h (test_rename): Likewise.
62846         * tests/test-renameat.c (main): Likewise.
62847         * tests/test-rmdir.h (test_rmdir_func): Likewise.
62848         * tests/test-symlink.h (test_symlink): Likewise.
62849         * tests/test-symlinkat.c (main): Likewise.
62850         * tests/test-unlink.h (test_unlink_func): Likewise.
62851         * tests/test-unlinkat.c (main): Likewise.
62853         maint: make realtime library usage explicit
62854         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
62855         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
62856         * modules/settime (Link): Likewise.
62857         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
62859         test-stat-time: speed up execution
62860         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
62861         warning on mingw.
62862         (nap): New helper function.
62863         (prepare_test): Use it to reduce sleep time.
62864         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
62865         execution.
62866         * modules/stat-time-tests (configure.ac): Check for usleep.
62868 2009-10-09  Jim Meyering  <meyering@redhat.com>
62870         selinux-h: always use getfilecon wrappers
62871         * lib/getfilecon.c: New file.
62872         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
62873         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
62874         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
62875         (fgetfilecon): Provide a stub.
62876         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
62877         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
62878         file unconditionally.
62879         When <selinux/selinux.h> is found, arrange to use wrappers.
62880         * modules/selinux-h (Files): Add getfilecon.c.
62881         (Makefile.am): Substitute include-next-related bits
62882         into the now-always-generated selinux/selinux.h file.
62883         * doc/glibc-functions/lgetfilecon.texi: New file.
62884         * doc/glibc-functions/fgetfilecon.texi: New file.
62885         * doc/glibc-functions/getfilecon.texi: New file.
62886         * doc/glibc-functions/getfilecon-desc.texi: New file.
62887         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
62888         which to pull in the new files.
62889         * MODULES.html.sh (Misc): Add selinux-h.
62891 2009-10-08  Jim Meyering  <meyering@redhat.com>
62893         unistd: fix comment typo
62894         * lib/unistd.in.h (euidaccess): Fix a comment typo.
62896 2009-10-08  Eric Blake  <ebb9@byu.net>
62898         areadlink: use SIZE_MAX consistently
62899         * modules/areadlink (Depends-on): Add stdint.
62900         * modules/areadlink-with-size (Depends-on): Likewise.
62901         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
62902         gives NULL; drop sys/types, since unistd gives size_t; and add
62903         stdint for SIZE_MAX.
62904         (SIZE_MAX): Rely on headers.
62905         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
62906         and add stdint.
62907         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
62908         (SIZE_MAX): Likewise.
62909         (INITIAL_BUF_SIZE): Turn into enum.
62910         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
62912 2009-10-08  Jim Meyering  <meyering@redhat.com>
62914         areadlinkat: avoid compilation failure
62915         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
62916         Fix typo in comment.
62918 2009-10-07  Eric Blake  <ebb9@byu.net>
62920         areadlinkat-with-size: new module
62921         * modules/areadlinkat-with-size: New module.
62922         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
62923         * lib/areadlink.h (areadlinkat): Declare it.
62924         * MODULES.html.sh (File system functions): Mention it.
62925         * modules/areadlinkat-with-size-tests: New test.
62926         * tests/test-areadlinkat-with-size.c: New file.
62928         xreadlinkat: new module
62929         * modules/xreadlinkat: New module.
62930         * lib/xreadlinkat.c (xreadlinkat): New file.
62931         * lib/xreadlink.h (xreadlinkat): Declare it.
62932         * MODULES.html.sh (File system functions): Mention it.
62934         areadlinkat: new module
62935         * lib/at-func.c (FUNC_FAIL): New define.
62936         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
62937         * modules/areadlinkat: New module.
62938         * lib/linkat.c (areadlinkat): Move...
62939         * lib/areadlinkat.c (areadlinkat): ...to new file.
62940         * lib/areadlink.h (areadlinkat): Declare it.
62941         * modules/linkat (Depends-on): Add areadlinkat.
62942         * MODULES.html.sh (File system functions): Mention it.
62943         * modules/areadlinkat-tests: New test.
62944         * tests/test-areadlinkat.c: New file.
62946         areadlink, areadlink-with-size: add tests
62947         * modules/areadlink-tests: New test.
62948         * modules/areadlink-with-size-tests: Likewise.
62949         * tests/test-areadlink.h: New file.
62950         * tests/test-areadlink.c: Likewise.
62951         * tests/test-areadlink-with-size.c: Likewise.
62953         maint: minor cleanups
62954         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
62955         _UNUSED_PARAMETER_ instead.
62956         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
62957         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
62958         * modules/linkat-tests (Files): Distribute test-link.h.
62960         openat, utimens: whitespace cleanup
62961         * lib/openat.c: Prefer space throughout, rather than mix of 8
62962         spaces vs. tabs.
62963         * lib/at-func.c: Likewise.
62964         * lib/utimens.c: Likewise.
62966         openat: avoid using wrong fd
62967         * lib/openat.c (openat_permissive): Reject user's fd if saving the
62968         working directory chooses same fd.
62969         * lib/at-func.c (AT_FUNC_NAME): Likewise.
62971         mkdir, mkdirat: fix cygwin 1.5.x bug
62972         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
62973         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
62974         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
62975         bug.
62976         (gl_PREREQ_MKDIR): Delete unused macro.
62977         * modules/mkdir (Files): Track file rename.
62978         (configure.ac): Update macro name.
62979         * modules/openat (Depends-on): Add mkdir.
62980         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
62982         mkdir, mkdirat: add tests
62983         * modules/mkdir-tests: New test.
62984         * tests/test-mkdir.h: New file.
62985         * tests/test-mkdir.c: Likewise.
62986         * tests/test-mkdirat.c: Likewise.
62987         * modules/openat-tests (Files): Add new files.
62988         (Makefile.am): Run new test.
62990 2009-10-06  Eric Blake  <ebb9@byu.net>
62992         doc: tweak *at function documentation
62993         * doc/posix-functions/faccessat.texi (faccessat): Mention
62994         known issue with replacement.
62995         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
62996         * doc/posix-functions/linkat.texi (linkat): Likewise.
62997         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
62998         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
62999         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63000         * doc/posix-functions/renameat.texi (renameat): Likewise.
63001         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
63003         openat: fix GNU/Hurd bug in unlinkat
63004         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
63005         broken.
63006         * doc/posix-functions/unlink.texi (unlink): Document this.
63007         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
63009         fdopendir: fix GNU/Hurd bug
63010         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
63011         allowing non-directory fds.
63012         * lib/fdopendir.c (rpl_fdopendir): Work around it.
63013         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
63014         * modules/dirent (Makefile.am): Substitute it.
63015         * lib/dirent.in.h (fdopendir): Declare replacement.
63016         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
63017         * tests/test-fdopendir.c (main): Test something other than
63018         /dev/null, since on Hurd that behaves like a directory.
63020         test-symlink: port to GNU/Hurd
63021         * tests/test-symlink.h (test_symlink): Relax expected errno.
63023         doc: tweak more cygwin information
63024         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
63025         now compatible with glibc.
63026         * doc/posix-functions/getopt.texi (getopt): Likewise.
63028         getopt-gnu: add another test
63029         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
63030         guarantee behavior relied on by m4.
63031         * tests/test-getopt.c (main): Use it.
63032         * modules/getopt-posix-tests (Depends-on): Add setenv.
63033         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
63035         getopt: fix compilation on darwin
63036         * lib/getopt.in.h (includes): Leave breadcrumbs during system
63037         include.
63038         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
63039         Reported by Ludovic Courtès.
63041 2009-10-06  Bruno Haible  <bruno@clisp.org>
63043         * modules/size_max (Description): Discourage its use.
63044         Reported by Simon Josefsson.
63046 2009-10-06  Jim Meyering  <meyering@redhat.com>
63048         linkat: avoid compilation failure
63049         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
63051 2009-10-05  Eric Blake  <ebb9@byu.net>
63053         linkat: support Linux 2.6.17
63054         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
63055         linkat on Linux, but allow cache variable override.
63056         * lib/linkat.c (rpl_linkat): Define override.
63057         * modules/linkat (Depends-on): Add symlinkat.
63058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
63059         * modules/unistd (Makefile.am): Substitute it.
63060         * lib/unistd.in.h (linkat): Declare replacement.
63061         Reported by Pádraig Brady.
63063         quotearg: port test to systems with C.UTF-8 locale
63064         * tests/test-quotearg.c (struct result_strings): Add another
63065         member, differentiating between C.ASCII and C.UTF-8 handling.
63066         (compare_strings): Add parameter.
63067         (main): Adjust all callers.
63069         getopt: avoid clash with FreeBSD _getopt_internal
63070         * lib/getopt.in.h (_getopt_internal): Override the name.
63071         * lib/getopt_int.h (includes): Pick up any overrides.
63072         Reported by Reuben Thomas.
63074         hash: allow C89 compilation
63075         * lib/hash.c (check_tuning): Move declaration before statement.
63076         Reported by Reuben Thomas.
63078 2009-10-05  Karl Berry  <karl@gnu.org>
63080         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
63082 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
63083             Bruno Haible  <bruno@clisp.org>
63085         * lib/uname.c (uname): Use a table-driven algorithm to compute
63086         Windows NT versions.
63088 2009-10-04  Bruno Haible  <bruno@clisp.org>
63090         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
63091         program_invocation_short_name.
63092         * modules/progname (configure.ac): Test for presence of
63093         program_invocation_short_name.
63094         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
63096 2009-10-04  Bruno Haible  <bruno@clisp.org>
63098         * lib/progname.c (set_program_name): Fix comment.
63099         Reported by Jim Meyering.
63101 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63102             Bruno Haible  <bruno@clisp.org>
63104         * lib/uname.c: Include <string.h>.
63105         (uname): Do only one call to GetVersionEx in the common case.
63107 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63108             Bruno Haible  <bruno@clisp.org>
63110         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
63111         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
63112         (uname): Add support for Windows CE and various non-x86 CPU types.
63114 2009-10-03  Bruno Haible  <bruno@clisp.org>
63116         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
63117         invocation to tests/configure.ac.
63118         Reported by Ian Beckwith <ianb@erislabs.net>.
63120 2009-10-02  Eric Blake  <ebb9@byu.net>
63122         fchdir: avoid compiler warning
63123         * lib/fchdir.c (canonicalize_file_name)
63124         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
63126         test-open: support mingw errno values
63127         * tests/test-open.h (test_open): Relax test.
63128         * tests/test-fopen.h (test_fopen): Likewise.
63129         * tests/test-openat-safer.c (main): Likewise.
63131         open: fix opening directory on mingw
63132         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
63134         test-open: on GNU/Hurd, /dev/null is a directory
63135         * tests/test-fopen.h (main): Rename...
63136         (test_fopen): ...to this.  Use a guaranteed non-directory when
63137         confirming open behavior on trailing slash.
63138         * tests/test-openat-safer.c (main): Likewise.
63139         * tests/test-open.h (main): Likewise....
63140         (test_open): ...to this.
63141         * tests/test-fopen.c (main): Adjust caller.
63142         * tests/test-fopen-safer.c (main): Likewise.
63143         * tests/test-open.c (main): Likewise.
63144         * tests/test-fcntl-safer.c (main): Likewise.
63145         Reported by Samuel Thibault.
63147         rename, fchdir: don't ignore chdir failure
63148         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
63149         * lib/rename.c (rpl_rename) [W32]: Likewise.
63150         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
63151         an empty destination directory if source cannot be renamed,
63152         although there is still possibility for failure.
63153         * doc/posix-functions/rename.texi (rename): Document the race.
63154         Reported by Jim Meyering.
63156         maint: cleanup whitespace in recent commits
63157         * lib/rename.c (rpl_rename): Remove tabs.
63158         * tests/test-link.h (test_link): Likewise.
63159         * lib/fchdir.c (get_name): Likewise.
63160         Reported by Jim Meyering.
63162 2009-10-02  Ben Pfaff  <blp@gnu.org>
63164         relocatable-prog-wrapper: Add missing dependency on
63165         double-slash-root.
63166         * modules/relocatable-prog-wrapper: Add dependency.
63167         Reported by Ian Beckwith <ianb@erislabs.net>.
63169 2009-10-02  Eric Blake  <ebb9@byu.net>
63171         renameat: fix Solaris bugs
63172         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
63173         needed fixing.
63174         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
63175         * modules/stdio (Makefile.am): Substitute it.
63176         * lib/stdio.in.h (renameat): Declare replacement.
63177         * lib/renameat.c (rpl_renameat): Implement fix.
63179         renameat: new module
63180         * modules/renameat: New file.
63181         * lib/renameat.c (renameat): Likewise.
63182         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
63183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63184         * modules/stdio (Makefile.am): Substitute them.
63185         * lib/stdio.in.h (renameat): Declare it.
63186         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63187         * doc/posix-functions/renameat.texi (renameat): Likewise.
63188         * modules/renameat-tests: New test.
63189         * tests/test-renameat.c: Likewise.
63191         rename: fix mingw bugs
63192         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
63193         directory overwrite bugs.
63195         rename: fix another cygwin 1.5 bug
63196         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
63197         checks.
63198         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
63199         unnecessary cygwin workarounds.  Also work around bug with moving
63200         full directory onto an empty one.
63201         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
63203         rename-dest-slash: merge into rename module
63204         * modules/rename-dest-slash (Status): Mark obsolete.
63205         (Depends-on): Add rename.
63206         (Files): Let rename do it all.
63207         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
63208         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
63209         * m4/rename-dest-slash.m4: ...so this file can be deleted.
63210         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
63211         * lib/rename.c (rpl_rename): Update comments.
63213         rename: fix cygwin 1.5.x bugs
63214         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
63215         * lib/rename.c (rpl_rename): Work around them.
63216         * modules/rename (Depends-on): Add same-inode.
63218         rename: fix Solaris 10 bug
63219         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63220         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
63221         was the only bug.
63223         rename: fix Solaris 9 bug
63224         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
63225         on non-directory.  Avoid calling exit.
63226         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
63227         strdup.
63228         * modules/rename-tests (Depends-on): Drop lstat.
63229         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63230         (gl_PREREQ_RENAME): Delete unused macro.
63232         rename-dest-slash: fix NetBSD bug
63233         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
63234         links.
63235         * modules/rename-dest-slash (Depends-on): Add same-inode.
63237         rename-tests: new test, exposes several platform bugs
63238         * modules/rename-tests: New file.
63239         * tests/test-rename.h: Likewise.
63240         * tests/test-rename.c: Likewise.
63241         * doc/posix-functions/rename.texi (rename): Improve documentation,
63242         including bugs that will eventually be fixed in gnulib.
63244 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
63246         * lib/uname.c: Include <stdlib.h>
63247         (uname): Assume version info is available.
63249 2009-10-02  Jim Meyering  <meyering@redhat.com>
63251         gnu-web-doc-update: correct --help output
63252         * build-aux/gnu-web-doc-update: Make --help output relevant.
63254         gnu-web-doc-update: add standard options
63255         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
63257         gnu-web-doc-update: New module.
63258         Use this script to automatically update the on-line web documentation
63259         for your GNU project at http://www.gnu.org/software/$pkg/manual/
63260         * modules/gnu-web-doc-update: New file, from coreutils.
63261         * build-aux/gnu-web-doc-update: New script.
63263 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
63265         link: LoadLibrary is not needed.
63266         * lib/link.c: Use GetModuleHandle.
63268 2009-10-01  Eric Blake  <ebb9@byu.net>
63270         getopt: bump serial number
63271         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
63272         change.
63274         tests: tighten link, rmdir, and remove tests
63275         * tests/test-link.h (includes): No need to use <config.h> here.
63276         Clean up if directory hard link was created, otherwise test for
63277         trailing '.'.
63278         * tests/test-linkat.c (main): Simplify.
63279         * tests/test-remove.c (main): Enhance test for trailing '.'.
63280         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63282 2009-10-01  Jim Meyering  <meyering@redhat.com>
63284         maint.mk: requiring "make major" was annoying, for a "minor" release.
63285         What is intended is "stable", to contrast with alpha and beta,
63286         so require "make stable", not "make major".
63287         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
63288         (get_tool_versions): Likewise.
63289         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
63291 2009-09-30  Ben Pfaff  <blp@gnu.org>
63293         Fix broken build of replacement for Windows tmpfile().
63294         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
63295         flags argument added along with the 'mkostemp' module.
63297 2009-09-28  Bruno Haible  <bruno@clisp.org>
63299         Avoid identifier clash with POSIX function 'remove' defined as a macro.
63300         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
63301         to 'remove_elt'.
63302         (gl_list_remove): Update.
63303         * lib/gl_list.c (gl_list_remove): Update.
63304         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
63305         to 'remove_elt'.
63306         (gl_oset_remove): Update.
63307         * lib/gl_list.c (gl_oset_remove): Update.
63308         Reported by Eric Blake.
63310 2009-09-28  Eric Blake  <ebb9@byu.net>
63312         doc: mention yet more cygwin 1.7 status
63313         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
63314         cygwin.
63315         * doc/glibc-functions/execvpe.texi (execvpe): New file.
63316         * doc/gnulib.texi (Glibc unistd.h): Mention it.
63318         argp: fix test failure
63319         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
63320         that are not upper-case.  Pass correct range to tolower.
63322 2009-09-27  Jim Meyering  <meyering@redhat.com>
63324         test-yesno: work around sparc-dash here-document infelicity
63325         Without this change, the literal \177 byte in a here document
63326         would make dash 0.5.5.1-3 access uninitialized memory.
63327         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
63328         Instead, use a marker, "@", and filter through tr to create the desired
63329         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
63331 2009-09-27  Bruno Haible  <bruno@clisp.org>
63333         Disable untested support for new flavours of ACLs on AIX.
63334         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
63335         progress.
63336         * lib/set-mode-acl.c (qset_acl): Likewise.
63338 2008-12-07  Bruno Haible  <bruno@clisp.org>
63340         Add support for new flavours of ACLs on AIX. (Untested.)
63341         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
63342         (file_has_acl): Add support for newer AIX.
63343         * lib/set-mode-acl.c (qset_acl): Likewise.
63344         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
63345         Rainer Tammer <tammer@tammer.net>.
63347 2009-09-26  Eric Blake  <ebb9@byu.net>
63349         argp: fix compilation of getopt
63350         * lib/getopt.in.h (includes): Use different guard than glibc.
63351         Reported by Sergey Poznyakoff.
63353         doc: mention more cygwin 1.7 status
63354         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
63355         bug.
63356         * doc/posix-functions/execl.texi (execl): Likewise.
63357         * doc/posix-functions/execle.texi (execle): Likewise.
63358         * doc/posix-functions/execlp.texi (execlp): Likewise.
63359         * doc/posix-functions/execv.texi (execv): Likewise.
63360         * doc/posix-functions/execve.texi (execve): Likewise.
63361         * doc/posix-functions/execvp.texi (execvp): Likewise.
63362         * doc/glibc-functions/canonicalize_file_name.texi
63363         (canonicalize_file_name): Cygwin 1.7 now provides this.
63364         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
63365         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
63366         on AT_SYMLINK_NOFOLLOW.
63368 2009-09-24  Eric Blake  <ebb9@byu.net>
63370         test-linkat: make test more robust
63371         * tests/test-linkat.c (main): Avoid collision with EEXIST.
63373         getopt: fix inclusion guards for cygwin
63374         * modules/getopt-posix (Depends-on): Add include-next.
63375         (Makefile.am): Substitute more items in replacement header.
63376         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
63377         <getopt.h>.
63378         * lib/getopt.in.h (includes): Use split inclusion guard, and
63379         prefer <getopt.h> over include <unistd.h> when one is present.
63380         (option): Also override name of 'struct option'.
63382         same-inode: revert prior change; it is not yet ready
63383         * NEWS: Undo mention of this change.
63384         * lib/same-inode.h (same-inode.h): Undo tri-state change.
63385         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63386         * lib/cycle-check.c (cycle_check): Likewise.
63387         * lib/same.c (same_name): Likewise.
63388         * lib/at-func2.c (at_func2): Likewise.
63390 2009-09-23  Eric Blake  <ebb9@byu.net>
63392         linkat: new module
63393         * modules/linkat: New file.
63394         * lib/at-func2.c (at_func2): Likewise.
63395         * lib/linkat.c (linkat): Likewise.
63396         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63397         * lib/openat-priv.h (at_func2): Add declaration.
63398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63399         * modules/unistd (Makefile.am): Substitute them.
63400         * lib/unistd.in.h (linkat): Declare it.
63401         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63402         * doc/posix-functions/linkat.texi (linkat): Likewise.
63403         * doc/posix-functions/link.texi (link): Tweak wording.
63404         * tests/test-link.c (main): Move guts...
63405         * tests/test-link.h (test_link): ...into new file.
63406         * modules/linkat-tests: New test.
63407         * tests/test-linkat.c: Likewise.
63408         * modules/link-tests (Files): Ship new file.
63409         (Depends-on): Add stdbool.
63411         dirname: add library-safe mdir_name
63412         * lib/dirname.h (mdir_name): New prototype.
63413         * lib/dirname.c (dir_name): Move guts...
63414         (mdir_name): ...to new function that avoids xalloc_die.
63416         fchdir: another mingw fix
63417         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
63418         * lib/fchdir.c (get_name): New helper method; skips canonicalize
63419         on mingw (where it has not yet been ported), and make it optional
63420         elsewhere.
63421         (_gl_register_fd): Use it.
63423         same-inode: make SAME_INODE tri-state, to port to mingw
63424         * NEWS: Mention this change.
63425         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
63426         st_ino always being 0.
63427         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
63428         * lib/cycle-check.c (cycle_check): Likewise.
63429         * lib/same.c (same_name): Likewise.
63431         lstat: avoid mingw compilation error
63432         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
63433         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
63434         lstat ourselves.
63435         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
63436         was adequate.
63437         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
63438         the checks for lstat.
63439         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
63441         link: fix test failure on Solaris 9
63442         * lib/link.c (rpl_link): Don't assume link will catch bogus
63443         trailing slash on source.
63445         test-symlinkat: enhance test
63446         * tests/test-readlink.c (main): Move guts...
63447         * tests/test-readlink.h (test_readlink): ...into new file.
63448         * tests/test-symlink.c (main): Move guts...
63449         * tests/test-symlink.h (test_symlink): ...into new file.
63450         * tests/test-symlinkat.c (main): Use new files for further
63451         coverage.
63452         (do_symlink, do_readlink): New helper functions.
63453         * modules/symlink-tests (Files): Ship new file.
63454         (Depends-on): Add stdbool.
63455         * modules/readlink-tests (Files): Ship new file.
63456         (Depends-on): Add stdbool.
63457         * modules/symlinkat-tests (Files): Use new files.
63459 2009-09-23  Eric Blake  <ebb9@byu.net>
63461         readlink: document portability issue with symlink length
63462         * doc/posix-functions/lstat.texi (lstat): Mention that some file
63463         systems have bogus st_size on symlinks, and mention the
63464         areadlink-with-size module.
63465         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63466         * doc/posix-functions/readlink.texi (readlink): Mention the
63467         areadlink module, and ERANGE failure.
63468         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63469         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
63471         readlink: fix Solaris 9 bug with trailing slash
63472         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
63473         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
63474         * doc/posix-functions/readlink.texi (readlink): Document this.
63475         * modules/readlink-tests: New test.
63476         * tests/test-readlink.c: Likewise.
63478         readlink: fix cygwin 1.5.x bug with return type
63479         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
63480         * lib/unistd.in.h (readlink): Use ssize_t.
63481         * lib/readlink.c (readlink): Likewise.
63482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63483         * modules/unistd (Makefile.am): Substitute it.
63484         * lib/unistd.in.h (readlink): Declare replacement.
63485         * doc/posix-functions/readlink.texi (readlink): Document this.
63487         symlink: use throughout gnulib
63488         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
63489         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
63490         symlink is not used.
63491         * modules/symlinkat (Depends-on): Add symlink.
63492         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
63493         * modules/canonicalize-tests (Depends-on): Likewise.
63494         * modules/lstat-tests (Depends-on): Likewise.
63495         * modules/openat-tests (Depends-on): Likewise.
63496         * modules/remove-tests (Depends-on): Likewise.
63497         * modules/rmdir-tests (Depends-on): Likewise.
63498         * modules/unlink-tests (Depends-on): Likewise.
63499         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
63500         * tests/test-canonicalize.c (symlink): Likewise.
63501         * tests/test-fstatat.c (symlink): Likewise.
63502         * tests/test-lstat.c (symlink): Likewise.
63503         * tests/test-remove.c (symlink): Likewise.
63504         * tests/test-rmdir.c (symlink): Likewise.
63505         * tests/test-unlink.c (symlink): Likewise.
63506         * tests/test-unlinkat.c (symlink): Likewise.
63508         symlink: new module, for Solaris 9 bug
63509         * modules/symlink: New file.
63510         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63511         * lib/symlink.c: Likewise.
63512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
63513         * modules/unistd (Makefile.am): Substitute them.
63514         * lib/unistd.in.h (symlink): Declare replacement.
63515         * MODULES.html.sh (File system functions): Mention it.
63516         * doc/posix-functions/symlink.texi (symlink): Likewise.
63517         * modules/symlink-tests: New test.
63518         * tests/test-symlink.c: Likewise.
63520 2009-09-23  Bruno Haible  <bruno@clisp.org>
63522         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
63523         when needed.
63524         Test case: gnulib-tool --import --with-tests atexit inttypes.
63525         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
63527 2009-09-23  Bruno Haible  <bruno@clisp.org>
63529         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
63530         subcommand, not in a subshell.
63532 2009-09-22  Eric Blake  <ebb9@byu.net>
63534         unistd: sort replacement declarations
63535         * lib/unistd.in.h: Sort declarations.
63537         open, openat: minor optimization
63538         * lib/open.c (open): If open succeeded, len is non-zero.
63539         * lib/openat.c (rpl_openat): Likewise.
63541         link-follow: ensure correct result
63542         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
63543         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
63544         distinguish between possible failures.
63546 2009-09-21  Eric Blake  <ebb9@byu.net>
63548         fts: avoid compiler warning
63549         * lib/fts.c (dirent_inode_sort_may_be_useful)
63550         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
63552 2009-09-19  Bruno Haible  <bruno@clisp.org>
63554         * lib/progreloc.c (canonicalize_file_name): New declaration.
63556 2009-09-19  Eric Blake  <ebb9@byu.net>
63558         link: fix quoting
63559         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
63561         openat: fix openat bugs on Solaris 9
63562         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
63563         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
63564         * modules/openat (Depends-on): Add open.
63565         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
63566         * modules/fcntl-h (Makefile.am): Substitute it.
63567         * lib/fcntl.in.h (openat): Declare replacement.
63568         * doc/posix-functions/openat.texi (openat): Document this.
63570         openat: move fstatat and unlinkat into correct files
63571         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
63572         compiled.
63573         * lib/openat.c (fstatat, unlinkat): Move...
63574         * lib/fstatat.c (fstatat): ...into correct files.
63575         * lib/unlinkat.c (unlinkat): Likewise.
63577         openat: fix unlinkat bugs on Solaris 9
63578         * lib/unlinkat.c (unlinkat): New file.
63579         * modules/openat (Depends-on): Add unlink.
63580         (Files): Distribute it.
63581         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
63582         trailing slash behavior is broken.
63583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
63584         * modules/unistd (Makefile.am): Substitute it.
63585         * lib/unistd.in.h (unlinkat): Declare replacement.
63586         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
63588         openat: fix fstatat bugs on Solaris 9
63589         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
63590         stat.
63591         * doc/posix-functions/fstatat.texi (fstatat): Document this.
63593         test-unlinkat: enhance test, to expose Solaris 9 bug
63594         * tests/test-unlink.c (main): Factor guts...
63595         * tests/test-unlink.h (test_rmdir_func): ...into new file.
63596         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
63597         * tests/test-rmdir.c (main): Adjust caller.
63598         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
63599         (unlinker): New helper function.
63600         (rmdirat): Enhance check.
63601         * modules/rmdir-tests (Depends-on): Add stdbool.
63602         * modules/unlink-tests (Depends-on): Likewise.
63603         (Files): Add test-unlink.h.
63604         * modules/openat-tests (Files): Likewise.
63605         (Depends-on): Add unlinkdir.
63607         test-fstatat: new test, to expose Solaris 9 bugs
63608         * tests/test-stat.c (main): Factor guts...
63609         * tests/test-stat.h (test_stat_func): ...into new file.
63610         * tests/test-lstat.c (main): Factor guts...
63611         * tests/test-lstat.h (test_lstat_func): ...into new file.
63612         * tests/test-fstatat.c: New file.
63613         * modules/stat-tests (Files): Add test-stat.h.
63614         * modules/lstat-tests (Files): Add test-lstat.h.
63615         (Depends-on): Add stdbool.
63616         * modules/openat-tests (Depends-on): Add pathmax.
63617         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
63618         (Makefile.am): Run new test.
63620         remove: new module, for mingw and Solaris 9 bugs
63621         * modules/remove: New file.
63622         * lib/remove.c: Likewise.
63623         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
63624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63625         * modules/stdio (Makefile.am): Use them.
63626         * lib/stdio.in.h (remove): Declare replacement.
63627         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63628         * doc/posix-functions/remove.texi (remove): Likewise.
63629         * modules/remove-tests: New test.
63630         * tests/test-remove.c: Likewise.
63632         unlink: new module, for Solaris 9 bug
63633         * modules/unlink: New file.
63634         * lib/unlink.c: Likewise.
63635         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
63637         * modules/unistd (Makefile.am): Use them.
63638         * lib/unistd.in.h (stat): Declare replacement.
63639         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63640         * doc/posix-functions/unlink.texi (unlink): Likewise.
63641         * modules/unlink-tests: New test.
63642         * tests/test-unlink.c: Likewise.
63644         lstat: fix Solaris 9 bug
63645         * lib/lstat.c (lstat): Also check for trailing slash on
63646         non-symlink, non-directories.  Use stat module to simplify logic.
63647         * doc/posix-functions/lstat.texi (lstat): Document it.
63648         * modules/lstat-tests (Depends-on): Add errno, same-inode.
63649         (configure.ac): Check for symlink.
63650         * tests/test-lstat.c (main): Add more tests.
63652         stat: add as dependency to other modules
63653         * modules/chown (Depends-on): Add stat.
63654         * modules/euidaccess (Depends-on): Likewise.
63655         * modules/fchdir (Depends-on): Likewise.
63656         * modules/isdir (Depends-on): Likewise.
63657         * modules/link (Depends-on): Likewise.
63658         * modules/lstat (Depends-on): Likewise.
63659         * modules/mkdir-p (Depends-on): Likewise.
63660         * modules/modechange (Depends-on): Likewise.
63661         * modules/open (Depends-on): Likewise.
63662         * modules/readlink (Depends-on): Likewise.
63663         * modules/same (Depends-on): Likewise.
63665         stat: fix Solaris 9 bug
63666         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
63667         slash.
63668         * lib/stat.c (rpl_stat): Work around it.
63669         * doc/posix-functions/stat.texi (stat): Update documentation.
63671         stat: new module, for mingw bug
63672         * modules/stat: New file.
63673         * lib/stat.c: Likewise.
63674         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63675         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63676         * modules/sys_stat (Makefile.am): Use them.
63677         * lib/sys_stat.in.h (stat): Declare replacement.
63678         * lib/openat.c (fstatat): Deal with lstat and stat being function
63679         macros.
63680         * modules/openat (Depends-on): Add inline.
63681         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63682         * doc/posix-functions/stat.texi (stat): Likewise.
63683         * modules/stat-tests: New test.
63684         * tests/test-stat.c: Likewise.
63686 2009-09-19  Jim Meyering  <meyering@redhat.com>
63688         syntax-check: detect unnecessary inclusion of canonicalize.h
63689         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
63691 2009-09-19  Eric Blake  <ebb9@byu.net>
63693         canonicalize-lgpl: adjust clients to use correct header
63694         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
63695         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
63696         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
63697         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
63698         * lib/progreloc.c (includes): Likewise.
63700 2009-09-19  Jim Meyering  <meyering@redhat.com>
63702         test-posixtm.c: correct a comment
63703         * tests/test-posixtm.c: Correct first-line comment.
63704         Spotted by Eric Blake.
63706 2009-09-16  Jim Meyering  <meyering@redhat.com>
63708         posixtm-tests: make T const-correct; add a test case
63709         * tests/test-posixtm.c (T): Declare const.
63710         Add a test for -(2^31+1).
63711         Remove useless can-succeed-only-in-2002 test.
63713         posixtm-tests: adjust the sole failing test
63714         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
63715         expected output matches what mktime now produces.  Cross-checked via
63716         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
63718         posixtm: move #ifdef'd tests into a new module
63719         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
63720         * tests/test-posixtm.c: ... this new file.
63721         * modules/posixtm-tests: New module.
63723 2009-09-19  Eric Blake  <ebb9@byu.net>
63725         openat: simplify use of at-func.c
63726         * lib/at-func.c (includes): Include prerequisites here, to
63727         simplify requirements on client files.
63728         * lib/openat-priv.h: Add double-inclusion guard.
63729         * lib/faccessat.c (includes): Simplify.
63730         * lib/fchmodat.c (includes): Likewise.
63731         * lib/fchownat.c (includes): Likewise.
63732         * lib/mkdirat.c (includes): Likewise.
63733         * lib/mkfifoat.c (includes): Likewise.
63734         * lib/symlinkat.c (includes): Likewise.
63736         openat: allow return of fd 0
63737         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
63738         * modules/save-cwd (Depends-on): Replace fcntl-safer with
63739         unistd-safer.
63740         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
63741         <fcntl.h>; this module does not leak fds.
63742         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
63743         must be allowed to return 0, leaving openat_safer to add the
63744         safety.
63745         (openat_permissive): Avoid writing to just-opened fd 2 if
63746         restoring the current directory fails.
63747         * lib/openat-die.c (openat_restore_fail): Add comment.
63748         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
63749         (save_cwd): Guarantee safe fd, but without use of open_safer.
63750         * tests/test-openat.c: New test.
63751         * modules/openat-tests (Files, Makefile.am): Distribute and build
63752         new file.
63754         relocatable-prog-wrapper: fix build
63755         * modules/relocatable-prog-wrapper (Files): Update name of
63756         canonicalize m4 file, broken on 2009-09-17.
63757         Reported by emad hajjar <aleppos@hotmail.com>.
63759 2009-09-19  Bruno Haible  <bruno@clisp.org>
63761         * lib/safe-alloc.h: Use the standard header with GPL copyright.
63762         * lib/safe-alloc.c: Likewise.
63763         Reported by Ian Beckwith <ianb@erislabs.net>.
63765 2009-09-18  Bruno Haible  <bruno@clisp.org>
63767         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
63768         Reported by <erobles@sensacd.com.mx>.
63770 2009-09-17  Eric Blake  <ebb9@byu.net>
63772         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
63773         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
63774         slashes when checking if last component is missing.
63775         * tests/test-canonicalize.c (main): Test this.
63777         canonicalize, canonicalize-lgpl: honor // if distinct from /
63778         * modules/canonicalize (Files): Add double-slash-root.m4.
63779         * modules/canonicalize-lgpl (Files): Likewise.
63780         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
63781         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
63782         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
63783         fallback definition.
63784         (canonicalize_filename_mode): Use it to protect //.
63785         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
63786         (__realpath): Likewise.
63787         * tests/test-canonicalize.c (main): Test this.
63788         * tests/test-canonicalize-lgpl.c (main): Likewise.
63789         * modules/canonicalize-tests (Depends-on): Add same-inode.
63790         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
63792         canonicalize-lgpl: fix glibc bug with trailing slash
63793         * m4/canonicalize-lgpl.m4: Move contents...
63794         * m4/canonicalize.m4: ...here.
63795         (gl_CANONICALIZE_LGPL): Factor realpath check...
63796         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
63797         glibc 2.3.5 bug, fixed 2005-04-27.
63798         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
63799         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
63800         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
63801         * modules/canonicalize-lgpl (Files): Manage file rename.
63802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
63803         * modules/stdlib (Makefile.am): Substitute witness.
63804         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
63805         is needed.
63806         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
63807         replacement is required.
63808         * lib/canonicalize.c (canonicalize_file_name): Likewise.
63809         * doc/glibc-functions/canonicalize_file_name.texi
63810         (canonicalize_file_name): Document this.
63811         * doc/posix-functions/realpath.texi (realpath): Likewise.
63813         canonicalize-lgpl: reject non-directory with trailing slash
63814         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
63815         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
63816         catches failures in glibc 2.3.5.
63817         * tests/test-canonicalize.c (main): Likewise.
63819         canonicalize-lgpl: use native realpath if it works
63820         * lib/canonicalize-lgpl.c (realpath): Guard with
63821         FUNC_REALPATH_WORKS.
63822         * lib/stdlib.in.h (realpath): Make declaration optional based on
63823         HAVE_REALPATH.
63824         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
63825         native realpath works.
63826         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
63827         * modules/stdlib (Makefile.am): Substitute witness.
63829         canonicalize, canonicalize-lgpl: use <stdlib.h>
63830         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
63831         (Include): Mention <stdlib.h>.
63832         (configure.ac): Mention functions we provide.
63833         * modules/canonicalize (configure.ac): Likewise.
63834         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
63835         realpath if canonicalize_file_name is missing.
63836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
63837         * modules/stdlib (Makefile.am): Substitute witnesses.
63838         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
63839         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
63840         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
63841         * NEWS: Document this.
63842         * doc/glibc-functions/canonicalize_file_name.texi
63843         (canonicalize_file_name): Likewise.
63844         * doc/posix-functions/realpath.texi (realpath): Likewise.
63845         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
63847         test-canonicalize: consolidate into single C program
63848         * tests/test-canonicalize.sh: Delete; move setup into...
63849         * tests/test-canonicalize.c (main): ...the program, making it
63850         easier to run in debugger.  Add some tests.
63851         * modules/canonicalize-tests (Files): Remove unused file.
63852         (Depends-on): Add progname.
63853         (configure.ac, Makefile.am): Simplify.
63855         test-canonicalize-lgpl: consolidate into single C program
63856         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
63857         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
63858         easier to run in debugger.  Add some tests.
63859         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
63860         (configure.ac, Makefile.am): Simplify.
63862         canonicalize: avoid resolvepath
63863         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
63864         unnecessary checks.
63865         * lib/canonicalize.c (includes): Simplify.
63866         (canonicalize_file_name): Drop resolvepath implementation.
63867         * modules/canonicalize (Depends-on): Drop filenamecat.
63869         canonicalize: don't lose errno
63870         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
63871         over calls to free.
63873         canonicalize: simplify errno handling
63874         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
63875         assignment.
63877         canonicalize, canonicalize-lgpl: update module dependencies
63878         * modules/canonicalize (Depends-on): Add extensions, lstat,
63879         pathmax, stdlib.
63880         (Files): Drop pathmax.h.
63881         (configure.ac): Adjust macro name.
63882         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
63883         lstat, stdlib, sys_stat.
63884         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
63885         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
63886         extensions.
63887         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
63888         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
63889         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
63890         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
63891         declaration, if available.
63892         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
63893         we can rely on the readlink module.
63894         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
63895         (includes): Use <unistd.h> unconditionally.
63897 2009-09-17  Eric Blake  <ebb9@byu.net>
63899         maint: make Include sections of modules consistent
63900         * modules/alloca: Use only header name; no need to list #include.
63901         * modules/alloca-opt: Likewise.
63902         * modules/arpa_inet: Likewise.
63903         * modules/canon-host: Likewise.
63904         * modules/configmake: Likewise.
63905         * modules/dirent: Likewise.
63906         * modules/eealloc: Likewise.
63907         * modules/environ: Likewise.
63908         * modules/fchdir: Likewise.
63909         * modules/fcntl: Likewise.
63910         * modules/fcntl-h: Likewise.
63911         * modules/gethrxtime: Likewise.
63912         * modules/gettime: Likewise.
63913         * modules/ignore-value: Likewise.
63914         * modules/inet_ntop: Likewise.
63915         * modules/inet_pton: Likewise.
63916         * modules/inttypes: Likewise.
63917         * modules/isnand-nolibm: Likewise.
63918         * modules/isnanf-nolibm: Likewise.
63919         * modules/mbchar: Likewise.
63920         * modules/mbfile: Likewise.
63921         * modules/mbiter: Likewise.
63922         * modules/mbuiter: Likewise.
63923         * modules/netdb: Likewise.
63924         * modules/netinet_in: Likewise.
63925         * modules/nproc: Likewise.
63926         * modules/pagealign_alloc: Likewise.
63927         * modules/poll: Likewise.
63928         * modules/printf-frexp: Likewise.
63929         * modules/pthread: Likewise.
63930         * modules/putenv: Likewise.
63931         * modules/random_r: Likewise.
63932         * modules/relocatable-prog: Likewise.
63933         * modules/search: Likewise.
63934         * modules/select: Likewise.
63935         * modules/selinux-h: Likewise.
63936         * modules/settime: Likewise.
63937         * modules/signal: Likewise.
63938         * modules/size_max: Likewise.
63939         * modules/socklen: Likewise.
63940         * modules/ssize_t: Likewise.
63941         * modules/stdarg: Likewise.
63942         * modules/stdbool: Likewise.
63943         * modules/stddef: Likewise.
63944         * modules/stdint: Likewise.
63945         * modules/stdio: Likewise.
63946         * modules/stdlib: Likewise.
63947         * modules/string: Likewise.
63948         * modules/strings: Likewise.
63949         * modules/sys_file: Likewise.
63950         * modules/sys_ioctl: Likewise.
63951         * modules/sys_select: Likewise.
63952         * modules/sys_socket: Likewise.
63953         * modules/sys_stat: Likewise.
63954         * modules/sys_time: Likewise.
63955         * modules/sys_times: Likewise.
63956         * modules/sys_utsname: Likewise.
63957         * modules/sys_wait: Likewise.
63958         * modules/sysexits: Likewise.
63959         * modules/time: Likewise.
63960         * modules/times: Likewise.
63961         * modules/tmpfile: Likewise.
63962         * modules/trim: Likewise.
63963         * modules/unistd: Likewise.
63964         * modules/wchar: Likewise.
63965         * modules/wctype: Likewise.
63967 2009-09-17  Bruno Haible  <bruno@clisp.org>
63969         Make getdate.y compile on QNX and NetBSD 5 / i386.
63970         * m4/getdate.m4 (gl_GETDATE): Conditionally define
63971         TIME_T_FITS_IN_LONG_INT.
63972         * lib/getdate.y (long_time_t): New type.
63973         (relative_time): Change type of 'seconds' field to long_time_t.
63974         (get_date): Update types of local variables. Check against overflow
63975         during conversion from long_time_t to time_t.
63976         Reported by Matt Kraai <kraai@ftbfs.org>
63977         and Hasso Tepper <hasso@netbsd.org>.
63979 2009-09-17  Bruno Haible  <bruno@clisp.org>
63981         * modules/COPYING: Update copyright years.
63982         * modules/README: Likeiwse.
63983         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
63984         Reported by Ian Beckwith <ianb@erislabs.net>.
63986 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
63988         * users.txt: Update references for gnuit package.
63990 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
63992         * m4/getdelim.m4: Fix typo in copyright line.
63994 2009-09-17  Bruno Haible  <bruno@clisp.org>
63996         * lib/atoll.c: Use the standard header with GPL copyright.
63997         * lib/argz.in.h: Likewise.
63998         * lib/glob.c: Likewise.
63999         * lib/glob-libc.h: Likewise.
64000         * lib/random_r.c: Likewise.
64001         * lib/siglist.h: Likewise.
64002         * lib/strsignal.c: Likewise.
64003         Reported by Ian Beckwith <ianb@erislabs.net>.
64005 2009-09-17  Eric Blake  <ebb9@byu.net>
64007         rmdir: ensure correct dependency order
64008         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
64010 2009-09-17  Bruno Haible  <bruno@clisp.org>
64012         Disable assertion that fails on NetBSD 5 / i386.
64013         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
64014         Reported by Sam Steingold <sds@gnu.org>
64015         and Hasso Tepper <hasso@netbsd.org>.
64017 2009-09-16  Eric Blake  <ebb9@byu.net>
64019         unlinkdir: port to mingw
64020         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
64021         on which no one can unlink a directory.
64023         stdlib: sort witness names
64024         * modules/stdlib (Makefile.am): Sort replacements.
64025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
64026         * lib/stdlib.in.h: Likewise.
64028         parse-duration-tests: avoid link failure
64029         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
64030         LIBINTL.
64031         Reported by Tom G. Christensen.
64033         openat-tests: ensure unlinkat behaves like rmdir
64034         * tests/test-rmdir.c (main): Factor guts...
64035         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
64036         * modules/rmdir-tests (Files): Ship new file.
64037         * modules/openat-tests: New test.
64038         * tests/test-unlinkat.c: Likewise.
64040         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
64041         * modules/rmdir-errno (Status, Notice): Now obsolete.
64043         rmdir: work around cygwin 1.5.x and mingw bugs
64044         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
64045         * lib/rmdir.c (rmdir): Work around it.
64046         * modules/rmdir (Status, Notice): No longer obsolete.
64047         (Files): Add dos.m4.
64048         (Depends-on): Add unistd.
64049         (configure.ac): Set witnesses.
64050         (License): Relax to LGPLv2+.
64051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
64052         * modules/unistd (Makefile.am): Substitute witnesses.
64053         * lib/unistd.in.h (rmdir): Declare replacement.
64054         * doc/posix-functions/rmdir.texi (rmdir): Document this.
64055         * modules/rmdir-tests: New tests.
64056         * tests/test-rmdir.c: Likewise.
64058 2009-09-15  Eric Blake  <ebb9@byu.net>
64060         fchdir: improve use of replacement functions
64061         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
64062         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
64063         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
64064         REPLACE_CLOSEDIR.
64065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
64066         * modules/sys_stat (Makefile.am): Substitute correct witness.
64067         * modules/dirent (Makefile.am): Likewise.
64068         * modules/unistd (Makefile.am): Likewise.
64069         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
64070         * lib/unistd.in.h (dup): Likewise.
64071         * lib/sys_stat.in.h (fstat): Likewise.
64073         maint: ignore gnulib-tool temp files
64074         * .gitignore: Ignore files created during gnulib-tool --test.
64076 2009-09-13  Jim Meyering  <meyering@redhat.com>
64078         posixtm: don't reject a time that specify "60" as the number of seconds
64079         * lib/posixtm.c (posixtime): The code to reject invalid dates
64080         would also reject a time specified with the .60 suffix.
64081         But POSIX allows that, in order to accommodate leap seconds.
64082         So don't reject it.
64083         (main): Adjust tests accordingly.
64084         * modules/posixtm (Depends-on): Add stpcpy.
64086 2009-09-11  Jim Meyering  <meyering@redhat.com>
64088         announce-gen: include [$release_type] in emitted Subject:
64089         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
64090         e.g., [stable] in the emitted Subject: line.
64092 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64094         Remove obsolete macros from several modules.
64095         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
64096         obsolete Autoconf macros with their modern counterparts.
64097         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
64098         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
64099         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
64100         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64101         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
64102         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64103         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
64104         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
64105         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
64106         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
64107         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
64108         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
64109         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
64110         * m4/sockets.m4 (gl_SOCKETS): Likewise.
64111         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
64112         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
64113         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64114         * m4/time_r.m4 (gl_TIME_R): Likewise.
64115         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
64116         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
64117         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64119         Fix copyright header in build-aux scripts.
64120         * build-aux/git-version-gen: Fix copyright header to match GPLv3
64121         recommendation.
64122         * build-aux/ncftpput-ftp: Likewise.
64123         * build-aux/update-copyright: Likewise.
64125 2009-09-09  Eric Blake  <ebb9@byu.net>
64127         test-link: allow Linux choice of errno
64128         * tests/test-link.c (main): Relax test for alternate error.
64130         strndup: fix improper m4 caching
64131         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
64132         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
64133         (gl_PREREQ_STRNDUP): Delete.
64134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
64135         * modules/string (Makefile.am): Substitute it.
64136         * lib/string.in.h (strndup): Modernize prototype.
64138         getcwd: port to mingw
64139         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
64140         different from the POSIX assumptions made throughout the getcwd
64141         module; fortunately, the mingw getcwd does not need replacement.
64142         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
64143         * modules/getcwd-tests: New test.
64144         * tests/test-getcwd.c: Likewise.
64146         link: fix platform bugs
64147         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
64148         * lib/link.c (link): Work around them.  Fix related mingw bug.
64149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
64150         * modules/unistd (Makefile.am): Substitute it.
64151         * lib/unistd.in.h (link): Declare replacement.
64152         * doc/posix-functions/link.texi (link): Document this.
64153         * modules/link (Depends-on): Add strdup-posix, sys_stat.
64155         test-link: consolidate into single C program, test more cases
64156         * tests/test-link.sh: Delete.
64157         * tests/test-link.c: Test more error conditions.  Exposes bugs on
64158         at least Cygwin and Solaris.
64159         * modules/link-tests (Files): Remove unused file.
64160         (Depends-on): Add errno, sys_stat.
64161         (Makefile.am): Simplify.
64163 2009-09-08  Bruno Haible  <bruno@clisp.org>
64165         Work around towlower, towupper bug on mingw.
64166         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
64167         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
64168         * doc/posix-functions/towlower.texi: Mention the mingw bug.
64169         * doc/posix-functions/towupper.texi: Likewise.
64170         Reported by Eric Blake.
64172 2009-09-08  Jim Meyering  <meyering@redhat.com>
64174         build: don't try to run autoheader if we don't use it
64175         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
64176         is not used in configure.ac.
64178 2009-09-08  Eric Blake  <ebb9@byu.net>
64180         euidaccess: fix compilation error
64181         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
64183         rawmemchr: relax license
64184         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
64185         okay.
64186         Reported by Jim Meyering.
64188         mkfifoat: new module
64189         * modules/mkfifoat: New file.
64190         * lib/mkfifoat.c: Likewise.
64191         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
64192         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64193         * modules/sys_stat (Makefile.am): Use them.
64194         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
64195         * MODULES.html.sh (File system functions): Mention module.
64196         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
64197         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
64198         * modules/mkfifoat-tests: New test.
64199         * tests/test-mkfifoat.c: Likewise.
64201         strchrnul: relax license
64202         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
64203         okay.
64204         Reported by Jim Meyering.
64206 2009-09-08  Eric Blake  <ebb9@byu.net>
64208         fstatat: fix compilation on Solaris
64209         * lib/fstatat.c (includes): Add fcntl.h.
64210         Reported by Pádraig Brady.
64212 2009-09-07  Eric Blake  <ebb9@byu.net>
64214         rename: modernize replacement
64215         * modules/rename (Depends-on): Add stdio.
64216         (configure.ac): Declare witness.
64217         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
64218         stdio take care of replacement.
64219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64220         * modules/stdio (Makefile.am): Substitute them.
64221         * lib/stdio.in.h (rename): Declare replacement.
64222         * lib/rename.c (includes): Allow cross-compilation to non-windows
64223         machines.
64224         * doc/posix-functions/rename.texi (rename): Improve
64225         documentation.
64227         stdio: sort witness names
64228         * modules/stdio (Makefile.am): Sort replacements.
64229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64230         * lib/stdio.in.h: Likewise.
64232         getcwd: minor cleanups
64233         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
64234         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
64236         openat: provide more convenience names
64237         * modules/faccessat (configure.ac): Add C witness.
64238         * lib/unistd.in.h (readlinkat): Fix typo.
64239         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
64240         convenience wrappers.
64241         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
64242         wrappers in syntax checks.
64244 2009-09-06  Eric Blake  <ebb9@byu.net>
64246         doc: fix comments in recent patches
64247         * lib/faccessat.c: Mention correct function.
64248         * lib/fchmodat.c: Likewise.
64249         * lib/fchownat.c: Likewise.
64250         * lib/symlinkat.c: Likewise.
64251         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
64252         constants.
64254         faccessat, symlinkat: continue cleanup of previous patch
64255         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
64256         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64257         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
64258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
64259         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
64260         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
64261         set.
64263 2009-09-06  Bruno Haible  <bruno@clisp.org>
64265         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
64266         (fstatat): Declare if GNULIB_FSTATAT is set.
64267         (mkdirat): Declare if GNULIB_MKDIRAT is set.
64268         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
64269         (unlinkat): Declare if GNULIB_UNLINKAT is set.
64270         * modules/fcntl-h (Files): Remove m4/openat.m4.
64271         * modules/sys_stat (Files): Remove m4/openat.m4.
64272         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
64273         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
64274         * modules/unistd (Files): Remove m4/openat.m4.
64275         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
64276         GNULIB_OPENAT.
64277         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
64278         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
64279         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
64280         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
64281         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
64282         gl_OPENAT_DEFAULTS.
64283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
64284         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
64285         Don't require gl_OPENAT_DEFAULTS.
64286         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
64287         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
64288         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
64289         (gl_OPENAT_DEFAULTS): Remove macro.
64291 2009-09-06  Bruno Haible  <bruno@clisp.org>
64293         * modules/openat (configure.ac): Remove unneeded witness.
64295 2009-09-06  Bruno Haible  <bruno@clisp.org>
64297         Set errno to ENOSYS when a function is entirely unsupported.
64298         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
64299         EOPNOTSUPP.
64300         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
64301         * modules/chown (Depends-on): Remove errno.
64303 2009-09-06  Bruno Haible  <bruno@clisp.org>
64305         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
64307 2009-09-06  Bruno Haible  <bruno@clisp.org>
64309         * lib/sys_stat.in.h: Fix preprocessor command indentation.
64311 2009-09-06  Ben Pfaff  <blp@gnu.org>
64312             Bruno Haible  <bruno@clisp.org>
64314         Work around a glibc bug in strtok_r.
64315         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
64316         Undefine if UNDEFINE_STRTOK_R is set.
64317         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
64318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64319         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
64320         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
64321         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
64322         UNDEFINE_STRTOK_R.
64323         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
64325 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64327         exclude: minor fix
64328         * lib/exclude.c: Include wctype.h
64330 2009-09-06  Akim Demaille  <demaille@gostai.com>
64332         bootstrap: improve error message
64333         * build-aux/bootstrap (find_tool): Upon failure, report the list
64334         of candidates.
64335         Honor the initial value of the envvar.
64337 2009-09-05  Eric Blake  <ebb9@byu.net>
64339         symlinkat: new module
64340         * modules/symlinkat: New file.
64341         * lib/symlinkat.c: Likewise.
64342         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
64343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64344         * modules/unistd (Makefile.am): Use them.
64345         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
64346         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
64347         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
64348         * MODULES.html.sh (File system functions): Mention module.
64349         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
64350         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64351         * modules/symlinkat-tests: New test.
64352         * tests/test-symlinkat.c: Likewise.
64354         test-openat-safer: add more checks
64355         * tests/test-openat-safer.c (main): Check more code paths.
64357 2009-09-05  Jim Meyering  <meyering@redhat.com>
64359         syntax-check: detect unnecessary inclusion of openat.h
64360         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
64362 2009-09-05  Bruno Haible  <bruno@clisp.org>
64364         Support towlower, towupper.
64365         * doc/posix-functions/towlower.texi: Mention module wctype.
64366         * doc/posix-functions/towupper.texi: Likewise.
64367         * lib/wctype.in.h (towlower, towupper): New functions.
64368         * tests/test-wctype.c: Include stdio.h, stdlib.h.
64369         (ASSERT): New macro.
64370         (e): New variable.
64371         (main): Test also towlower, towupper. Test WEOF argument.
64372         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
64374 2009-09-05  Bruno Haible  <bruno@clisp.org>
64376         Fix conversion behaviour when the input is invalid.
64377         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
64378         mark occurring in first pass of indirect conversion.
64379         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
64380         input.
64381         Found by clang's static analyzer.
64383 2009-09-05  Bruno Haible  <bruno@clisp.org>
64385         * tests/test-striconveh.c (main): Test indirect conversion on platforms
64386         where direct conversion is possible.
64388 2009-09-04  Eric Blake  <ebb9@byu.net>
64390         openat: fail with ENOENT on empty name
64391         * lib/openat-proc.c (openat_proc_name): Special-case the empty
64392         buffer.
64394         link-follow: fix logic bug in prior patch
64395         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
64396         reversed sense of yes and no in prior patch.  Avoid confusing
64397         compilation failure with desired semantics.
64399         link-follow: accommodate mingw and cross-compilation
64400         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
64401         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
64402         cross-compilation results to -1, to make linkat easier to
64403         implement when cross-compiling.  Trivially support mingw.
64404         * modules/link-follow (configure.ac): Call new name.
64405         * NEWS: Mention this.
64407 2009-09-03  Eric Blake  <ebb9@byu.net>
64409         faccessat: compile replacement
64410         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
64411         needed.
64413         fts: fix compilation error
64414         * lib/fts.c (includes): Re-add "openat.h", for
64415         openat_needs_fchdir.
64417         faccessat: new module
64418         * modules/faccessat: New file.
64419         * lib/faccessat.c: Likewise.
64420         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
64421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64422         * modules/unistd (Makefile.am): Use it.
64423         * lib/unistd.in.h (faccessat): Declare it.
64424         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
64425         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
64426         * MODULES.html.sh (File system functions): Mention it.
64427         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
64428         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
64430         euidaccess: prefer POSIX over non-standard implementation
64431         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
64432         * lib/euidaccess.c (euidaccess): Use it if available.
64434         openat: make template easier to use
64435         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
64436         AT_FUNC_F2 to be undefined.
64437         (VALIDATE_FLAG): New macro; use it to reject bad flags.
64438         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
64439         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
64440         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
64441         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
64442         Likewise.
64443         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
64444         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
64445         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
64446         Likewise.
64448         openat: declare in POSIX headers
64449         * NEWS: Mention this.
64450         * modules/openat (configure.ac): Declare witnesses.
64451         (Depends-on): Add fcntl-h, sys_stat, unistd.
64452         (Include): Mention correct headers.
64453         * modules/fcntl-h (Depends-on): Add link-warning.
64454         (Files): Add openat.m4.
64455         (Makefile.am): Substitute witnesses.
64456         * modules/sys_stat (Files, Makefile.am): Likewise.
64457         * modules/unistd (Files, Makefile.am): Likewise.
64458         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
64459         (gl_OPENAT_DEFAULTS): New macro.
64460         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
64461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
64462         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
64463         (SYS_STAT_H): Remove unused variable.
64464         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
64465         * lib/fcntl--.h (includes): Remove unneeded header.
64466         * lib/openat-safer.c (includes): Likewise.
64467         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
64468         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
64469         appropriate headers.
64470         (__OPENAT_PREFIX): Delete.
64471         * lib/fcntl.in.h (openat): Provide declaration.
64472         (AT_FDCWD): Fix Solaris bug.
64473         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
64474         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
64475         * lib/fchmodat.c (includes):  Adjust to find declaration.
64476         * lib/fchownat.c (includes): Likewise.
64477         * lib/mkdirat.c (includes): Likewise.
64478         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
64479         still visible.
64481 2009-09-02  Eric Blake  <ebb9@byu.net>
64483         errno: use consistently
64484         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
64485         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
64486         * lib/canonicalize.c (ELOOP): Likewise.
64487         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
64488         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
64489         * lib/lchown.c (EOPNOTSUPP): Likewise.
64490         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
64491         * lib/savewd.c (ESTALE): Likewise.
64492         * lib/settime.c (ENOSYS): Likewise.
64493         * lib/utimens.c (ENOSYS): Likewise.
64494         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
64495         * lib/chdir-safer.c (ELOOP): Likewise.
64496         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
64497         * modules/c-stack (Depends-on): Add errno.
64498         * modules/canonicalize (Depends-on): Likewise.
64499         * modules/chdir-safer (Depends-on): Likewise.
64500         * modules/fdopendir (Depends-on): Likewise.
64501         * modules/inet_ntop (Depends-on): Likewise.
64502         * modules/inet_pton (Depends-on): Likewise.
64503         * modules/lchown (Depends-on): Likewise.
64504         * modules/openat (Depends-on): Likewise.
64505         * modules/savewd (Depends-on): Likewise.
64506         * modules/settime (Depends-on): Likewise.
64507         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
64509         fts: avoid leaking fds
64510         * modules/fts (Depends-on): Add cloexec.
64511         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
64512         flag.
64514         fts: make directory fds more robust
64515         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
64516         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
64518         backupfile, chdir-long, fts, savedir: make safer
64519         * lib/backupfile.c (includes): Use "dirent--.h", since
64520         numbered_backup can write to stderr during readdir.
64521         * lib/savedir.c (includes): Likewise.
64522         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
64523         emulation can write to stderr on failure.
64524         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
64525         * lib/getcwd.c: Document why opendir_safer is unused.
64526         * lib/glob.c: Likewise.
64527         * lib/scandir.c: Likewise.
64528         * lib/openat-proc.c: Likewise, for open_safer.
64529         * modules/backupfile (Depends-on): Add dirent-safer.
64530         * modules/savedir (Depends-on): Likewise.
64531         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
64532         * modules/chdir-long (Depends-on): Add openat-safer.
64534         openat-safer: new module
64535         * modules/openat-safer: New file.
64536         * lib/openat-safer.c: Likewise.
64537         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
64538         * lib/fcntl-safer.h (openat_safer): Declare.
64539         * lib/fcntl--.h (openat): Override.
64540         * MODULES.html.sh (File descriptor based I/O): Mention it.
64541         * lib/openat.h: Add double-inclusion guards.
64542         * lib/openat.c (includes): Only include "fcntl-safer.h", not
64543         "fcntl--.h", so we can implement openat.
64544         * modules/openat-safer-tests: New test.
64545         * tests/test-openat-safer.c: New file.
64547         dirent-safer: new module
64548         * modules/dirent-safer: New file.
64549         * lib/dirent--.h: Likewise.
64550         * lib/dirent-safer.h: Likewise.
64551         * lib/opendir-safer.c: Likewise.
64552         * m4/dirent-safer.m4: Likewise.
64553         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
64554         * modules/dirent-safer-tests: New test.
64555         * tests/test-dirent-safer.c: New file.
64556         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
64558         fdopendir: optimize on mingw
64559         * lib/unistd.in.h (_gl_directory_name): New prototype.
64560         * lib/fchdir.c (_gl_directory_name): Implement it.
64561         (fchdir): Use it to simplify implementation.
64562         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
64563         fchdir, when available, to avoid calling [f]chdir().
64565         fdopendir: split into its own module
64566         * lib/openat.c (fdopendir): Move...
64567         * lib/fdopendir.c: ...into new file.
64568         * modules/fdopendir: New module.
64569         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
64570         * modules/openat (Depends-on): Add fdopendir.
64571         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
64572         fdopendir here.
64573         * modules/savedir (Depends-on): Only need fdopendir, not full
64574         openat.
64575         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
64576         * lib/openat.h (fdopendir): Drop prototype.
64577         * lib/dirent.in.h (fdopendir): Provide prototype.
64578         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
64579         * modules/dirent (Makefile.am): Substitute them.
64580         * MODULES.html.sh (File system functions): Mention it.
64581         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
64582         * modules/fdopendir-tests: New file.
64583         * tests/test-fdopendir.c: Likewise.
64585         fchdir: use more consistent macro convention
64586         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
64587         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
64588         REPLACE_FCHDIR, rather than relying on config.h macros.
64589         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
64590         inside a single make-time REPLACE_FCHDIR block, rather than using
64591         the config.h FCHDIR_REPLACEMENT.
64592         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
64593         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
64594         Manage fstat replacement.
64595         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
64596         REPLACE_FCHDIR.
64597         * modules/sys_stat (Files): Add m4/unistd_h.m4.
64598         (Makefile.am): Substitute REPLACE_FCHDIR.
64599         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
64600         FCHDIR_REPLACEMENT.
64601         * lib/dup-safer.c (dup_safer): Likewise.
64602         * lib/dup2.c (rpl_dup2): Likewise.
64603         * lib/dup3.c (rpl_dup3): Likewise.
64604         * lib/open.c (rpl_open): Likewise.
64606         fchdir: simplify error handling, and support dup3
64607         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
64608         stdbool, malloc-posix, realloc-posix.
64609         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
64610         (ensure_dirs_slot): Return false on allocation failure.
64611         (rpl_dup2): Delete.
64612         (_gl_register_dup): New function.
64613         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
64614         (_gl_register_fd): Close fd on allocation failure.
64615         * lib/fcntl.in.h (_gl_register_fd): Update signature.
64616         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
64617         prototype.
64618         (rpl_dup2_fchdir): Delete prototype.
64619         * lib/open.c (open): Update caller.
64620         * lib/dup2.c (dup2): Track fchdir metadata.
64621         * lib/dup3.c (dup3): Likewise.
64622         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
64623         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
64625 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64627         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
64628         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
64629         don't pass arguments to AC_OUTPUT.
64631 2009-09-02  Bruno Haible  <bruno@clisp.org>
64633         * modules/mkdtemp (License): Relicense under LGPLv2+.
64634         Reported by Paolo Bonzini.
64636 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64638         Replace uses of obsolete autoconf macros in Jim's modules.
64639         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
64640         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
64641         can evoke a warning from autoconf when run with -Wobsolete
64642         enabled.  They were declared obsolete for good reasons (see
64643         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
64644         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
64645         should not continue using the deprecated macros.
64646         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
64647         obsolete Autoconf macros with modern counterparts.
64648         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64649         * m4/dos.m4 (gl_AC_DOS): Likewise.
64650         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
64651         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
64652         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
64653         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
64654         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
64655         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
64656         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
64657         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
64658         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
64659         Likewise.
64660         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
64661         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64662         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
64663         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
64664         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64665         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64667 2009-09-01  Eric Blake  <ebb9@byu.net>
64669         fchdir: fix off-by-one bug in previous patch
64670         * lib/fchdir.c (rpl_fstat): Use correct bounds.
64671         (_gl_unregister_fd): Delete useless if.
64673 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
64675         maint.mk: sort the list of syntax-check rules
64676         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
64677         easier to get a sense of progress when the rules are run sequentially
64678         and take a long time.
64680 2009-09-01  Simon Josefsson  <simon@josefsson.org>
64682         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
64683         * modules/netinet_in: Likewise.
64684         * modules/sys_file: Likewise.
64685         * modules/sys_ioctl: Likewise.
64686         * modules/sys_select: Likewise.
64687         * modules/sys_socket: Likewise.
64688         * modules/sys_stat: Likewise.
64689         * modules/sys_time: Likewise.
64690         * modules/sys_times: Likewise.
64691         * modules/sys_utsname: Likewise.
64692         * modules/sys_wait: Likewise.
64694 2009-09-01  Jim Meyering  <meyering@redhat.com>
64696         fts: help ensure that return values are not ignored
64697         * lib/fts_.h (__GNUC_PREREQ): Define.
64698         (__attribute_warn_unused_result__): Define.
64699         (fts_children, fts_close, fts_open, fts_read): Declare with
64700         __attribute_warn_unused_result__.
64702         fts: fts_close now fails also when closing a dir file descriptor fails
64703         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
64704         and propagate to caller, along with errno.
64706         announce-gen: correct formatting in --help output
64707         * build-aux/announce-gen (usage): Move the one-line description in
64708         --help output "up", to where it belongs, just after Usage:.
64710 2009-08-31  Eric Blake  <ebb9@byu.net>
64712         fchdir: port to mingw
64713         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
64714         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
64715         opened, then use a substitute.
64716         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
64717         replacement.
64718         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
64719         (_gl_register_fd): No need to check stat if open already filters
64720         all directories.
64721         (fchdir): Fix error condition to match POSIX.
64722         * modules/fchdir (Depends-on): Add sys_stat.
64723         * doc/posix-functions/open.texi (open): Document the limitation.
64724         * modules/fchdir-tests: New file.
64725         * tests/test-fchdir.c: Likewise.
64727         canonicalize: allow cross-testing from cygwin to mingw
64728         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
64729         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
64730         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
64731         Likewise.
64732         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
64733         target does not support symlinks.
64734         * tests/test-canonicalize-lgpl.sh: Likewise.
64736         chown: avoid compilation warning on mingw
64737         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
64738         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
64739         mingw.
64740         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
64741         * modules/chown (Depends-on): Add errno.
64743 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
64745         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
64746         command.
64748 2009-08-31  Jim Meyering  <meyering@redhat.com>
64750         canonicalize: remove useless initialization
64751         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
64752         initialization of local, "end".
64754 2009-08-30  Bruno Haible  <bruno@clisp.org>
64756         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
64757         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
64758         ENOSYS.
64760 2009-08-30  Bruno Haible  <bruno@clisp.org>
64762         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
64763         /usr/xpg4/bin/tr when it exists.
64764         * tests/test-pipe-filter-gi1.sh: Likewise.
64766 2009-08-30  Bruno Haible  <bruno@clisp.org>
64768         Work around deficient /usr/bin/id program on Solaris.
64769         * tests/test-file-has-acl.sh (ID): New variable.
64770         * tests/test-set-mode-acl.sh (ID): Likewise.
64771         * tests/test-copy-acl.sh (ID): Likewise.
64772         * tests/test-copy-file.sh (ID): Likewise.
64774 2009-08-30  Bruno Haible  <bruno@clisp.org>
64776         New module 'xstriconveh'.
64777         * lib/xstriconveh.h: New file.
64778         * lib/xstriconveh.c: New file.
64779         * modules/xstriconveh: New file.
64781 2009-08-30  Bruno Haible  <bruno@clisp.org>
64783         Make it easier to use mem_cd_iconveh.
64784         * lib/striconveh.h (iconveh_t): New type.
64785         (iconveh_open, iconveh_close): New declarations.
64786         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
64787         with a single 'const iconveh_t *' argument.
64788         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
64789         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
64790         with a single 'const iconveh_t *' argument.
64791         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
64792         * tests/test-striconveh.c (main): Update.
64793         * NEWS: Mention the change.
64795 2009-08-30  Bruno Haible  <bruno@clisp.org>
64797         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
64798         problem.
64800 2009-08-30  Bruno Haible  <bruno@clisp.org>
64802         Work around iconv_open problem on Solaris.
64803         * lib/iconv_open-solaris.gperf: New file.
64804         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
64805         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
64806         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
64807         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
64808         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
64809         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
64811 2009-08-29  Jim Meyering  <meyering@redhat.com>
64813         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
64814         * top/maint.mk (cvs-check): Remove target; it was just an alias
64815         to the better-named vc-diff-check.
64816         (maintainer-distcheck): Remove rule.  It was used only from
64817         the (alpha/beta/major) target, and all of its commands but one
64818         were coreutils-specific.
64819         (vc-dist): Remove rule.
64820         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
64821         Run vc-diff-check, not vc-dist.
64822         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
64824 2009-08-27  Bruno Haible  <bruno@clisp.org>
64826         * tests/test-bitrotate.c (main): Remove test that uses a shift count
64827         of 0.
64829 2009-08-27  Bruno Haible  <bruno@clisp.org>
64831         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
64832         compilers.
64833         * doc/func.texi: Document the SunPRO C bug.
64835 2009-08-27  Bruno Haible  <bruno@clisp.org>
64837         Fix link error on Solaris.
64838         * tests/test-parse-duration.c (xstrdup): Remove function.
64840 2009-08-26  Pádraig Brady  <P@draigbrady.com>
64842         ignore-value: handle pointer types, too
64843         * lib/ignore-value.h (__attribute__): Remove definition.
64844         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
64845         of a more concise and more-often effective "(void) i" statement.
64846         (ignore_ptr): New function to suppress warnings from functions that
64847         return pointers, and to make it explicit that one function doesn't
64848         handle all cases.
64850 2009-08-25  Bruno Haible  <bruno@clisp.org>
64852         dup2: work around a Linux bug.
64853         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
64854         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
64855         * doc/posix-functions/dup2.texi: Mention the Linux bug.
64856         Reported by Simon Josefsson.
64858 2009-08-25  Jim Meyering  <meyering@redhat.com>
64860         libguestfs uses gnulib
64861         * users.txt: Add libguestfs.
64863 2009-08-24  Eric Blake  <ebb9@byu.net>
64865         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
64866         * lib/pipe2.c (includes): Add binary-io.h.
64867         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
64869 2009-08-24  Bruno Haible  <bruno@clisp.org>
64871         Tolerate declared but missing accept4 syscall.
64872         * lib/accept4.c (accept4): Invoke original accept4 function first, if
64873         available.
64874         * lib/sys_socket.in.h (accept4): If the function is already present,
64875         override it.
64876         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
64877         * modules/accept4 (Makefile.am): Compile accept4.c always.
64878         Reported by Paolo Bonzini and Eric Blake.
64880 2009-08-23  Bruno Haible  <bruno@clisp.org>
64882         New module 'accept4'.
64883         * lib/sys_socket.in.h (accept4): New declaration.
64884         * lib/accept4.c: New file.
64885         * m4/accept4.m4: New file.
64886         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
64887         GNULIB_ACCEPT4, HAVE_ACCEPT4.
64888         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
64889         HAVE_ACCEPT4.
64890         * modules/accept4: New file.
64891         * doc/glibc-functions/accept4.texi: Mention the new module.
64893 2009-08-24  Jim Meyering  <meyering@redhat.com>
64895         progname: also set global program_invocation_name, when possible
64896         Before this change, a libtool-enabled program that calls glibc's
64897         error function would report the program name as
64898         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
64899         * modules/progname (configure.ac): Check for a declaration of
64900         program_invocation_name.
64901         * lib/progname.c:  Include <errno.h>.
64902         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
64903         Set program_invocation_name.
64905 2009-08-23  Bruno Haible  <bruno@clisp.org>
64907         * lib/dup3.c: Include <string.h>.
64909 2009-08-23  Bruno Haible  <bruno@clisp.org>
64911         * lib/dup3.c (dup3): Test only once whether the system actually exists.
64912         * lib/pipe2.c (pipe2): Likewise.
64913         Suggested by Eric Blake.
64915 2009-08-23  Bruno Haible  <bruno@clisp.org>
64917         Tolerate declared but missing dup3 syscall.
64918         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
64919         * lib/unistd.in.h (dup3): If the function is already present,
64920         override it.
64921         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
64922         * modules/dup3 (Makefile.am): Compile dup3.c always.
64923         Reported by Paolo Bonzini.
64925 2009-08-23  Bruno Haible  <bruno@clisp.org>
64927         Tolerate declared but missing pipe2 syscall.
64928         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
64929         available.
64930         * lib/unistd.in.h (pipe2): If the function is already present,
64931         override it.
64932         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
64933         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
64934         Reported by Paolo Bonzini.
64936 2009-08-23  Bruno Haible  <bruno@clisp.org>
64938         * lib/pipe2.c (pipe2): Move #ifs inside function.
64940 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
64942         quotearg: document limitations of quote_these_too
64943         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
64944         those limitations are created.
64945         * lib/quotearg.h (set_char_quoting): Document that digits and
64946         letters that are special after backslash are not permitted.
64947         (quotearg_char): Cross-reference set_char_quoting documentation.
64949 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
64951         quotearg: implement custom_quoting_style
64952         * lib/quotearg.c: (struct quoting_options): Add left_quote and
64953         right_quote fields.
64954         (set_custom_quoting): New public function.
64955         (quotearg_buffer_restyled): Add left_quote and right_quote
64956         arguments, handle them very much like locale quoting, and update
64957         all uses.
64958         (quotearg_n_custom): New public function.
64959         (quotearg_n_custom_mem): New public function.
64960         (quotearg_custom): New public function.
64961         (quotearg_custom_mem): New public function.
64962         * lib/quotearg.h: Prototype and document new public functions.
64963         (enum quoting_style): For escape_quoting_style and
64964         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
64965         ignored even though they're otherwise like c_quoting_style.
64966         Add custom_quoting_style member and document with comparison to
64967         clocale_quoting_style.
64968         * tests/test-quotearg.c (custom_quotes): New array.
64969         (custom_results): New array.
64970         (main): Extend to test custom quoting.
64972 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
64974         quotearg: fix right quote escaping when it's in quote_these_too
64975         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
64976         quote, be sure to prepend only one backslash.
64977         * tests/test-quotearg.c (use_quote_double_quotes): New function.
64978         (main): Test it.
64980 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
64982         quotearg-tests: test escaping of embedded locale quotes
64983         * tests/test-quotearg.c (struct result_strings): Add member for
64984         new input.
64985         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
64986         (inputs): Add new input.
64987         (results_g): Add expected results.
64988         (flag_results): Likewise.
64989         (locale_results): Likewise.
64990         (compare_strings): Check those.
64992 2009-08-23  Bruno Haible  <bruno@clisp.org>
64994         Tests for module 'dup3'.
64995         * modules/dup3-tests: New file.
64996         * tests/test-dup3.c: New file.
64998         New module 'dup3'.
64999         * lib/unistd.in.h (dup3): New declaration.
65000         * lib/dup3.c: New file.
65001         * m4/dup3.m4: New file.
65002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
65003         HAVE_DUP3.
65004         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
65005         * modules/dup3: New file.
65006         * doc/glibc-functions/dup3.texi: Mention the new module.
65008 2009-08-23  Bruno Haible  <bruno@clisp.org>
65010         Tweak the dup2 test.
65011         * tests/test-dup2.c (main): Create the test file empty. Verify that an
65012         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
65013         the test file is still empty. Fix argument order of lseek.
65015 2009-08-23  Bruno Haible  <bruno@clisp.org>
65017         Avoid test link errors when the modules getopt-gnu, gettext are used.
65018         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
65019         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65021 2009-08-23  Bruno Haible  <bruno@clisp.org>
65023         Fix getdtablesize() on mingw.
65024         * lib/getdtablesize.c (getdtablesize): Implement differently.
65025         * lib/unistd.in.h (getdtablesize): Improve comment.
65027 2009-08-23  Bruno Haible  <bruno@clisp.org>
65029         New module 'mkostemp'.
65030         Based on Ulrich Drepper's 2007-08-10 change in glibc.
65031         * lib/stdlib.in.h (mksotemp): New declaration.
65032         * lib/mkostemp.c: New file, from glibc with modifications.
65033         * lib/tempname.h (GT_FILE): Remove outdated comment.
65034         (gen_tempname): Add flags argument.
65035         * lib/tempname.c (__GT_BIGFILE): Remove macro.
65036         (__GT_FILE): Map to 1.
65037         (small_open, large_open): Remove macros.
65038         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
65039         * lib/mkstemp.c (mkstemp): Update.
65040         * lib/mkdtemp.c (mkdtemp): Likewise.
65041         * m4/mkostemp.m4: New file.
65042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
65043         HAVE_MKOSTEMP.
65044         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
65045         HAVE_MKOSTEMP.
65046         * modules/mkostemp: New file, based on modules/mkstemp.
65047         * doc/glibc-functions/mkostemp.texi: Mention the new module.
65048         * NEWS: Mention the change.
65050 2009-08-23  Bruno Haible  <bruno@clisp.org>
65052         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
65053         Reported by Eric Blake.
65055 2009-08-23  Bruno Haible  <bruno@clisp.org>
65057         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
65058         Reported by Eric Blake.
65060 2009-08-23  Bruno Haible  <bruno@clisp.org>
65062         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
65063         * modules/pipe2 (Depends-on): Likewise.
65065 2009-08-23  Eric Blake  <ebb9@byu.net>
65067         fcntl-h: add O_TTY_INIT support
65068         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
65069         * tests/test-fcntl-h.c (o): Test it.
65070         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65072         fcntl-h: rename from fcntl, in preparation for fcntl(2)
65073         * modules/fcntl: Move <fcntl.h> header replacement...
65074         * modules/fcntl-h: ...to new name, so as not to collide with
65075         like-named function.
65076         * tests/test-fcntl.c: Rename...
65077         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
65078         * modules/fcntl-tests: Rename...
65079         * modules/fcntl-h-tests: ...to this.  Update test file name.
65080         * modules/chdir-long (Depends-on): Update clients.
65081         * modules/chdir-safer (Depends-on): Likewise.
65082         * modules/fcntl-safer (Depends-on): Likewise.
65083         * modules/fts (Depends-on): Likewise.
65084         * modules/mkancesdirs (Depends-on): Likewise.
65085         * modules/mkdir-p (Depends-on): Likewise.
65086         * modules/open (Depends-on): Likewise.
65087         * modules/savewd (Depends-on): Likewise.
65088         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
65089         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65091 2009-08-22  Bruno Haible  <bruno@clisp.org>
65093         * modules/binary-io (License): Relicense under LGPL.
65094         * modules/pipe2 (License): Likewise.
65096 2009-08-22  Bruno Haible  <bruno@clisp.org>
65098         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
65099         return value.
65100         * lib/pipe-filter-gi.c (filter_init): Likewise.
65101         Reported by Eric Blake.
65103 2009-08-22  Bruno Haible  <bruno@clisp.org>
65105         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
65106         * modules/pipe (Depends-on): Add pipe2.
65108 2009-08-22  Bruno Haible  <bruno@clisp.org>
65110         Tests for module 'pipe2'.
65111         * modules/pipe2-tests: New file.
65112         * tests/test-pipe2.c: New file.
65114         New module 'pipe2'.
65115         * lib/unistd.in.h (pipe2): New declaration.
65116         * lib/pipe2.c: New file.
65117         * m4/pipe2.m4: New file.
65118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
65119         HAVE_PIPE2.
65120         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
65121         * modules/pipe2: New file.
65122         * doc/glibc-functions/pipe2.texi: Mention the new module.
65124 2009-08-22  Bruno Haible  <bruno@clisp.org>
65126         Reference some new glibc functions.
65127         * doc/glibc-functions/accept4.texi: New file.
65128         * doc/glibc-functions/dup3.texi: New file.
65129         * doc/glibc-functions/mkostemp.texi: New file.
65130         * doc/glibc-functions/pipe2.texi: New file.
65131         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
65132         (Glibc sys/socket.h): Refer to accept4.
65133         (Glibc unistd.h): Refer to dup3, pipe2.
65134         Reported by Eric Blake.
65136 2009-08-22  Jim Meyering  <meyering@redhat.com>
65137             Bruno Haible  <bruno@clisp.org>
65139         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
65140         This makes it so packages using automake-1.11's silent-rules option
65141         can print e.g., a single "GEN    configmake.h" line, rather than
65142         the 30+ statements that perform the job.  If you want to see the
65143         actual commands, you can still run "make V=1".
65144         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
65145         so that make output is abbreviated when those variables are defined
65146         appropriately.
65147         * modules/argz: Likewise.
65148         * modules/arpa_inet: Likewise.
65149         * modules/byteswap: Likewise.
65150         * modules/configmake: Likewise.
65151         * modules/dirent: Likewise.
65152         * modules/errno: Likewise.
65153         * modules/fcntl: Likewise.
65154         * modules/float: Likewise.
65155         * modules/fnmatch: Likewise.
65156         * modules/getopt-posix: Likewise.
65157         * modules/glob: Likewise.
65158         * modules/iconv_open: Likewise.
65159         * modules/inttypes: Likewise.
65160         * modules/localcharset: Likewise.
65161         * modules/locale: Likewise.
65162         * modules/math: Likewise.
65163         * modules/netdb: Likewise.
65164         * modules/netinet_in: Likewise.
65165         * modules/poll: Likewise.
65166         * modules/posix_spawnp-tests: Likewise.
65167         * modules/sched: Likewise.
65168         * modules/search: Likewise.
65169         * modules/selinux-h: Likewise.
65170         * modules/signal: Likewise.
65171         * modules/spawn: Likewise.
65172         * modules/stdarg: Likewise.
65173         * modules/stdbool: Likewise.
65174         * modules/stddef: Likewise.
65175         * modules/stdint: Likewise.
65176         * modules/stdio: Likewise.
65177         * modules/stdlib: Likewise.
65178         * modules/string: Likewise.
65179         * modules/strings: Likewise.
65180         * modules/sys_file: Likewise.
65181         * modules/sys_ioctl: Likewise.
65182         * modules/sys_select: Likewise.
65183         * modules/sys_socket: Likewise.
65184         * modules/sys_stat: Likewise.
65185         * modules/sys_time: Likewise.
65186         * modules/sys_times: Likewise.
65187         * modules/sys_utsname: Likewise.
65188         * modules/sys_wait: Likewise.
65189         * modules/sysexits: Likewise.
65190         * modules/time: Likewise.
65191         * modules/unistd: Likewise.
65192         * modules/wchar: Likewise.
65193         * modules/wctype: Likewise.
65195 2009-08-22  Jim Meyering  <meyering@redhat.com>
65197         announce-gen: detect write failure
65198         * build-aux/announce-gen: Add Coda at end.
65199         Remove equivalent-but-more-verbose block at top.
65201 2009-08-19  Akim Demaille  <demaille@gostai.com>
65203         bootstrap: --help to stdout.
65204         * bootstrap (usage): Don't send --help to stderr.
65205         Use a here doc instead of a long string.
65207 2009-08-21  Eric Blake  <ebb9@byu.net>
65209         test-popen-safer: split from test-popen
65210         * tests/test-popen.c (main): Move...
65211         * tests/test-popen.h: ...into new file.
65212         * tests/test-popen-safer2.c: New file.
65213         * modules/popen-tests (Files): Add test-popen.h.
65214         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
65215         Suggested by Bruno Haible.
65217         test-fcntl-safer: split from test-open
65218         * tests/test-open.c (main): Move...
65219         * tests/test-open.h: ...into new file.
65220         * tests/test-fcntl-safer.c: New file.
65221         * modules/open-tests (Files): Add test-open.h.
65222         * modules/fcntl-safer-tests: New file.
65223         Suggested by Bruno Haible.
65225         test-fopen-safer: split from test-fopen
65226         * tests/test-fopen.c (main): Move...
65227         * tests/test-fopen.h: ...into new file.
65228         * tests/test-fopen-safer.c: New file.
65229         * modules/fopen-tests (Files): Add test-fopen.h.
65230         * modules/fopen-safer-tests: New file.
65231         Suggested by Bruno Haible.
65233 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65235         popen-safer: test O_CLOEXEC at run-time.
65236         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
65238 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65240         fcntl: move more flags to the header
65241         * lib/cloexec.c: Do not define FD_CLOEXEC here.
65242         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
65243         * lib/fcntl.in.h: Do both things here.
65245 2009-08-21  Jim Meyering  <meyering@redhat.com>
65247         consistently remove $@-t before redirecting to it
65248         * modules/argz: Remove $@-t and $@ before redirecting to the former.
65249         * modules/alloca-opt: Likewise.
65250         * modules/byteswap: Likewise.
65251         * modules/fnmatch: Likewise.
65252         * modules/getopt-posix: Likewise.
65253         * modules/glob: Likewise.
65254         * modules/poll: Likewise.
65255         * modules/posix_spawnp-tests: Likewise.
65256         * modules/sys_socket: Likewise.
65257         * modules/sysexits: Likewise.
65259 2009-08-21  Eric Blake  <ebb9@byu.net>
65261         popen: simplify access to original popen
65262         * lib/popen.c (rpl_popen): No need to worry about popen being a
65263         macro.
65264         Reported by Bruno Haible.
65266 2009-08-20  Eric Blake  <ebb9@byu.net>
65268         build: avoid some compiler warnings
65269         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
65270         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
65271         type.
65272         (new_exclude_segment, excluded_file_pattern_p)
65273         (excluded_file_name_p): Reduce scope.
65274         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
65275         old-style declaration.
65277 2009-08-20  Simon Josefsson  <simon@josefsson.org>
65279         * tests/test-exclude1.sh: Handle Windows EOL.
65280         * tests/test-exclude2.sh: Likewise.
65281         * tests/test-exclude3.sh: Likewise.
65282         * tests/test-exclude4.sh: Likewise.
65283         * tests/test-exclude5.sh: Likewise.
65284         * tests/test-exclude6.sh: Likewise.
65285         * tests/test-exclude7.sh: Likewise.
65287 2009-08-19  Akim Demaille  <demaille@gostai.com>
65289         bootstrap: find sha1sum when named gsha1sum.
65290         * bootstrap (find_tool): New.
65291         ($SHA1SUM): New.
65292         Use it.
65294 2009-08-20  Jim Meyering  <meyering@redhat.com>
65296         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
65297         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
65298         expression that converts "." in a file name to "\." in the resulting
65299         regexp.  Start with a dummy statement, so that prior shell variable
65300         definitions are expanded portably.  Reported by Simon Josefsson.
65302 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
65304         Fix polling for writeability of a screen buffer.
65305         * lib/poll.c: Distinguish input and screen buffers for the
65306         Win32 implementation.
65307         * lib/select.c: Likewise.
65309 2009-08-19  Eric Blake  <ebb9@byu.net>
65311         popen-safer: prevent popen from clobbering std descriptors
65312         * modules/popen-safer: New file.
65313         * lib/popen-safer.c: Likewise.
65314         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
65315         * lib/stdio--.h (popen): Provide override.
65316         * lib/stdio-safer.h (popen_safer): Provide declaration.
65317         * tests/test-popen.c (includes): Partially test this.
65318         * modules/popen-safer-tests: New file, for more tests.
65319         * tests/test-popen-safer.c: Likewise.
65320         * MODULES.html.sh (file stream based Input/Output): Mention it.
65322         tests: test some of the *-safer modules
65323         * modules/fopen-safer (Depends-on): Add fopen.
65324         * modules/fcntl-safer (Depends-on): Add fcntl.
65325         * modules/stdlib-safer (Depends-on): Add stdlib.
65326         (configure.ac): Set indicator.
65327         * modules/unistd-safer (configure.ac): Likewise.
65328         * modules/tmpfile-safer (configure.ac): Likewise.
65329         (Depends-on): Add tmpfile.
65330         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
65331         active.
65332         * tests/test-fopen.c (includes): Test safer versions when they are
65333         in use.
65334         * tests/test-open.c (includes): Likewise.
65336         popen: fix cygwin 1.5 bug when stdin closed
65337         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
65338         * modules/popen: New file.
65339         * modules/popen-tests: Likewise.
65340         * tests/test-popen.c: Likewise.
65341         * m4/popen.m4: Likewise.
65342         * lib/popen.c: Likewise.
65343         * lib/stdio.in.h (popen): New declaration.
65344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
65345         * modules/stdio (Makefile.am): Likewise.
65346         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
65348 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
65350         maint.mk: give full control over update-copyright exclusions
65351         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
65352         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
65353         (update-copyright): Don't force inclusion of top-level
65354         ChangeLog.  Don't force exclusion of all COPYING files, but make
65355         them the default exclusion instead.
65357 2009-08-16  Bruno Haible  <bruno@clisp.org>
65359         Fix test failures on Solaris 10.
65360         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
65361         tests when Solaris iconv() is used.
65362         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65363         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65364         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65365         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65366         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65368 2009-08-16  Bruno Haible  <bruno@clisp.org>
65370         Fix test failures on Solaris 10.
65371         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
65372         'tr' program and pass it as first argument.
65373         * tests/test-pipe-filter-gi1.sh: Likewise.
65374         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
65375         program as first argument.
65376         * tests/test-pipe-filter-gi1.c (main): Likewise.
65378 2009-08-16  Eric Blake  <ebb9@byu.net>
65380         fpurge: fix previous commits
65381         * modules/fpurge (Makefile.am): Make replacement conditional,
65382         partially reverting 2007-04-29 change; missed in previous
65383         attempt.
65384         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
65385         is missing.
65387 2009-08-16  Bruno Haible  <bruno@clisp.org>
65389         Clarify fpurge's effect on the file position.
65390         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
65391         * tests/test-fpurge.c (main): Make a second pass for checking the file
65392         position.
65394 2009-08-16  Bruno Haible  <bruno@clisp.org>
65396         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
65397         declaration of fpurge is missing.
65398         * tests/test-fpurge.c (main): Check that the file has not more contents
65399         than expected. Close the file before removing it.
65401 2009-08-15  Eric Blake  <ebb9@byu.net>
65403         fpurge: don't wrap working cygwin implementation
65404         * lib/fpurge.c (fpurge): Fix comment typo.
65405         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
65406         1.7 to avoid replacement.
65407         * tests/test-fpurge.c (main): Enhance test.
65409 2009-08-15  Eric Blake  <ebb9@byu.net>
65410         and Jim Meyering  <meyering@redhat.com>
65412         test-update-copyright: skip if perl is insufficient
65413         * tests/test-update-copyright.sh: Failure to run maintainer tool
65414         should not cause testsuite failure on cygwin 1.5.
65416 2009-08-14  Eric Blake  <ebb9@byu.net>
65418         doc: mention more functions added in cygwin 1.7.0
65419         * doc/posix-headers/limits.texi (limits.h): Update for recent
65420         cygwin additions.
65421         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
65422         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
65423         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
65424         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
65425         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
65427 2009-08-14  Eric Blake  <ebb9@byu.net>
65429         maint.mk: simplify update-copyright rule
65430         * top/maint.mk (update-copyright-local): Delete, and document how
65431         to do it in cfg.mk instead.
65432         (update-copyright-exclude-regexp): Delete, and document how to do
65433         it in .x-update-copyright instead.
65434         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
65435         exclude ChangeLog.
65437 2009-08-14  Bruno Haible  <bruno@clisp.org>
65439         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
65441 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65443         maint.mk: support update-copyright-env
65444         * top/maint.mk (update-copyright-env): Define place-holder.
65445         (update-copyright): Expand $(update-copyright-env) before
65446         invoking update-copyright.
65448 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65450         update-copyright: implement forced reformatting
65451         * build-aux/update-copyright: Implement and document
65452         UPDATE_COPYRIGHT_FORCE.
65453         * tests/test-update-copyright.sh: Test it.
65455 2009-08-14  Eric Blake  <ebb9@byu.net>
65456         and Bruno Haible  <bruno@clisp.org>
65458         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
65459         * tests/test-locale.c: Revert previous patch related to NULL.
65460         * tests/test-stdio.c: Likewise.
65461         * tests/test-stdlib.c: Likewise.
65462         * tests/test-string.c: Likewise.
65463         * tests/test-unistd.c: Likewise.
65464         * modules/time-tests (Depends-on): Add verify.
65465         * modules/wchar-tests (Depends-on): Likewise.
65466         * tests/test-time.c: Test for NULL compliance.
65467         * tests/test-wchar.c: Likewise.
65468         * modules/locale (Depends-on): Add stddef.
65469         * modules/stdio (Depends-on): Likewise.
65470         * modules/stdlib (Depends-on): Likewise.
65471         * modules/string (Depends-on): Likewise.
65472         * modules/time (Depends-on): Likewise.
65473         * modules/unistd (Depends-on): Likewise.
65474         * modules/wchar (Depends-on): Likewise.
65475         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
65476         * lib/stdlib.in.h (includes): Likewise.
65477         * lib/string.in.h (includes): Likewise.
65478         * lib/time.in.h (includes): Likewise.
65479         * lib/unistd.in.h (includes): Likewise.
65480         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
65481         replaced.
65482         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65483         * m4/stddef_h.m4: New file.
65484         * modules/stddef: Likewise.
65485         * lib/stddef.in.h: Likewise.
65486         * modules/stddef-tests: Likewise.
65487         * tests/test-stddef.c: Likewise.
65488         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
65489         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
65490         * doc/posix-headers/locale.texi (locale.h): Likewise.
65491         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
65492         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65493         * doc/posix-headers/string.texi (string.h): Likewise.
65494         * doc/posix-headers/time.texi (time.h): Likewise.
65495         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
65496         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
65498 2009-08-14  Eric Blake  <ebb9@byu.net>
65500         doc: improve git diff of texinfo files
65501         * .gitattributes: Add rule for *.texi files, with hint on how to
65502         use it.
65503         Copied from m4, and based on a report by Bruno Haible.
65505 2009-08-14  Bruno Haible  <bruno@clisp.org>
65507         Disable multithread support by default on Cygwin 1.5.x for real.
65508         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
65510 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
65512         update-copyright: much ado about intervals
65513         * build-aux/update-copyright: Implement and document
65514         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
65515         of copyright year intervals.
65516         Also, document UPDATE_COPYRIGHT_YEAR.
65517         * tests/test-update-copyright.sh: Test it.
65519         update-copyright: convert 2-digit to 4-digit years
65520         * build-aux/update-copyright: Implement and document.
65521         * tests/test-update-copyright.sh: Update.
65523 2009-08-14  Jim Meyering  <meyering@redhat.com>
65525         test-exclude: avoid coreutils "make check" failure
65526         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
65527         just as in test-argmatch.c.
65529 2009-08-13  Eric Blake  <ebb9@byu.net>
65531         test-dup2: fix bad assumption
65532         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
65533         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
65535         test-version-etc: fix CRLF portability issue
65536         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
65537         recognize \r.
65538         * tests/test-argp-version-etc-1.sh: Likewise.
65540         getopt: update client modules
65541         * modules/argp (Depends-on): Use getopt-gnu.
65542         * modules/git-merge-changelog (Depends-on): Likewise.
65543         * modules/long-options (Depends-on): Likewise.
65544         * modules/xstrtol (Depends-on): Likewise.
65546 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65548         * tests/test-version-etc.sh: Don't fail on different
65549         project/version.  Don't fail on CRLF differences.  Rewrite to use
65550         multiple -e instead of multiple sed forks, suggested by Eric Blake
65551         <ebb9@byu.net>.
65552         * tests/test-argp-version-etc-1.sh: Likewise.
65554 2009-08-13  Simon Josefsson  <simon@josefsson.org>
65556         * tests/test-version-etc.sh: Don't fail on different
65557         project/version.
65559 2009-08-12  Bruno Haible  <bruno@clisp.org>
65561         Tests for modules 'getopt-posix', 'getopt-gnu'.
65562         * modules/getopt-posix-tests: New file.
65563         * tests/test-getopt.c: New file.
65564         * tests/test-getopt.h: New file.
65565         * tests/test-getopt_long.h: New file.
65567         New modules 'getopt-posix', 'getopt-gnu'.
65568         * modules/getopt-gnu: New file, renamed from modules/getopt.
65569         * modules/getopt-posix: New file.
65570         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
65571         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
65572         (gl_GETOPT): Remove macro.
65573         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
65574         Disable the test against BSD systems that declare optreset. Test
65575         against mingw bug. Test against lack of support of optional arguments
65576         on many platforms.
65577         * doc/glibc-headers/getopt.texi: Update module name and list of
65578         relevant platforms.
65579         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
65580         'getopt-gnu' and more portability problems.
65581         * NEWS: Mention the changes.
65583 2009-08-12  Bruno Haible  <bruno@clisp.org>
65585         Ensure that optarg etc. get declared by <unistd.h>.
65586         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
65587         AC_USE_SYSTEM_EXTENSIONS.
65588         * modules/getopt (Depends-on): Add 'extensions'.
65590 2009-08-12  Bruno Haible  <bruno@clisp.org>
65592         Avoid test link errors.
65593         * modules/pipe-filter-ii-tests (Makefile.am): Define
65594         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
65595         * modules/pipe-filter-gi-tests (Makefile.am): Define
65596         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
65597         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65599 2009-08-12  Bruno Haible  <bruno@clisp.org>
65601         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
65602         gl_GETOPT_SUBSTITUTE before.
65603         (gl_GETOPT): Use it.
65604         * m4/argp.m4 (gl_ARGP): Update.
65605         Reported by Sergey Poznyakoff.
65607         * m4/getopt.m4: Reorder macros.
65608         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
65609         (gl_GETOPT_SUBSTITUTE): Remove macro.
65611 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65613         Minor improvement in gitlog-to-changelog
65615         * build-aux/gitlog-to-changelog: New option `--format' makes
65616         output format string configurable.
65618 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65620         Optimize exclude: use hash tables for non-wildcard patterns.
65622         * lib/exclude.c: Include hash.h and mbuiter.h
65623         (struct exclude_pattern, exclude_segment): New data types.
65624         (struct exclude): Rewrite.
65625         (fnmatch_pattern_has_wildcards): New function.
65626         (new_exclude_segment, free_exclude_segment): New functions.
65627         (excluded_file_pattern_p, excluded_file_name_p): New functions.
65628         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
65629         * lib/exclude.h (is_fnmatch_pattern): New prototype.
65630         * modules/exclude: Depend on hash and mbuiter.
65632         * modules/exclude-tests: New file.
65633         * tests/test-exclude.c: New file.
65634         * tests/test-exclude1.sh: New file.
65635         * tests/test-exclude2.sh: New file.
65636         * tests/test-exclude3.sh: New file.
65637         * tests/test-exclude4.sh: New file.
65638         * tests/test-exclude5.sh: New file.
65639         * tests/test-exclude6.sh: New file.
65640         * tests/test-exclude7.sh: New file.
65642 2009-08-12  Bruno Haible  <bruno@clisp.org>
65644         Ensure that getopt() gets declared by <unistd.h>.
65645         * lib/unistd.in.h: Conditionally include getopt.h.
65646         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
65647         Set GNULIB_UNISTD_H_GETOPT.
65648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65649         GNULIB_UNISTD_H_GETOPT.
65650         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
65652 2009-08-12  Bruno Haible  <bruno@clisp.org>
65654         Clarify logic.
65655         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
65656         gl_replace_getopt instead of GETOPT_H.
65658 2009-08-12  Bruno Haible  <bruno@clisp.org>
65660         * m4/getopt.m4: Add comments.
65662 2009-08-12  Bruno Haible  <bruno@clisp.org>
65664         Disable multithread support by default on Cygwin 1.5.x.
65665         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
65666         set gl_use_threads=no if not specified otherwise.
65668 2009-08-11  Bruno Haible  <bruno@clisp.org>
65670         Avoid compilation error on NetBSD 5.0.
65671         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
65672         * tests/test-stdio.c: Likewise.
65673         * tests/test-stdlib.c: Likewise.
65674         * tests/test-string.c: Likewise.
65675         * tests/test-unistd.c: Likewise.
65676         Reported by Greg Troxel <gdt@ir.bbn.com>
65677         at <https://savannah.gnu.org/support/?106973>.
65679 2009-08-11  Bruno Haible  <bruno@clisp.org>
65681         * modules/dup2-tests (Depends-on): Remove close.
65683         Undo 2009-07-19 commit.
65684         * modules/acl-tests (Depends-on): Remove close.
65685         * modules/binary-io-tests (Depends-on): Likewise.
65686         * modules/closein-tests (Depends-on): Likewise.
65687         * modules/flock-tests (Depends-on): Likewise.
65688         * modules/fsync-tests (Depends-on): Likewise.
65689         * modules/lseek-tests (Depends-on): Likewise.
65690         * modules/pipe-tests (Depends-on): Likewise.
65691         * modules/posix_spawn-tests (Depends-on): Likewise.
65692         * modules/posix_spawnp-tests (Depends-on): Likewise.
65693         * modules/stat-time-tests (Depends-on): Likewise.
65694         * modules/yesno-tests (Depends-on): Likewise.
65696 2009-08-10  Bruno Haible  <bruno@clisp.org>
65698         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
65700 2009-08-10  Bruno Haible  <bruno@clisp.org>
65702         Fix a gcc warning.
65703         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
65705 2009-08-10  Bruno Haible  <bruno@clisp.org>
65707         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
65708         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
65709         not only the first time.
65710         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
65711         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
65712         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
65713         is 1, not only the first time.
65715 2009-08-10  Bruno Haible  <bruno@clisp.org>
65717         Make it possible to use module 'gethostname' without module 'close'.
65718         * lib/unistd.in.h (close): Evoke a link error only if
65719         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
65720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65721         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65722         * modules/unistd (Makefile.am): Substitute
65723         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65724         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
65725         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
65726         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
65727         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65728         * modules/sys_ioctl (Makefile.am): Substitute
65729         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65730         * modules/socket (configure.ac): On native Windows, set
65731         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
65732         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
65733         Reported by Sam Steingold <sds@gnu.org>.
65735 2009-08-10  Bruno Haible  <bruno@clisp.org>
65737         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
65738         * modules/ioctl (configure.ac): Likewise.
65740 2009-08-10  Bruno Haible  <bruno@clisp.org>
65742         Avoid collision between gnulib wrapper and libintl wrapper.
65743         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
65744         already defined in intl/printf.c.
65745         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
65746         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
65748 2009-08-09  Bruno Haible  <bruno@clisp.org>
65750         Make <sys/select.h> really self-contained, also on Solaris 10.
65751         * lib/sys_select.in.h: Include <string.h>.
65752         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
65753         Solaris 10 problem.
65754         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
65755         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
65756         Reported by Jim Meyering.
65758 2009-08-09  Bruno Haible  <bruno@clisp.org>
65760         Avoid warnings from 'aclocal' that are due to a use of macro name
65761         AM_XGETTEXT_OPTION that is not defined in automake.
65762         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
65763         automake.
65764         * modules/error (configure.ac): Likewise.
65765         * modules/propername (configure.ac): Likewise.
65766         * modules/vasprintf (configure.ac): Likewise.
65767         * modules/verror (configure.ac): Likewise.
65768         * modules/xprintf (configure.ac): Likewise.
65769         * modules/xvasprintf (configure.ac): Likewise.
65771 2009-08-08  Bruno Haible  <bruno@clisp.org>
65773         Avoid compilation error in C++ mode.
65774         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
65775         Reported by Sam Steingold <sds@gnu.org>.
65777 2009-08-08  Bruno Haible  <bruno@clisp.org>
65779         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
65780         for the various Unix platforms.
65781         * doc/posix-headers/limits.texi: Update platforms list regarding
65782         HOST_NAME_MAX.
65783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65785 2009-08-07  Jim Meyering  <meyering@redhat.com>
65787         selinux-at: fix typo in a comment
65788         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
65789         Spotted by Paolo Bonzini.
65791         selinux-at: remove redundant m4 code, add documentation
65792         * modules/selinux-at (configure.ac): Remove redundant code.
65793         LIB_SELINUX is already set via the dependent module, selinux-h.
65794         (Include): Add quotes around selinux-at.h.
65795         * lib/selinux-at.h: Add documentation.
65796         Reported by Bruno Haible in
65797         http://marc.info/?l=gnulib-bug&m=124958988300749
65799 2009-08-07  Bruno Haible  <bruno@clisp.org>
65801         Avoid link error on MacOS X 10.3 and 10.4.
65802         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
65803         on non-ELF systems.
65804         * lib/argp-pv.c (argp_program_version): Likewise.
65805         Reported by Simon Josefsson.
65807 2009-08-07  Simon Josefsson  <simon@josefsson.org>
65809         * tests/test-version-etc.sh: Use $EXEEXT.
65811 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
65813         update-copyright: update documentation to point to maint.mk
65814         * build-aux/update-copyright: Here.
65816 2009-08-06  Jim Meyering  <meyering@redhat.com>
65818         maint.mk: support update-copyright-local
65819         * top/maint.mk (update-copyright-local): Define place-holder.
65820         (update-copyright): Depend on $(update-copyright-local).
65822 2009-08-06  Jim Meyering  <meyering@redhat.com>
65824         selinux-at: new module
65825         Initially written for coreutils, this module will soon be
65826         used by findutils, too.
65827         * MODULES.html.sh [Misc]: Add selinux-at.
65828         * lib/selinux-at.h: New file, from coreutils.
65829         * lib/selinux-at.c: Likewise.
65830         * modules/selinux-at: Likewise.
65831         (License): Change from LGPL to GPL, since it depends
65832         on the GPL'd openat module.
65834         doc: update README
65835         * README: Remove references to cogito.
65836         Remove cvs-repo-updating instructions from 2007.
65837         Don't imply that CVS is better if you have limited disk space.
65839 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65841         update-copyright: support C-style comments
65842         * build-aux/update-copyright: Implement and document.
65843         * tests/test-update-copyright.sh: Test.
65845 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65847         update-copyright: support omitted "(C)"
65848         * build-aux/update-copyright: Implement and document.  Also,
65849         allow variable whitespace before "(C)".
65850         * tests/test-update-copyright.sh: Test.
65852 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65854         update-copyright: don't trip on non-FSF copyright statements
65855         * build-aux/update-copyright: Fix so that the first correctly
65856         formatted FSF copyright statement is recognized no matter what
65857         appears before it.  Update documentation.
65858         * tests/test-update-copyright.sh: Test that.
65860 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65862         update-copyright: clean up code a little
65863         * build-aux/update-copyright: Append "_re" to the name of any
65864         variable holding a regular expression.
65865         Replace "old" and "new" with "stmt" in variable names.
65866         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
65867         handled correctly.
65868         Format code more consistently.
65870 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
65872         update-copyright-tests: improve portability
65873         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
65874         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
65876 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
65878         update-copyright: support @copyright{} and &copy;
65879         * build-aux/update-copyright: Implement and document.
65880         * tests/test-update-copyright.sh: Test.
65882 2009-08-04  Jim Meyering  <meyering@redhat.com>
65884         update-copyright-tests: correctly test EOL=\r\n handling
65885         * tests/test-update-copyright.sh: Put \r at the end of some lines
65886         for the dos-eol tests.  Based on a patch by Joel E. Denny.
65888         maint.mk: make update-copyright exclusion list more configurable
65889         * top/maint.mk (update-copyright): Default to excluding COPYING,
65890         but allow an override, in case someone does want to update that file.
65892         maint.mk: don't update copyright date in COPYING
65893         * top/maint.mk (update-copyright): Exclude COPYING.
65895         maint.mk: add a copyright-updating rule
65896         * top/maint.mk (update-copyright): New rule.
65897         Derived from coreutils/Makefile.am.
65899         update-copyright: rename some variables
65900         * build-aux/update-copyright: Rename a few variables for clarity.
65901         Tweak syntax.  List Joel E. Denny as coauthor.
65903 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
65905         update-copyright: fix bug for 2-digit last year and add tests
65906         * build-aux/update-copyright: Fix bug.
65907         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
65908         specified.
65909         * modules/update-copyright-tests: New
65910         * tests/test-update-copyright.sh: New.
65912 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
65914         update-copyright: handle leading tabs in line prefix
65915         * build-aux/update-copyright: Count leading tabs as 8 spaces
65916         when computing margin.  This helps with the formatting of
65917         ChangeLogs, for example.
65918         Fix documentation a little.
65920 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
65922         update-copyright: support EOL=\r\n
65923         * build-aux/update-copyright: Implement that.
65925 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
65927         update-copyright: automatically format copyright statements
65928         * build-aux/update-copyright: Implement that.
65929         Also, be a little more predictable and safer by always failing
65930         when the full copyright format is not perfectly recognized as an
65931         unbroken whole.  Discussed at
65932         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
65933         Rewrite documentation.
65935 2009-08-03  Bruno Haible  <bruno@clisp.org>
65937         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
65939 2009-08-02  Bruno Haible  <bruno@clisp.org>
65941         Tests for module 'uname'.
65942         * modules/uname-tests: New file.
65943         * tests/test-uname.c: New file.
65945         New module 'uname'.
65946         * lib/uname.c: New file.
65947         * m4/uname.m4: New file.
65948         * modules/uname: New file.
65949         * doc/posix-functions/uname.texi: Mention the new module.
65951 2009-08-02  Bruno Haible  <bruno@clisp.org>
65953         Tests for module 'sys_utsname'.
65954         * modules/sys_utsname-tests: New file.
65955         * tests/test-sys_utsname.c: New file.
65957         New module 'sys_utsname'.
65958         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
65959         * m4/sys_utsname_h.m4: New file.
65960         * modules/sys_utsname: New file.
65961         * doc/posix-headers/sys_utsname.texi: Mention the new module.
65963 2009-08-02  Bruno Haible  <bruno@clisp.org>
65965         Implicitly initialize the sockets library.
65966         * lib/gethostname.c: Include sockets.h.
65967         (rpl_gethostname): Invoke gl_sockets_startup.
65968         * lib/socket.c: Include sockets.h.
65969         (rpl_socket): Invoke gl_sockets_startup.
65970         * modules/gethostname (Depends-on): Add sockets.
65971         * modules/socket (Depends-on): Likewise.
65972         * tests/test-poll.c: Don't include sockets.h.
65973         (main): Don't invoke gl_sockets_startup.
65974         * tests/test-select.c: Don't include sockets.h.
65975         (main): Don't invoke gl_sockets_startup.
65977 2009-08-02  Bruno Haible  <bruno@clisp.org>
65979         Allow multiple calls to gl_sockets_startup.
65980         * lib/sockets.c (initialized_sockets_version): New variable.
65981         (gl_sockets_startup): Do nothing if already called for this or a higher
65982         version.
65983         (gl_sockets_cleanup): Reset initialized_sockets_version.
65985 2009-08-03  Simon Josefsson  <simon@josefsson.org>
65987         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
65988         different project/version.
65990 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
65991             Bruno Haible  <bruno@clisp.org>
65993         Tests for module 'pipe-filter-gi'.
65994         * modules/pipe-filter-gi-tests: New file.
65995         * tests/test-pipe-filter-gi1.sh: New file.
65996         * tests/test-pipe-filter-gi1.c: New file.
65997         * tests/test-pipe-filter-gi2.sh: New file.
65998         * tests/test-pipe-filter-gi2-main.c: New file.
65999         * tests/test-pipe-filter-gi2-child.c: New file.
66001         New module 'pipe-filter-gi'.
66002         * lib/pipe-filter-gi.c: New file.
66003         * modules/pipe-filter-gi: New file.
66005 2009-08-02  Bruno Haible  <bruno@clisp.org>
66006             Paolo Bonzini  <bonzini@gnu.org>
66008         Tests for module 'pipe-filter-ii'.
66009         * modules/pipe-filter-ii-tests: New file.
66010         * tests/test-pipe-filter-ii1.sh: New file.
66011         * tests/test-pipe-filter-ii1.c: New file.
66012         * tests/test-pipe-filter-ii2.sh: New file.
66013         * tests/test-pipe-filter-ii2-main.c: New file.
66014         * tests/test-pipe-filter-ii2-child.c: New file.
66016         New module 'pipe-filter-ii'.
66017         * lib/pipe-filter.h: New file.
66018         * lib/pipe-filter-ii.c: New file.
66019         * lib/pipe-filter-aux.h: New file.
66020         * modules/pipe-filter-ii: New file.
66022 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66024         * lib/gc-libgcrypt.c: Change copyright to FSF.
66025         * lib/gc-gnulib.c: Likewise.
66027 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
66029         * lib/gethostname.c: Include limits.h.
66031 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66032             Bruno Haible  <bruno@clisp.org>
66034         Ensure HOST_NAME_MAX as part of the gethostname module.
66035         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
66036         define also HOST_NAME_MAX.
66037         * tests/test-gethostname.c: Include <limits.h>.
66038         (main): Check also HOST_NAME_MAX.
66039         * doc/posix-headers/limits.texi: Document the mingw problem.
66041 2009-08-02  Bruno Haible  <bruno@clisp.org>
66043         * lib/gethostname.c (gethostname): Fix handling of large len argument.
66044         Add comments.
66046 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66048         * lib/gethostname.c: Add Windows wrapper.
66049         * m4/gethostname.m4: Look for gethostname in -lws2_32.
66050         * modules/gethostname: Depend on sys_socket & errno, for also
66051         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
66052         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
66054 2009-07-31  Jim Meyering  <meyering@redhat.com>
66056         getloadavg: fix symbol name in comment
66057         * lib/getloadavg.c: Correct a typo I introduced when adding
66058         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
66059         Matt Kraai spotted the problem.
66061 2009-07-29  Matt Kraai  <mkraai@beckman.com>
66063         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
66064         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
66065         code also if ! defined N_NAME_POINTER.
66066         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
66067         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
66068         but the n_name member is a 12-byte array.
66070 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
66072         update-copyright: generalize comment handling
66073         * build-aux/update-copyright: Handle copyright statements
66074         within more comment styles.
66075         Document usage.
66076         Report any file with an external copyright holder or parse failure.
66078 2009-07-29  Jim Meyering  <meyering@redhat.com>
66080         mktime: correct setting of REPLACE_MKTIME
66081         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
66083         update-copyright: new module
66084         * modules/update-copyright: New file.
66085         * build-aux/update-copyright: New file.
66086         * MODULES.html.sh (maint+release support): Add update-copyright.
66088 2009-07-27  Bruno Haible  <bruno@clisp.org>
66090         Fix compilation error when <ctime> is used and mktime is replaced.
66091         * lib/time.in.h (mktime): New declaration.
66092         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
66093         REPLACE_MKTIME instead of defining mktime in config.h.
66094         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
66095         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
66096         Reported by Ross McFarland <rwmcfa1@neces.com>.
66098 2009-07-27  Bruno Haible  <bruno@clisp.org>
66100         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
66101         Reported by Matt Kraai <mkraai@beckman.com>.
66103 2009-07-25  Jim Meyering  <meyering@redhat.com>
66105         maint.mk: avoid warnings about missing files
66106         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
66107         diagnostic when .prev-version does not exist.
66108         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
66109         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
66110         nonexistent cfg.mk.
66111         Suggestions from Simon Josefsson.
66113 2009-07-25  Bruno Haible  <bruno@clisp.org>
66115         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
66116         defined as macros. Needed on QNX 6.4.1.
66117         Reported by Matt Kraai <mkraai@beckman.com>.
66119 2009-07-23  Jim Meyering  <meyering@redhat.com>
66121         maint.mk: invoke "make dist" with a working value of XZ_OPT
66122         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
66124 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
66126         Make fseeko.c compile on QNX.
66127         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
66129 2009-07-22  Peter Simons  <simons@cryp.to>
66131         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
66132         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
66133         * lib/md4.h: Likewise.
66134         * lib/md5.h: Likewise.
66135         * lib/sha1.h: Likewise.
66136         * lib/sha256.h: Likewise.
66137         * lib/sha512.h: Likewise.
66139         tests-sha1: don't assign literal string to 'char *' variable
66140         * tests/test-sha1.c (main): Declare locals with "const" to match
66141         attributes of the right hand side.
66143 2009-07-21  Eric Blake  <ebb9@byu.net>
66145         dup2: fix more mingw problems
66146         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
66147         fd to itself.
66148         * doc/posix-functions/dup2.texi (dup2): Document the bug.
66149         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
66150         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
66151         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
66152         care of mingw bugs.
66154 2009-07-21  Jim Meyering  <meyering@redhat.com>
66156         vc-list-files: avoid failure when /bin/sh is dash
66157         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
66158         On some Debian based systems, /bin/sh is a symlink to dash, and running
66159         this command would omit the "/" following each 'tests' prefix:
66160           dash -x build-aux/vc-list-files -C . tests
66161         That is because bash and dash work differently:
66162           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
66163           bash ok
66164           dash odd
66166 2009-07-21  Eric Blake  <ebb9@byu.net>
66168         dup2-tests: test previous patch
66169         * modules/dup2-tests: New file.
66170         * tests/test-dup2.c: Likewise.
66171         * tests/test-open.c (main): Avoid unspecified behavior.
66172         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
66173         test.
66175         dup2: work around mingw and cygwin 1.5 bug
66176         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
66177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66178         * modules/unistd (Makefile.am): Substitute it.
66179         * lib/unistd.in.h (dup2): Declare the replacement.
66180         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
66181         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
66182         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
66183         * modules/execute (Depends-on): Add dup2.
66184         * modules/fseterr (Depends-on): Likewise.
66185         * modules/pipe (Depends-on): Likewise.
66186         * modules/posix_spawn-internal (Depends-on): Likewise.
66188 2009-07-21  Bruno Haible  <bruno@clisp.org>
66190         * modules/.gitattributes: New file.
66192 2009-07-20  Bruno Haible  <bruno@clisp.org>
66194         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
66195         (main): Use it.
66197 2009-07-20  Eric Blake  <ebb9@byu.net>
66199         test-pipe: make a bit more robust.
66200         * tests/test-pipe.c (myerr): Allow error messages regardless of
66201         what we do to stderr.
66202         (test_pipe): Rearrange to avoid deadlock.
66203         (child_main): Try a larger read, to ensure we avoided deadlock.
66204         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
66205         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
66206         if misused.
66208 2009-07-19  Jim Meyering  <meyering@redhat.com>
66210         fts: avoid false-positive cycle-detection
66211         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
66212         for each new command line argument.
66214 2009-07-19  Bruno Haible  <bruno@clisp.org>
66216         Fix build error on mingw with the modules sys_select and unistd.
66217         * modules/acl-tests (Depends-on): Add close.
66218         * modules/binary-io-tests (Depends-on): Likewise.
66219         * modules/closein-tests (Depends-on): Likewise.
66220         * modules/flock-tests (Depends-on): Likewise.
66221         * modules/fsync-tests (Depends-on): Likewise.
66222         * modules/lseek-tests (Depends-on): Likewise.
66223         * modules/pipe-tests (Depends-on): Likewise.
66224         * modules/posix_spawn-tests (Depends-on): Likewise.
66225         * modules/posix_spawnp-tests (Depends-on): Likewise.
66226         * modules/stat-time-tests (Depends-on): Likewise.
66227         * modules/yesno-tests (Depends-on): Likewise.
66229 2009-07-19  Bruno Haible  <bruno@clisp.org>
66231         Unify conditionals.
66232         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
66233         macros, not at the compiler macros.
66234         * lib/pipe.c: Likewise.
66235         * lib/execute.c: Likewise.
66236         * lib/spawni.c: Likewise.
66238 2009-07-19  Bruno Haible  <bruno@clisp.org>
66240         Fix handling of closed stdin/stdout/stderr on mingw.
66241         * lib/w32spawn.h: Include unistd.h.
66242         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
66243         file descriptor with O_NOINHERIT flag.
66244         (fd_safer_noinherit): New function, based on fd-safer.c.
66245         (dup_safer_noinherit): New function, based on dup-safer.c.
66246         (undup_safer_noinherit): New function.
66247         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
66248         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
66249         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
66250         instead of fd_safer.
66251         * tests/test-pipe.c: Include <windows.h>.
66252         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
66253         result.
66255         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
66256         from main.
66257         (test_pipe): Pass an extra argument for disambiguation.
66258         (main): Invoke parent_main or child_main.
66260         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
66261         consistently.
66263 2009-07-18  Eric Blake  <ebb9@byu.net>
66265         test-pipe: fix mingw build
66266         * tests/test-pipe.c (main): Avoid fcntl on mingw.
66268 2009-07-18  Bruno Haible  <bruno@clisp.org>
66270         * modules/pipe-tests (Makefile.am): Fix typo.
66272 2009-07-18  Eric Blake  <ebb9@byu.net>
66274         error: fix mingw build
66275         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
66276         Reported by Bruno Haible.
66278         error: avoid undefined use of stdout
66279         * lib/error.c (error, error_at_line): Check that fd 1 is open
66280         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
66281         is handling faults and the close_stdout module wants to report the
66282         detection of closed stdout as an error.
66284 2009-07-17  Eric Blake  <ebb9@byu.net>
66286         pipe: be robust in face of closed fds
66287         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
66288         should cause child to misbehave.
66289         * modules/pipe-tests: New module.
66290         * tests/test-pipe.c: New file.
66291         * tests/test-pipe.sh: New file.
66292         Reported by Akim Demaille.
66294 2009-07-14  Bruno Haible  <bruno@clisp.org>
66296         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
66297         Reported by anonymous kc.
66299 2009-07-07  Jim Meyering  <meyering@redhat.com>
66301         maint.mk: don't look for translatable strings in *.m4 or *.mk
66302         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
66303         when searching for translatable strings.
66305 2009-07-05  Jim Meyering  <meyering@redhat.com>
66307         remove superfluous parentheses in STREQ definition
66308         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
66309         * lib/getugroups.c (STREQ): Likewise.
66310         * lib/fnmatch.c (STREQ): Likewise.
66311         Spotted by Bruno Haible.
66313 2009-07-04  Jim Meyering  <meyering@redhat.com>
66315         argv-iter: new module
66316         * MODULES.html.sh: Add argv-iter.
66317         * lib/argv-iter.c, lib/argv-iter.h: New files.
66318         * modules/argv-iter: New file.
66319         * modules/argv-iter-tests: New file.
66320         * tests/test-argv-iter.c: Test it.
66322 2009-07-04  Bruno Haible  <bruno@clisp.org>
66324         Fix assertion.
66325         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
66326         contains more exact copies of a given entry than file2, leave the extra
66327         copies unpaired rather than aborting.
66328         Reported by Eric Blake.
66330 2009-07-02  Bruno Haible  <bruno@clisp.org>
66332         Speedup git-merge-changelog for git cherry-pick.
66333         * lib/git-merge-changelog.c (struct entries_mapping): New type.
66334         (entries_mapping_get): New function, extracted from compute_mapping.
66335         (entries_mapping_reverse_get): New function.
66336         (compute_mapping): Add a 'full' argument. Return the result in a
66337         'struct entries_mapping'.
66338         (main): Update. Access the mappings through entries_mapping_get.
66339         Reported by Eric Blake.
66341 2009-07-02  Bruno Haible  <bruno@clisp.org>
66343         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
66344         best_i.
66346 2009-07-02  Bruno Haible  <bruno@clisp.org>
66348         Speed up approximate search for matching ChangeLog entries.
66349         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
66350         argument. Call fstrcmp_bounded instead of fstrcmp.
66351         (compute_mapping, try_split_merged_entry, main): Update callers.
66353 2009-07-02  Bruno Haible  <bruno@clisp.org>
66355         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
66357 2009-06-30  Bruno Haible  <bruno@clisp.org>
66359         Reduce the number of uc_is_cased calls.
66360         * lib/unicase.h (casing_suffix_context_t): Add
66361         'first_char_except_ignorable' field.
66362         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
66363         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
66364         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
66365         Update initializer.
66366         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
66367         case-ignorable characters.
66368         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
66369         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
66370         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
66371         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
66372         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
66374 2009-06-30  Bruno Haible  <bruno@clisp.org>
66376         Tests for module 'unicase/ignorable'.
66377         * modules/unicase/ignorable-tests: New file.
66378         * tests/unicase/test-ignorable.c: New file, generated by
66379         gen-uni-tables.
66381         Tests for module 'unicase/cased'.
66382         * modules/unicase/cased-tests: New file.
66383         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
66384         * tests/unicase/test-predicate-part1.h: New file, derived from
66385         tests/unictype/test-predicate-part1.h.
66386         * tests/unicase/test-predicate-part2.h: New file, same as
66387         tests/unictype/test-predicate-part2.h.
66389         Fix evaluation of "Before C" condition of FINAL_SIGMA.
66390         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
66391         (output_casing_properties): New function.
66392         (main): Call it.
66393         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
66394         * lib/unicase/cased.c: Include unictype/bitmap.h.
66395         (uc_is_cased): Define through a bitmap lookup.
66396         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
66397         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
66398         (uc_is_case_ignorable): Define through a bitmap lookup.
66399         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
66400         lib/unictype/bitmap.h.
66401         (Depends-on): Add inline. Clean up.
66402         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
66403         lib/unictype/bitmap.h.
66404         (Depends-on): Add inline. Clean up.
66405         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
66406         recognition.
66407         * tests/unicase/test-u16-tolower.c (main): Likewise.
66408         * tests/unicase/test-u32-tolower.c (main): Likewise.
66410 2009-06-30  Bruno Haible  <bruno@clisp.org>
66412         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
66413         * lib/unicase/u16-casemap.c: Likewise.
66414         * lib/unicase/u32-casemap.c: Likewise.
66416 2009-06-29  Bruno Haible  <bruno@clisp.org>
66418         Define u32_casefold as a wrapper around u32_ct_casefold.
66419         * lib/unicase/u32-casefold.c: Update.
66420         * modules/unicase/u32-casefold (Depends-on): Add
66421         unicase/u32-ct-casefold, unicase/empty-prefix-context,
66422         unicase/empty-suffix-context. Clean up.
66424         Define u16_casefold as a wrapper around u16_ct_casefold.
66425         * lib/unicase/u16-casefold.c: Update.
66426         * modules/unicase/u16-casefold (Depends-on): Add
66427         unicase/u16-ct-casefold, unicase/empty-prefix-context,
66428         unicase/empty-suffix-context. Clean up.
66430         Define u8_casefold as a wrapper around u8_ct_casefold.
66431         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
66432         * lib/unicase/u8-casefold.c: Update.
66433         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
66434         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66436         Define u32_totitle as a wrapper around u32_ct_totitle.
66437         * lib/unicase/u32-totitle.c: Update.
66438         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
66439         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66441         Define u16_totitle as a wrapper around u16_ct_totitle.
66442         * lib/unicase/u16-totitle.c: Update.
66443         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
66444         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66446         Define u8_totitle as a wrapper around u8_ct_totitle.
66447         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
66448         functions.
66449         (FUNC): Delegate to U_CT_TOTITLE.
66450         * lib/unicase/u8-totitle.c: Update.
66451         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
66452         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
66454         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
66455         invocation.
66456         * modules/unicase/u32-tolower (Depends-on): Add
66457         unicase/empty-prefix-context, unicase/empty-suffix-context.
66459         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
66460         invocation.
66461         * modules/unicase/u16-tolower (Depends-on): Add
66462         unicase/empty-prefix-context, unicase/empty-suffix-context.
66464         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
66465         * modules/unicase/u8-tolower (Depends-on): Add
66466         unicase/empty-prefix-context, unicase/empty-suffix-context.
66468         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
66469         invocation.
66470         * modules/unicase/u32-toupper (Depends-on): Add
66471         unicase/empty-prefix-context, unicase/empty-suffix-context.
66473         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
66474         invocation.
66475         * modules/unicase/u16-toupper (Depends-on): Add
66476         unicase/empty-prefix-context, unicase/empty-suffix-context.
66478         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
66479         * modules/unicase/u8-toupper (Depends-on): Add
66480         unicase/empty-prefix-context, unicase/empty-suffix-context.
66482         New module 'unicase/u32-ct-casefold'.
66483         * lib/unicase/u32-ct-casefold.c: New file.
66484         * modules/unicase/u32-ct-casefold: New file.
66486         New module 'unicase/u16-ct-casefold'.
66487         * lib/unicase/u16-ct-casefold.c: New file.
66488         * modules/unicase/u16-ct-casefold: New file.
66490         New module 'unicase/u8-ct-casefold'.
66491         * lib/unicase/u8-ct-casefold.c: New file.
66492         * lib/unicase/u-ct-casefold.h: New file, derived from
66493         lib/unicase/u-casefold.h.
66494         * modules/unicase/u8-ct-casefold: New file.
66496         New module 'unicase/u32-ct-totitle'.
66497         * lib/unicase/u32-ct-totitle.c: New file.
66498         * modules/unicase/u32-ct-totitle: New file.
66500         New module 'unicase/u16-ct-totitle'.
66501         * lib/unicase/u16-ct-totitle.c: New file.
66502         * modules/unicase/u16-ct-totitle: New file.
66504         New module 'unicase/u8-ct-totitle'.
66505         * lib/unicase/u8-ct-totitle.c: New file.
66506         * lib/unicase/u-ct-totitle.h: New file, derived from
66507         lib/unicase/u-totitle.h.
66508         * modules/unicase/u8-ct-totitle: New file.
66510         New module 'unicase/u32-ct-tolower'.
66511         * lib/unicase/u32-ct-tolower.c: New file.
66512         * modules/unicase/u32-ct-tolower: New file.
66514         New module 'unicase/u16-ct-tolower'.
66515         * lib/unicase/u16-ct-tolower.c: New file.
66516         * modules/unicase/u16-ct-tolower: New file.
66518         New module 'unicase/u8-ct-tolower'.
66519         * lib/unicase/u8-ct-tolower.c: New file.
66520         * modules/unicase/u8-ct-tolower: New file.
66522         New module 'unicase/u32-ct-toupper'.
66523         * lib/unicase/u32-ct-toupper.c: New file.
66524         * modules/unicase/u32-ct-toupper: New file.
66526         New module 'unicase/u16-ct-toupper'.
66527         * lib/unicase/u16-ct-toupper.c: New file.
66528         * modules/unicase/u16-ct-toupper: New file.
66530         New module 'unicase/u8-ct-toupper'.
66531         * lib/unicase/u8-ct-toupper.c: New file.
66532         * modules/unicase/u8-ct-toupper: New file.
66534         Add context arguments to u*_casemap functions.
66535         * lib/unicase/unicasemap.h: Include unicase.h.
66536         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
66537         suffix_context arguments.
66538         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
66539         functions.
66540         (FUNC): Add prefix_context and suffix_context arguments. Use
66541         uc_is_cased and uc_is_case_ignorable.
66542         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
66543         * lib/unicase/u16-casemap.c: Likewise.
66544         * lib/unicase/u32-casemap.c: Likewise.
66545         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
66546         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66547         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
66548         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66549         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
66550         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
66552         New module 'unicase/u32-suffix-context'.
66553         * lib/unicase/u32-suffix-context.c: New file.
66554         * modules/unicase/u32-suffix-context: New file.
66556         New module 'unicase/u16-suffix-context'.
66557         * lib/unicase/u16-suffix-context.c: New file.
66558         * modules/unicase/u16-suffix-context: New file.
66560         New module 'unicase/u8-suffix-context'.
66561         * lib/unicase/u8-suffix-context.c: New file.
66562         * lib/unicase/u-suffix-context.h: New file.
66563         * modules/unicase/u8-suffix-context: New file.
66565         New module 'unicase/empty-suffix-context'.
66566         * lib/unicase/empty-suffix-context.c: New file.
66567         * modules/unicase/empty-suffix-context: New file.
66569         New module 'unicase/u32-prefix-context'.
66570         * lib/unicase/u32-prefix-context.c: New file.
66571         * modules/unicase/u32-prefix-context: New file.
66573         New module 'unicase/u16-prefix-context'.
66574         * lib/unicase/u16-prefix-context.c: New file.
66575         * modules/unicase/u16-prefix-context: New file.
66577         New module 'unicase/u8-prefix-context'.
66578         * lib/unicase/u8-prefix-context.c: New file.
66579         * lib/unicase/u-prefix-context.h: New file.
66580         * lib/unicase/context.h: New file.
66581         * modules/unicase/u8-prefix-context: New file.
66583         New module 'unicase/empty-prefix-context'.
66584         * lib/unicase/empty-prefix-context.c: New file.
66585         * modules/unicase/empty-prefix-context: New file.
66587         New module 'unicase/ignorable'.
66588         * lib/unicase/ignorable.c: New file.
66589         * modules/unicase/ignorable: New file.
66591         New module 'unicase/cased'.
66592         * lib/unicase/caseprop.h: New file.
66593         * lib/unicase/cased.c: New file.
66594         * modules/unicase/cased: New file.
66596         New functions for case mapping of substrings.
66597         * lib/unicase.h (casing_prefix_context_t): New type.
66598         (unicase_empty_prefix_context): New variable.
66599         (u8_casing_prefix_context, u16_casing_prefix_context,
66600         u32_casing_prefix_context, u8_casing_prefixes_context,
66601         u16_casing_prefixes_context, u32_casing_prefixes_context): New
66602         declarations.
66603         (casing_suffix_context_t): New type.
66604         (unicase_empty_suffix_context): New variable.
66605         (u8_casing_suffix_context, u16_casing_suffix_context,
66606         u32_casing_suffix_context, u8_casing_suffixes_context,
66607         u16_casing_suffixes_context, u32_casing_suffixes_context,
66608         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
66609         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
66610         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
66611         declarations.
66613 2009-06-28  Jim Meyering  <meyering@redhat.com>
66615         boostrap: indent only with spaces
66616         * build-aux/bootstrap: Indent only with spaces, never TABs.
66618         bootstrap: split long lines
66619         * build-aux/bootstrap: Keep line length < 80.
66621         bootstrap: sync from coreutils
66622         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
66623         just as autoreconf does.  Verify a list of prerequisite
66624         package-name,version-number pairs if defined in bootstrap.conf.
66625         Refer to README-prereq, if prerequisites are not satisfied.
66627 2009-06-27  Eric Blake  <ebb9@byu.net>
66629         tests: add test for bogus NULL definition
66630         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
66631         * tests/test-stdlib.c: Likewise.
66632         * tests/test-string.c: Likewise.
66633         * tests/test-locale.c: Likewise.
66634         * tests/test-unistd.c: Likewise.
66635         * modules/stdio-tests (Depends-on): Add verify.
66636         * modules/stdlib-tests (Depends-on): Likewise.
66637         * modules/string-tests (Depends-on): Likewise.
66638         * modules/locale-tests (Depends-on): Likewise.
66639         * modules/unistd-tests (Depends-on): Likewise.
66641 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
66643         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
66644         self-explaining comment.
66645         * m4/selinux-selinux-h: Update serial.
66646         (gl_LIBSELINUX): New macro, adding a warning for missing development
66647         packages to code extracted from...
66648         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
66649         Add warning for missing development packages here, too.
66651 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
66653         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
66655 2009-06-25  Eric Blake  <ebb9@byu.net>
66657         version-etc: fix regression
66658         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
66659         gcc.
66660         (version_etc): Use it, to catch bugs with trailing NULL.
66661         * lib/version-etc.c (version_etc_arn): Delete unused argument.
66662         (version_etc_va): Fix logic bug.
66663         * modules/version-etc-tests: Add test.
66664         * tests/test-version-etc.c: New file.
66665         * tests/test-version-etc.sh: Likewise.
66667 2009-06-25  Sam Steingold  <sds@gnu.org>
66669         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
66670         mbtowc declaration.
66672 2009-06-25  Eric Blake  <ebb9@byu.net>
66674         fpurge: migrate into <stdio.h>
66675         * lib/fpurge.h: Delete...
66676         * lib/stdio.in.h (fpurge): ...and declare here, instead.
66677         * lib/fpurge.c (fpurge): Change declaring header.
66678         * modules/fpurge (Files): Drop deleted file.
66679         (Depends-on): Add stdio.
66680         (configure.ac): Set witness.
66681         * modules/stdio (Makefile.am): Support fpurge macros.
66682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66683         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
66684         * lib/fflush.c: Update client.
66685         * tests/test-fpurge.c: Likewise.
66686         * NEWS: Mention the change.
66688 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66690         * lib/argp-version-etc.c (program_authors): Add const
66691         qualifier.
66692         * lib/version-etc.c: Fix typos in the comments.
66693         * modules/argp-version-etc: Depends on version-etc.
66695 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66697         argp-version-etc: new module.
66699         * lib/argp-version-etc.c: New file.
66700         * lib/argp-version-etc.h: New file.
66701         * modules/argp-version-etc: New file.
66702         * modules/argp-version-etc-tests: New file.
66703         * tests/test-argp-version-etc.c: New test.
66704         * tests/test-argp-version-etc-1.sh: New test.
66706 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66708         Provide additional interfaces and documentation for version-etc
66709         module.
66711         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
66712         interfaces.
66713         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
66714         prototypes.
66716 2009-06-24  Bruno Haible  <bruno@clisp.org>
66718         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
66719         HAVE_LIB${NAME} macro.
66720         Reported by Sam Steingold <sds@gnu.org>.
66722 2009-06-23  Simon Josefsson  <simon@josefsson.org>
66724         * modules/hash-tests (test_hash_LDADD): Link to libintl when
66725         needed.
66727 2009-06-21  Bruno Haible  <bruno@clisp.org>
66729         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
66730         work.
66731         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
66732         together with LIB${NAME}, LTLIB${NAME}.
66733         Reported by Sam Steingold <sds@gnu.org>.
66735 2009-06-20  Jim Meyering  <meyering@redhat.com>
66737         tests: make sc_require_test_exit_idiom more generic
66738         * top/maint.mk (Exit_witness_file): New overridable variable.
66739         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
66740         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
66742 2009-06-19  Jim Meyering  <meyering@redhat.com>
66744         hash: reverse order of src/dst parameters in an internal interface
66745         * lib/hash.c (transfer_entries): Reverse order of parameters to
66746         put DST before SRC.  Adjust callers.
66748         tests: test-hash: avoid wholesale duplication
66749         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
66750         Instead, use a loop and add a single conditional.
66752         tests: test-hash: allow seed selection via a command line argument
66753         * tests/test-hash.c (get_seed): New function.
66754         (main): Use it.
66756 2009-06-19  Eric Blake  <ebb9@byu.net>
66758         hash: avoid memory leak on allocation failure
66759         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
66760         failure.  Factor repeated algorithm...
66761         (transfer_entries): ...into new helper routine.
66762         (hash_delete): React to hash_rehash return value.
66764         hash: reduce memory pressure in hash_rehash no-op case
66765         * lib/hash.c (next_prime): Avoid overflow.
66766         (hash_initialize): Factor bucket size computation...
66767         (compute_bucket_size): ...into new helper function.
66768         (hash_rehash): Use new function and open coding to reduce memory
66769         pressure, and avoid a memory leak in USE_OBSTACK code.
66770         Reported by Jim Meyering.
66772 2009-06-18  Eric Blake  <ebb9@byu.net>
66774         hash: make rotation more obvious
66775         * modules/hash (Depends-on): Add bitrotate and stdint.
66776         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
66777         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
66778         (SIZE_MAX): Rely on headers for definition.
66779         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
66780         (raw_hasher): Use rotr_sz.
66781         Suggested by Jim Meyering.
66783         hash: fix memory leak in last patch
66784         * lib/hash.c (hash_rehash): Avoid memory leak.
66786         hash: avoid no-op rehashing
66787         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
66789         hash: provide default callback functions
66790         * lib/hash.c (raw_hasher, raw_comparator): New functions.
66791         (hash_initialize): Use them as defaults.
66792         * tests/test-hash.c (main): Test this.
66794         hash: minor optimization
66795         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
66796         when possible.
66797         (hash_initialize): Document this promise.
66798         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
66799         * tests/test-hash.c (hash_compare_strings): Test this.
66801 2009-06-18  Bruno Haible  <bruno@clisp.org>
66803         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
66804         going to be replaced anyway.
66806 2009-06-18  Bruno Haible  <bruno@clisp.org>
66808         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
66809         in one place.
66810         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
66811         be replaced anyway.
66813 2009-06-18  Eric Blake  <ebb9@byu.net>
66815         hash: check for resize before insertion
66816         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
66817         threshold before insertion, so that a pathological hash_rehash
66818         that fills every bucket can still trigger another rehash.
66820 2009-06-18  Jim Meyering  <meyering@redhat.com>
66822         hash-tests: add a loop around the small tests
66823         * tests/test-hash.c (main): Repeat small tests with selected
66824         small initial table sizes.
66826 2009-06-17  Eric Blake  <ebb9@byu.net>
66828         hash: minor cleanups
66829         * lib/hash.h (hash_entry): Make opaque, by moving...
66830         * lib/hash.c (hash_entry): ...here.
66831         (hash_insert): Clarify restrictions on what can be inserted.
66832         (hash_get_next): Clarify when it is safe to remove an element
66833         during traversal.
66834         (check_tuning): Skip verification when tuning is known safe.
66835         (hash_initialize): Clarify restrictions on tuning.
66837 2009-06-17  Jim Meyering  <jim@meyering.net>
66838         and Eric Blake  <ebb9@byu.net>
66840         hash-tests: new module
66841         * modules/hash-tests: New file.
66842         * tests/test-hash.c: New file.
66844 2009-06-17  Eric Blake  <ebb9@byu.net>
66846         strstr-simple: document new module
66847         * MODULES.html.sh: Document new module.
66849         strstr, strcasestr: replace on platforms with broken memchr
66850         * modules/strstr: Split into...
66851         * modules/strstr-simple: ...new module that does not care about
66852         performance, but does care about glibc bug.
66853         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
66854         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
66855         if platform memchr is broken, per Debian bug 521737.
66856         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
66857         memchr.
66858         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
66859         * doc/posix-functions/strstr.texi (strstr): Document the fix.
66860         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
66861         * modules/mountlist (Depends-on): Add strstr-simple.
66862         * modules/gen-uni-tables (Depends-on): Likewise.
66863         * modules/argz (Depends-on): Add strstr.
66865 2009-06-17  Bruno Haible  <bruno@clisp.org>
66867         * modules/posix_spawn-internal (Depends-on): Add errno.
66869 2009-06-17  Bruno Haible  <bruno@clisp.org>
66871         Define missing ESTALE on Interix 3.5.
66872         * lib/errno.in.h (ESTALE): Assign a value if missing.
66873         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
66874         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
66875         missing.
66876         * doc/posix-headers/errno.texi: Mention the Interix bug.
66877         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
66879 2009-06-15  Eric Blake  <ebb9@byu.net>
66881         memchr, memchr2: add valgrind exception
66882         * lib/memchr.valgrind: New file.
66883         * lib/memchr2.valgrind: New file.
66884         * modules/memchr (Files): Distribute valgrind file.
66885         * modules/memchr2 (Files): Likewise.
66887         docs: memchr is no longer obsolete
66888         * MODULES.html.sh: Move memchr from obsolete to string.h section.
66889         * lib/string.in.h (memchr): Simplify logic.
66891 2009-06-14  Jim Meyering  <meyering@redhat.com>
66893         link-follow: fix the "checking..." message to not mention trailing slash
66894         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
66895         never considered trailing slashes.
66897 2009-06-14  Bruno Haible  <bruno@clisp.org>
66899         * m4/memchr.m4: Mention also the bug on IA-64.
66900         * doc/posix-functions/memchr.texi: Likewise.
66902 2009-06-12  Eric Blake  <ebb9@byu.net>
66904         memchr: detect broken x86_64 and alpha implementations
66905         * modules/memchr-tests (Depends-on): Move mmap detection...
66906         * modules/memchr (Depends-on): ...here.
66907         (configure.ac): Set indicator.
66908         * lib/string.in.h (memchr): Declare replacement.
66909         * modules/string (Makefile.am): Trigger replacement.
66910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
66911         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
66912         bugs.
66913         * doc/posix-functions/memchr.texi (memchr): Document the bug.
66914         * modules/getpagesize (License): Relax license.
66916 2009-06-11  Bruno Haible  <bruno@clisp.org>
66918         * lib/idpriv.h: Add more references.
66920 2009-06-08  Bruno Haible  <bruno@clisp.org>
66922         Tests for module 'idpriv-droptemp'.
66923         * modules/idpriv-droptemp-tests: New file.
66924         * tests/test-idpriv-droptemp.sh: New file.
66925         * tests/test-idpriv-droptemp.su.sh: New file.
66926         * tests/test-idpriv-droptemp.c: New file.
66928         New module 'idpriv-droptemp'.
66929         * lib/idpriv-droptemp.c: New file.
66930         * modules/idpriv-droptemp: New file.
66932 2009-06-08  Bruno Haible  <bruno@clisp.org>
66934         Tests for module 'idpriv-drop'.
66935         * modules/idpriv-drop-tests: New file.
66936         * tests/test-idpriv-drop.sh: New file.
66937         * tests/test-idpriv-drop.su.sh: New file.
66938         * tests/test-idpriv-drop.c: New file.
66940         New module 'idpriv-drop'.
66941         * lib/idpriv.h: New file.
66942         * lib-idpriv-drop.c: New file.
66943         * m4/idpriv.m4: New file.
66944         * modules/idpriv-drop: New file.
66946 2009-06-08  Bruno Haible  <bruno@clisp.org>
66948         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
66949         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
66950         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
66951         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
66952         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
66953         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
66954         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
66956 2009-06-08  Eric Blake  <ebb9@byu.net>
66958         test-strstr: use memory fence, when possible
66959         * tests/test-strstr.c (main): Use memory fence, in order to be
66960         more likely to trigger Debian bug 521737.
66961         * modules/strstr-tests (Files): Pull in additional files.
66963         memchr: no longer obsolete, for wider field testing
66964         * modules/memchr (Status, Notice): Delete, this module is no
66965         longer obsolete.
66966         * modules/vasnprintf (Depends-on): Add memchr.
66968 2009-06-07  Jim Meyering  <meyering@redhat.com>
66970         hash: declare some functions with the warn_unused_result attribute
66971         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
66973 2009-06-07  Bruno Haible  <bruno@clisp.org>
66975         * tests/test-alignof.c: Don't test int64_t if it does not exist.
66976         Reported by Eric Blake.
66978 2009-06-06  Eric Blake  <ebb9@byu.net>
66980         test-alignof: fix typo with long double
66981         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
66982         compiler error.
66984 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
66986         Escape non-texinfo { and }s.
66987         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
66988         markup error.
66990 2009-06-04  Jim Meyering  <meyering@redhat.com>
66992         gitlog-to-changelog: don't infloop on an empty commit log
66993         * build-aux/gitlog-to-changelog: Warn about an empty log message.
66994         Reported by Boris Petersen <transacid@centerim.org>.
66996 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
66998         version-etc: extend for packagers
66999         Add three new configure options, intended for packagers:
67000           --with-packager="packager name"
67001           --with-packager-version="packager-specific version"
67002           --with-packager-bug-reports="packager bug reporting"
67003         An example with coreutils:
67004           $ ./configure \
67005             --with-packager=Gentoo \
67006             --with-packager-bug-report=http://bugs.gentoo.org/ \
67007             --with-packager-version="patchset 1.6"
67008           $ ./src/ls --version | head -n2
67009           ls (GNU coreutils) 7.1-dirty
67010           Packaged by Gentoo (patchset 1.6)
67011         Note that the bug reporting info via --help doesn't show up because
67012         coreutils uses its own custom emit_bug_reporting_address() implementation
67013         in src/system.h.  If it didn't, it'd look like:
67014           $ ./src/ls --help | tail -n4
67015           Report bugs to <bug-coreutils@gnu.org>.
67016           Report Gentoo bugs to <http://bugs.gentoo.org/>.
67017           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
67018           General help using GNU software: <http://www.gnu.org/gethelp/>.
67019         * lib/version-etc.c: Print new information, if provided.
67020         * m4/version-etc.m4: New file.
67021         * modules/version-etc (Files): Add m4/version-etc.m4.
67022         (configure.ac): Add gl_VERSION_ETC.
67024 2009-05-31  Bruno Haible  <bruno@clisp.org>
67026         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
67027         and 'int64_t'.
67028         * modules/alignof-tests (Dependencies): Add stdint.
67029         Reported by Eric Blake.
67031 2009-05-31  Bruno Haible  <bruno@clisp.org>
67033         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
67034         restriction due to compiler bugs.
67035         Reported by Eric Blake.
67037 2009-05-31  Simon Josefsson  <simon@josefsson.org>
67038             Bruno Haible  <bruno@clisp.org>
67040         Fix test-alignof failure.
67041         * lib/alignof.h (alignof_slot): New macro.
67042         (alignof_type): New macro, with the same semantics as the previous
67043         'alignof'.
67044         (alignof): Alias to alignof_slot.
67045         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
67046         check that the results are usable as constant expressions.
67048 2009-05-31  Bruno Haible  <bruno@clisp.org>
67050         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
67051         * tests/test-memchr.c (main): Check that memchr does not read past the
67052         first occurrence of the byte.
67053         * tests/test-strstr.c (main): Update comment.
67054         Suggested by Eric Blake.
67056 2009-05-30  Bruno Haible  <bruno@clisp.org>
67058         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
67059         detail how to use dumpbin.
67060         Reported by David Byron <dbyron@dbyron.com>.
67062 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67064         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
67066 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67068         * m4/manywarnings.m4: Add GCC 4.4 warnings.
67070 2009-05-28  Bruno Haible  <bruno@clisp.org>
67072         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
67073         build-aux/ files.
67075 2009-05-28  Simon Josefsson  <simon@josefsson.org>
67077         * gnulib-tool (func_import): Transform license on build-aux/ files too.
67079 2009-05-27  Simon Josefsson  <simon@josefsson.org>
67081         * gnulib-tool (sed_transform_main_lib_file)
67082         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
67083         regexps.
67085 2009-05-26  Simon Josefsson  <simon@josefsson.org>
67087         * tests/test-strstr.c: Add another self-test.
67088         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
67089         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
67091 2009-05-23  Bruno Haible  <bruno@clisp.org>
67093         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
67094         change.
67096 2009-05-21  Bruno Haible  <bruno@clisp.org>
67098         Simplify use of mode_t varargs.
67099         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
67100         uses 'mode_t' or 'int'.
67101         * lib/openat.c (openat): Likewise.
67102         * lib/open-safer.c (open_safer): Likewise.
67103         * m4/mode_t.m4: New file.
67104         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
67105         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
67106         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
67107         * modules/open (Files): Add m4/mode_t.m4.
67108         * modules/openat (Files): Likewise.
67109         * modules/fcntl-safer (Files): Likewise.
67110         Suggested by Eric Blake.
67112 2009-05-21  Pádraig Brady  <P@draigbrady.com>
67114         * doc/glibc-functions/fallocate.texi: New file.
67115         * doc/gnulib.texi: Include it.
67117 2009-05-21  Eric Blake  <ebb9@byu.net>
67118             Bruno Haible  <bruno@clisp.org>
67120         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
67121         invocations.
67122         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67124 2009-05-21  Eric Blake  <ebb9@byu.net>
67125             Bruno Haible  <bruno@clisp.org>
67127         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
67128         include_next. Fix of 2008-11-20 commit.
67129         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
67130         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
67131         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
67132         NEXT_MATH_H.
67133         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
67134         instead of NEXT_MATH_H.
67136 2009-05-21  Bruno Haible  <bruno@clisp.org>
67138         Avoid redefinition warnings for SIZE_MAX.
67139         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
67140         Reported by Simon Josefsson.
67142 2009-05-21  Bruno Haible  <bruno@clisp.org>
67144         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
67145         AC_CACHE_VAL.
67147 2009-05-20  Bruno Haible  <bruno@clisp.org>
67149         Make zeroptr.h work on mingw.
67150         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
67151         mprotect.
67152         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
67153         * modules/memchr2-tests (configure.ac): Likewise.
67154         * modules/memcmp-tests (configure.ac): Likewise.
67155         * modules/memmem-tests (configure.ac): Likewise.
67156         * modules/memrchr-tests (configure.ac): Likewise.
67157         Reported by Simon Josefsson.
67159 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67161         * tests/test-glob.c: Include string.h for strcmp prototype.
67163 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67165         * modules/getdelim (Depends-on): Add explicit stdint, although it
67166         was implicitly already pulled in via realloc-posix.
67167         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
67169 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67171         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
67172         G. Christensen" <tgc@jupiterrise.com>.
67173         * m4/sys_socket_h.m4: Check for sa_family_t.
67174         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
67175         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
67176         * tests/test-sys_socket.c: Check that sa_family_t works.
67178 2009-05-18  Eric Blake  <ebb9@byu.net>
67180         maint.mk: allow gnulib_dir in VPATH build
67181         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
67183 2009-05-15  Jim Meyering  <meyering@redhat.com>
67185         maint.mk: Give gnulib_dir a default definition.
67186         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
67187         Thus, most packages no longer need to specify this variable in cfg.mk
67189 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
67191         rename.m4: fix typos that would make non-mingw cross-configure fail
67192         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
67194 2009-05-13  Eric Blake  <ebb9@byu.net>
67196         mmap-anon: avoid out-of-order autoconf expansion
67197         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
67198         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
67199         * modules/memchr-tests (Depends-on): Add extensions.
67200         * modules/memchr2-tests (Depends-on): Add extensions.
67201         * modules/memcmp-tests (Depends-on): Add extensions.
67202         * modules/memmem-tests (Depends-on): Add extensions.
67203         * modules/memrchr-tests (Depends-on): Add extensions.
67205 2009-05-13  Bruno Haible  <bruno@clisp.org>
67207         Make some tests ISO C 99 compliant.
67208         * tests/zerosize-ptr.h: New file.
67209         * tests/test-memchr.c: Include zerosize-ptr.h.
67210         (main): Use a zero-size object pointer instead of NULL.
67211         * tests/test-memchr2.c: Include zerosize-ptr.h.
67212         (main): Use a zero-size object pointer instead of NULL.
67213         * tests/test-memcmp.c: Include zerosize-ptr.h.
67214         (main): Use a zero-size object pointer instead of NULL.
67215         * tests/test-memmem.c: Include zerosize-ptr.h.
67216         (main): Use a zero-size object pointer instead of NULL.
67217         * tests/test-memrchr.c: Include zerosize-ptr.h.
67218         (main): Use a zero-size object pointer instead of NULL.
67219         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
67220         m4/mmap-anon.m4.
67221         (Depends-on): Add getpagesize.
67222         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67223         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
67224         m4/mmap-anon.m4.
67225         (Depends-on): Add getpagesize.
67226         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67227         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
67228         m4/mmap-anon.m4.
67229         (Depends-on): Add getpagesize.
67230         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67231         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
67232         m4/mmap-anon.m4.
67233         (Depends-on): Add getpagesize.
67234         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67235         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
67236         m4/mmap-anon.m4.
67237         (Depends-on): Add getpagesize.
67238         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67240 2009-05-12  Bruno Haible  <bruno@clisp.org>
67242         Tests for module 'alignof'.
67243         * modules/alignof-tests: New file.
67244         * tests/test-alignof.c: New file.
67246 2009-05-12  Bruno Haible  <bruno@clisp.org>
67248         Fix alignof macro.
67249         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
67250         vendor compilers that are always correct.
67252 2009-05-12  Bruno Haible  <bruno@clisp.org>
67254         Make the MAP_ANONYMOUS detection work on HP-UX 11.
67255         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
67256         not whether its fully works.
67258 2009-05-12  Bruno Haible  <bruno@clisp.org>
67260         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
67262 2009-05-12  Jim Meyering  <meyering@redhat.com>
67264         * top/maint.mk: Adjust backslash alignment.
67266 2009-05-11  Simon Josefsson  <simon@josefsson.org>
67268         * top/maint.mk: Make $(srcdir)/build-aux configurable.
67270 2009-05-11  Eric Blake  <ebb9@byu.net>
67272         argp: avoid undefined behavior
67273         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
67274         macros.
67276 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67278         * tests/test-vc-list-files-git.sh: Do git config of user.email and
67279         user.name to prevent git commit from complaining.
67281 2009-05-10  Bruno Haible  <bruno@clisp.org>
67283         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
67284         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
67285         it rewrites every file name only once.
67286         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
67288 2009-05-08  Bruno Haible  <bruno@clisp.org>
67290         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
67291         instead of 'max'.
67293 2009-05-08  Simon Josefsson  <simon@josefsson.org>
67295         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
67296         sockaddr_storage test.
67298 2009-05-07  Simon Josefsson  <simon@josefsson.org>
67300         * modules/sys_socket (Makefile.am): Substitute
67301         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
67302         * m4/sys_socket_h.m4: Check for sockaddr_storage.
67303         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
67304         * tests/test-sys_socket.c: Check sockaddr_storage.
67306 2009-05-08  Bruno Haible  <bruno@clisp.org>
67308         New module 'alignof'.
67309         * lib/alignof.h: New file.
67310         * modules/alignof: New file.
67312 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67313             Bruno Haible  <bruno@clisp.org>
67315         Fix test-file-has-acl on FreeBSD.
67316         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
67317         mask is implicitly added.
67318         * tests/test-file-has-acl.c: Include <signal.h>.
67319         (main): Terminate the test after 5 seconds.
67320         * modules/acl-tests (configure.ac): Check for alarm function.
67322 2009-05-04  Bruno Haible  <bruno@clisp.org>
67324         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
67325         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
67326         * modules/errno (configure.ac): Drop AC_REQUIRE.
67327         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
67328         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
67330 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67332         * modules/glob-tests: New module.
67333         * tests/test-glob.c: Add.
67335 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67337         * modules/fnmatch-tests: New module.
67338         * tests/test-fnmatch.c: Add.
67340 2009-05-04  Eric Blake  <ebb9@byu.net>
67342         maint: make the new no-submodule-changes rule VPATH-safe
67343         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
67345 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67346             Bruno Haible  <bruno@clisp.org>
67348         acl: Fix infinite loop on FreeBSD.
67349         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
67350         of return value from acl_get_entry.
67351         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
67352         Likewise.
67354 2009-05-03  Bruno Haible  <bruno@clisp.org>
67356         * lib/acl-internal.h (acl_entries): Clarify return value.
67357         * lib/acl_entries.c (acl_entries): Likewise.
67359 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67361         Bug fix in acl module.
67362         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
67364 2009-05-03  Bruno Haible  <bruno@clisp.org>
67366         Create gperf-generated file in the source dir, not in the build dir.
67367         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
67368         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
67369         * modules/unicase/locale-language (unicase/locale-languages.h):
67370         Likewise.
67371         * modules/unicase/special-casing (unicase/special-casing-table.h):
67372         Likewise.
67373         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
67374         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
67375         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
67376         Reported by Ralf Wildenhues.
67378 2009-05-03  Bruno Haible  <bruno@clisp.org>
67380         * modules/fnmatch (Description, configure.ac): Taken from
67381         fnmatch-posix.
67382         * modules/fnmatch-posix: Turn into a symbolic reference to the
67383         'fnmatch' module, and deprecate.
67384         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
67386 2009-05-03  Bruno Haible  <bruno@clisp.org>
67388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
67389         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
67390         Reported by Ralf Wildenhues.
67392 2009-05-04  Simon Josefsson  <simon@josefsson.org>
67394         * m4/fnmatch.m4: Fix fnmatch re-define.
67396 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
67398         priv-set: new module and tests; adapt write-any-file
67399         * lib/priv-set.c: New file.
67400         * lib/priv-set.h: New file.
67401         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
67402         * lib/write-any-file.c: Simplify by using priv-set module.
67403         * m4/priv-set.m4: New file.
67404         * modules/priv-set: New file.
67405         * modules/unlinkdir: Add dependency on priv-set module.
67406         * modules/write-any-file: Likewise.
67408         Tests for module 'priv-set'.
67409         * modules/priv-set-tests: New file.
67410         * tests/test-priv-set.c: New file.
67412 2009-05-03  Jim Meyering  <meyering@redhat.com>
67413             Bruno Haible  <bruno@clisp.org>
67415         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
67416         use the converted UTF-8 variant of the name instead.
67418 2009-05-03  Jim Meyering  <meyering@redhat.com>
67420         tests: tighten some getdate tests
67421         * tests/test-getdate.c (main): Tighten tests: require equality,
67422         not just greater than.  Set TZ envvar to UTC0.
67424 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67426         getdate: correctly interpret "next monday" when run on a Monday
67427         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
67428         that e.g., "next tues" (when run on a tuesday) results in a date
67429         that is one week in the future, and not today's date.
67430         I.e., add a week when the wday is the same as the current one.
67431         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
67432         and earlier by Martin Bernreuther and Jan Minář.
67433         * tests/test-getdate.c (main): Check that "next DAY" is always in
67434         the future and that "last DAY" is always in the past.
67436 2009-05-02  Jim Meyering  <meyering@redhat.com>
67438         build: ensure that a release build fails when a submodule is unclean
67439         * top/maint.mk (no-submodule-changes): New rule.
67440         (alpha beta major): Depend on it.
67442 2009-05-02  Bruno Haible  <bruno@clisp.org>
67444         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
67445         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
67446         shell variable gl_fnmatch_required to detect which variant is
67447         requested.
67448         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
67449         gl_FUNC_FNMATCH_POSIX.
67450         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
67451         exclude fnmatch-posix.
67453 2009-05-02  Bruno Haible  <bruno@clisp.org>
67455         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
67456         * modules/mbsrtowcs (License): Change to LGPLv2+.
67457         * modules/strnlen1 (License): Likewise.
67458         Reported by Simon Josefsson.
67460 2009-05-02  Bruno Haible  <bruno@clisp.org>
67462         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
67463         "cross".
67464         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
67465         gnulib-tool was called with option --source-base=lib.
67467 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67469         Use automake *-local hooks without commands, for extensibility.
67470         * modules/localcharset (Makefile.am): Rename install-exec-local
67471         rule to install-exec-localcharset, and make it a prerequisite of
67472         install-exec-local.  Likewise, rename the uninstall-local rule to
67473         uninstall-localcharset, and make it a prerequisite of the former.
67475 2009-05-01  Bruno Haible  <bruno@clisp.org>
67477         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
67478         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67479         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
67480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
67481         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
67482         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67483         m4/locale-zh.m4, m4/codeset.m4.
67485         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
67486         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
67487         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
67488         m4/locale-zh.m4.
67490         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
67491         REPLACE_WCRTOMB if mbstate_t must be replaced.
67492         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
67493         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
67495 2009-05-01  Bruno Haible  <bruno@clisp.org>
67497         Avoid compiler warnings when redefining macros defined by <libintl.h>.
67498         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
67499         dngettext, dcngettext, textdomain, bindtextdomain,
67500         bind_textdomain_codeset): Undefine before redefining.
67502 2009-04-30  Bruno Haible  <bruno@clisp.org>
67504         Fix bug introduced on 2009-04-25.
67505         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
67506         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
67507         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
67508         is defined.
67509         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
67510         is defined.
67511         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
67512         is defined.
67513         Reported by Elbert_Pol <elbert.pol@gmail.com>.
67515 2009-04-28  Bruno Haible  <bruno@clisp.org>
67517         Comment tweaks.
67518         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
67519         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
67520         * lib/unicase.h (u*_casexfrm): Likewise.
67521         Reported by Paolo Bonzini.
67523 2009-04-28  Bruno Haible  <bruno@clisp.org>
67525         Fix a compilation error.
67526         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
67527         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
67528         Reported by Jim Meyering.
67530 2009-04-27  Bruno Haible  <bruno@clisp.org>
67532         New module 'libunistring'.
67533         * modules/libunistring: New file.
67534         * m4/libunistring.m4: New file.
67535         * MODULES.html.sh (Unicode string functions): Add it.
67537 2009-04-27  Eric Blake  <ebb9@byu.net>
67539         maint.mk: allow package-specific header to provide <config.h>
67540         * top/maint.mk (sc_require_config_h): New variable.
67541         (sc_require_config_h, sc_require_config_h_first): Use it.
67543 2009-04-27  Simon Josefsson  <simon@josefsson.org>
67545         * top/maint.mk (sc_avoid_if_before_free): Except
67546         useless-if-before-free script.
67548 2009-04-27  Eric Blake  <ebb9@byu.net>
67550         maintainer-makefile: depend on all required helper scripts
67551         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
67552         useless-if-before-free.
67553         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
67554         version, rather than assuming gnulib checkout is available.
67555         Reported by Simen Josefsson.
67557 2009-04-26  Bruno Haible  <bruno@clisp.org>
67559         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
67560         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
67561         "../" or "..".
67563 2009-04-26  Bruno Haible  <bruno@clisp.org>
67565         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
67566         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
67567         AC_LIB_HAVE_LINKFLAGS.
67569 2009-04-26  Bruno Haible  <bruno@clisp.org>
67571         Simplify calling convention of u*_conv_from_encoding.
67572         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
67573         u32_conv_from_encoding): Expect a resultbuf argument and return the
67574         result directly as a pointer.
67575         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
67576         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
67577         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
67578         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
67579         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
67580         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
67581         Update.
67582         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
67583         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
67584         * lib/vasnprintf.c (VASNPRINTF): Update.
67585         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
67586         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
67587         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
67588         * NEWS: Mention the change.
67590 2009-04-26  Bruno Haible  <bruno@clisp.org>
67592         Simplify calling convention of u*_conv_to_encoding.
67593         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67594         u32_conv_to_encoding): Expect a resultbuf argument and return the
67595         result directly as a pointer.
67596         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
67597         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
67598         freeing scaled_offsets if mem_iconveha failed.
67599         * lib/unicase/u-casexfrm.h (FUNC): Update.
67600         * lib/uninorm/u-normxfrm.h (FUNC): Update.
67601         * lib/vasnprintf.c (VASNPRINTF): Update.
67602         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
67603         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
67604         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
67605         * NEWS: Mention the change.
67607 2009-04-26  Bruno Haible  <bruno@clisp.org>
67609         Avoid test failures on AIX and OSF/1.
67610         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
67611         malloc(0).
67612         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
67613         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
67614         Likewise.
67615         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
67616         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
67617         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
67618         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
67619         * doc/posix-functions/malloc.texi: Document the portability problem
67620         related to malloc(0).
67622 2009-04-26  Bruno Haible  <bruno@clisp.org>
67624         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
67625         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
67626         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
67628 2009-04-25  Bruno Haible  <bruno@clisp.org>
67630         Avoid link error when creating a namespace clean library.
67631         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
67632         as macro with arguments if already defined as an alias.
67633         * lib/signbitf.c (gl_signbitf): Don't undefine.
67634         * lib/signbitd.c (gl_signbitd): Don't undefine.
67635         * lib/signbitl.c (gl_signbitl): Don't undefine.
67637 2009-04-25  Jim Meyering  <meyering@redhat.com>
67639         vc-list-files: fix another quoting bug
67640         * build-aux/vc-list-files: Avoid sed backslash expansion
67641         of pathological directory names.
67643 2009-04-25  Eric Blake  <ebb9@byu.net>
67645         vc-list-files: fix shell quoting error
67646         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
67647         timestamp.
67649 2009-04-25  Jim Meyering  <meyering@redhat.com>
67651         vc-list-files: restore lost functionality with subdir argument
67652         * build-aux/vc-list-files: When given a non-"." sub-directory
67653         argument, substitute the $dir/ prefix back onto each resulting name.
67654         Otherwise, coreutils' root_tests check would fail.
67656 2009-04-24  Eric Blake  <ebb9@byu.net>
67658         vc-list-files: ignore git symlinks
67659         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
67660         than ls-files, to ignore git symlinks.
67662         maint.mk: import improvements from m4
67663         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
67664         (move_if_change): Delete unused macro.
67665         (news-date-check, vc-diff-check): Support VPATH builds.
67666         (announcement): Likewise.  Split --bootstrap-tools list...
67667         (boostrap-tools): ...into separate list, which can be overridden
67668         in cfg.mk.
67669         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
67670         requiring dependency on useless-if-before-free module.
67671         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
67672         Support VPATH builds.
67674 2009-04-24  Jim Meyering  <meyering@redhat.com>
67676         maint.mk: remove coreutils-specific rules and variables
67677         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
67678         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
67679         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
67681         maint.mk: remove obsolete rule
67682         * top/maint.mk (rel-check): Remove rule.
67683         (WGET, WGETFLAGS): Remove now-unused variables.
67685 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67687         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
67688         consistency.
67690         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
67691         '$(PATH_SEPARATOR)' instead of ':'.
67693 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67695         * lib/getopt1.c (main): Use 'const' for static array.
67697 2009-04-24  Simon Josefsson  <simon@josefsson.org>
67699         * top/maint.mk: Sync with coreutils.
67700         * NEWS: Explain incompatibilities.
67702 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67703             Bruno Haible  <bruno@clisp.org>
67705         Fix cross-compilation results.
67706         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
67707         statement, as third argument of AC_TRY_RUN.
67708         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
67709         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
67710         Likewise.
67711         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
67712         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
67713         Likewise.
67714         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
67715         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
67716         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
67718 2009-04-20  Bruno Haible  <bruno@clisp.org>
67720         Avoid test failure on mingw.
67721         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
67723 2009-04-20  Bruno Haible  <bruno@clisp.org>
67725         Avoid compilation error on mingw.
67726         * modules/localename-tests (Depends-on): Add locale.
67728 2009-04-19  Bruno Haible  <bruno@clisp.org>
67730         Support for building a shared library on Windows platforms.
67731         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
67732         (main): Test the presence of UNINORM_NFC here.
67733         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
67734         (main): Test the presence of UNINORM_NFD here.
67735         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
67736         (main): Test the presence of UNINORM_NFKC here.
67737         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
67738         (main): Test the presence of UNINORM_NFKD here.
67740 2009-04-19  Bruno Haible  <bruno@clisp.org>
67742         Avoid a compiler warning.
67743         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
67744         Change type of variable 'sequence'.
67746 2009-04-19  Bruno Haible  <bruno@clisp.org>
67748         * modules/configmake (Makefile.am): When the contents of configmake.h
67749         does not change, arrange to preserve its modification time.
67751 2009-04-17  Simon Josefsson  <simon@josefsson.org>
67753         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
67754         gettext domain.
67756 2009-04-16  Jim Meyering  <meyering@redhat.com>
67758         useless-if-before-free: improve conversion code
67759         * build-aux/useless-if-before-free: Adjust code-in-comment to match
67760         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
67762 2009-04-14  Bruno Haible  <bruno@clisp.org>
67764         * modules/fcntl (Depends-on): Add extensions.
67765         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
67767 2009-04-12  Ben Pfaff  <blp@gnu.org>
67769         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
67770         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
67772 2009-03-20  Ben Pfaff  <blp@gnu.org>
67774         Make rename replace existing destinations on Windows.
67775         * m4/rename.m4: Add test for Mingw.
67776         * lib/rename.c: Add rename replacement that uses MoveFileEx with
67777         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
67778         * doc/posix-functions/rename.texi: Document.
67780 2009-04-10  Bruno Haible  <bruno@clisp.org>
67782         New include file "iconveh.h".
67783         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
67784         * lib/striconveh.h: Include it.
67785         (enum iconv_ilseq_handler): Remove definition.
67786         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
67787         striconveh.h.
67788         * lib/striconveha.c: Include striconveh.h.
67789         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
67790         * modules/striconveh (Files): Add lib/iconveh.h.
67791         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
67792         lib/striconveh.h.
67794 2009-04-10  Bruno Haible  <bruno@clisp.org>
67796         * lib/uniconv.h: Update comment.
67798 2009-04-10  Bruno Haible  <bruno@clisp.org>
67800         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
67801         always.
67802         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67803         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67804         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67805         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
67806         "unistring-notinline.h", so that the function gets defined always.
67807         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67808         * lib/unistr/u8-uctomb.c: Likewise.
67809         * lib/unistr/u16-mbtouc.c: Likewise.
67810         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67811         * lib/unistr/u16-uctomb.c: Likewise.
67812         * lib/unistr/u32-mbtouc.c: Likewise.
67813         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67814         * lib/unistr/u32-uctomb.c: Likewise.
67816 2009-04-10  Bruno Haible  <bruno@clisp.org>
67818         Mark 'utime' obsolete.
67819         * modules/utime (Status, Notice): New sections.
67820         Suggested by Jim Meyering.
67822         Fix cross-compile guess for utime test.
67823         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
67824         autoconf.
67825         * doc/posix-functions/utime.texi: Give more precisions.
67826         Reported by Jan <ipif@ymail.com>.
67828 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
67830         filevercmp: correct today's change
67831         * lib/filevercmp.c: Also handle coreutils' test inputs.
67832         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
67834         Fix regression in 'filevercmp' module. Thanks Sven Joachim
67835         for reporting it.
67836         * lib/filevercmp.c: Special handle for "", "." and "..".
67837         * tests/test-filevercmp.c: Enlarge the set suite.
67839 2009-04-07  Jim Meyering  <meyering@redhat.com>
67841         useless-if-before-free: show how to remove braced useless free, too
67842         * build-aux/useless-if-before-free: still only in a comment, though.
67844 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
67846         maint.mk: import changes to syntax-check macros from coreutils
67847         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
67848         Use them in the relevant macros.
67850 2009-04-06  Bruno Haible  <bruno@clisp.org>
67852         Fix unportable use of bit-fields.
67853         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
67854         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
67855         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
67857 2009-04-06  Bruno Haible  <bruno@clisp.org>
67859         Avoid test failures on AIX and OSF/1.
67860         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
67861         that malloc(0) = NULL.
67862         * tests/unicase/test-u8-tolower.c (check): Likewise.
67863         * tests/unicase/test-u8-totitle.c (check): Likewise.
67864         * tests/unicase/test-u8-toupper.c (check): Likewise.
67865         * tests/unicase/test-u16-casefold.c (check): Likewise.
67866         * tests/unicase/test-u16-tolower.c (check): Likewise.
67867         * tests/unicase/test-u16-totitle.c (check): Likewise.
67868         * tests/unicase/test-u16-toupper.c (check): Likewise.
67869         * tests/unicase/test-u32-casefold.c (check): Likewise.
67870         * tests/unicase/test-u32-tolower.c (check): Likewise.
67871         * tests/unicase/test-u32-totitle.c (check): Likewise.
67872         * tests/unicase/test-u32-toupper.c (check): Likewise.
67873         * tests/uninorm/test-u8-nfc.c (check): Likewise.
67874         * tests/uninorm/test-u8-nfd.c (check): Likewise.
67875         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
67876         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
67877         * tests/uninorm/test-u16-nfc.c (check): Likewise.
67878         * tests/uninorm/test-u16-nfd.c (check): Likewise.
67879         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
67880         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
67881         * tests/uninorm/test-u32-nfc.c (check): Likewise.
67882         * tests/uninorm/test-u32-nfd.c (check): Likewise.
67883         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
67884         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
67886 2009-04-05  Bruno Haible  <bruno@clisp.org>
67888         Work around an autoconf limitation.
67889         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
67890         comment line if it would be longer than 3 KB.
67892 2009-04-05  Bruno Haible  <bruno@clisp.org>
67894         Avoid test failure with libiconv-1.13.
67895         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
67896         of the expected test results.
67898 2009-04-05  Bruno Haible  <bruno@clisp.org>
67900         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
67901         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
67902         that it should be installed.
67904 2009-04-05  Bruno Haible  <bruno@clisp.org>
67906         * gnulib-tool: New option --copy-file.
67907         (func_usage): Document it.
67908         (func_dest_tmpfilename): Moved out of func_import.
67909         (func_add_file, func_update_file): New functions, extracted from
67910         func_import.
67911         (func_import): Update.
67913 2009-04-05  Karl Berry  <karl@gnu.org>
67915         * README: prominently mention gnulib-tool.
67916         Rearrange sections so getting the code is near the top.
67918 2009-04-05  Bruno Haible  <bruno@clisp.org>
67920         * lib/unicase.h: Mention u*_cmp2.
67921         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
67922         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
67923         * lib/unicase/ulc-casecmp.c: Likewise.
67924         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
67925         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
67926         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
67927         unistr/u8-cmp.
67928         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
67929         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
67930         unistr/u16-cmp.
67931         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
67932         unistr/u32-cmp.
67934         * lib/uninorm.h: Mention u*_cmp2.
67935         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
67936         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
67937         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
67938         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
67939         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
67940         unistr/u8-cmp.
67941         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
67942         unistr/u16-cmp.
67943         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
67944         unistr/u32-cmp.
67946         New module 'unistr/u32-cmp2'.
67947         * lib/unistr/u32-cmp2.c: New file.
67948         * modules/unistr/u32-cmp2: New file.
67950         New module 'unistr/u16-cmp2'.
67951         * lib/unistr/u16-cmp2.c: New file.
67952         * modules/unistr/u16-cmp2: New file.
67954         New module 'unistr/u8-cmp2'.
67955         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
67956         * lib/unistr/u8-cmp2.c: New file.
67957         * lib/unistr/u-cmp2.h: New file.
67958         * modules/unistr/u8-cmp2: New file.
67960 2009-04-05  Bruno Haible  <bruno@clisp.org>
67962         * lib/unictype.h (uc_property_is_valid): New macro.
67963         * tests/unictype/test-pr_byname.c (main): Use it.
67965         * lib/unistr.h: Doc fixes.
67966         * lib/uniconv.h: Doc fixes.
67967         * lib/unictype.h: Doc fixes.
67969 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
67971         Port coreutils 7.2 to Solaris 8.
67973         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
67974         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
67975         for Solaris 8.  This is a bit of a hack, as it means it's the
67976         caller's responsibility to add -lnsl if needed, but most likely it
67977         won't be needed since only getaddrinfo uses this and getaddrinfo
67978         isn't needed on Solaris 8.
67980         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
67981         problem to Solaris 8 encountered with coreutils 7.2, which
67982         resulted in a message "fnmatch.c:292: warning: passing argument 4
67983         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
67984         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
67986 2009-04-03  Simon Josefsson  <simon@josefsson.org>
67988         * m4/ld-version-script.m4: Add FIXME comment.
67990 2009-04-02  Simon Josefsson  <simon@josefsson.org>
67992         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
67993         SOVERSION variable.
67995 2009-04-02  Bruno Haible  <bruno@clisp.org>
67997         * Makefile (info, html, dvi, pdf): Combine the rules.
67998         Suggested by Jim Meyering.
68000 2009-04-01  Bruno Haible  <bruno@clisp.org>
68002         * Makefile (info, html, dvi, pdf): New targets.
68003         Reported by Reuben Thomas <rrt@sc3d.org>.
68005 2009-04-01  Bruno Haible  <bruno@clisp.org>
68007         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
68008         can be put into PATH.
68009         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
68011 2009-04-01  Bruno Haible  <bruno@clisp.org>
68013         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
68015 2009-04-01  Bruno Haible  <bruno@clisp.org>
68017         Rename module 'visibility'.
68018         * modules/lib-symbol-visibility: Renamed from modules/visibility.
68019         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
68020         * doc/gnulib.texi: Update.
68021         * MODULES.html.sh (Misc): Update.
68022         * NEWS: Mention the change.
68024 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68026         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
68027         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
68028         Eric Blake <ebb9@byu.net> for review.
68029         * MODULES.html.sh: Add lib-msvc-compat.
68030         * doc/gnulib.texi: Link to new section.
68031         * m4/ld-output-def.m4: New file.
68032         * doc/ld-output-def.texi: New file.
68034 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68036         Rename ld-version-script to lib-symbol-versions.  Suggested by
68037         Bruno Haible <bruno@clisp.org>.
68038         * modules/ld-version-script: Renamed to lib-symbol-versions.
68039         * doc/ld-version-script.texi: Fix module name.
68040         * MODULES.html.sh: Add lib-symbol-versions.
68042 2009-03-31  Simon Josefsson  <simon@josefsson.org>
68044         * modules/u64-tests: New file.
68045         * tests/test-u64.c: New file.
68047 2009-03-04  Simon Josefsson  <simon@josefsson.org>
68049         * MODULES.html.sh: Mention u64.
68050         * modules/u64: New module.
68051         * modules/crypto/sha512: Depend on u64 module instead of providing
68052         u64.h.
68054 2009-03-27  Eric Blake  <ebb9@byu.net>
68056         test-strerror: make debugging EAI_SYSTEM easier
68057         * modules/getaddrinfo-tests (Depends-on): Add strerror.
68058         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
68059         failure was EAI_SYSTEM.
68061 2009-03-25  Bruno Haible  <bruno@clisp.org>
68063         Fix a problem with --enable-relocatable on Solaris 7.
68064         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
68065         since 2008-02-24.
68067 2009-03-25  Eric Blake  <ebb9@byu.net>
68069         test-sockets: avoid gcc warning
68070         * tests/test-sockets.c (main): Silence compiler warning.
68072 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68074         New modules nproc, pthread, contributed by Glen Lenker.
68076         * MODULES.html.sh: Add pthread, nproc.
68077         * lib/nproc.c: New file.
68078         * lib/nproc.h: New file.
68079         * lib/pthread.in.h: New file.
68080         * m4/pthread.m4: New file.
68081         * modules/nproc: New file.
68082         * modules/pthread: New file.
68084 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68086         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
68087         New variable.
68089 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
68091         filevercmp: handle simple~ and numbered.~3~ backup suffixes
68092         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
68093         * tests/test-filevercmp.c: Add tests for backup suffixes.
68095 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68097         * modules/stdlib (Depends-on): Add stdint, needed when defining
68098         struct random_data on, for example, HP-UX 10.20.  Reported by
68099         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68101 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68103         * lib/readline.c (readline): Call fflush on stdout after printing
68104         prompt.
68106 2009-03-20  Bruno Haible  <bruno@clisp.org>
68108         Remove dependency from 'close' module to -lws2_32 on native Windows.
68109         * lib/close-hook.h: New file.
68110         * lib/close-hook.c: New file.
68111         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
68112         w32sock.h.
68113         (_gl_close_fd_maybe_socket): Remove function.
68114         (rpl_close): Invoke execute_all_close_hooks instead of
68115         _gl_close_fd_maybe_socket.
68116         * lib/sockets.c: Include close-hook.h, w32sock.h.
68117         (close_fd_maybe_socket): New function, essentially from lib/close.c.
68118         (close_sockets_hook): New variable.
68119         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
68120         (gl_sockets_cleanup): Unregister it.
68121         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
68122         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
68123         * modules/close-hook: New file.
68124         * modules/close (Files): Remove lib/w32sock.h.
68125         (Depends-on): Add close-hook.
68126         (Link): Remove section.
68127         * modules/sockets (Files): Add lib/w32sock.h.
68128         (Depends-on): Add close-hook.
68129         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
68130         invocation.
68131         * NEWS: Mention that LIB_CLOSE is gone.
68133 2009-03-23  Eric Blake  <ebb9@byu.net>
68135         signal-tests: test previous patch
68136         * tests/test-signal.c: New file.
68137         * modules/signal-tests: Likewise.
68139         signal.h: always support 'volatile sig_atomic_t'
68140         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
68141         (gl_SIGNAL_H_DEFAULTS): Add a default.
68142         * modules/signal (Makefile.am): Substitute if needed.
68143         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
68144         users can blindly add volatile.
68145         * doc/posix-headers/signal.texi (signal.h): Document it.
68146         Reported by Matthew Woehlke.
68148 2009-03-23  Jim Meyering  <meyering@redhat.com>
68150         pathmax: PATH_MAX: use pathconf only when available
68151         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
68152         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
68153         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
68154         This avoids a link failure in a PSP cross-compilation environment
68155         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
68157         * lib/vasnprintf.c (divide): Fix typo in comment.
68159 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68161         * gnulib-tool (func_filter_filelist): Fix comment.
68163 2009-03-20  Bruno Haible  <bruno@clisp.org>
68165         Make sockets.h self-contained.
68166         * lib/sockets.c: Include sockets.h first.
68167         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
68169 2009-03-19  Eric Blake  <ebb9@byu.net>
68171         doc: mention more functions added in cygwin 1.7.0
68172         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
68173         addition.
68174         * doc/posix-functions/log2f.texi: Likewise.
68176 2009-03-19  Jim Meyering  <meyering@redhat.com>
68178         fsusage: avoid syntax error due to statement-before-declaration
68179         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
68180         after all declarations.  Reported by Matthew Woehlke in
68181         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
68183 2009-03-18  Eric Blake  <ebb9@byu.net>
68185         build-aux/compile: sync from automake
68186         * build-aux/compile: New file, from automake.
68187         * config/srclist.txt: Mention build-aux/compile.
68189 2009-03-17  Bruno Haible  <bruno@clisp.org>
68191         * lib/git-merge-changelog.c: Fix typo in comment.
68192         Reported by Reuben Thomas <rrt@sc3d.org>.
68194 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
68196         * m4/regex.m4: update and improve help for
68197         --without-included-regex.
68199 2009-03-17  Simon Josefsson  <simon@josefsson.org>
68201         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
68202         failure on missing include files.
68204 2009-03-17  Eric Blake  <ebb9@byu.net>
68206         doc: mention more functions added in cygwin 1.7.0
68207         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
68208         addition.
68209         * doc/posix-functions/fwscanf.texi: Likewise.
68210         * doc/posix-functions/swprintf.texi: Likewise.
68211         * doc/posix-functions/swscanf.texi: Likewise.
68212         * doc/posix-functions/vfwprintf.texi: Likewise.
68213         * doc/posix-functions/vfwscanf.texi: Likewise.
68214         * doc/posix-functions/vswprintf.texi: Likewise.
68215         * doc/posix-functions/vswscanf.texi: Likewise.
68216         * doc/posix-functions/vwprintf.texi: Likewise.
68217         * doc/posix-functions/vwscanf.texi: Likewise.
68218         * doc/posix-functions/wcscasecmp.texi: Likewise.
68219         * doc/posix-functions/wcsdup.texi: Likewise.
68220         * doc/posix-functions/wcsftime.texi: Likewise.
68221         * doc/posix-functions/wcsncasecmp.texi: Likewise.
68222         * doc/posix-functions/wprintf.texi: Likewise.
68223         * doc/posix-functions/wscanf.texi: Likewise.
68224         * doc/glibc-functions/gethostbyname2.texi: Likewise.
68226 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68228         maint.mk: really add $(AM_MAKEFLAGS)
68229         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
68230         was inadvertently omitted in the last commit.
68231         Spotted by Bruno Haible.
68233         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
68234         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
68235         $(AM_MAKEFLAGS)' rather than plain `make'.
68237         gnulib-tool: execute $MAKE not make
68238         * gnulib-tool: Default $MAKE to 'make'.
68239         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
68240         than make.  Initialize $MAKE in the do-autobuild script.
68242         gnulib-tool: use $MAKE not make in generated files
68243         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
68244         make, in generated files.  Initialize $MAKE in the do-autobuild
68245         script.
68247         * top/GNUmakefile (_have-git-version-gen): Fix typo.
68249         GNUmakefile: disable parallelism only for multiple, recursive targets
68250         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
68251         additions in the Makefile.
68252         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
68253         by Automake.
68254         (.NOTPARALLEL): Only disable parallel builds if multiple targets
68255         are listed on the command line and at least one of them is
68256         listed in $(ALL_RECURSIVE_TARGETS).
68258 2009-03-14  Bruno Haible  <bruno@clisp.org>
68260         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
68261         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
68262         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
68263         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
68264         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
68265         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
68266         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
68267         unistr/u8-uctomb.
68268         * modules/unistr/u8-strchr (Depends-on): Likewise.
68269         * modules/unistr/u8-strrchr (Depends-on): Likewise.
68270         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
68271         unistr/u16-uctomb.
68272         * modules/unistr/u16-strchr (Depends-on): Likewise.
68273         * modules/unistr/u16-strrchr (Depends-on): Likewise.
68275 2009-03-12  Bruno Haible  <bruno@clisp.org>
68277         Work around select() bug on Interix 3.5.
68278         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
68279         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
68280         * m4/select.m4: New file.
68281         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
68282         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
68283         * modules/select (Files): Add m4/select.m4.
68284         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
68285         * modules/nanosleep (Depends-on): Add select.
68286         * modules/poll (Depends-on): Likewise.
68287         * doc/posix-functions/select.texi: Mention the Interix bug.
68288         Reported by Markus Duft <mduft@gentoo.org>.
68290         * lib/select.c: Renamed from lib/winsock-select.c.
68291         * modules/select (Files): Add lib/select.c, remove
68292         lib/winsock-select.c.
68293         (configure.ac): Update.
68295 2009-03-12  Jim Meyering  <meyering@redhat.com>
68297         avoid gcc warnings about unused macro definitions
68298         * lib/readtokens.c (STREQ): Remove unused definition.
68299         * lib/xmalloc.c (SIZE_MAX): Likewise.
68300         * lib/openat-die.c (N_): Likewise.
68301         * lib/mountlist.c (SIZE_MAX): Remove definition.
68302         Instead, include <stdint.h>.
68303         * lib/readutmp.c: Likewise.
68304         * modules/readutmp (Depends-on): Add stdint.
68305         * modules/mountlist (Depends-on): Add stdint.
68306         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
68308 2009-03-10  Bruno Haible  <bruno@clisp.org>
68310         Tests for module 'mbmemcasecoll'.
68311         * modules/mbmemcasecoll-tests: New file.
68312         * tests/test-mbmemcasecoll1.sh: New file.
68313         * tests/test-mbmemcasecoll2.sh: New file.
68314         * tests/test-mbmemcasecoll3.sh: New file.
68315         * tests/test-mbmemcasecoll.c: New file.
68317         New module 'mbmemcasecoll'.
68318         * lib/mbmemcasecoll.h: New file.
68319         * lib/mbmemcasecoll.c: New file.
68320         * modules/mbmemcasecoll: New file.
68322         * tests/test-mbmemcasecmp.h: New file, extracted from
68323         tests/test-mbmemcasecmp.c.
68324         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
68325         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
68326         (main): Update.
68327         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
68329 2009-03-09  Bruno Haible  <bruno@clisp.org>
68331         Tests for module 'mbmemcasecmp'.
68332         * modules/mbmemcasecmp-tests: New file.
68333         * tests/test-mbmemcasecmp1.sh: New file.
68334         * tests/test-mbmemcasecmp2.sh: New file.
68335         * tests/test-mbmemcasecmp3.sh: New file.
68336         * tests/test-mbmemcasecmp.c: New file.
68338         New module 'mbmemcasecmp'.
68339         * lib/mbmemcasecmp.h: New file.
68340         * lib/mbmemcasecmp.c: New file.
68341         * modules/mbmemcasecmp: New file.
68343 2009-03-09  Bruno Haible  <bruno@clisp.org>
68345         Tests for module 'unicase/ulc-casecoll'.
68346         * modules/unicase/ulc-casecoll-tests: New file.
68347         * tests/unicase/test-ulc-casecoll1.sh: New file.
68348         * tests/unicase/test-ulc-casecoll2.sh: New file.
68349         * tests/unicase/test-ulc-casecoll.c: New file.
68351         New module 'unicase/ulc-casecoll'.
68352         * lib/unicase.h (ulc_casecoll): New declaration.
68353         * lib/unicase/ulc-casecoll.c: New file.
68354         * modules/unicase/ulc-casecoll: New file.
68356         New module 'unicase/ulc-casexfrm'.
68357         * lib/unicase.h (ulc_casexfrm): New declaration.
68358         * lib/unicase/ulc-casexfrm.c: New file.
68359         * modules/unicase/ulc-casexfrm: New file.
68361 2009-03-09  Bruno Haible  <bruno@clisp.org>
68363         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
68364         invocations.
68366         * m4/mbscasecmp.m4: Remove file.
68367         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
68368         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
68370         * m4/mbscasestr.m4: Remove file.
68371         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
68372         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
68374         * m4/mbschr.m4: Remove file.
68375         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
68376         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
68378         * m4/mbscspn.m4: Remove file.
68379         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
68380         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
68382         * m4/mbslen.m4: Remove file.
68383         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
68384         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
68386         * m4/mbsncasecmp.m4: Remove file.
68387         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
68388         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
68390         * m4/mbsnlen.m4: Remove file.
68391         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
68392         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
68394         * m4/mbspbrk.m4: Remove file.
68395         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
68396         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
68398         * m4/mbspcasecmp.m4: Remove file.
68399         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
68400         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
68402         * m4/mbsrchr.m4: Remove file.
68403         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
68404         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
68406         * m4/mbssep.m4: Remove file.
68407         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
68408         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
68410         * m4/mbsspn.m4: Remove file.
68411         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
68412         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
68414         * m4/mbsstr.m4: Remove file.
68415         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
68416         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
68418         * m4/mbstok_r.m4: Remove file.
68419         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
68420         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
68422         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
68424         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
68425         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
68427         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
68429 2009-03-08  Bruno Haible  <bruno@clisp.org>
68431         Tests for module 'unicase/ulc-casecmp'.
68432         * modules/unicase/ulc-casecmp-tests: New file.
68433         * tests/unicase/test-ulc-casecmp1.sh: New file.
68434         * tests/unicase/test-ulc-casecmp2.sh: New file.
68435         * tests/unicase/test-ulc-casecmp.c: New file.
68437         New module 'unicase/ulc-casecmp'.
68438         * lib/unicase.h (ulc_casecmp): New declaration.
68439         * lib/unicase/ulc-casecmp.c: New file.
68440         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
68441         'const SRC_UNIT *'.
68442         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
68443         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
68444         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
68445         * modules/unicase/ulc-casecmp: New file.
68447         Tests for module 'unicase/u32-is-cased'.
68448         * modules/unicase/u32-is-cased-tests: New file.
68449         * tests/unicase/test-u32-is-cased.c: New file.
68451         Tests for module 'unicase/u16-is-cased'.
68452         * modules/unicase/u16-is-cased-tests: New file.
68453         * tests/unicase/test-u16-is-cased.c: New file.
68455         Tests for module 'unicase/u8-is-cased'.
68456         * modules/unicase/u8-is-cased-tests: New file.
68457         * tests/unicase/test-u8-is-cased.c: New file.
68458         * tests/unicase/test-is-cased.h: New file.
68460         New module 'unicase/u32-is-cased'.
68461         * lib/unicase/u32-is-cased.c: New file.
68462         * modules/unicase/u32-is-cased: New file.
68464         New module 'unicase/u16-is-cased'.
68465         * lib/unicase/u16-is-cased.c: New file.
68466         * modules/unicase/u16-is-cased: New file.
68468         New module 'unicase/u8-is-cased'.
68469         * lib/unicase/u8-is-cased.c: New file.
68470         * lib/unicase/u-is-cased.h: New file.
68471         * modules/unicase/u8-is-cased: New file.
68473         Tests for module 'unicase/u32-is-casefolded'.
68474         * modules/unicase/u32-is-casefolded-tests: New file.
68475         * tests/unicase/test-u32-is-casefolded.c: New file.
68477         Tests for module 'unicase/u16-is-casefolded'.
68478         * modules/unicase/u16-is-casefolded-tests: New file.
68479         * tests/unicase/test-u16-is-casefolded.c: New file.
68481         Tests for module 'unicase/u8-is-casefolded'.
68482         * modules/unicase/u8-is-casefolded-tests: New file.
68483         * tests/unicase/test-u8-is-casefolded.c: New file.
68484         * tests/unicase/test-is-casefolded.h: New file.
68486         New module 'unicase/u32-is-casefolded'.
68487         * lib/unicase/u32-is-casefolded.c: New file.
68488         * modules/unicase/u32-is-casefolded: New file.
68490         New module 'unicase/u16-is-casefolded'.
68491         * lib/unicase/u16-is-casefolded.c: New file.
68492         * modules/unicase/u16-is-casefolded: New file.
68494         New module 'unicase/u8-is-casefolded'.
68495         * lib/unicase/u8-is-casefolded.c: New file.
68496         * modules/unicase/u8-is-casefolded: New file.
68498         Tests for module 'unicase/u32-is-titlecase'.
68499         * modules/unicase/u32-is-titlecase-tests: New file.
68500         * tests/unicase/test-u32-is-titlecase.c: New file.
68502         Tests for module 'unicase/u16-is-titlecase'.
68503         * modules/unicase/u16-is-titlecase-tests: New file.
68504         * tests/unicase/test-u16-is-titlecase.c: New file.
68506         Tests for module 'unicase/u8-is-titlecase'.
68507         * modules/unicase/u8-is-titlecase-tests: New file.
68508         * tests/unicase/test-u8-is-titlecase.c: New file.
68509         * tests/unicase/test-is-titlecase.h: New file.
68511         New module 'unicase/u32-is-titlecase'.
68512         * lib/unicase/u32-is-titlecase.c: New file.
68513         * modules/unicase/u32-is-titlecase: New file.
68515         New module 'unicase/u16-is-titlecase'.
68516         * lib/unicase/u16-is-titlecase.c: New file.
68517         * modules/unicase/u16-is-titlecase: New file.
68519         New module 'unicase/u8-is-titlecase'.
68520         * lib/unicase/u8-is-titlecase.c: New file.
68521         * modules/unicase/u8-is-titlecase: New file.
68523         Tests for module 'unicase/u32-is-lowercase'.
68524         * modules/unicase/u32-is-lowercase-tests: New file.
68525         * tests/unicase/test-u32-is-lowercase.c: New file.
68527         Tests for module 'unicase/u16-is-lowercase'.
68528         * modules/unicase/u16-is-lowercase-tests: New file.
68529         * tests/unicase/test-u16-is-lowercase.c: New file.
68531         Tests for module 'unicase/u8-is-lowercase'.
68532         * modules/unicase/u8-is-lowercase-tests: New file.
68533         * tests/unicase/test-u8-is-lowercase.c: New file.
68534         * tests/unicase/test-is-lowercase.h: New file.
68536         New module 'unicase/u32-is-lowercase'.
68537         * lib/unicase/u32-is-lowercase.c: New file.
68538         * modules/unicase/u32-is-lowercase: New file.
68540         New module 'unicase/u16-is-lowercase'.
68541         * lib/unicase/u16-is-lowercase.c: New file.
68542         * modules/unicase/u16-is-lowercase: New file.
68544         New module 'unicase/u8-is-lowercase'.
68545         * lib/unicase/u8-is-lowercase.c: New file.
68546         * modules/unicase/u8-is-lowercase: New file.
68548         Tests for module 'unicase/u32-is-uppercase'.
68549         * modules/unicase/u32-is-uppercase-tests: New file.
68550         * tests/unicase/test-u32-is-uppercase.c: New file.
68552         Tests for module 'unicase/u16-is-uppercase'.
68553         * modules/unicase/u16-is-uppercase-tests: New file.
68554         * tests/unicase/test-u16-is-uppercase.c: New file.
68556         Tests for module 'unicase/u8-is-uppercase'.
68557         * modules/unicase/u8-is-uppercase-tests: New file.
68558         * tests/unicase/test-u8-is-uppercase.c: New file.
68559         * tests/unicase/test-is-uppercase.h: New file.
68561         New module 'unicase/u32-is-uppercase'.
68562         * lib/unicase/u32-is-uppercase.c: New file.
68563         * modules/unicase/u32-is-uppercase: New file.
68565         New module 'unicase/u16-is-uppercase'.
68566         * lib/unicase/u16-is-uppercase.c: New file.
68567         * modules/unicase/u16-is-uppercase: New file.
68569         New module 'unicase/u8-is-uppercase'.
68570         * lib/unicase/u8-is-uppercase.c: New file.
68571         * modules/unicase/u8-is-uppercase: New file.
68573         New module 'unicase/u32-is-invariant'.
68574         * lib/unicase/u32-is-invariant.c: New file.
68575         * modules/unicase/u32-is-invariant: New file.
68577         New module 'unicase/u16-is-invariant'.
68578         * lib/unicase/u16-is-invariant.c: New file.
68579         * modules/unicase/u16-is-invariant: New file.
68581         New module 'unicase/u8-is-invariant'.
68582         * lib/unicase/u8-is-invariant.c: New file.
68583         * lib/unicase/invariant.h: New file.
68584         * lib/unicase/u-is-invariant.h: New file.
68585         * modules/unicase/u8-is-invariant: New file.
68587         Tests for module 'unicase/u32-casecoll'.
68588         * modules/unicase/u32-casecoll-tests: New file.
68589         * tests/unicase/test-u32-casecoll.c: New file.
68591         Tests for module 'unicase/u16-casecoll'.
68592         * modules/unicase/u16-casecoll-tests: New file.
68593         * tests/unicase/test-u16-casecoll.c: New file.
68595         Tests for module 'unicase/u8-casecoll'.
68596         * modules/unicase/u8-casecoll-tests: New file.
68597         * tests/unicase/test-u8-casecoll.c: New file.
68599         New module 'unicase/u32-casecoll'.
68600         * lib/unicase/u32-casecoll.c: New file.
68601         * modules/unicase/u32-casecoll: New file.
68603         New module 'unicase/u16-casecoll'.
68604         * lib/unicase/u16-casecoll.c: New file.
68605         * modules/unicase/u16-casecoll: New file.
68607         New module 'unicase/u8-casecoll'.
68608         * lib/unicase/u8-casecoll.c: New file.
68609         * lib/unicase/u-casecoll.h: New file.
68610         * modules/unicase/u8-casecoll: New file.
68612         New module 'unicase/u32-casexfrm'.
68613         * lib/unicase/u32-casexfrm.c: New file.
68614         * modules/unicase/u32-casexfrm: New file.
68616         New module 'unicase/u16-casexfrm'.
68617         * lib/unicase/u16-casexfrm.c: New file.
68618         * modules/unicase/u16-casexfrm: New file.
68620         New module 'unicase/u8-casexfrm'.
68621         * lib/unicase/u8-casexfrm.c: New file.
68622         * lib/unicase/u-casexfrm.h: New file.
68623         * modules/unicase/u8-casexfrm: New file.
68625         Tests for module 'unicase/u32-casecmp'.
68626         * modules/unicase/u32-casecmp-tests: New file.
68627         * tests/unicase/test-u32-casecmp.c: New file.
68629         Tests for module 'unicase/u16-casecmp'.
68630         * modules/unicase/u16-casecmp-tests: New file.
68631         * tests/unicase/test-u16-casecmp.c: New file.
68633         Tests for module 'unicase/u8-casecmp'.
68634         * modules/unicase/u8-casecmp-tests: New file.
68635         * tests/unicase/test-u8-casecmp.c: New file.
68636         * tests/unicase/test-casecmp.h: New file.
68638         New module 'unicase/u32-casecmp'.
68639         * lib/unicase/u32-casecmp.c: New file.
68640         * modules/unicase/u32-casecmp: New file.
68642         New module 'unicase/u16-casecmp'.
68643         * lib/unicase/u16-casecmp.c: New file.
68644         * modules/unicase/u16-casecmp: New file.
68646         New module 'unicase/u8-casecmp'.
68647         * lib/unicase/u8-casecmp.c: New file.
68648         * lib/unicase/u-casecmp.h: New file.
68649         * modules/unicase/u8-casecmp: New file.
68651         Tests for module 'unicase/u32-casefold'.
68652         * modules/unicase/u32-casefold-tests: New file.
68653         * tests/unicase/test-u32-casefold.c: New file.
68655         Tests for module 'unicase/u16-casefold'.
68656         * modules/unicase/u16-casefold-tests: New file.
68657         * tests/unicase/test-u16-casefold.c: New file.
68659         Tests for module 'unicase/u8-casefold'.
68660         * modules/unicase/u8-casefold-tests: New file.
68661         * tests/unicase/test-u8-casefold.c: New file.
68663         New module 'unicase/u32-casefold'.
68664         * lib/unicase/u32-casefold.c: New file.
68665         * modules/unicase/u32-casefold: New file.
68667         New module 'unicase/u16-casefold'.
68668         * lib/unicase/u16-casefold.c: New file.
68669         * modules/unicase/u16-casefold: New file.
68671         New module 'unicase/u8-casefold'.
68672         * lib/unicase/u8-casefold.c: New file.
68673         * lib/unicase/u-casefold.h: New file.
68674         * modules/unicase/u8-casefold: New file.
68676         New module 'unicase/tocasefold'.
68677         * lib/unicase/casefold.h: New file.
68678         * lib/unicase/tocasefold.c: New file.
68679         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
68680         * modules/unicase/tocasefold: New file.
68682         Tests for module 'unicase/u32-totitle'.
68683         * modules/unicase/u32-totitle-tests: New file.
68684         * tests/unicase/test-u32-totitle.c: New file.
68686         Tests for module 'unicase/u16-totitle'.
68687         * modules/unicase/u16-totitle-tests: New file.
68688         * tests/unicase/test-u16-totitle.c: New file.
68690         Tests for module 'unicase/u8-totitle'.
68691         * modules/unicase/u8-totitle-tests: New file.
68692         * tests/unicase/test-u8-totitle.c: New file.
68694         New module 'unicase/u32-totitle'.
68695         * lib/unicase/u32-totitle.c: New file.
68696         * modules/unicase/u32-totitle: New file.
68698         New module 'unicase/u16-totitle'.
68699         * lib/unicase/u16-totitle.c: New file.
68700         * modules/unicase/u16-totitle: New file.
68702         New module 'unicase/u8-totitle'.
68703         * lib/unicase/u8-totitle.c: New file.
68704         * lib/unicase/u-totitle.h: New file.
68705         * modules/unicase/u8-totitle: New file.
68707         Tests for module 'unicase/u32-tolower'.
68708         * modules/unicase/u32-tolower-tests: New file.
68709         * tests/unicase/test-u32-tolower.c: New file.
68711         Tests for module 'unicase/u16-tolower'.
68712         * modules/unicase/u16-tolower-tests: New file.
68713         * tests/unicase/test-u16-tolower.c: New file.
68715         Tests for module 'unicase/u8-tolower'.
68716         * modules/unicase/u8-tolower-tests: New file.
68717         * tests/unicase/test-u8-tolower.c: New file.
68719         New module 'unicase/u32-tolower'.
68720         * lib/unicase/u32-tolower.c: New file.
68721         * modules/unicase/u32-tolower: New file.
68723         New module 'unicase/u16-tolower'.
68724         * lib/unicase/u16-tolower.c: New file.
68725         * modules/unicase/u16-tolower: New file.
68727         New module 'unicase/u8-tolower'.
68728         * lib/unicase/u8-tolower.c: New file.
68729         * modules/unicase/u8-tolower: New file.
68731         Tests for module 'unicase/u32-toupper'.
68732         * modules/unicase/u32-toupper-tests: New file.
68733         * tests/unicase/test-u32-toupper.c: New file.
68735         Tests for module 'unicase/u16-toupper'.
68736         * modules/unicase/u16-toupper-tests: New file.
68737         * tests/unicase/test-u16-toupper.c: New file.
68739         Tests for module 'unicase/u8-toupper'.
68740         * modules/unicase/u8-toupper-tests: New file.
68741         * tests/unicase/test-u8-toupper.c: New file.
68743         New module 'unicase/u32-toupper'.
68744         * lib/unicase/u32-toupper.c: New file.
68745         * modules/unicase/u32-toupper: New file.
68747         New module 'unicase/u16-toupper'.
68748         * lib/unicase/u16-toupper.c: New file.
68749         * modules/unicase/u16-toupper: New file.
68751         New module 'unicase/u8-toupper'.
68752         * lib/unicase/u8-toupper.c: New file.
68753         * modules/unicase/u8-toupper: New file.
68755         New module 'unicase/u32-casemap'.
68756         * lib/unicase/u32-casemap.c: New file.
68757         * modules/unicase/u32-casemap: New file.
68759         New module 'unicase/u16-casemap'.
68760         * lib/unicase/u16-casemap.c: New file.
68761         * modules/unicase/u16-casemap: New file.
68763         New module 'unicase/u8-casemap'.
68764         * lib/unicase/unicasemap.h: New file.
68765         * lib/unicase/u8-casemap.c: New file.
68766         * lib/unicase/u-casemap.h: New file.
68767         * modules/unicase/u8-casemap: New file.
68769         New module 'unicase/special-casing'.
68770         * lib/unicase/special-casing.h: New file.
68771         * lib/unicase/special-casing.c: New file.
68772         * lib/unicase/special-casing-table.gperf: New file, generated by
68773         gen-uni-tables.c.
68774         * modules/unicase/special-casing: New file.
68776         Tests for module 'unicase/locale-language'.
68777         * modules/unicase/locale-language-tests: New file.
68778         * tests/unicase/test-locale-language.sh: New file.
68779         * tests/unicase/test-locale-language.c: New file.
68781         New module 'unicase/locale-language'.
68782         * lib/unicase/locale-language.c: New file.
68783         * lib/unicase/locale-languages.gperf: New file.
68784         * modules/unicase/locale-language: New file.
68786         Generate more tables for case conversion and case folding.
68787         * lib/gen-uni-tables.c (SCC_*): New enum items.
68788         (struct special_casing_rule): New type.
68789         (casing_rules, num_casing_rules, allocated_casing_rules): New
68790         variables.
68791         (add_casing_rule, fill_casing_rules): New functions.
68792         (struct casefold_rule): New type.
68793         (casefolding_rules, num_casefolding_rules,
68794         allocated_casefolding_rules): New variables.
68795         (fill_casefolding_rules): New function.
68796         (unicode_casefold): New variable.
68797         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
68798         sort_casing_rules, output_casing_rules): New functions.
68799         (main): Accept to more arguments: SpecialCasing.txt and
68800         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
68801         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
68802         Output mapping for casefolding.
68804         * lib/unicase.h: Include stdbool.h, uninorm.h.
68805         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
68806         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
68807         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
68808         arguments.
68809         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
68810         resultp arguments.
68811         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
68812         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
68813         resultp arguments.
68814         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
68815         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
68816         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
68817         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
68818         declarations.
68819         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
68821 2009-03-08  Bruno Haible  <bruno@clisp.org>
68823         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
68824         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
68825         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
68826         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
68828 2009-03-07  Bruno Haible  <bruno@clisp.org>
68830         Adjust u*_normcmp, u*_normcoll API.
68831         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
68832         u16_normcoll, u32_normcoll): Change failure conventions.
68833         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
68834         errno and return -1.
68835         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
68837 2009-03-07  Bruno Haible  <bruno@clisp.org>
68839         Tests for module 'uninorm/u32-normcoll'.
68840         * modules/uninorm/u32-normcoll-tests: New file.
68841         * tests/uninorm/test-u32-normcoll.c: New file.
68843         Tests for module 'uninorm/u16-normcoll'.
68844         * modules/uninorm/u16-normcoll-tests: New file.
68845         * tests/uninorm/test-u16-normcoll.c: New file.
68847         Tests for module 'uninorm/u8-normcoll'.
68848         * modules/uninorm/u8-normcoll-tests: New file.
68849         * tests/uninorm/test-u8-normcoll.c: New file.
68851 2009-03-07  Bruno Haible  <bruno@clisp.org>
68853         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
68854         tests/uninorm/test-u32-normcmp.c.
68855         * tests/uninorm/test-u32-normcmp.c: Include it.
68856         (test_nonascii): New function, extracted from main. Add some more
68857         tests.
68858         (main): Invoke test_ascii and test_nonascii.
68859         * modules/uninorm/u32-normcmp-tests (Files): Add
68860         tests/uninorm/test-u32-normcmp.h.
68861         (Depends-on): Remove uninorm/u32-normcmp.
68863         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
68864         tests/uninorm/test-u16-normcmp.c.
68865         * tests/uninorm/test-u16-normcmp.c: Include it.
68866         (test_nonascii): New function, extracted from main. Add some more
68867         tests.
68868         (main): Invoke test_ascii and test_nonascii.
68869         * modules/uninorm/u16-normcmp-tests (Files): Add
68870         tests/uninorm/test-u16-normcmp.h.
68871         (Depends-on): Remove uninorm/u16-normcmp.
68873         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
68874         tests/uninorm/test-u8-normcmp.c.
68875         * tests/uninorm/test-u8-normcmp.c: Include it.
68876         (test_nonascii): New function, extracted from main. Add some more
68877         tests.
68878         (main): Invoke test_ascii and test_nonascii.
68879         * modules/uninorm/u8-normcmp-tests (Files): Add
68880         tests/uninorm/test-u8-normcmp.h.
68881         (Depends-on): Remove uninorm/u8-normcmp.
68883 2009-03-07  Bruno Haible  <bruno@clisp.org>
68885         New module 'uninorm/u32-normcoll'.
68886         * lib/uninorm/u32-normcoll.c: New file.
68887         * modules/uninorm/u32-normcoll: New file.
68889         New module 'uninorm/u16-normcoll'.
68890         * lib/uninorm/u16-normcoll.c: New file.
68891         * modules/uninorm/u16-normcoll: New file.
68893         New module 'uninorm/u8-normcoll'.
68894         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
68895         declarations.
68896         * lib/uninorm/u8-normcoll.c: New file.
68897         * lib/uninorm/u-normcoll.h: New file.
68898         * modules/uninorm/u8-normcoll: New file.
68900         New module 'uninorm/u32-normxfrm'.
68901         * lib/uninorm/u32-normxfrm.c: New file.
68902         * modules/uninorm/u32-normxfrm: New file.
68904         New module 'uninorm/u16-normxfrm'.
68905         * lib/uninorm/u16-normxfrm.c: New file.
68906         * modules/uninorm/u16-normxfrm: New file.
68908         New module 'uninorm/u8-normxfrm'.
68909         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
68910         declarations.
68911         * lib/uninorm/u8-normxfrm.c: New file.
68912         * lib/uninorm/u-normxfrm.h: New file.
68913         * modules/uninorm/u8-normxfrm: New file.
68915 2009-03-07  Bruno Haible  <bruno@clisp.org>
68917         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
68918         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
68919         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
68921 2009-03-07  Bruno Haible  <bruno@clisp.org>
68923         New module 'memxfrm'.
68924         * lib/memxfrm.h: New file.
68925         * lib/memxfrm.c: New file.
68926         * modules/memxfrm: New file.
68928 2009-03-07  Bruno Haible  <bruno@clisp.org>
68930         New module 'memcmp2'.
68931         * lib/memcmp2.h: New file.
68932         * lib/memcmp2.c: New file.
68933         * modules/memcmp2: New file.
68935 2009-03-07  Bruno Haible  <bruno@clisp.org>
68937         Tests for module 'uninorm/decomposing-form'.
68938         * modules/uninorm/decomposing-form-tests: New file.
68939         * tests/uninorm/test-decomposing-form.c: New file.
68941         New module 'uninorm/decomposing-form'.
68942         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
68943         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
68944         Add 'decomposing_variant' field.
68945         * lib/uninorm/decomposing-form.c: New file.
68946         * lib/uninorm/nfc.c (uninorm_nfc): Update.
68947         * lib/uninorm/nfd.c (uninorm_nfd): Update.
68948         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
68949         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
68950         * modules/uninorm/decomposing-form: New file.
68951         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
68952         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
68954 2009-03-07  Bruno Haible  <bruno@clisp.org>
68956         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
68957         strings.
68959 2009-03-06  Bruno Haible  <bruno@clisp.org>
68961         Tests for module 'uninorm/u32-normcmp'.
68962         * tests/uninorm/test-u32-normcmp.c: New file.
68963         * modules/uninorm/u32-normcmp-tests: New file.
68965         Tests for module 'uninorm/u16-normcmp'.
68966         * tests/uninorm/test-u16-normcmp.c: New file.
68967         * modules/uninorm/u16-normcmp-tests: New file.
68969         Tests for module 'uninorm/u8-normcmp'.
68970         * tests/uninorm/test-u8-normcmp.c: New file.
68971         * modules/uninorm/u8-normcmp-tests: New file.
68973         New module 'uninorm/u32-normcmp'.
68974         * lib/uninorm/u32-normcmp.c: New file.
68975         * modules/uninorm/u32-normcmp: New file.
68977         New module 'uninorm/u16-normcmp'.
68978         * lib/uninorm/u16-normcmp.c: New file.
68979         * modules/uninorm/u16-normcmp: New file.
68981         New module 'uninorm/u8-normcmp'.
68982         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
68983         declarations.
68984         * lib/uninorm/u8-normcmp.c: New file.
68985         * lib/uninorm/u-normcmp.h: New file.
68986         * modules/uninorm/u8-normcmp: New file.
68988 2009-03-06  Bruno Haible  <bruno@clisp.org>
68990         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
68991         Reported by Eric Blake.
68993 2009-03-06  Eric Blake  <ebb9@byu.net>
68994             Bruno Haible  <bruno@clisp.org>
68996         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
68997         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
68998         condition.
68999         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69000         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
69001         condition.
69002         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69004 2009-03-06  Eric Blake  <ebb9@byu.net>
69006         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
69007         to avoid compiler warnings.
69008         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
69010 2009-03-05  Bruno Haible  <bruno@clisp.org>
69012         * tests/test-ftell.c (main): Disable test beyond end of file on
69013         FreeMiNT.
69014         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69016 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
69018         * lib/filevercmp.c: Move hidden files up in ordering.
69019         * tests/test-filevercmp.c: Add tests for hidden files.
69021 2009-03-04  Bruno Haible  <bruno@clisp.org>
69023         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
69024         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
69025         AM_CFLAGS.
69026         Reported by Simon Josefsson.
69028 2009-03-03  Bruno Haible  <bruno@clisp.org>
69030         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
69031         Reported by Simon Josefsson.
69033         * doc/ld-version-script.texi: Update node reference.
69035 2009-03-03  Bruno Haible  <bruno@clisp.org>
69037         * modules/visibility (License): Change to 'unlimited'.
69038         Suggested by Simon Josefsson.
69040 2009-03-03  Jim Meyering  <meyering@redhat.com>
69042         unlinkdir: cannot_unlink_dir may modify process state
69043         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
69044         it's neither thread-safe nor appropriate for use in a library.
69046 2009-03-03  Eric Blake  <ebb9@byu.net>
69048         test-closein: silence test under Darwin
69049         * tests/test-closein.sh: Ignore stderr from cat, since we don't
69050         care if it dies from EPIPE or EBADF.
69052 2009-03-03  Bruno Haible  <bruno@clisp.org>
69054         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
69055         earlier.
69056         * doc/visibility.texi: Fix @node and @section.
69058 2009-03-03  Simon Josefsson  <simon@josefsson.org>
69060         * doc/gnulib.texi: Link to sections for ld version script and
69061         visibility.
69062         * doc/visibility.texi: Add @node and @section.
69063         * modules/ld-version-script: New module.
69064         * m4/ld-version-script.m4: New file.
69065         * doc/ld-version-script.texi: New file.
69067 2009-03-02  David Lutterkort  <lutter@redhat.com>
69069         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
69070         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69072 2009-03-02  Bruno Haible  <bruno@clisp.org>
69074         * doc/visibility.texi: Mention libtool's -export-symbols option.
69076 2009-03-02  Jim Meyering  <meyering@redhat.com>
69078         announce-gen: new option: --no-print-checksums
69079         * build-aux/announce-gen (usage): Describe it.
69080         (print_checksums): Print a newline here, not in the [*] footnote.
69081         (main): Honor it.
69083 2009-03-01  Bruno Haible  <bruno@clisp.org>
69085         Use socklen_t in the native Windows replacements prototypes.
69086         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
69087         instead of 'int'.
69088         * lib/getsockopt.c (rpl_getsockopt): Likewise.
69089         * lib/setsockopt.c (rpl_setsockopt): Likewise.
69090         * modules/getsockopt (Depends-on): Add socklen.
69091         * modules/setsockopt (Depends-on): Add socklen.
69093 2009-03-01  Bruno Haible  <bruno@clisp.org>
69095         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
69096         least 4.2.
69098 2009-03-01  Eric Blake  <ebb9@byu.net>
69099             Bruno Haible  <bruno@clisp.org>
69101         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
69102         error messages.
69103         * lib/wait-process.c (wait_subprocess): Omit error message about
69104         deadly signal sent to the child of termsigp != NULL.
69106 2009-03-01  Eric Blake  <ebb9@byu.net>
69108         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
69110 2009-03-01  Bruno Haible  <bruno@clisp.org>
69112         Avoid a gcc warning.
69113         * tests/test-sched.c (b): Make global.
69114         Reported by Eric Blake.
69116 2009-01-19  Martin Lambers  <marlam@marlam.de>
69118         Provide POSIX semantics for socket timeout options on W32.
69119         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
69120         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
69121         * modules/setsockopt: Depend on sys_time module for struct timeval.
69122         * modules/getsockopt: Depend on sys_time module for struct timeval.
69124 2009-03-01  Simon Josefsson  <simon@josefsson.org>
69126         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
69127         __USE_GNU, for consistency with netdb.in.h.
69128         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69130 2009-03-01  Bruno Haible  <bruno@clisp.org>
69132         More support for FreeMiNT.
69133         * lib/fseeko.c (rpl_fseeko): Complete last commit.
69134         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69136 2009-03-01  Bruno Haible  <bruno@clisp.org>
69138         More support for FreeMiNT.
69139         * lib/fpurge.c (fpurge): Correct last commit.
69140         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69142 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69144         Fix unportable awk script in vc-list-files.
69145         * build-aux/vc-list-files: In the replacement awk script, use
69146         substr with a second argument of 1, not zero.
69147         Report by Simon Josefsson.
69149 2009-02-28  Bruno Haible  <bruno@clisp.org>
69151         More support for FreeMiNT.
69152         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
69153         to FreeMiNT today.
69154         * lib/fwriting.c (fwriting): Likewise.
69155         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
69157 2009-02-28  Bruno Haible  <bruno@clisp.org>
69159         * tests/test-freadseek.c (main): Disable test beyond end of file on
69160         FreeMiNT.
69161         * tests/test-ftello.c (main): Likewise.
69162         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69164 2009-02-28  Bruno Haible  <bruno@clisp.org>
69166         Add tentative support for FreeMiNT.
69167         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
69168         * lib/fpurge.c (fpurge): Likewise.
69169         * lib/freadable.c (freadable): Likewise.
69170         * lib/freading.c (freading): Likewise.
69171         * lib/freadptr.c (freadptr): Likewise.
69172         * lib/freadseek.c (freadptrinc): Likewise.
69173         * lib/fseeko.c (rpl_fseeko): Likewise.
69174         * lib/fseterr.c (fseterr): Likewise.
69175         * lib/fwritable.c (fwritable): Likewise.
69176         * lib/fwriting.c (fwriting): Likewise.
69177         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
69178         Hourihane.
69179         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69181 2009-02-28  Bruno Haible  <bruno@clisp.org>
69183         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
69184         SIGCHLD.
69185         Reported by Jim Meyering.
69187 2009-02-28  Bruno Haible  <bruno@clisp.org>
69189         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
69190         Mention the results of these tests on various platforms.
69191         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
69192         order.
69193         * doc/posix-functions/printf.texi: Likewise.
69194         * doc/posix-functions/snprintf.texi: Likewise.
69195         * doc/posix-functions/sprintf.texi: Likewise.
69196         * doc/posix-functions/vfprintf.texi: Likewise.
69197         * doc/posix-functions/vprintf.texi: Likewise.
69198         * doc/posix-functions/vsnprintf.texi: Likewise.
69199         * doc/posix-functions/vsprintf.texi: Likewise.
69200         * doc/glibc-functions/obstack_printf.texi: Likewise.
69201         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
69203 2009-02-28  Bruno Haible  <bruno@clisp.org>
69205         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
69206         Reported by Loïc Minier <lool@dooz.org>.
69208 2009-02-27  Bruno Haible  <bruno@clisp.org>
69210         * gnulib-tool (func_import): Make the sed expression used to create the
69211         sed script for updating the .gitignore file POSIX compliant.
69212         Reported by Eric Blake.
69214 2009-02-27  Bruno Haible  <bruno@clisp.org>
69216         * gnulib-tool (sed): Don't alias as "sed --posix".
69217         Reported by Eric Blake.
69219 2009-02-27  Bruno Haible  <bruno@clisp.org>
69221         Avoid test link errors.
69222         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
69223         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
69224         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
69225         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
69226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69228 2009-02-27  Bruno Haible  <bruno@clisp.org>
69230         Avoid spurious "(cached)" in configure output.
69231         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
69232         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
69233         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
69234         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
69235         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
69236         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
69237         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
69238         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
69239         Reported by Eric Blake.
69241 2009-02-27  Eric Blake  <ebb9@byu.net>
69243         printf: fix regression in previous patch
69244         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
69246 2009-02-27  Bruno Haible  <bruno@clisp.org>
69248         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
69249         value.
69250         * lib/stdint.in.h: Likewise.
69251         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
69253 2009-02-27  Eric Blake  <ebb9@byu.net>
69255         doc: mention more functions added in cygwin 1.7.0
69256         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
69257         addition.
69258         * doc/posix-functions/open_wmemstream.texi: Likewise.
69259         * doc/posix-functions/wcsnlen.texi: Likewise.
69260         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69261         * doc/posix-functions/wcstod.texi: Likewise.
69262         * doc/posix-functions/wcstof.texi: Likewise.
69263         * doc/posix-functions/wcstoimax.texi: Likewise.
69264         * doc/posix-functions/wcstok.texi: Likewise.
69265         * doc/posix-functions/wcstoumax.texi: Likewise.
69267         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
69268         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
69269         * doc/posix-functions/fprintf.texi: Update.
69270         * doc/posix-functions/printf.texi: Update.
69271         * doc/posix-functions/snprintf.texi: Update.
69272         * doc/posix-functions/sprintf.texi: Update.
69273         * doc/posix-functions/vfprintf.texi: Update.
69274         * doc/posix-functions/vprintf.texi: Update.
69275         * doc/posix-functions/vsnprintf.texi: Update.
69276         * doc/posix-functions/vsprintf.texi: Update.
69277         * doc/glibc-functions/obstack_printf.texi: Update.
69278         * doc/glibc-functions/obstack_vprintf.texi: Update.
69280 2009-02-26  Eric Blake  <ebb9@byu.net>
69282         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
69283         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
69284         compilation bug by using runtime conversion.
69285         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69286         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
69287         * modules/ceill-tests (Files): Use nan.h.
69288         * modules/floorl-tests (Files): Likewise.
69289         * modules/frexpl-tests (Files): Likewise.
69290         * modules/isnanl-tests (Files): Likewise.
69291         * modules/ldexpl-tests (Files): Likewise.
69292         * modules/roundl-tests (Files): Likewise.
69293         * modules/truncl-tests (Files): Likewise.
69294         * tests/test-ceill.c (main): Use a working NaN.
69295         * tests/test-floorl.c (main): Likewise.
69296         * tests/test-frexpl.c (main): Likewise.
69297         * tests/test-isnan.c (test_long_double): Likewise.
69298         * tests/test-isnanl.h (main): Likewise.
69299         * tests/test-ldexpl.h (main): Likewise.
69300         * tests/test-roundl.h (main): Likewise.
69301         * tests/test-truncl.h (main): Likewise.
69302         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
69304 2009-02-26  Eric Blake  <ebb9@byu.net>
69305             Bruno Haible  <bruno@clisp.org>
69307         Work around a *printf bug with %ls on Solaris.
69308         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
69309         precision is specified, sprintf stops converting the wide string
69310         argument when the number of bytes that have been produced by this
69311         conversion equals or exceeds the precision.
69312         * doc/posix-functions/fprintf.texi: Update.
69313         * doc/posix-functions/printf.texi: Update.
69314         * doc/posix-functions/snprintf.texi: Update.
69315         * doc/posix-functions/sprintf.texi: Update.
69316         * doc/posix-functions/vfprintf.texi: Update.
69317         * doc/posix-functions/vprintf.texi: Update.
69318         * doc/posix-functions/vsnprintf.texi: Update.
69319         * doc/posix-functions/vsprintf.texi: Update.
69320         * doc/glibc-functions/obstack_printf.texi: Update.
69321         * doc/glibc-functions/obstack_vprintf.texi: Update.
69323 2009-02-26  Eric Blake  <ebb9@byu.net>
69325         stdlib: favor compiler check of random.h
69326         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
69327         to avoid an ObjC random.h installed by Swarm.
69329 2009-02-26  Bruno Haible  <bruno@clisp.org>
69331         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
69332         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
69333         Reported by Gary V. Vaughan <gary@gnu.org>.
69335 2009-02-26  Bruno Haible  <bruno@clisp.org>
69337         Fix *printf behaviour regarding the %ls directive.
69338         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
69339         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
69340         NEED_PRINTF_DIRECTIVE_LS.
69341         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
69342         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
69343         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69344         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
69345         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
69346         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
69347         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
69348         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69349         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69350         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69351         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69352         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
69353         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69354         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69355         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69356         * doc/posix-functions/fprintf.texi: Update.
69357         * doc/posix-functions/printf.texi: Update.
69358         * doc/posix-functions/snprintf.texi: Update.
69359         * doc/posix-functions/sprintf.texi: Update.
69360         * doc/posix-functions/vfprintf.texi: Update.
69361         * doc/posix-functions/vprintf.texi: Update.
69362         * doc/posix-functions/vsnprintf.texi: Update.
69363         * doc/posix-functions/vsprintf.texi: Update.
69364         * doc/glibc-functions/obstack_printf.texi: Update.
69365         * doc/glibc-functions/obstack_vprintf.texi: Update.
69366         Reported by Eric Blake.
69368 2009-02-25  Bruno Haible  <bruno@clisp.org>
69370         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
69371         with known value.
69372         Reported by Gary V. Vaughan <gary@gnu.org>.
69374 2009-02-25  Bruno Haible  <bruno@clisp.org>
69376         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
69377         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
69378         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
69379         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
69380         Reported by Gary V. Vaughan <gary@gnu.org>.
69382 2009-02-25  Bruno Haible  <bruno@clisp.org>
69384         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
69385         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
69386         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
69387         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
69388         Reported by Gary V. Vaughan <gary@gnu.org>.
69390 2009-02-25  Eric Blake  <ebb9@byu.net>
69392         tests: skip fseek/ftell tests if ungetc is broken
69393         * m4/ungetc.m4: New file.
69394         * modules/fseek-tests: Split test, so ungetc dependency is
69395         separate from rest of test.
69396         * modules/fseeko-tests: Likewise.
69397         * modules/ftell-tests: Likewise.
69398         * modules/ftello-tests: Likewise.
69399         * tests/test-fseek.c (main): Isolate ungetc dependency.
69400         * tests/test-fseeko.c (main): Likewise.
69401         * tests/test-ftell.c (main): Likewise.
69402         * tests/test-ftello.c (main): Likewise.
69403         * tests/test-fseek2.sh: New file.
69404         * tests/test-fseeko2.sh: Likewise.
69405         * tests/test-ftell2.sh: Likewise.
69406         * tests/test-ftello2.sh: Likewise.
69408 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
69410         test-getaddrinfo: fix usage of skip return code 77
69411         * tests/test-gettaddrinfo.c: Return skip code 77 only
69412         for first occurrence of skip (4x77 is not 77)
69414 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
69416         strtod: avoid C99 decl-after-statement
69417         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
69419 2009-02-24  Eric Blake  <ebb9@byu.net>
69421         strtod: detect HP-UX 11.31 bug
69422         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
69423         Reported by Gary V. Vaughan.
69425 2009-02-23  Bruno Haible  <bruno@clisp.org>
69427         Fix invalid read past end of memory block.
69428         * lib/vasnprintf.c (DCHAR_SET): Define.
69429         (local_wcslen): Define only when needed.
69430         (local_strnlen, local_wcsnlen): New functions.
69431         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
69432         directives that involve a conversion ourselves.
69433         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
69434         wcsnlen, mbrtowc, wcrtomb.
69435         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
69436         * tests/test-vasprintf-posix.c (test_function): Likewise.
69437         * tests/test-snprintf-posix.h (test_function): Likewise.
69438         * tests/test-sprintf-posix.h (test_function): Likewise.
69439         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69441 2009-02-22  Bruno Haible  <bruno@clisp.org>
69443         Implement new clarified decomposition of Hangul syllables.
69444         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
69445         of type LTV, return only a pairwise decomposition.
69446         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
69447         Likewise.
69448         * tests/uninorm/test-decomposition.c (main): Updated expected result.
69449         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
69450         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
69452 2009-02-22  Bruno Haible  <bruno@clisp.org>
69454         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
69455         zero-length results and shrink excess allocated memory.
69456         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
69457         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
69458         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
69459         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
69460         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
69461         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
69462         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
69463         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
69464         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
69465         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
69466         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
69467         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
69469 2009-02-21  Bruno Haible  <bruno@clisp.org>
69471         * doc/gnulib.texi: Include safe-alloc.texi earlier.
69472         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
69473         spaces after a period. Put a space between a macro name and its
69474         argument list. Trivial rewordings.
69475         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
69476         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
69477         (main): Return 0 explicitly.
69479 2009-02-21  Bruno Haible  <bruno@clisp.org>
69481         Tests for module 'uninorm/filter'.
69482         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
69483         * modules/uninorm/filter-tests: New file.
69485         New module 'uninorm/filter'.
69486         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
69487         uninorm_filter_flush, uninorm_filter_free): New declarations.
69488         * lib/uninorm/uninorm-filter.c: New file.
69489         * modules/uninorm/filter: New file.
69491 2009-02-21  Bruno Haible  <bruno@clisp.org>
69493         Tests for module 'uninorm/nfkc'.
69494         * tests/uninorm/test-nfkc.c: New file.
69495         * tests/uninorm/test-u8-nfkc.c: New file.
69496         * tests/uninorm/test-u16-nfkc.c: New file.
69497         * tests/uninorm/test-u32-nfkc.c: New file.
69498         * tests/uninorm/test-u32-nfkc-big.sh: New file.
69499         * tests/uninorm/test-u32-nfkc-big.c: New file.
69500         * modules/uninorm/nfkc-tests: New file.
69502         New module 'uninorm/nfkc'.
69503         * lib/uninorm/nfkc.c: New file.
69504         * modules/uninorm/nfkc: New file.
69506         Tests for module 'uninorm/nfkd'.
69507         * tests/uninorm/test-nfkd.c: New file.
69508         * tests/uninorm/test-u8-nfkd.c: New file.
69509         * tests/uninorm/test-u16-nfkd.c: New file.
69510         * tests/uninorm/test-u32-nfkd.c: New file.
69511         * tests/uninorm/test-u32-nfkd-big.sh: New file.
69512         * tests/uninorm/test-u32-nfkd-big.c: New file.
69513         * modules/uninorm/nfkd-tests: New file.
69515         New module 'uninorm/nfkd'.
69516         * lib/uninorm/nfkd.c: New file.
69517         * modules/uninorm/nfkd: New file.
69519         Tests for module 'uninorm/nfc'.
69520         * tests/uninorm/test-nfc.c: New file.
69521         * tests/uninorm/test-u8-nfc.c: New file.
69522         * tests/uninorm/test-u16-nfc.c: New file.
69523         * tests/uninorm/test-u32-nfc.c: New file.
69524         * tests/uninorm/test-u32-nfc-big.sh: New file.
69525         * tests/uninorm/test-u32-nfc-big.c: New file.
69526         * modules/uninorm/nfc-tests: New file.
69528         New module 'uninorm/nfc'.
69529         * lib/uninorm/nfc.c: New file.
69530         * modules/uninorm/nfc: New file.
69532         Tests for module 'uninorm/nfd'.
69533         * tests/uninorm/test-nfd.c: New file.
69534         * tests/uninorm/test-u8-nfd.c: New file.
69535         * tests/uninorm/test-u16-nfd.c: New file.
69536         * tests/uninorm/test-u32-nfd.c: New file.
69537         * tests/uninorm/test-u32-nfd-big.sh: New file.
69538         * tests/uninorm/test-u32-nfd-big.c: New file.
69539         * tests/uninorm/test-u32-normalize-big.h: New file.
69540         * tests/uninorm/test-u32-normalize-big.c: New file.
69541         * tests/uninorm/NormalizationTest.txt: New file, created from
69542         Unicode 5.1.0 NormalizationTest.txt.
69543         * modules/uninorm/nfd-tests: New file.
69545         New module 'uninorm/nfd'.
69546         * lib/uninorm/nfd.c: New file.
69547         * modules/uninorm/nfd: New file.
69549         New module 'uninorm/u32-normalize'.
69550         * lib/uninorm/u32-normalize.c: New file.
69551         * modules/uninorm/u32-normalize: New file.
69553         New module 'uninorm/u16-normalize'.
69554         * lib/uninorm/u16-normalize.c: New file.
69555         * modules/uninorm/u16-normalize: New file.
69557         New module 'uninorm/u8-normalize'.
69558         * lib/uninorm/u8-normalize.c: New file.
69559         * lib/uninorm/normalize-internal.h: New file.
69560         * lib/uninorm/u-normalize-internal.h: New file.
69561         * modules/uninorm/u8-normalize: New file.
69563         New module 'uninorm/decompose-internal'.
69564         * lib/uninorm/decompose-internal.c: New file.
69565         * modules/uninorm/decompose-internal: New file.
69567         Tests for module 'uninorm/composition'.
69568         * tests/uninorm/test-composition.c: New file.
69569         * modules/uninorm/composition-tests: New file.
69571         New module 'uninorm/composition'.
69572         * lib/uninorm/composition.c: New file.
69573         * lib/uninorm/composition-table.gperf: New file, generated by
69574         gen-uni-tables.
69575         * modules/uninorm/composition: New file.
69577         Tests for module 'uninorm/compat-decomposition'.
69578         * tests/uninorm/test-compat-decomposition.c: New file.
69579         * modules/uninorm/compat-decomposition-tests: New file.
69581         New module 'uninorm/compat-decomposition'.
69582         * lib/uninorm/decompose-internal.h: New file.
69583         * lib/uninorm/compat-decomposition.c: New file.
69584         * modules/uninorm/compat-decomposition: New file.
69586         Tests for module 'uninorm/canonical-decomposition'.
69587         * tests/uninorm/test-canonical-decomposition.c: New file.
69588         * modules/uninorm/canonical-decomposition-tests: New file.
69590         New module 'uninorm/canonical-decomposition'.
69591         * lib/uninorm/canonical-decomposition.c: New file.
69592         * modules/uninorm/canonical-decomposition: New file.
69594         Tests for module 'uninorm/decomposition'.
69595         * tests/uninorm/test-decomposition.c: New file.
69596         * modules/uninorm/decomposition-tests: New file.
69598         New module 'uninorm/decomposition'.
69599         * lib/uninorm/decomposition.c: New file.
69600         * modules/uninorm/decomposition: New file.
69602         New module 'uninorm/decomposition-table'.
69603         * lib/uninorm/decomposition-table.h: New file.
69604         * lib/uninorm/decomposition-table.c: New file.
69605         * lib/uninorm/decomposition-table1.h: New file, generated by
69606         gen-uni-tables.
69607         * lib/uninorm/decomposition-table2.h: New file, generated by
69608         gen-uni-tables.
69609         * modules/uninorm/decomposition-table: New file.
69611         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
69612         (UC_DECOMP_*): New enumeration items.
69613         (get_decomposition): New function.
69614         (struct decomp_table): New type.
69615         (output_decomposition, output_decomposition_tables): New functions.
69616         (unicode_composition_exclusions): New variable.
69617         (fill_composition_exclusions, debug_output_composition_tables): New
69618         functions.
69619         (main): Accept one more argument. Invoke fill_composition_exclusions.
69620         Output decomposition and composition tables.
69622         New module 'uninorm/base'.
69623         * lib/uninorm.h: New file.
69624         * lib/unictype.h: Update comment.
69625         * modules/uninorm/base: New file.
69627 2009-02-21  David Lutterkort  <lutter@redhat.com>
69629         Tests for module 'safe-alloc'.
69630         * tests/test-safe-alloc.c: New file.
69631         * modules/safe-alloc-tests: New file.
69633         New module 'safe-alloc'.
69634         * lib/safe-alloc.h: New file.
69635         * lib/safe-alloc.c: New file.
69636         * m4/safe-alloc.m4: New file.
69637         * modules/safe-alloc: New file.
69638         * doc/safe-alloc.texi: New file.
69639         * doc/gnulib.texi: Include it.
69640         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
69641         safe-alloc.
69643 2009-02-18  Bruno Haible  <bruno@clisp.org>
69645         Fix link error on non-glibc systems.
69646         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
69647         variable.
69648         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69650 2009-02-18  Jim Meyering  <meyering@redhat.com>
69652         fts: avoid used-uninitialized error due to recent change
69653         * lib/fts.c (fts_read): Guard uses of the new member,
69654         parent->fts_n_dirs_remaining, since it's not relevant for
69655         the parent of a directory specified on the command-line.
69657 2009-02-17  James Youngman  <jay@gnu.org>
69658             Bruno Haible  <bruno@clisp.org>
69660         * m4/include_next.m4: Reformulate comment.
69662 2009-02-16  Jim Meyering  <meyering@redhat.com>
69664         fts: add #if guards so that the fts_lgpl module still builds
69665         * lib/fts.c: Guard just-added hash-table-using parts with
69666         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
69667         Reported by Simon Josefsson.
69669 2009-02-15  Bruno Haible  <bruno@clisp.org>
69671         * modules/array-mergesort-tests: New file.
69672         * tests/test-array-mergesort.c: New file.
69674         New module 'array-mergesort'.
69675         * modules/array-mergesort: New file.
69676         * lib/array-mergesort.h: New file.
69678 2009-02-15  Bruno Haible  <bruno@clisp.org>
69680         Fix 2009-02-07 commit.
69681         * lib/gen-uni-tables.c (output_predicate, output_category,
69682         output_combclass, output_bidi_category, output_decimal_digit,
69683         output_digit, output_numeric, output_mirror, output_scripts,
69684         output_ident_category, output_simple_mapping): Fix format directives.
69685         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
69687 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
69689         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
69690         fixes are available from IBM.
69692 2009-02-13  Jim Meyering  <meyering@redhat.com>
69694         fts: arrange not to stat non-directories in more cases
69695         This makes GNU find (when it doesn't need to stat each file)
69696         *much* more efficient at traversing reiserfs file systems.
69697         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
69698         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
69699         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
69700         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
69701         (leaf_optimization_applies): New function.
69702         (LCO_hash, LCO_compare): New helper functions.
69703         (link_count_optimize_ok): New function.
69704         (fts_stat): Initialize new member (if dir).
69705         (fts_read): Decrement parent's fts_n_dirs_remaining count if
69706         we've just stat'ed a directory.  Skip the stat call when possible.
69707         ---
69708         Note this AFS-related exchange:
69709         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
69710         and note find's pioctl call in find/fstype.c.
69711         But that is necessary only if you want to enable the
69712         optimization for AFS, and for now, I don't.
69714         fts: move a function definition "up" (no semantic change)
69715         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
69716         "up" to precede upcoming use of a related function.
69718 2009-02-11  Jim Meyering  <meyering@redhat.com>
69720         fts: correct internal computation of nlinks (optimization-related)
69721         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
69722         whether the current entry is a directory, so don't test it.
69724 2009-02-10  Bruno Haible  <bruno@clisp.org>
69726         Tests for module 'uniwbrk/ulc-wordbreaks'.
69727         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
69728         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
69729         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
69731         Tests for module 'uniwbrk/u32-wordbreaks'.
69732         * modules/uniwbrk/u32-wordbreaks-tests: New file.
69733         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
69735         Tests for module 'uniwbrk/u16-wordbreaks'.
69736         * modules/uniwbrk/u16-wordbreaks-tests: New file.
69737         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
69739         Tests for module 'uniwbrk/u8-wordbreaks'.
69740         * modules/uniwbrk/u8-wordbreaks-tests: New file.
69741         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
69743 2009-02-10  Bruno Haible  <bruno@clisp.org>
69745         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
69746         property.
69747         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
69748         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
69749         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
69751 2009-02-10  Simon Josefsson  <simon@josefsson.org>
69753         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
69754         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
69756 2009-02-10  Bruno Haible  <bruno@clisp.org>
69758         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
69759         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
69760         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
69761         * lib/unilbrk/u8-possible-linebreaks.c: Update.
69762         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
69763         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
69765 2009-02-09  Simon Josefsson  <simon@josefsson.org>
69767         * lib/sockets.h (gl_fd_to_handle): New function.
69769         * tests/test-sockets.c: Call gl_fd_to_handle.
69771 2009-02-09  Bruno Haible  <bruno@clisp.org>
69773         * doc/havelib.texi: Document the conventions on bi-arch systems.
69775 2009-02-08  Bruno Haible  <bruno@clisp.org>
69777         Document the AC_LIB_LINKFLAGS macro.
69778         * doc/havelib.texi: New file, mostly written on 2005-05-24.
69779         * doc/gnulib.texi: Include it.
69781 2009-02-08  Bruno Haible  <bruno@clisp.org>
69783         Fix wrong order of sections, compared to TOC.
69784         * doc/gnulib.texi: Include relocatable-maint.texi after the
69785         "Regular expressions" node, not before.
69787 2009-02-08  Bruno Haible  <bruno@clisp.org>
69789         Tests for module 'unicase/totitle'.
69790         * modules/unicase/totitle-tests: New file.
69792         Tests for module 'unicase/tolower'.
69793         * modules/unicase/tolower-tests: New file.
69795         Tests for module 'unicase/toupper'.
69796         * modules/unicase/toupper-tests: New file.
69797         * tests/unicase/test-mapping-part1.h: New file.
69798         * tests/unicase/test-mapping-part2.h: New file.
69800         New module 'unicase/totitle'.
69801         * modules/unicase/totitle: New file.
69802         * lib/unicase/totitle.c: New file.
69804         New module 'unicase/tolower'.
69805         * modules/unicase/tolower: New file.
69806         * lib/unicase/tolower.c: New file.
69808         New module 'unicase/toupper'.
69809         * modules/unicase/toupper: New file.
69810         * lib/unicase/toupper.c: New file.
69811         * lib/unicase/simple-mapping.h: New file.
69813         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
69814         (mapping_table): New structure.
69815         (output_simple_mapping): New function.
69816         (main): Invoke output_simple_mapping_test and output_simple_mapping.
69817         * modules/gen-uni-tables (Description): Update.
69818         * lib/unicase/toupper.h: New file, automatically generated by
69819         gen-uni-tables.
69820         * lib/unicase/tolower.h: New file, automatically generated by
69821         gen-uni-tables.
69822         * lib/unicase/totitle.h: New file, automatically generated by
69823         gen-uni-tables.
69824         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
69825         gen-uni-tables.
69826         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
69827         gen-uni-tables.
69828         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
69829         gen-uni-tables.
69831         New module 'unicase/base'.
69832         * modules/unicase/base: New file.
69833         * lib/unicase.h: New file.
69835 2009-02-08  Bruno Haible  <bruno@clisp.org>
69837         New module 'uniwbrk/ulc-wordbreaks'.
69838         * modules/uniwbrk/ulc-wordbreaks: New file.
69839         * lib/uniwbrk/ulc-wordbreaks.c: New file.
69841         New module 'uniwbrk/u32-wordbreaks'.
69842         * modules/uniwbrk/u32-wordbreaks: New file.
69843         * lib/uniwbrk/u32-wordbreaks.c: New file.
69845         New module 'uniwbrk/u16-wordbreaks'.
69846         * modules/uniwbrk/u16-wordbreaks: New file.
69847         * lib/uniwbrk/u16-wordbreaks.c: New file.
69849         New module 'uniwbrk/u8-wordbreaks'.
69850         * modules/uniwbrk/u8-wordbreaks: New file.
69851         * lib/uniwbrk/u8-wordbreaks.c: New file.
69852         * lib/uniwbrk/u-wordbreaks.h: New file.
69854         New module 'uniwbrk/table'.
69855         * modules/uniwbrk/table: New file.
69856         * lib/uniwbrk/wbrktable.h: New file.
69857         * lib/uniwbrk/wbrktable.c: New file.
69859         New module 'uniwbrk/wordbreak-property'.
69860         * modules/uniwbrk/wordbreak-property: New file.
69861         * lib/uniwbrk/wordbreak-property.c: New file.
69863         * lib/gen-uni-tables.c (WBP_*): New enum items.
69864         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
69865         (unicode_org_wbp): New variable.
69866         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
69867         New functions.
69868         (wbp_table): New structure.
69869         (output_wbp, output_wbrk_tables): New functions.
69870         (main): Accept additional argument. Invoke fill_org_wbp,
69871         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
69872         output_wbrk_tables.
69873         * modules/gen-uni-tables (Description): Update.
69874         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
69875         gen-uni-tables.
69877         New module 'uniwbrk/base'.
69878         * modules/uniwbrk/base: New file.
69879         * lib/uniwbrk.h: New file.
69881 2009-02-08  Bruno Haible  <bruno@clisp.org>
69883         Update to Unicode 5.1.0.
69884         * lib/gen-uni-tables.c (is_property_alphabetic): Include
69885         U+2185..U+2188.
69886         (is_property_default_ignorable_code_point): Don't include characters
69887         of category Cc or Cs and not-a-characters.
69888         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
69889         U+0D79, U+109E, U+109F, U+A60C.
69890         * lib/unictype/bidi_of.h: Regenerated.
69891         * lib/unictype/blocks.h: Regenerated.
69892         * lib/unictype/categ_C.h: Regenerated.
69893         * lib/unictype/categ_Cf.h: Regenerated.
69894         * lib/unictype/categ_Cn.h: Regenerated.
69895         * lib/unictype/categ_L.h: Regenerated.
69896         * lib/unictype/categ_Ll.h: Regenerated.
69897         * lib/unictype/categ_Lm.h: Regenerated.
69898         * lib/unictype/categ_Lo.h: Regenerated.
69899         * lib/unictype/categ_Lu.h: Regenerated.
69900         * lib/unictype/categ_M.h: Regenerated.
69901         * lib/unictype/categ_Mc.h: Regenerated.
69902         * lib/unictype/categ_Me.h: Regenerated.
69903         * lib/unictype/categ_Mn.h: Regenerated.
69904         * lib/unictype/categ_N.h: Regenerated.
69905         * lib/unictype/categ_Nd.h: Regenerated.
69906         * lib/unictype/categ_Nl.h: Regenerated.
69907         * lib/unictype/categ_No.h: Regenerated.
69908         * lib/unictype/categ_P.h: Regenerated.
69909         * lib/unictype/categ_Pd.h: Regenerated.
69910         * lib/unictype/categ_Pe.h: Regenerated.
69911         * lib/unictype/categ_Pf.h: Regenerated.
69912         * lib/unictype/categ_Pi.h: Regenerated.
69913         * lib/unictype/categ_Po.h: Regenerated.
69914         * lib/unictype/categ_Ps.h: Regenerated.
69915         * lib/unictype/categ_S.h: Regenerated.
69916         * lib/unictype/categ_Sk.h: Regenerated.
69917         * lib/unictype/categ_Sm.h: Regenerated.
69918         * lib/unictype/categ_So.h: Regenerated.
69919         * lib/unictype/categ_of.h: Regenerated.
69920         * lib/unictype/combining.h: Regenerated.
69921         * lib/unictype/ctype_alnum.h: Regenerated.
69922         * lib/unictype/ctype_alpha.h: Regenerated.
69923         * lib/unictype/ctype_graph.h: Regenerated.
69924         * lib/unictype/ctype_lower.h: Regenerated.
69925         * lib/unictype/ctype_print.h: Regenerated.
69926         * lib/unictype/ctype_punct.h: Regenerated.
69927         * lib/unictype/ctype_upper.h: Regenerated.
69928         * lib/unictype/decdigit.h: Regenerated.
69929         * lib/unictype/digit.h: Regenerated.
69930         * lib/unictype/mirror.h: Regenerated.
69931         * lib/unictype/numeric.h: Regenerated.
69932         * lib/unictype/pr_alphabetic.h: Regenerated.
69933         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
69934         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
69935         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
69936         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
69937         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
69938         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
69939         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
69940         * lib/unictype/pr_combining.h: Regenerated.
69941         * lib/unictype/pr_dash.h: Regenerated.
69942         * lib/unictype/pr_decimal_digit.h: Regenerated.
69943         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
69944         * lib/unictype/pr_deprecated.h: Regenerated.
69945         * lib/unictype/pr_diacritic.h: Regenerated.
69946         * lib/unictype/pr_extender.h: Regenerated.
69947         * lib/unictype/pr_format_control.h: Regenerated.
69948         * lib/unictype/pr_grapheme_base.h: Regenerated.
69949         * lib/unictype/pr_grapheme_extend.h: Regenerated.
69950         * lib/unictype/pr_grapheme_link.h: Regenerated.
69951         * lib/unictype/pr_id_continue.h: Regenerated.
69952         * lib/unictype/pr_id_start.h: Regenerated.
69953         * lib/unictype/pr_ideographic.h: Regenerated.
69954         * lib/unictype/pr_ignorable_control.h: Regenerated.
69955         * lib/unictype/pr_lowercase.h: Regenerated.
69956         * lib/unictype/pr_math.h: Regenerated.
69957         * lib/unictype/pr_numeric.h: Regenerated.
69958         * lib/unictype/pr_other_alphabetic.h: Regenerated.
69959         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
69960         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
69961         * lib/unictype/pr_other_id_continue.h: Regenerated.
69962         * lib/unictype/pr_other_lowercase.h: Regenerated.
69963         * lib/unictype/pr_other_math.h: Regenerated.
69964         * lib/unictype/pr_punctuation.h: Regenerated.
69965         * lib/unictype/pr_sentence_terminal.h: Regenerated.
69966         * lib/unictype/pr_soft_dotted.h: Regenerated.
69967         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
69968         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
69969         * lib/unictype/pr_unified_ideograph.h: Regenerated.
69970         * lib/unictype/pr_uppercase.h: Regenerated.
69971         * lib/unictype/pr_xid_continue.h: Regenerated.
69972         * lib/unictype/pr_xid_start.h: Regenerated.
69973         * lib/unictype/pr_zero_width.h: Regenerated.
69974         * lib/unictype/scripts.h: Regenerated.
69975         * lib/unictype/scripts_byname.gperf: Regenerated.
69976         * lib/unictype/sy_java_ident.h: Regenerated.
69977         * lib/unilbrk/lbrkprop1.h: Regenerated.
69978         * lib/unilbrk/lbrkprop2.h: Regenerated.
69979         * tests/unictype/test-categ_C.c: Regenerated.
69980         * tests/unictype/test-categ_Cf.c: Regenerated.
69981         * tests/unictype/test-categ_Cn.c: Regenerated.
69982         * tests/unictype/test-categ_L.c: Regenerated.
69983         * tests/unictype/test-categ_Ll.c: Regenerated.
69984         * tests/unictype/test-categ_Lm.c: Regenerated.
69985         * tests/unictype/test-categ_Lo.c: Regenerated.
69986         * tests/unictype/test-categ_Lu.c: Regenerated.
69987         * tests/unictype/test-categ_M.c: Regenerated.
69988         * tests/unictype/test-categ_Mc.c: Regenerated.
69989         * tests/unictype/test-categ_Me.c: Regenerated.
69990         * tests/unictype/test-categ_Mn.c: Regenerated.
69991         * tests/unictype/test-categ_N.c: Regenerated.
69992         * tests/unictype/test-categ_Nd.c: Regenerated.
69993         * tests/unictype/test-categ_Nl.c: Regenerated.
69994         * tests/unictype/test-categ_No.c: Regenerated.
69995         * tests/unictype/test-categ_P.c: Regenerated.
69996         * tests/unictype/test-categ_Pd.c: Regenerated.
69997         * tests/unictype/test-categ_Pe.c: Regenerated.
69998         * tests/unictype/test-categ_Pf.c: Regenerated.
69999         * tests/unictype/test-categ_Pi.c: Regenerated.
70000         * tests/unictype/test-categ_Po.c: Regenerated.
70001         * tests/unictype/test-categ_Ps.c: Regenerated.
70002         * tests/unictype/test-categ_S.c: Regenerated.
70003         * tests/unictype/test-categ_Sk.c: Regenerated.
70004         * tests/unictype/test-categ_Sm.c: Regenerated.
70005         * tests/unictype/test-categ_So.c: Regenerated.
70006         * tests/unictype/test-ctype_alnum.c: Regenerated.
70007         * tests/unictype/test-ctype_alpha.c: Regenerated.
70008         * tests/unictype/test-ctype_graph.c: Regenerated.
70009         * tests/unictype/test-ctype_lower.c: Regenerated.
70010         * tests/unictype/test-ctype_print.c: Regenerated.
70011         * tests/unictype/test-ctype_punct.c: Regenerated.
70012         * tests/unictype/test-ctype_upper.c: Regenerated.
70013         * tests/unictype/test-decdigit.h: Regenerated.
70014         * tests/unictype/test-digit.h: Regenerated.
70015         * tests/unictype/test-numeric.h: Regenerated.
70016         * tests/unictype/test-pr_alphabetic.c: Regenerated.
70017         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
70018         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
70019         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
70020         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
70021         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
70022         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
70023         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
70024         * tests/unictype/test-pr_combining.c: Regenerated.
70025         * tests/unictype/test-pr_dash.c: Regenerated.
70026         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
70027         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
70028         * tests/unictype/test-pr_deprecated.c: Regenerated.
70029         * tests/unictype/test-pr_diacritic.c: Regenerated.
70030         * tests/unictype/test-pr_extender.c: Regenerated.
70031         * tests/unictype/test-pr_format_control.c: Regenerated.
70032         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
70033         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
70034         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
70035         * tests/unictype/test-pr_id_continue.c: Regenerated.
70036         * tests/unictype/test-pr_id_start.c: Regenerated.
70037         * tests/unictype/test-pr_ideographic.c: Regenerated.
70038         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
70039         * tests/unictype/test-pr_lowercase.c: Regenerated.
70040         * tests/unictype/test-pr_math.c: Regenerated.
70041         * tests/unictype/test-pr_numeric.c: Regenerated.
70042         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
70043         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
70044         Regenerated.
70045         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
70046         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
70047         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
70048         * tests/unictype/test-pr_other_math.c: Regenerated.
70049         * tests/unictype/test-pr_punctuation.c: Regenerated.
70050         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
70051         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
70052         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
70053         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
70054         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
70055         * tests/unictype/test-pr_uppercase.c: Regenerated.
70056         * tests/unictype/test-pr_xid_continue.c: Regenerated.
70057         * tests/unictype/test-pr_xid_start.c: Regenerated.
70058         * tests/unictype/test-pr_zero_width.c: Regenerated.
70060         Update to Unicode 5.1.0.
70061         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
70062         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
70063         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
70064         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
70065         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
70066         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
70067         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
70068         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
70069         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
70070         (nonspacing_table_ind): Update.
70071         * tests/uniwidth/test-uc_width2.sh: Update expected result.
70073         Update to Unicode 5.1.0.
70074         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
70075         code transform.
70076         * lib/uniname/uniname.c (unicode_character_name,
70077         unicode_name_character): Add the range 0x1Fxxx to the code transform.
70078         * lib/uniname/uninames.h: Regenerated.
70079         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
70081 2009-02-07  Bruno Haible  <bruno@clisp.org>
70083         Merge gen-ctype and gen-lbrk into a single program.
70084         * lib/gen-uni-tables.c: New file, incorporating
70085         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
70086         Add directory prefixes to the names of the generated files.
70087         * lib/unictype/gen-ctype.c: Remove file.
70088         * lib/unilbrk/gen-lbrk.c: Remove file.
70089         * modules/gen-uni-tables: New file.
70090         * modules/unictype/gen-ctype: Remove file.
70091         * modules/unilbrk/gen-lbrk: Remove file.
70093 2009-02-07  Bruno Haible  <bruno@clisp.org>
70095         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
70097         New module 'unistr/u32-strcoll'.
70098         * modules/unistr/u32-strcoll: New file.
70099         * lib/unistr/u32-strcoll.c: New file.
70101         New module 'unistr/u16-strcoll'.
70102         * modules/unistr/u16-strcoll: New file.
70103         * lib/unistr/u16-strcoll.c: New file.
70105         New module 'unistr/u8-strcoll'.
70106         * modules/unistr/u8-strcoll: New file.
70107         * lib/unistr/u8-strcoll.c: New file.
70108         * lib/unistr/u-strcoll.h: New file.
70110 2009-02-07  Bruno Haible  <bruno@clisp.org>
70112         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
70113         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70114         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70115         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
70116         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
70117         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
70119 2009-02-07  Bruno Haible  <bruno@clisp.org>
70121         Make 64-bit clean.
70122         * lib/unictype/gen-ctype.c (output_predicate, output_category,
70123         output_combclass, output_bidi_category, output_decimal_digit,
70124         output_digit, output_numeric, output_mirror, output_scripts,
70125         output_ident_category): Use proper width specifier in format strings.
70127 2009-02-07  Bruno Haible  <bruno@clisp.org>
70129         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
70130         failure behaviour.
70132 2009-02-07  Jim Meyering  <meyering@redhat.com>
70134         regex: avoid compilation failure with upcoming gcc-4.4
70135         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
70136         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
70137         "... error: integer overflow in preprocessor expression".
70139 2009-02-05  Ben Pfaff  <blp@gnu.org>
70141         Fix link errors on Windows when close module is used.
70142         * modules/close: Add $(LIB_CLOSE) to Link section.
70143         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
70144         $(LIB_CLOSE) on Windows.
70146 2009-02-05  Jim Meyering  <meyering@redhat.com>
70148         still avoid unused-parameter warnings, but do it cleanly
70149         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
70150         (get_fs_usage): Cast to void instead.
70151         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
70152         (dev_from_mount_options, read_file_system_list): Cast to void.
70153         Prompted by Bruno Haible.
70155 2009-02-04  Jim Meyering  <meyering@redhat.com>
70157         fsusage.c: correct copyright year
70158         * lib/fsusage.c: Reflect year in which the change is pushed into
70160         avoid misc. warnings
70161         * lib/fsusage.c (UNUSED_PARAM): Define.
70162         (get_fs_usage): Mark parameter "disk" as unused.
70163         * lib/getugroups.c (getgrent): Use "void" in prototype.
70164         * lib/mountlist.c: Mark unused parameters.
70165         (read_file_system_list): Declare a local with "const".
70166         * lib/nanosleep.c (getnow): Declare static.
70167         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
70169         dirfd: set errno upon failure
70170         * lib/dirfd.c: Include <errno.h>.
70171         Set errno to ENOTSUP when returning -1.
70172         * modules/dirfd (Depends-on): Add errno.
70173         Suggested by John Kodis <kodis@comcast.net>.
70175 2009-02-01  Bruno Haible  <bruno@clisp.org>
70177         Don't assume sizeof (long) >= sizeof (void *).
70178         * lib/memcmp.c: Include stdint.h.
70179         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
70180         srcp2 to 'const byte *'.
70181         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
70182         types to uintptr_t.
70183         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
70184         * modules/memcmp (Depends-on): Add stdint.
70185         Reported by Ozkan Sezer <sezeroz@gmail.com>.
70187 2009-01-30  Eric Blake  <ebb9@byu.net>
70189         fix more require-before-expand issues
70190         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
70191         expand, AC_PROG_AWK.
70192         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
70194 2009-01-28  Eric Blake  <ebb9@byu.net>
70196         version-etc: use consistent URL formatting
70197         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
70198         Improve formatting.  Use fputs for string without %.
70200 2009-01-28  Jim Meyering  <meyering@redhat.com>
70202         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
70203         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
70204         "underquoted definition of NAME" from autoconf-2.59.
70206 2009-01-28  Bruno Haible  <bruno@clisp.org>
70208         * doc/gnulib.texi: Add "Obsolete modules" to index.
70210 2009-01-28  Jim Meyering  <meyering@redhat.com>
70212         useless-if-before-free: recognize more variants
70213         * build-aux/useless-if-before-free: Also recognize e.g.,
70214         if (NULL != p) free (p);
70216 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
70218         test-getaddrinfo: skip (don't fail) this test when there's no network
70219         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
70220         on the presumption that it means you lack network access.
70222 2009-01-26  Jim Meyering  <meyering@redhat.com>
70224         fflush: avoid warnings on modern systems
70225         * lib/fflush.c (rpl_fflush): Move declarations of locals,
70226         pos and result, into scopes where they're used.
70228 2009-01-26  Eric Blake  <ebb9@byu.net>
70230         Silence warning reintroduced by recent extensions patch.
70231         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
70232         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
70233         autoconf.
70235         Backport improved autoconf semantics of AC_DEFUN_ONCE.
70236         * m4/00gnulib.m4: New file.
70237         * gnulib-tool (func_get_filelist): Always use it.
70238         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
70239         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
70241 2009-01-25  Bruno Haible  <bruno@clisp.org>
70243         Make test-quotearg work on MacOS X and AIX.
70244         * tests/test-quotearg.sh: New file.
70245         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
70246         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
70247         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
70248         include <libintl.h>.
70249         (fake_locale): Remove variable.
70250         (gettext, dgettext, dcgettext): Remove functions.
70251         (main): Instead of setting a fake locale, set a real locale. Call
70252         textdomain and bindtextdomain.
70253         * modules/quotearg-tests (Files): Add the new files.
70254         (Depends-on): Add gettext, setenv, unsetenv.
70255         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70256         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
70257         Augment TESTS_ENVIRONMENT.
70259 2009-01-25  Bruno Haible  <bruno@clisp.org>
70261         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
70262         fr_FR.ISO8859-1 locale on MacOS X.
70263         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
70264         ja_JP.eucJP locale on MacOS X.
70265         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
70266         zh_CN.GB18030 locale on MacOS X.
70268 2009-01-25  Bruno Haible  <bruno@clisp.org>
70270         Avoid link errors on MacOS X 10.3.
70271         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
70272         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
70274 2009-01-25  Bruno Haible  <bruno@clisp.org>
70276         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70277         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
70278         * modules/pipe (Files): Remove m4/posix_spawn.m4.
70279         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70280         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
70281         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70282         posix_spawnattr_init, posix_spawnattr_setsigmask,
70283         posix_spawnattr_setflags, posix_spawnattr_destroy.
70285         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
70286         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
70287         * modules/execute (Files): Remove m4/posix_spawn.m4.
70288         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
70289         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
70290         posix_spawnattr_init, posix_spawnattr_setsigmask,
70291         posix_spawnattr_setflags, posix_spawnattr_destroy.
70293 2009-01-25  Bruno Haible  <bruno@clisp.org>
70295         * lib/glthread/threadlib.c: Include <stdlib.h>.
70297 2009-01-25  Bruno Haible  <bruno@clisp.org>
70299         * lib/glthread/threadlib.c (dummy): New declaration.
70301 2009-01-25  Bruno Haible  <bruno@clisp.org>
70303         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
70304         multibyte characters also for the GB18030 encoding. Don't crash when
70305         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
70307 2009-01-25  Bruno Haible  <bruno@clisp.org>
70309         Avoid redefining 'struct random_data' on OSF/1 5.1.
70310         * lib/stdlib.in.h: Include <random.h> if it exists.
70311         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
70312         HAVE_RANDOM_H. Include <random.h> when testing whether
70313         'struct random_data' exists.
70314         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
70316 2009-01-25  Bruno Haible  <bruno@clisp.org>
70318         Don't install charset.alias on MacOS X >= 10.3.
70319         * lib/localcharset.c (DARWIN7): New macro.
70320         (get_charset_aliases): Hardcode the result for Darwin7.
70321         * modules/localcharset (install-exec-local): Don't install
70322         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
70324 2009-01-25  Bruno Haible  <bruno@clisp.org>
70326         Don't install charset.alias on mingw and Cygwin.
70327         * modules/localcharset (install-exec-local): Don't install
70328         charset.alias on mingw and Cygwin, if the file does not yet exist.
70329         The result for these platforms is hardcoded in localcharset.c.
70331 2009-01-25  Bruno Haible  <bruno@clisp.org>
70333         Make it possible again to use AC_GNU_SOURCE together with gnulib.
70334         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
70335         before requiring AC_USE_SYSTEM_EXTENSIONS.
70337 2009-01-25  Jim Meyering  <meyering@redhat.com>
70339         c-strtod: avoid warnings
70340         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
70341         "assignment discards qualifiers from pointer target type" warnings.
70343 2009-01-24  Bruno Haible  <bruno@clisp.org>
70345         Add support for non-UTF-8 locales on MacOS X.
70346         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
70347         canonical encodings. For Darwin 7 and newer, don't map traditional
70348         encodings to UTF-8.
70349         Reported by Vincent Lefevre <vincent@vinc17.org>
70350         at <http://savannah.gnu.org/bugs/?25235>.
70352 2009-01-24  Bruno Haible  <bruno@clisp.org>
70354         * doc/gnulib.texi (Obsolete modules): New section.
70355         Reported by Mike Frysinger <vapier@gentoo.org>.
70357 2009-01-24  Bruno Haible  <bruno@clisp.org>
70359         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
70360         (%.dvi): New rule.
70362 2009-01-24  Bruno Haible  <bruno@clisp.org>
70364         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
70365         Reported by Eric Blake.
70367 2009-01-24  Bruno Haible  <bruno@clisp.org>
70369         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
70370         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
70371         Reported by Gary V. Vaughan <gary@gnu.org>.
70373 2009-01-24  Bruno Haible  <bruno@clisp.org>
70375         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
70377 2009-01-23  Bruno Haible  <bruno@clisp.org>
70379         Make c-strtod, c-strtold usable in libraries.
70380         * lib/c-strtod.c: Include string.h instead of xalloc.h.
70381         (C_STRTOD): Call strdup instead of xstrdup.
70382         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
70383         * modules/c-strtold (Depends-on): Likewise.
70384         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
70385         * NEWS: Mention the change.
70386         Reported by Michael Gold <mgold@ncf.ca>.
70388 2009-01-23  Jim Meyering  <meyering@redhat.com>
70390         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
70391         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
70392         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
70394 2009-01-23  Simon Josefsson  <simon@josefsson.org>
70396         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
70397         GNU CoreUtils.
70398         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
70399         * modules/version-etc (Description): Update.
70401 2009-01-22  Bruno Haible  <bruno@clisp.org>
70403         Cache the C locale object.
70404         * lib/c-strtod.c (c_locale_cache): New variable.
70405         (c_locale): New function.
70406         (C_STRTOD): Use it, and don't call freelocale.
70407         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
70408         Suggested by Paolo Bonzini.
70410 2009-01-21  Bruno Haible  <bruno@clisp.org>
70412         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
70413         conditions other than overflow.
70415 2009-01-21  Bruno Haible  <bruno@clisp.org>
70417         * lib/c-strtod.c: Include errno.h.
70418         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
70419         value from STRTOD_L and STRTOD.
70421 2009-01-21  Bruno Haible  <bruno@clisp.org>
70422         and Jim Meyering  <meyering@redhat.com>
70424         nanosleep: skip configure test (fail it) for apple universal builds
70425         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
70426         universal builds, assume that nanosleep does not work.
70427         * modules/nanosleep (Depends-on): Add multiarch.
70429         mktime: skip configure test (fail it) for apple universal builds
70430         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
70431         universal builds, assume that mktime does not work.
70432         * modules/mktime (Depends-on): Add multiarch.
70434 2009-01-21  Eric Blake  <ebb9@byu.net>
70436         multiarch: avoid expand-before-require warning
70437         * modules/multiarch (configure.ac): Require, rather than expand,
70438         gl_MULTIARCH.
70439         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
70440         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
70441         enforce that all clients require it.  Partial reversion of
70442         2008-12-29 patch.
70444         error: avoid expand-before-require warning
70445         * modules/errno (configure.ac): Require, rather than expand,
70446         gl_HEADER_ERRNO_H.
70447         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
70448         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
70449         enforce that all clients require it.
70451         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
70452         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
70453         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
70454         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
70456 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
70458         Revert:
70459         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70461         regex: do not depend on obsolete modules.
70462         * modules/regex: Remove memcmp and memmove.
70464 2009-01-20  Bruno Haible  <bruno@clisp.org>
70466         Make the 'link' module link on Windows NT 4.
70467         * lib/link.c (_WIN32_WINNT): Don't define.
70468         (CreateHardLinkFuncType): New type.
70469         (CreateHardLinkFunc, initialized): New variables.
70470         (initialize): New function.
70471         (link): Invoke CreateHardLink indirectly through the function pointer.
70473 2009-01-20  Bruno Haible  <bruno@clisp.org>
70475         Fix compilation failure on mingw.
70476         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
70478 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
70480         * doc/c-strtod.texi: Mention a couple of restrictions.
70482 2009-01-20  Jim Meyering  <meyering@redhat.com>
70484         gettimeofday: move more declarations out of functions
70485         * lib/gettimeofday.c: Move extern declarations of tzset and
70486         gmtime out of containing functions.  Prompted by Bruno Haible.
70488 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
70490         regex: do not depend on obsolete modules.
70491         * modules/regex: Remove memcmp and memmove.
70493 2009-01-19  Bruno Haible  <bruno@clisp.org>
70495         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70496         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
70497         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70498         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
70499         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
70501 2009-01-19  Bruno Haible  <bruno@clisp.org>
70503         * tests/test-link.c: Include <errno.h>.
70504         (main): Exit with code 77 when a hard link cannot be created due to
70505         the file system.
70506         * tests/test-link.sh: Skip test when a hard link cannot be created due
70507         to the file system.
70508         Suggested by Eric Blake.
70510 2009-01-19  Martin Lambers  <marlam@marlam.de>
70512         * modules/link-tests: New file.
70513         * tests/test-link.sh: New file.
70514         * tests/test-link.c: New file.
70516 2009-01-19  Eric Blake  <ebb9@byu.net>
70518         doc: mention another function added in cygwin 1.7.0
70519         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
70520         Another new function in cygwin 1.7.
70522 2009-01-19  Bruno Haible  <bruno@clisp.org>
70524         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
70525         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
70526         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
70527         gl_BIGENDIAN, not AC_C_BIGENDIAN.
70528         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
70529         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
70530         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
70531         * m4/md4.m4 (gl_MD4): Likewise.
70532         * m4/md5.m4 (gl_MD5): Likewise.
70533         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
70534         * m4/sha1.m4 (gl_SHA1): Likewise.
70535         * m4/sha256.m4 (gl_SHA256): Likewise.
70536         * m4/sha512.m4 (gl_SHA512): Likewise.
70538 2009-01-19  Bruno Haible  <bruno@clisp.org>
70540         * modules/uniname/uniname-tests (Depends-on): Add progname.
70541         * tests/uniname/test-uninames.c: Include progname.h.
70542         (main): Call set_program_name.
70544         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
70545         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
70546         (main): Call set_program_name.
70548         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
70549         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
70550         (main): Call set_program_name.
70552         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
70553         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
70554         (main): Call set_program_name.
70556         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
70557         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
70558         (main): Call set_program_name.
70560         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
70561         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
70562         (main): Call set_program_name.
70564         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
70565         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
70566         (main): Call set_program_name.
70568         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
70569         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
70570         (main): Call set_program_name.
70572         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
70573         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
70574         (main): Call set_program_name.
70576 2009-01-19  Eric Blake  <ebb9@byu.net>
70578         test-unistd: test previous patch
70579         * tests/test-unistd.c: Test *_FILENO macros.
70581         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
70582         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70583         Guarantee a definition.
70584         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
70585         * modules/unistd-safer (Depends-on): Add dependency on unistd.
70586         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
70587         * lib/dup-safer.c (STDERR_FILENO): Likewise.
70588         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70589         Likewise.
70590         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
70591         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
70592         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
70593         Likewise.
70594         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
70595         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
70596         (STDERR_FILENO): Likewise.
70597         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
70598         (STDERR_FILENO): Likewise.
70599         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
70600         (STDERR_FILENO): Likewise.
70601         Reported by Elbert Pol.
70603 2009-01-19  Eric Blake  <ebb9@byu.net>
70605         doc: mention more functions added in cygwin 1.7.0
70606         * doc/posix-functions/abort.texi (abort): Update wording related
70607         to cygwin.
70608         * doc/posix-functions/daylight.texi (daylight): Likewise.
70609         * doc/posix-functions/optarg.texi (optarg): Likewise.
70610         * doc/posix-functions/optarg.texi (opterr): Likewise.
70611         * doc/posix-functions/optarg.texi (optind): Likewise.
70612         * doc/posix-functions/optarg.texi (optopt): Likewise.
70613         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
70614         worked in 1.5.x, and was withdrawn in 1.7.
70615         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
70616         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
70617         cygwin versions.
70618         * doc/posix-functions/perror.texi (perror): Likewise.
70619         * doc/posix-functions/printf.texi (printf): Likewise.
70620         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
70621         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
70622         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
70623         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
70624         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
70625         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
70626         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
70627         Likewise.
70628         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
70629         Likewise.
70630         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
70631         this function.
70632         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
70633         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
70634         Likewise.
70635         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
70636         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
70637         * doc/posix-functions/confstr.texi (confstr): Likewise.
70638         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
70639         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
70640         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
70641         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
70642         * doc/posix-functions/fputws.texi (fputws): Likewise.
70643         * doc/posix-functions/fwide.texi (fwide): Likewise.
70644         * doc/posix-functions/getwc.texi (getwc): Likewise.
70645         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
70646         * doc/posix-functions/putwc.texi (putwc): Likewise.
70647         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
70648         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
70649         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
70650         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
70651         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
70652         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
70653         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
70654         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
70655         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
70656         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
70657         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
70659 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
70661         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
70662         * lib/ioctl.c: Include <sys/ioctl.h>.
70664 2009-01-19  Simon Josefsson  <simon@josefsson.org>
70666         * modules/getdate-tests (Depends-on): Add progname.
70667         * tests/test-getdate.c: Use progname module, to avoid link errors
70668         on non-glibc systems.
70670 2009-01-18  Simon Josefsson  <simon@josefsson.org>
70672         * modules/filenamecat-tests (Depends-on): Add progname.
70673         * modules/fstrcmp-tests (Depends-on): Likewise.
70675         * tests/test-filenamecat.c: Use progname module, to avoid link
70676         errors on non-glibc systems.
70677         * tests/test-fstrcmp.c: Likewise.
70679 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
70681         gettimeofday: avoid warning: nested extern declaration of 'localtime'
70682         * lib/gettimeofday.c: Move extern declaration out of function.
70684 2009-01-18  Bruno Haible  <bruno@clisp.org>
70686         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
70687         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
70688         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
70690 2009-01-18  Bruno Haible  <bruno@clisp.org>
70692         * lib/strftime.c (MEMPCPY): Remove unused macro.
70693         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
70695 2009-01-18  Martin Lambers  <marlam@marlam.de>
70697         New module 'link'.
70698         * lib/unistd.in.h (link): New declaration.
70699         * lib/link.c: New file.
70700         * m4/link.m4: New file.
70701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
70702         HAVE_LINK.
70703         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
70704         * modules/link: New file.
70705         * doc/posix-functions/link.texi: Mention the new module.
70707 2009-01-18  Bruno Haible  <bruno@clisp.org>
70709         * tests/test-avltree_list.c (main): Call set_program_name.
70710         * tests/test-avltree_oset.c (main): Likewise.
70711         * tests/test-obstack-printf.c: Include progname.h.
70712         (main): Call set_program_name.
70713         * tests/test-quotearg.c: Include progname.h.
70714         (main): Call set_program_name.
70715         * tests/test-xmemdup0.c: Include progname.h.
70716         (main): Call set_program_name.
70718 2009-01-18  Bruno Haible  <bruno@clisp.org>
70720         New module 'alphasort'.
70721         * lib/dirent.in.h (alphasort): New declaration.
70722         * lib/alphasort.c: New file, from glibc with modifications.
70723         * m4/alphasort.m4: New file.
70724         * modules/alphasort: New file.
70725         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
70726         HAVE_ALPHASORT.
70727         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
70728         HAVE_ALPHASORT.
70729         * doc/posix-functions/alphasort.texi: Mention the new module and the
70730         portability problems.
70732 2009-01-18  Bruno Haible  <bruno@clisp.org>
70734         New module 'scandir'.
70735         * lib/dirent.in.h (scandir): New declaration.
70736         * lib/scandir.c: New file, from glibc with modifications.
70737         * m4/scandir.m4: New file.
70738         * modules/scandir: New file.
70739         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
70740         HAVE_SCANDIR.
70741         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
70742         HAVE_SCANDIR.
70743         * doc/posix-functions/scandir.texi: Mention the new module and the
70744         portability problems.
70746 2009-01-17  Bruno Haible  <bruno@clisp.org>
70748         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
70749         Update documentation.
70750         (func_remove_suffix): Escape all dots in the suffix. Update
70751         documentation.
70752         (func_filter_filelist): Update documentation.
70753         Reported by Ralf Wildenhues.
70755 2009-01-17  Bruno Haible  <bruno@clisp.org>
70757         * modules/dprintf-posix-tests: New file.
70758         * tests/test-dprintf-posix.sh: New file.
70759         * tests/test-dprintf-posix.c: New file.
70761         New modules 'dprintf', 'dprintf-posix'.
70762         * lib/stdio.in.h (dprintf): New declaration.
70763         * lib/dprintf.c: New file.
70764         * m4/dprintf.m4: New file.
70765         * m4/dprintf-posix.m4: New file.
70766         * modules/dprintf: New file.
70767         * modules/dprintf-posix: New file.
70768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
70769         HAVE_DPRINTF, REPLACE_DPRINTF.
70770         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
70771         HAVE_DPRINTF, REPLACE_DPRINTF.
70772         * doc/posix-functions/dprintf.texi: Mention the new modules.
70774 2009-01-17  Bruno Haible  <bruno@clisp.org>
70776         * modules/vdprintf-posix-tests: New file.
70777         * tests/test-vdprintf-posix.sh: New file.
70778         * tests/test-vdprintf-posix.c: New file.
70780         New modules 'vdprintf', 'vdprintf-posix'.
70781         * lib/stdio.in.h (vdprintf): New declaration.
70782         * lib/vdprintf.c: New file.
70783         * m4/vdprintf.m4: New file.
70784         * m4/vdprintf-posix.m4: New file.
70785         * modules/vdprintf: New file.
70786         * modules/vdprintf-posix: New file.
70787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
70788         HAVE_VDPRINTF, REPLACE_VDPRINTF.
70789         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
70790         HAVE_VDPRINTF, REPLACE_VDPRINTF.
70791         * doc/posix-functions/vdprintf.texi: Mention the new modules.
70793 2009-01-17  Bruno Haible  <bruno@clisp.org>
70795         Fix replacement of fopen on mingw.
70796         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
70797         mingw.
70799 2009-01-17  Bruno Haible  <bruno@clisp.org>
70801         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
70802         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
70804 2009-01-17  Bruno Haible  <bruno@clisp.org>
70806         Avoid test-fflush2.sh failure on mingw.
70807         * tests/test-fflush2.c: Include binary-io.h.
70808         (main): Put standard input into binary mode.
70809         * modules/fflush-tests (Depends-on): Add binary-io.
70811 2009-01-17  Bruno Haible  <bruno@clisp.org>
70813         * lib/wchar.in.h: In another particular situation, include only the
70814         system's <wchar.h> file.
70815         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
70816         Reported by Albert Chin-A-Young <china@thewrittenword.com>
70817         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
70819 2009-01-17  Bruno Haible  <bruno@clisp.org>
70821         Support for stripping executables in --enable-relocatable.
70822         * build-aux/install-reloc: Expect one more argument, or an environment
70823         variable RELOC_STRIP_PROG. If set, strip the destination program and
70824         its wrapper.
70825         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
70826         RELOC_STRIP_PROG.
70827         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
70828         to set RELOCATABLE_STRIP.
70829         * NEWS: Mention the new Makefile requirement.
70831 2009-01-17  Bruno Haible  <bruno@clisp.org>
70833         * build-aux/install-reloc: Remove debugging information left over by
70834         C compiler on MacOS X.
70836 2009-01-17  Bruno Haible  <bruno@clisp.org>
70838         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
70839         * lib/progreloc.c (find_executable): Fix type of pointer passed to
70840         _NSGetExecutablePath.
70842 2009-01-16  Jim Meyering  <meyering@redhat.com>
70844         strerror: avoid warnings about discarding "const"
70845         * lib/strerror.c (rpl_strerror): Instead of returning a const
70846         string from each and every "case", use a variable, and add a single
70847         cast after the switch.
70849 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
70851         * lib/arpa_inet.in.h: Add extern "C" block for C++.
70853 2009-01-16  Bruno Haible  <bruno@clisp.org>
70855         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
70856         array initializer syntax that also works in C++ mode.
70857         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70859 2009-01-16  Jim Meyering  <meyering@redhat.com>
70861         poll: suppress a warning
70862         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
70863         to ignore "...unsigned expression < 0 is always false" warnings.
70865 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
70867         poll: remove declarations of unused variables
70868         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
70869         sockbuf and optlen.
70871 2009-01-15  Bruno Haible  <bruno@clisp.org>
70873         Make fflush-after-ungetc POSIX compliant on BSD systems.
70874         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
70875         (clear_ungetc_buffer): Implement also for other systems.
70876         (rpl_fflush): On glibc systems, invoke
70877         clear_ungetc_buffer_preserving_position. Otherwise, invoke
70878         clear_ungetc_buffer after fetching the stream's position, not before.
70880 2009-01-15  Bruno Haible  <bruno@clisp.org>
70882         Make fflush-after-ungetc POSIX compliant on glibc systems.
70883         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
70884         after ungetc.
70885         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
70886         (rpl_fflush): On glibc systems, simply call the system's fflush
70887         function after clearing the ungetc buffer.
70888         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
70889         Instead, lseek only to the end of file, then use the system's fseeko
70890         for the rest. On glibc systems, reset the EOF indicator bit.
70892 2009-01-15  Jim Meyering  <meyering@redhat.com>
70894         openmp.m4: revert quote-adding change, for portability to older autoconf
70895         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
70896         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
70897         Simon Josefsson noticed the problem when using autoconf-2.61.
70899 2009-01-15  Bruno Haible  <bruno@clisp.org>
70901         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
70902         * tests/test-fflush2.c (ASSERT): Always fail.
70903         (main): Add two tests for fflush() after ungetc(), taking into account
70904         the Austin Group's clarification.
70905         Suggested by Eric Blake.
70907 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
70909         mktime.m4: remove K&R-style function prototypes
70910         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
70911         for the Sun C++ compiler.
70913 2009-01-14  Bruno Haible  <bruno@clisp.org>
70915         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
70916         while including <wchar.h>.
70917         * lib/wchar.in.h: In two particular situations on HP-UX, include only
70918         the system's <wchar.h> file.
70919         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70921 2009-01-14  Bruno Haible  <bruno@clisp.org>
70923         * m4/csharp.m4: Don't mention gettext on the serial number line.
70924         * m4/csharpexec.m4: Likewise.
70925         * m4/eaccess.m4: Likewise.
70926         * m4/javaexec.m4: Likewise.
70927         * m4/sig_atomic_t.m4: Likewise.
70928         * m4/tmpdir.m4: Likewise.
70929         * m4/intldir.m4: Bump gettext version.
70930         * m4/lib-ld.m4: Likewise.
70932 2009-01-14  Bruno Haible  <bruno@clisp.org>
70934         * lib/progname.c (set_program_name): Add more comments.
70935         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
70937 2009-01-14  Simon Josefsson  <simon@josefsson.org>
70939         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
70940         were sys/stat.h does not define it.
70942 2009-01-14  Jim Meyering  <meyering@redhat.com>
70944         many *.m4 files: improve m4 quoting
70945         99% of this change was performed by running the following commands:
70946         git ls-files | grep '\.m4$' | xargs perl -pi \
70947           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
70948           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
70949           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
70950           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
70951         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
70952         The remainder were to add Copyright dates, increment serial numbers,
70953         undo some changes in comments, exclude m4/intl.m4, and add quotes
70954         around the "1" in ",1" where the unusual spacing prohibited the
70955         above regexps from doing the job.  For more details, see
70956         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
70957         * m4/acl.m4: Modified.
70958         * m4/afs.m4: Likewise.
70959         * m4/alloca.m4: Likewise.
70960         * m4/argp.m4: Likewise.
70961         * m4/argz.m4: Likewise.
70962         * m4/atexit.m4: Likewise.
70963         * m4/bison-i18n.m4: Likewise.
70964         * m4/bison.m4: Likewise.
70965         * m4/byteswap.m4: Likewise.
70966         * m4/c-stack.m4: Likewise.
70967         * m4/c-strtod.m4: Likewise.
70968         * m4/calloc.m4: Likewise.
70969         * m4/canonicalize-lgpl.m4: Likewise.
70970         * m4/chown.m4: Likewise.
70971         * m4/clock_time.m4: Likewise.
70972         * m4/codeset.m4: Likewise.
70973         * m4/copy-file.m4: Likewise.
70974         * m4/csharp.m4: Likewise.
70975         * m4/csharpcomp.m4: Likewise.
70976         * m4/csharpexec.m4: Likewise.
70977         * m4/d-ino.m4: Likewise.
70978         * m4/d-type.m4: Likewise.
70979         * m4/dirfd.m4: Likewise.
70980         * m4/double-slash-root.m4: Likewise.
70981         * m4/eaccess.m4: Likewise.
70982         * m4/eealloc.m4: Likewise.
70983         * m4/environ.m4: Likewise.
70984         * m4/errno_h.m4: Likewise.
70985         * m4/euidaccess.m4: Likewise.
70986         * m4/execute.m4: Likewise.
70987         * m4/fatal-signal.m4: Likewise.
70988         * m4/fchdir.m4: Likewise.
70989         * m4/fcntl_h.m4: Likewise.
70990         * m4/fileblocks.m4: Likewise.
70991         * m4/filenamecat.m4: Likewise.
70992         * m4/findprog.m4: Likewise.
70993         * m4/flexmember.m4: Likewise.
70994         * m4/fnmatch.m4: Likewise.
70995         * m4/fopen.m4: Likewise.
70996         * m4/fpending.m4: Likewise.
70997         * m4/fprintf-posix.m4: Likewise.
70998         * m4/free.m4: Likewise.
70999         * m4/frexp.m4: Likewise.
71000         * m4/frexpl.m4: Likewise.
71001         * m4/fsusage.m4: Likewise.
71002         * m4/ftruncate.m4: Likewise.
71003         * m4/gc-camellia.m4: Likewise.
71004         * m4/gc-random.m4: Likewise.
71005         * m4/gc.m4: Likewise.
71006         * m4/getaddrinfo.m4: Likewise.
71007         * m4/getcwd-abort-bug.m4: Likewise.
71008         * m4/getcwd-path-max.m4: Likewise.
71009         * m4/getdate.m4: Likewise.
71010         * m4/getdomainname.m4: Likewise.
71011         * m4/getgroups.m4: Likewise.
71012         * m4/gethostname.m4: Likewise.
71013         * m4/gethrxtime.m4: Likewise.
71014         * m4/getline.m4: Likewise.
71015         * m4/getloadavg.m4: Likewise.
71016         * m4/getndelim2.m4: Likewise.
71017         * m4/getpass.m4: Likewise.
71018         * m4/gettext.m4: Likewise.
71019         * m4/gettime.m4: Likewise.
71020         * m4/gettimeofday.m4: Likewise.
71021         * m4/gnulib-common.m4: Likewise.
71022         * m4/group-member.m4: Likewise.
71023         * m4/host-os.m4: Likewise.
71024         * m4/iconv.m4: Likewise.
71025         * m4/iconv_open.m4: Likewise.
71026         * m4/inet_ntop.m4: Likewise.
71027         * m4/inet_pton.m4: Likewise.
71028         * m4/inline.m4: Likewise.
71029         * m4/intldir.m4: Likewise.
71030         * m4/intlmacosx.m4: Likewise.
71031         * m4/intmax.m4: Likewise.
71032         * m4/intmax_t.m4: Likewise.
71033         * m4/inttypes.m4: Likewise.
71034         * m4/inttypes_h.m4: Likewise.
71035         * m4/inttypes-pri.m4: Likewise.
71036         * m4/isapipe.m4: Likewise.
71037         * m4/isnand.m4: Likewise.
71038         * m4/isnanf.m4: Likewise.
71039         * m4/isnanl.m4: Likewise.
71040         * m4/javacomp.m4: Likewise.
71041         * m4/javaexec.m4: Likewise.
71042         * m4/jm-winsz1.m4: Likewise.
71043         * m4/jm-winsz2.m4: Likewise.
71044         * m4/lchown.m4: Likewise.
71045         * m4/lcmessage.m4: Likewise.
71046         * m4/ldexpl.m4: Likewise.
71047         * m4/lib-ld.m4: Likewise.
71048         * m4/lib-link.m4: Likewise.
71049         * m4/libsigsegv.m4: Likewise.
71050         * m4/link-follow.m4: Likewise.
71051         * m4/localcharset.m4: Likewise.
71052         * m4/locale-fr.m4: Likewise.
71053         * m4/locale-ja.m4: Likewise.
71054         * m4/locale-tr.m4: Likewise.
71055         * m4/locale-zh.m4: Likewise.
71056         * m4/lock.m4: Likewise.
71057         * m4/longlong.m4: Likewise.
71058         * m4/ls-mntd-fs.m4: Likewise.
71059         * m4/lstat.m4: Likewise.
71060         * m4/malloc.m4: Likewise.
71061         * m4/mathl.m4: Likewise.
71062         * m4/mbrtowc.m4: Likewise.
71063         * m4/mbstate_t.m4: Likewise.
71064         * m4/mbswidth.m4: Likewise.
71065         * m4/memchr.m4: Likewise.
71066         * m4/memcmp.m4: Likewise.
71067         * m4/memcpy.m4: Likewise.
71068         * m4/memmem.m4: Likewise.
71069         * m4/memmove.m4: Likewise.
71070         * m4/mempcpy.m4: Likewise.
71071         * m4/memrchr.m4: Likewise.
71072         * m4/memset.m4: Likewise.
71073         * m4/minmax.m4: Likewise.
71074         * m4/mkdir-slash.m4: Likewise.
71075         * m4/mkdtemp.m4: Likewise.
71076         * m4/mktime.m4: Likewise.
71077         * m4/mmap-anon.m4: Likewise.
71078         * m4/mountlist.m4: Likewise.
71079         * m4/nanosleep.m4: Likewise.
71080         * m4/nls.m4: Likewise.
71081         * m4/nocrash.m4: Likewise.
71082         * m4/open.m4: Likewise.
71083         * m4/openat.m4: Likewise.
71084         * m4/openmp.m4: Likewise.
71085         * m4/pathmax.m4: Likewise.
71086         * m4/perl.m4: Likewise.
71087         * m4/physmem.m4: Likewise.
71088         * m4/pipe.m4: Likewise.
71089         * m4/po.m4: Likewise.
71090         * m4/poll.m4: Likewise.
71091         * m4/posixtm.m4: Likewise.
71092         * m4/posixver.m4: Likewise.
71093         * m4/printf-frexp.m4: Likewise.
71094         * m4/printf-frexpl.m4: Likewise.
71095         * m4/printf-posix.m4: Likewise.
71096         * m4/printf-posix-rpl.m4: Likewise.
71097         * m4/printf.m4: Likewise.
71098         * m4/progtest.m4: Likewise.
71099         * m4/putenv.m4: Likewise.
71100         * m4/readline.m4: Likewise.
71101         * m4/readlink.m4: Likewise.
71102         * m4/readutmp.m4: Likewise.
71103         * m4/realloc.m4: Likewise.
71104         * m4/regex.m4: Likewise.
71105         * m4/relocatable.m4: Likewise.
71106         * m4/relocatable-lib.m4: Likewise.
71107         * m4/rename-dest-slash.m4: Likewise.
71108         * m4/rename.m4: Likewise.
71109         * m4/rmdir-errno.m4: Likewise.
71110         * m4/rmdir.m4: Likewise.
71111         * m4/roundf.m4: Likewise.
71112         * m4/roundl.m4: Likewise.
71113         * m4/rpmatch.m4: Likewise.
71114         * m4/save-cwd.m4: Likewise.
71115         * m4/selinux-selinux-h.m4: Likewise.
71116         * m4/setenv.m4: Likewise.
71117         * m4/settime.m4: Likewise.
71118         * m4/sig2str.m4: Likewise.
71119         * m4/sig_atomic_t.m4: Likewise.
71120         * m4/signalblocking.m4: Likewise.
71121         * m4/signbit.m4: Likewise.
71122         * m4/sigpipe.m4: Likewise.
71123         * m4/sockets.m4: Likewise.
71124         * m4/sockpfaf.m4: Likewise.
71125         * m4/st_dm_mode.m4: Likewise.
71126         * m4/stat-time.m4: Likewise.
71127         * m4/stdbool.m4: Likewise.
71128         * m4/stdint.m4: Likewise.
71129         * m4/stdint_h.m4: Likewise.
71130         * m4/stpcpy.m4: Likewise.
71131         * m4/stpncpy.m4: Likewise.
71132         * m4/strcase.m4: Likewise.
71133         * m4/strchrnul.m4: Likewise.
71134         * m4/strcspn.m4: Likewise.
71135         * m4/strdup.m4: Likewise.
71136         * m4/strftime.m4: Likewise.
71137         * m4/strndup.m4: Likewise.
71138         * m4/strnlen.m4: Likewise.
71139         * m4/strpbrk.m4: Likewise.
71140         * m4/strptime.m4: Likewise.
71141         * m4/strsep.m4: Likewise.
71142         * m4/strtod.m4: Likewise.
71143         * m4/strtoimax.m4: Likewise.
71144         * m4/strtok_r.m4: Likewise.
71145         * m4/strtol.m4: Likewise.
71146         * m4/strtoll.m4: Likewise.
71147         * m4/strtoul.m4: Likewise.
71148         * m4/strtoull.m4: Likewise.
71149         * m4/strtoumax.m4: Likewise.
71150         * m4/strverscmp.m4: Likewise.
71151         * m4/threadlib.m4: Likewise.
71152         * m4/timegm.m4: Likewise.
71153         * m4/tm_gmtoff.m4: Likewise.
71154         * m4/tmpdir.m4: Likewise.
71155         * m4/tmpfile.m4: Likewise.
71156         * m4/tzset.m4: Likewise.
71157         * m4/uintmax_t.m4: Likewise.
71158         * m4/unlinkdir.m4: Likewise.
71159         * m4/unlocked-io.m4: Likewise.
71160         * m4/uptime.m4: Likewise.
71161         * m4/userspec.m4: Likewise.
71162         * m4/utimbuf.m4: Likewise.
71163         * m4/utime.m4: Likewise.
71164         * m4/utimes-null.m4: Likewise.
71165         * m4/utimes.m4: Likewise.
71166         * m4/vararrays.m4: Likewise.
71167         * m4/vasnprintf.m4: Likewise.
71168         * m4/vfprintf-posix.m4: Likewise.
71169         * m4/vprintf-posix.m4: Likewise.
71170         * m4/wait-process.m4: Likewise.
71171         * m4/wchar_t.m4: Likewise.
71172         * m4/wint_t.m4: Likewise.
71173         * m4/write-any-file.m4: Likewise.
71174         * m4/yield.m4: Likewise.
71176 2009-01-13  Bruno Haible  <bruno@clisp.org>
71178         Avoid test-copy-file.sh failures when ACL support insufficient.
71179         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
71180         TESTS_ENVIRONMENT.
71181         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
71182         Reported by Jim Meyering.
71184 2009-01-13  Bruno Haible  <bruno@clisp.org>
71186         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
71187         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
71188         * modules/unistdio/u8-printf-parse (Files): Likewise.
71189         * modules/unistdio/u32-printf-parse (Files): Likewise.
71190         * modules/unistdio/ulc-printf-parse (Files): Likewise.
71192 2009-01-13  Simon Josefsson  <simon@josefsson.org>
71194         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
71195         and m4/inttypes_h.m4 too.
71197 2009-01-12  Eric Blake  <ebb9@byu.net>
71199         tests: IRIX 6.2 cc can't compile -0.0 into .data
71200         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
71201         rather than at compile-time.
71202         * tests/test-floorl.c (minus_zero): Likewise.
71203         * tests/test-frexpl.c (minus_zero): Likewise.
71204         * tests/test-isnan.c (minus_zerol): Likewise.
71205         * tests/test-isnanl.h (minus_zero): Likewise.
71206         * tests/test-ldexpl.c (minus_zero): Likewise.
71207         * tests/test-roundl.c (minus_zero): Likewise.
71208         * tests/test-signbit.c (minus_zerol): Likewise.
71209         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71210         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71211         * tests/test-truncl.c (minus_zero): Likewise.
71212         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71213         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71214         Reported by Tom G. Christensen and Nelson H. F. Beebe.
71216 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71218         regex: fix glibc bug 9697
71219         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
71220         handling.
71222 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71224         regex: fix glibc bug 697
71225         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
71226         being NULL also if there are no backreferences.
71228 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71230         regex: merge glibc changes
71231         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
71232         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
71233         re_string_skip_chars, re_string_reconstruct): Likewise.
71234         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
71236 2009-01-07  Jim Meyering  <meyering@redhat.com>
71238         poll: filter through cppi
71239         * lib/poll.c: Indent cpp directives to reflect nesting.
71241 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
71243         poll: don't return uninitialized
71244         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
71246 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
71248         avoid compile failure on AIX 6.1
71249         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
71250         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
71252 2009-01-04  Jim Meyering  <meyering@redhat.com>
71254         remove duplicate inclusion of <stdio.h>
71255         * tests/test-fprintf-posix.c: Likewise.
71256         * tests/test-printf-posix.c: Likewise.
71257         * tests/test-snprintf-posix.c: Likewise.
71258         * tests/test-sprintf-posix.c: Likewise.
71259         * tests/test-vasprintf-posix.c: Likewise.
71260         * tests/test-vfprintf-posix.c: Likewise.
71261         * tests/test-vprintf-posix.c: Likewise.
71262         * tests/test-vsnprintf-posix.c: Likewise.
71263         * tests/test-vsprintf-posix.c: Likewise.
71265 2009-01-03  Jim Meyering  <meyering@redhat.com>
71267         gnulib-tool: fix sed-based filtering
71268         * gnulib-tool (func_filter_filelist): Remove extra backslash
71269         in sed_fff_filter definition.
71271 2009-01-02  Jim Meyering  <meyering@redhat.com>
71273         strftime: avoid compilation failure on Solaris 2.6
71274         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
71275         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
71276         Don't #define mbrlen or mbsinit, since now they're guaranteed to
71277         be available.  Reported by Tom G. Christensen.  Details in
71278         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
71280 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71281             Bruno Haible  <bruno@clisp.org>
71283         Speed up gnulib-tool by doing more string processing through shell
71284         built-ins.
71285         * gnulib-tool (fast_func_append): New variable.
71286         (func_remove_prefix, func_remove_suffix): New functions.
71287         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
71288         (func_filter_filelist): New function.
71289         (func_get_dependencies): Use func_remove_suffix instead of sed.
71290         (func_get_automake_snippet): Use func_filter_filelist instead of a
71291         subshell and sed invocation.
71293 2009-01-01  Bruno Haible  <bruno@clisp.org>
71295         Fix a security bug.
71296         * gnulib-tool (func_import, import, update): Don't allow the characters
71297         '"', '$', '`', '\' in macro arguments that become part of commands that
71298         are evaluated.
71300 2009-01-01  Bruno Haible  <bruno@clisp.org>
71302         * gnulib-tool (func_reset_sigpipe): Add more comments.
71304 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71306         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
71307         func_emit_tests_Makefile_am, func_import): Abort loops early if we
71308         already know the answer.
71310 2009-01-01  Jim Meyering  <meyering@redhat.com>
71312         * lib/version-etc.c (version_etc_va): Update copyright year.
71314 2008-12-30  Bruno Haible  <bruno@clisp.org>
71316         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
71317         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
71318         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
71320 2008-12-29  Eric Blake  <ebb9@byu.net>
71322         multiarch: avoid autoconf AC_REQUIRE bug
71323         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
71324         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
71325         2.63 and older.
71326         Reported by Bruno Haible, and analyzed in
71327         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
71329 2008-12-29  Bruno Haible  <bruno@clisp.org>
71331         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
71332         files in subdirectories correctly.
71333         Reported by Ralf Wildenhues.
71335 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71337         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
71338         rather than 'join FILE -', for Solaris join.
71340 2008-12-29  Bruno Haible  <bruno@clisp.org>
71342         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
71343         quoting.
71344         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71345         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
71346         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
71347         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
71348         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
71349         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
71350         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
71351         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
71352         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71353         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
71354         * m4/nls.m4 (AM_NLS): Likewise.
71355         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
71356         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
71357         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
71358         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
71359         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
71360         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
71361         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
71362         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
71363         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
71364         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71365         * m4/xsize.m4 (gl_XSIZE): Likewise.
71366         Suggested by Jim Meyering.
71368 2008-11-17  Bruce Korb  <bkorb@gnu.org>
71370         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
71371         * lib/parse-duration.c: use a switch instead of cascading if's.
71373 2008-12-29  Eric Blake  <ebb9@byu.net>
71375         wchar.h: supply WEOF on Irix 5.3
71376         * lib/wchar.in.h (wint_t): Also supply WEOF.
71377         * lib/wctype.in.h (wint_t): Likewise.
71378         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
71379         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
71380         Reported by Tom G. Christensen.
71382 2008-12-26  Bruno Haible  <bruno@clisp.org>
71384         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
71385         i486, i586, i686.
71387 2008-12-26  Bruno Haible  <bruno@clisp.org>
71389         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
71391 2008-12-26  Bruno Haible  <bruno@clisp.org>
71393         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
71394         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
71395         not __STDC_CONSTANT_MACROS.
71396         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
71398 2008-12-25  Bruno Haible  <bruno@clisp.org>
71400         Add support for universal builds to vasnprintf.
71401         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
71402         universal builds, guess no.
71403         * modules/vasnprintf-posix (Depends-on): Add multiarch.
71404         * modules/vasprintf-posix (Depends-on): Likewise.
71405         * modules/fprintf-posix (Depends-on): Likewise.
71406         * modules/vfprintf-posix (Depends-on): Likewise.
71407         * modules/snprintf-posix (Depends-on): Likewise.
71408         * modules/vsnprintf-posix (Depends-on): Likewise.
71409         * modules/sprintf-posix (Depends-on): Likewise.
71410         * modules/vsprintf-posix (Depends-on): Likewise.
71411         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
71412         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
71413         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
71414         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
71415         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
71416         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
71417         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
71419         Add support for universal builds to <inttypes.h>.
71420         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
71421         _SCNu64_PREFIX): In Apple
71422         universal builds, define directly, using _LP64.
71423         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
71424         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
71425         * modules/inttypes (Depends-on): Add multiarch.
71426         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71428         Add support for universal builds to <stdint.h>.
71429         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
71430         universal builds, define directly, using _LP64.
71431         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
71432         Apple universal builds, don't test for the size and suffix of ptrdiff_t
71433         and size_t.
71434         * modules/stdint (Depends-on): Add multiarch.
71435         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
71437         New module 'multiarch'.
71438         * modules/multiarch: New file.
71439         * m4/multiarch.m4: New file.
71441 2008-12-25  Bruno Haible  <bruno@clisp.org>
71443         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
71445 2008-12-25  Bruno Haible  <bruno@clisp.org>
71447         * modules/btowc (License): Relicense under LGPLv2+.
71448         * modules/mbsinit (License): Likewise.
71449         * modules/mbrtowc (License): Likewise.
71450         * modules/wcrtomb (License): Likewise.
71451         * modules/streq (License): Likewise.
71452         Reported by David Lutterkort <lutter@redhat.com>.
71454 2008-12-23  Bruno Haible  <bruno@clisp.org>
71456         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
71458 2008-12-23  Bruno Haible  <bruno@clisp.org>
71460         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
71461         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
71462         GETADDRINFO_LIB, not in LIBS.
71463         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
71464         * modules/canon-host (Link): Likewise.
71465         * NEWS: Mention the change.
71466         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
71467         GETADDRINFO_LIB.
71469 2008-12-22  Bruno Haible  <bruno@clisp.org>
71471         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
71472         * doc/posix-functions/iswalpha_l.texi: Likewise.
71473         * doc/posix-functions/iswblank_l.texi: Likewise.
71474         * doc/posix-functions/iswcntrl_l.texi: Likewise.
71475         * doc/posix-functions/iswctype_l.texi: Likewise.
71476         * doc/posix-functions/iswdigit_l.texi: Likewise.
71477         * doc/posix-functions/iswgraph_l.texi: Likewise.
71478         * doc/posix-functions/iswlower_l.texi: Likewise.
71479         * doc/posix-functions/iswprint_l.texi: Likewise.
71480         * doc/posix-functions/iswpunct_l.texi: Likewise.
71481         * doc/posix-functions/iswspace_l.texi: Likewise.
71482         * doc/posix-functions/iswupper_l.texi: Likewise.
71483         * doc/posix-functions/iswxdigit_l.texi: Likewise.
71484         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
71485         * doc/posix-functions/open_wmemstream.texi: Likewise.
71486         * doc/posix-functions/swscanf.texi: Likewise.
71487         * doc/posix-functions/towctrans_l.texi: Likewise.
71488         * doc/posix-functions/towlower.texi: Likewise.
71489         * doc/posix-functions/towlower_l.texi: Likewise.
71490         * doc/posix-functions/towupper.texi: Likewise.
71491         * doc/posix-functions/towupper_l.texi: Likewise.
71492         * doc/posix-functions/vfwprintf.texi: Likewise.
71493         * doc/posix-functions/vfwscanf.texi: Likewise.
71494         * doc/posix-functions/vswscanf.texi: Likewise.
71495         * doc/posix-functions/vwprintf.texi: Likewise.
71496         * doc/posix-functions/vwscanf.texi: Likewise.
71497         * doc/posix-functions/wcpcpy.texi: Likewise.
71498         * doc/posix-functions/wcpncpy.texi: Likewise.
71499         * doc/posix-functions/wcscasecmp.texi: Likewise.
71500         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
71501         * doc/posix-functions/wcscoll_l.texi: Likewise.
71502         * doc/posix-functions/wcsdup.texi: Likewise.
71503         * doc/posix-functions/wcsncasecmp.texi: Likewise.
71504         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
71505         * doc/posix-functions/wcsnlen.texi: Likewise.
71506         * doc/posix-functions/wcsnrtombs.texi: Likewise.
71507         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
71508         * doc/posix-functions/wctrans_l.texi: Likewise.
71509         * doc/posix-functions/wctype_l.texi: Likewise.
71510         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
71511         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
71512         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
71513         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
71514         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
71515         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
71516         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
71517         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
71518         * doc/glibc-functions/wcschrnul.texi: Likewise.
71519         * doc/glibc-functions/wcsftime_l.texi: Likewise.
71520         * doc/glibc-functions/wcstod_l.texi: Likewise.
71521         * doc/glibc-functions/wcstof_l.texi: Likewise.
71522         * doc/glibc-functions/wcstol_l.texi: Likewise.
71523         * doc/glibc-functions/wcstold_l.texi: Likewise.
71524         * doc/glibc-functions/wcstoll_l.texi: Likewise.
71525         * doc/glibc-functions/wcstoq.texi: Likewise.
71526         * doc/glibc-functions/wcstoul_l.texi: Likewise.
71527         * doc/glibc-functions/wcstoull_l.texi: Likewise.
71528         * doc/glibc-functions/wcstouq.texi: Likewise.
71529         * doc/glibc-functions/wmempcpy.texi: Likewise.
71531 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
71532             Eric Blake  <ebb9@byu.net>
71533             Paolo Bonzini  <bonzini@gnu.org>
71534             Bruno Haible  <bruno@clisp.org>
71536         Make c-stack work on Haiku.
71537         * lib/c-stack.c (SA_ONSTACK): Define fallback.
71538         (c_stack_action): Use SA_ONSTACK flag.
71540 2008-12-22  Bruno Haible  <bruno@clisp.org>
71542         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
71544 2008-12-22  Bruno Haible  <bruno@clisp.org>
71546         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
71547         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
71548         being overridden.
71549         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
71550         New macros.
71551         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
71552         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
71553         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
71554         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
71556 2008-12-22  Bruno Haible  <bruno@clisp.org>
71558         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
71559         from test code.
71561 2008-12-22  Eric Blake  <ebb9@byu.net>
71563         Avoid gcc warnings on cygwin.
71564         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
71565         Avoid unused variable.
71566         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
71567         Likewise.
71569 2008-12-22  Bruno Haible  <bruno@clisp.org>
71571         Remove HAVE_MBRTOWC conditionals.
71572         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
71573         (mbscasecmp): Assume mbrtowc function.
71574         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
71575         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
71576         * lib/mbschr.c: Include mbuiter.h unconditionally.
71577         (mbschr): Assume mbrtowc function.
71578         * lib/mbscspn.c: Include mbuiter.h unconditionally.
71579         (mbscspn): Assume mbrtowc function.
71580         * lib/mbslen.c: Include mbuiter.h unconditionally.
71581         (mbslen): Assume mbrtowc function.
71582         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
71583         (mbsncasecmp): Assume mbrtowc function.
71584         * lib/mbsnlen.c: Include mbiter.h unconditionally.
71585         (mbsnlen): Assume mbrtowc function.
71586         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
71587         (mbspbrk): Assume mbrtowc function.
71588         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
71589         (mbspcasecmp): Assume mbrtowc function.
71590         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
71591         (mbsrchr): Assume mbrtowc function.
71592         * lib/mbssep.c: Include mbuiter.h unconditionally.
71593         (mbssep): Assume mbrtowc function.
71594         * lib/mbsspn.c: Include mbuiter.h unconditionally.
71595         (mbsspn): Assume mbrtowc function.
71596         * lib/mbsstr.c: Include mbuiter.h unconditionally.
71597         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
71598         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
71599         (mbstok_r): Assume mbrtowc function.
71600         * lib/propername.c: Include mbuiter.h unconditionally.
71601         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
71602         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
71603         (trim2): Assume mbrtowc function.
71604         * lib/mbswidth.c (mbsinit): Remove fallback definition.
71605         (mbsnwidth): Assume mbrtowc function.
71606         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
71607         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
71608         fallback definitions.
71609         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
71611 2008-12-22  Bruno Haible  <bruno@clisp.org>
71613         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
71615 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
71617         * modules/regex: Request emulations for the mb*/wc* functions we need.
71618         * m4/regex.m4: Don't look for those functions here.
71619         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
71621 2008-12-22  Bruno Haible  <bruno@clisp.org>
71623         * modules/fnmatch (Depends-on): Remove duplicated dependency.
71625 2008-12-21  Bruno Haible  <bruno@clisp.org>
71627         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
71628         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
71629         (Include): Remove conditionalization.
71630         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
71631         (Include): Remove conditionalization.
71632         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
71633         (Include): Remove conditionalization.
71634         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
71635         * m4/mbfile.m4 (gl_MBFILE): Likewise.
71636         * NEWS: Mention the change.
71637         Reported by Alan Hourihane <alanh@fairlite.co.uk>
71638         via Sergey Poznyakoff <gray@gnu.org.ua>.
71640 2008-12-21  Bruno Haible  <bruno@clisp.org>
71642         * MODULES.html.sh (Extended multibyte and wide character utilities
71643         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
71644         wcrtomb, wcsrtombs.
71645         (Support for systems lacking POSIX:2008): Add accept, bind, close,
71646         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
71647         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
71648         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
71650 2008-12-21  Bruno Haible  <bruno@clisp.org>
71652         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
71654 2008-12-21  Bruno Haible  <bruno@clisp.org>
71656         * modules/wcsnrtombs-tests: New file.
71657         * tests/test-wcsnrtombs1.sh: New file.
71658         * tests/test-wcsnrtombs2.sh: New file.
71659         * tests/test-wcsnrtombs3.sh: New file.
71660         * tests/test-wcsnrtombs4.sh: New file.
71661         * tests/test-wcsnrtombs.c: New file.
71663         New module 'wcsnrtombs'.
71664         * lib/wchar.in.h (wcsnrtombs): New declaration.
71665         * lib/wcsnrtombs.c: New file.
71666         * lib/wcsrtombs-state.c: New file.
71667         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
71668         (internal_state): Remove variable.
71669         * m4/wcsnrtombs.m4: New file.
71670         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
71671         compilation units.
71672         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
71673         HAVE_WCSNRTOMBS.
71674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
71675         HAVE_WCSNRTOMBS.
71676         * modules/wcsnrtombs: New file.
71677         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
71678         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
71680 2008-12-21  Bruno Haible  <bruno@clisp.org>
71682         * modules/wcsrtombs-tests: New file.
71683         * tests/test-wcsrtombs1.sh: New file.
71684         * tests/test-wcsrtombs2.sh: New file.
71685         * tests/test-wcsrtombs3.sh: New file.
71686         * tests/test-wcsrtombs4.sh: New file.
71687         * tests/test-wcsrtombs.c: New file.
71689         New module 'wcsrtombs'.
71690         * lib/wchar.in.h (wcsrtombs): New declaration.
71691         * lib/wcsrtombs.c: New file.
71692         * m4/wcsrtombs.m4: New file.
71693         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
71694         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
71695         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
71696         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
71697         * modules/wcsrtombs: New file.
71698         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
71699         bugs.
71701 2008-12-21  Bruno Haible  <bruno@clisp.org>
71703         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
71704         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
71705         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
71706         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
71707         if not correct.
71708         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
71709         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
71710         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
71711         m4/locale-zh.m4, m4/codeset.m4.
71712         * doc/posix-functions/wcrtomb.texi: Document the bug.
71714 2008-12-21  Bruno Haible  <bruno@clisp.org>
71716         Work around a btowc() bug on IRIX 6.5.
71717         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
71718         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
71719         REPLACE_WTOBC if not.
71720         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
71721         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
71722         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
71724 2008-12-21  Bruno Haible  <bruno@clisp.org>
71726         * modules/wcrtomb-tests: New file.
71727         * tests/test-wcrtomb.sh: New file.
71728         * tests/test-wcrtomb.c: New file.
71730         New module 'wcrtomb'.
71731         * lib/wchar.in.h (wcrtomb): New declaration.
71732         * lib/wcrtomb.c: New file.
71733         * m4/wcrtomb.m4: New file.
71734         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
71735         HAVE_WCRTOMB.
71736         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
71737         HAVE_WCRTOMB.
71738         * modules/wcrtomb: New file.
71739         * doc/posix-functions/wcrtomb.texi: Mention the new module.
71741 2008-12-21  Bruno Haible  <bruno@clisp.org>
71743         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
71744         * modules/mbsrtowcs (Files): Likewise.
71745         * modules/wctob (Files): Likewise.
71746         * modules/c-strcase-tests (Files): Likewise.
71747         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
71748         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
71749         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
71750         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
71751         * modules/vasnprintf-posix-tests (Files): Likewise.
71753 2008-12-21  William Pursell  <bill.pursell@gmail.com>
71755         gitlog-to-changelog: pass all command-line arguments to git-log
71756         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
71757         it is sometimes convenient to filter the commits in various ways.
71758         gitlog-to-changelog only allows --since to specify a start date,
71759         but git-log itself supports many other filtering mechanisms.
71760         At the moment, I want to filter by branch name.  Rather than
71761         adding a --branch option to gitlog-to-changelog, it seems more
71762         flexible to simply pass all options directly to git-log and let
71763         git do the work.  Notice that this effectively makes --since a
71764         redundant option for gitlog-to-changelog, but removing it would
71765         require current usage to change since calls would then require
71766         an additional '--'.
71768 2008-12-21  Bruno Haible  <bruno@clisp.org>
71770         * modules/mbsnrtowcs-tests: New file.
71771         * tests/test-mbsnrtowcs1.sh: New file.
71772         * tests/test-mbsnrtowcs2.sh: New file.
71773         * tests/test-mbsnrtowcs3.sh: New file.
71774         * tests/test-mbsnrtowcs4.sh: New file.
71775         * tests/test-mbsnrtowcs.c: New file.
71777         New module 'mbsnrtowcs'.
71778         * lib/wchar.in.h (mbsnrtowcs): New declaration.
71779         * lib/mbsnrtowcs.c: New file.
71780         * lib/mbsrtowcs-state.c: New file.
71781         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
71782         (internal_state): Remove variable.
71783         * m4/mbsnrtowcs.m4: New file.
71784         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
71785         compilation units.
71786         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
71787         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
71788         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
71789         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
71790         * modules/mbsnrtowcs: New file.
71791         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
71792         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
71793         portability problem.
71795 2008-12-21  Bruno Haible  <bruno@clisp.org>
71797         Work around mbsrtowcs bug.
71798         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
71799         (gl_FUNC_MBSRTOWCS): Invoke it.
71800         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
71801         m4/locale-zh.m4.
71802         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
71804 2008-12-21  Bruno Haible  <bruno@clisp.org>
71806         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
71808 2008-12-21  Bruno Haible  <bruno@clisp.org>
71810         Update doc for AIX.
71811         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
71812         16-bit wchar_t type.
71813         * doc/posix-functions/btowc.texi: Likewise.
71814         * doc/posix-functions/fgetwc.texi: Likewise.
71815         * doc/posix-functions/fgetws.texi: Likewise.
71816         * doc/posix-functions/fputwc.texi: Likewise.
71817         * doc/posix-functions/fputws.texi: Likewise.
71818         * doc/posix-functions/fwide.texi: Likewise.
71819         * doc/posix-functions/fwprintf.texi: Likewise.
71820         * doc/posix-functions/fwscanf.texi: Likewise.
71821         * doc/posix-functions/getwchar.texi: Likewise.
71822         * doc/posix-functions/getwc.texi: Likewise.
71823         * doc/posix-functions/iswalnum.texi: Likewise.
71824         * doc/posix-functions/iswalpha.texi: Likewise.
71825         * doc/posix-functions/iswblank.texi: Likewise.
71826         * doc/posix-functions/iswcntrl.texi: Likewise.
71827         * doc/posix-functions/iswctype.texi: Likewise.
71828         * doc/posix-functions/iswdigit.texi: Likewise.
71829         * doc/posix-functions/iswgraph.texi: Likewise.
71830         * doc/posix-functions/iswlower.texi: Likewise.
71831         * doc/posix-functions/iswprint.texi: Likewise.
71832         * doc/posix-functions/iswpunct.texi: Likewise.
71833         * doc/posix-functions/iswspace.texi: Likewise.
71834         * doc/posix-functions/iswupper.texi: Likewise.
71835         * doc/posix-functions/iswxdigit.texi: Likewise.
71836         * doc/posix-functions/mbrtowc.texi: Likewise.
71837         * doc/posix-functions/mbsrtowcs.texi: Likewise.
71838         * doc/posix-functions/mbstowcs.texi: Likewise.
71839         * doc/posix-functions/mbtowc.texi: Likewise.
71840         * doc/posix-functions/putwchar.texi: Likewise.
71841         * doc/posix-functions/putwc.texi: Likewise.
71842         * doc/posix-functions/swprintf.texi: Likewise.
71843         * doc/posix-functions/tolower.texi: Likewise.
71844         * doc/posix-functions/toupper.texi: Likewise.
71845         * doc/posix-functions/towctrans.texi: Likewise.
71846         * doc/posix-functions/ungetwc.texi: Likewise.
71847         * doc/posix-functions/vswprintf.texi: Likewise.
71848         * doc/posix-functions/wcrtomb.texi: Likewise.
71849         * doc/posix-functions/wcscat.texi: Likewise.
71850         * doc/posix-functions/wcschr.texi: Likewise.
71851         * doc/posix-functions/wcscmp.texi: Likewise.
71852         * doc/posix-functions/wcscoll.texi: Likewise.
71853         * doc/posix-functions/wcscpy.texi: Likewise.
71854         * doc/posix-functions/wcscspn.texi: Likewise.
71855         * doc/posix-functions/wcsftime.texi: Likewise.
71856         * doc/posix-functions/wcslen.texi: Likewise.
71857         * doc/posix-functions/wcsncat.texi: Likewise.
71858         * doc/posix-functions/wcsncmp.texi: Likewise.
71859         * doc/posix-functions/wcsncpy.texi: Likewise.
71860         * doc/posix-functions/wcspbrk.texi: Likewise.
71861         * doc/posix-functions/wcsrchr.texi: Likewise.
71862         * doc/posix-functions/wcsrtombs.texi: Likewise.
71863         * doc/posix-functions/wcsspn.texi: Likewise.
71864         * doc/posix-functions/wcsstr.texi: Likewise.
71865         * doc/posix-functions/wcstod.texi: Likewise.
71866         * doc/posix-functions/wcstof.texi: Likewise.
71867         * doc/posix-functions/wcstoimax.texi: Likewise.
71868         * doc/posix-functions/wcstok.texi: Likewise.
71869         * doc/posix-functions/wcstold.texi: Likewise.
71870         * doc/posix-functions/wcstoll.texi: Likewise.
71871         * doc/posix-functions/wcstol.texi: Likewise.
71872         * doc/posix-functions/wcstombs.texi: Likewise.
71873         * doc/posix-functions/wcstoull.texi: Likewise.
71874         * doc/posix-functions/wcstoul.texi: Likewise.
71875         * doc/posix-functions/wcstoumax.texi: Likewise.
71876         * doc/posix-functions/wcswidth.texi: Likewise.
71877         * doc/posix-functions/wcsxfrm.texi: Likewise.
71878         * doc/posix-functions/wctob.texi: Likewise.
71879         * doc/posix-functions/wctomb.texi: Likewise.
71880         * doc/posix-functions/wctrans.texi: Likewise.
71881         * doc/posix-functions/wctype.texi: Likewise.
71882         * doc/posix-functions/wcwidth.texi: Likewise.
71883         * doc/posix-functions/wmemchr.texi: Likewise.
71884         * doc/posix-functions/wmemcmp.texi: Likewise.
71885         * doc/posix-functions/wmemcpy.texi: Likewise.
71886         * doc/posix-functions/wmemmove.texi: Likewise.
71887         * doc/posix-functions/wmemset.texi: Likewise.
71888         * doc/posix-functions/wprintf.texi: Likewise.
71889         * doc/posix-functions/wscanf.texi: Likewise.
71891 2008-12-21  Bruno Haible  <bruno@clisp.org>
71893         Update doc for HP-UX 11.11.
71894         * doc/posix-functions/btowc.texi: Clarify that the function is missing
71895         in HP-UX version 11.00, not in all versions of HP-UX 11.
71896         * doc/posix-functions/fwide.texi: Likewise.
71897         * doc/posix-functions/fwprintf.texi: Likewise.
71898         * doc/posix-functions/fwscanf.texi: Likewise.
71899         * doc/posix-functions/inet_ntop.texi: Likewise.
71900         * doc/posix-functions/inet_pton.texi: Likewise.
71901         * doc/posix-functions/mbrlen.texi: Likewise.
71902         * doc/posix-functions/mbrtowc.texi: Likewise.
71903         * doc/posix-functions/mbsinit.texi: Likewise.
71904         * doc/posix-functions/mbsrtowcs.texi: Likewise.
71905         * doc/posix-functions/swprintf.texi: Likewise.
71906         * doc/posix-functions/swscanf.texi: Likewise.
71907         * doc/posix-functions/towctrans.texi: Likewise.
71908         * doc/posix-functions/vfwprintf.texi: Likewise.
71909         * doc/posix-functions/vswprintf.texi: Likewise.
71910         * doc/posix-functions/vwprintf.texi: Likewise.
71911         * doc/posix-functions/wcrtomb.texi: Likewise.
71912         * doc/posix-functions/wcsrtombs.texi: Likewise.
71913         * doc/posix-functions/wcsstr.texi: Likewise.
71914         * doc/posix-functions/wctob.texi: Likewise.
71915         * doc/posix-functions/wctrans.texi: Likewise.
71916         * doc/posix-functions/wmemchr.texi: Likewise.
71917         * doc/posix-functions/wmemcmp.texi: Likewise.
71918         * doc/posix-functions/wmemcpy.texi: Likewise.
71919         * doc/posix-functions/wmemmove.texi: Likewise.
71920         * doc/posix-functions/wmemset.texi: Likewise.
71921         * doc/posix-functions/wprintf.texi: Likewise.
71922         * doc/posix-functions/wscanf.texi: Likewise.
71924 2008-12-21  Bruno Haible  <bruno@clisp.org>
71926         Work around a portability problem.
71927         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
71928         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
71930 2008-12-20  Bruno Haible  <bruno@clisp.org>
71932         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
71933         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
71934         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
71935         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
71936         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
71938         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
71939         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
71940         set.
71941         (GNULIB_defined_mbstate_t): New macro.
71942         (mbsinit): Redefine if REPLACE_MBSINIT is set.
71943         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
71944         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
71945         reuses the system's mbrtowc function but works around the bugs.
71946         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
71947         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
71948         macros.
71949         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
71950         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
71951         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
71952         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
71953         REPLACE_MBSINIT if mbsinit needs to be overridden.
71954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
71955         REPLACE_MBSINIT, REPLACE_MBRTOWC.
71956         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
71957         REPLACE_MBSINIT, REPLACE_MBRTOWC.
71958         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
71959         m4/locale-zh.m4.
71960         (Depends): Add mbsinit.
71961         * modules/mbsinit (Depends): Add mbrtowc.
71962         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
71964 2008-12-20  Bruno Haible  <bruno@clisp.org>
71966         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
71967         so that there are no conversion errors on AIX.
71968         * tests/test-mbsrtowcs.c (main): LIkewise.
71970 2008-12-20  Bruno Haible  <bruno@clisp.org>
71972         Work around wctob bug on Solaris <= 9.
71973         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
71974         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
71975         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
71976         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
71977         * modules/wctob (Files): Add m4/locale-fr.m4.
71978         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
71980 2008-12-20  Bruno Haible  <bruno@clisp.org>
71982         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
71983         /dev/null.
71984         * tests/test-select-in.sh: Likewise.
71985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
71987 2008-12-20  Bruno Haible  <bruno@clisp.org>
71989         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
71990         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
71991         Cygwin 1.5.x.
71993 2008-12-20  Bruno Haible  <bruno@clisp.org>
71995         Ensure mbstate_t is defined on HP-UX 11.11.
71996         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
71997         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
71998         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
71999         AC_USE_SYSTEM_EXTENSIONS.
72000         * modules/fnmatch (Depends-on): Add extensions.
72001         * modules/mbrlen (Depends-on): Likewise.
72002         * modules/mbrtowc (Depends-on): Likewise.
72003         * modules/mbsinit (Depends-on): Likewise.
72004         * modules/mbsrtowcs (Depends-on): Likewise.
72005         * modules/mbswidth (Depends-on): Likewise.
72006         * modules/quotearg (Depends-on): Likewise.
72007         * modules/strftime (Depends-on): Likewise.
72009 2008-12-20  Bruno Haible  <bruno@clisp.org>
72011         Ensure wctob is declared on IRIX 6.5.
72012         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
72013         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
72014         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
72015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
72016         of HAVE_WCTOB.
72017         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
72018         HAVE_WCTOB.
72019         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
72021 2008-12-19  Bruno Haible  <bruno@clisp.org>
72023         * modules/mbsrtowcs-tests: New file.
72024         * tests/test-mbsrtowcs1.sh: New file.
72025         * tests/test-mbsrtowcs2.sh: New file.
72026         * tests/test-mbsrtowcs3.sh: New file.
72027         * tests/test-mbsrtowcs4.sh: New file.
72028         * tests/test-mbsrtowcs.c: New file.
72030         New module 'mbsrtowcs'.
72031         * lib/wchar.in.h (mbsrtowcs): New declaration.
72032         * lib/mbsrtowcs.c: New file.
72033         * m4/mbsrtowcs.m4: New file.
72034         * modules/mbsrtowcs: New file.
72035         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
72036         HAVE_MBSRTOWCS.
72037         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
72038         HAVE_MBSRTOWCS.
72039         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
72041 2008-12-19  Bruno Haible  <bruno@clisp.org>
72043         New module 'mbrlen'.
72044         * lib/wchar.in.h (mbrlen): New declaration.
72045         * lib/mbrlen.c: New file.
72046         * m4/mbrlen.m4: New file.
72047         * modules/mbrlen: New file.
72048         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
72049         HAVE_MBRLEN.
72050         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
72051         HAVE_MBRLEN.
72052         * doc/posix-functions/mbrlen.texi: Document the new module.
72054 2008-12-19  Bruno Haible  <bruno@clisp.org>
72056         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
72057         * modules/mbrtowc (Depends-on): Add verify.
72058         Suggested by Paul Eggert.
72060 2008-12-18  Bruno Haible  <bruno@clisp.org>
72062         * modules/mbsinit-tests: New file.
72063         * tests/test-mbsinit.sh: New file.
72064         * tests/test-mbsinit.c: New file.
72066 2008-12-18  Bruno Haible  <bruno@clisp.org>
72068         * modules/mbrtowc-tests: New file.
72069         * tests/test-mbrtowc1.sh: New file.
72070         * tests/test-mbrtowc2.sh: New file.
72071         * tests/test-mbrtowc3.sh: New file.
72072         * tests/test-mbrtowc4.sh: New file.
72073         * tests/test-mbrtowc.c: New file.
72075         New module 'mbrtowc'.
72076         * lib/wchar.in.h (mbstate_t): Override when the system does not have
72077         mbsinit and mbrtowc.
72078         (mbrtowc): New declaration.
72079         * lib/mbrtowc.c: New file.
72080         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
72081         * modules/mbrtowc: New file.
72082         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
72083         HAVE_MBRTOWC.
72084         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
72085         HAVE_MBRTOWC.
72086         * doc/posix-functions/mbrtowc.texi: Document the new module.
72088 2008-12-18  Bruno Haible  <bruno@clisp.org>
72090         New module 'wctob'.
72091         * lib/wchar.in.h (wctob): New declaration.
72092         * lib/wctob.c: New file.
72093         * m4/wctob.m4: New file.
72094         * modules/wctob: New file.
72095         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
72096         HAVE_WCTOB.
72097         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
72098         * doc/posix-functions/wctob.texi: Document the new module.
72100 2008-12-18  Bruno Haible  <bruno@clisp.org>
72102         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
72103         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
72105 2008-12-18  Simon Josefsson  <simon@josefsson.org>
72107         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
72108         G. Christensen" <tgc@jupiterrise.com>.
72110         * lib/flock.c: Need to include errno.h.  Reported by "Tom
72111         G. Christensen" <tgc@jupiterrise.com>.
72113         * lib/flock.c: Need to include string.h.  Reported by "Tom
72114         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
72115         <ebb9@byu.net>.
72117 2008-12-18  Bruno Haible  <bruno@clisp.org>
72119         * m4/locale-ja.m4: New file, from GNU gettext.
72121 2008-12-17  Bruno Haible  <bruno@clisp.org>
72123         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
72124         Suggested by Eric Blake.
72126 2008-12-17  Bruno Haible  <bruno@clisp.org>
72128         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
72130 2008-12-17  Bruno Haible  <bruno@clisp.org>
72132         * lib/mbsinit.c: Include verify.h. Verify an assumption.
72133         * modules/mbsinit (Depends-on): Add verify.
72134         Suggested by Paul Eggert.
72136 2008-12-17  Bruno Haible  <bruno@clisp.org>
72138         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
72139         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
72140         gl_FUNC_MBRTOWC.
72141         * m4/mbiter.m4 (gl_MBITER): LIkewise.
72142         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
72143         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
72144         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
72145         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
72146         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
72147         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
72148         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
72149         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
72150         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
72151         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
72152         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
72153         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
72154         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
72155         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
72156         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72157         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
72158         * modules/trim (configure.ac): Likewise.
72160 2008-12-17  Bruno Haible  <bruno@clisp.org>
72162         * modules/btowc-tests: New file.
72163         * tests/test-btowc1.sh: New file.
72164         * tests/test-btowc2.sh: New file.
72165         * tests/test-btowc.c: New file.
72167         New module 'btowc'.
72168         * lib/wchar.in.h (btowc): New declaration.
72169         * lib/btowc.c: New file.
72170         * m4/btowc.m4: New file.
72171         * modules/btowc: New file.
72172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
72173         HAVE_BTOWC.
72174         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
72175         * doc/posix-functions/btowc.texi: Document the new module.
72177 2008-12-17  Bruno Haible  <bruno@clisp.org>
72179         New module 'mbsinit'.
72180         * lib/wchar.in.h (mbsinit): New declaration.
72181         * lib/mbsinit.c: New file.
72182         * m4/mbsinit.m4: New file.
72183         * modules/mbsinit: New file.
72184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
72185         HAVE_MBSINIT.
72186         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
72187         HAVE_MBSINIT.
72188         * doc/posix-functions/mbsinit.texi: Document the new module.
72190 2008-12-16  Bruno Haible  <bruno@clisp.org>
72192         * lib/unistd.in.h: Add comment.
72193         * tests/test-environ.c: Don't include <stdlib.h>.
72195 2008-12-16  Bruno Haible  <bruno@clisp.org>
72197         * lib/parse-duration.h (parse_duration): Document return value
72198         convention.
72199         * lib/parse-duration.c: Include specification header first. Add
72200         comments.
72201         (_): Remove macro.
72202         (parse_year_month_day, parse_hour_minute_second): Move side effects
72203         outside of strchr call.
72204         (parse_non_iso8601): Move side effects outside of isspace call.
72205         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
72206         call.
72208 2008-12-16  Bruno Haible  <bruno@clisp.org>
72210         * tests/test-parse-duration.sh: Produce no output when the test
72211         succeeds.
72213 2008-12-16  Bruno Haible  <bruno@clisp.org>
72215         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
72216         expressions.
72218 2008-12-15  Bruno Haible  <bruno@clisp.org>
72220         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
72221         * doc/glibc-functions/flistxattr.texi: Likewise.
72222         * doc/glibc-functions/fopencookie.texi: Likewise.
72223         * doc/glibc-functions/fremovexattr.texi: Likewise.
72224         * doc/glibc-functions/fsetxattr.texi: Likewise.
72225         * doc/glibc-functions/getxattr.texi: Likewise.
72226         * doc/glibc-functions/lgetxattr.texi: Likewise.
72227         * doc/glibc-functions/listxattr.texi: Likewise.
72228         * doc/glibc-functions/llistxattr.texi: Likewise.
72229         * doc/glibc-functions/lremovexattr.texi: Likewise.
72230         * doc/glibc-functions/lsetxattr.texi: Likewise.
72231         * doc/glibc-functions/removexattr.texi: Likewise.
72232         * doc/glibc-functions/setxattr.texi: Likewise.
72233         * doc/posix-functions/open_memstream.texi: Likewise.
72235 2008-12-15  Eric Blake  <ebb9@byu.net>
72237         Update doc for cygwin 1.7.
72238         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
72239         functions.
72240         * doc/posix-functions/fchmodat.texi: Likewise.
72241         * doc/posix-functions/fchownat.texi: Likewise.
72242         * doc/posix-functions/fdopendir.texi: Likewise.
72243         * doc/posix-functions/fmemopen.texi: Likewise.
72244         * doc/posix-functions/freeaddrinfo.texi: Likewise.
72245         * doc/posix-functions/fstatat.texi: Likewise.
72246         * doc/posix-functions/futimens.texi: Likewise.
72247         * doc/posix-functions/gai_strerror.texi: Likewise.
72248         * doc/posix-functions/getaddrinfo.texi: Likewise.
72249         * doc/posix-functions/getnameinfo.texi: Likewise.
72250         * doc/posix-functions/if_freenameindex.texi: Likewise.
72251         * doc/posix-functions/if_indextoname.texi: Likewise.
72252         * doc/posix-functions/if_nameindex.texi: Likewise.
72253         * doc/posix-functions/if_nametoindex.texi: Likewise.
72254         * doc/posix-functions/insque.texi: Likewise.
72255         * doc/posix-functions/linkat.texi: Likewise.
72256         * doc/posix-functions/llrint.texi: Likewise.
72257         * doc/posix-functions/llrintf.texi: Likewise.
72258         * doc/posix-functions/llrintl.texi: Likewise.
72259         * doc/posix-functions/lockf.texi: Likewise.
72260         * doc/posix-functions/lrintl.texi: Likewise.
72261         * doc/posix-functions/mkdirat.texi: Likewise.
72262         * doc/posix-functions/mkfifoat.texi: Likewise.
72263         * doc/posix-functions/mknodat.texi: Likewise.
72264         * doc/posix-functions/mq_close.texi: Likewise.
72265         * doc/posix-functions/mq_getattr.texi: Likewise.
72266         * doc/posix-functions/mq_notify.texi: Likewise.
72267         * doc/posix-functions/mq_open.texi: Likewise.
72268         * doc/posix-functions/mq_receive.texi: Likewise.
72269         * doc/posix-functions/mq_send.texi: Likewise.
72270         * doc/posix-functions/mq_setattr.texi: Likewise.
72271         * doc/posix-functions/mq_timedreceive.texi: Likewise.
72272         * doc/posix-functions/mq_timedsend.texi: Likewise.
72273         * doc/posix-functions/mq_unlink.texi: Likewise.
72274         * doc/posix-functions/open_memstream.texi: Likewise.
72275         * doc/posix-functions/openat.texi: Likewise.
72276         * doc/posix-functions/posix_fadvise.texi: Likewise.
72277         * doc/posix-functions/posix_fallocate.texi: Likewise.
72278         * doc/posix-functions/posix_madvise.texi: Likewise.
72279         * doc/posix-functions/posix_memalign.texi: Likewise.
72280         * doc/posix-functions/posix_openpt.texi: Likewise.
72281         * doc/posix-functions/readlinkat.texi: Likewise.
72282         * doc/posix-functions/remque.texi: Likewise.
72283         * doc/posix-functions/renameat.texi: Likewise.
72284         * doc/posix-functions/rintl.texi: Likewise.
72285         * doc/posix-functions/sem_unlink.texi: Likewise.
72286         * doc/posix-functions/shm_open.texi: Likewise.
72287         * doc/posix-functions/shm_unlink.texi: Likewise.
72288         * doc/posix-functions/signgam.texi: Likewise.
72289         * doc/posix-functions/sigset.texi: Likewise.
72290         * doc/posix-functions/stpcpy.texi: Likewise.
72291         * doc/posix-functions/stpncpy.texi: Likewise.
72292         * doc/posix-functions/strerror.texi: Likewise.
72293         * doc/posix-functions/strtod.texi: Likewise.
72294         * doc/posix-functions/symlinkat.texi: Likewise.
72295         * doc/posix-functions/unlinkat.texi: Likewise.
72296         * doc/posix-functions/utimensat.texi: Likewise.
72297         * doc/glibc-functions/bindresvport.texi: Likewise.
72298         * doc/glibc-functions/dn_expand.texi: Likewise.
72299         * doc/glibc-functions/exp10.texi: Likewise.
72300         * doc/glibc-functions/exp10f.texi: Likewise.
72301         * doc/glibc-functions/fgetxattr.texi: Likewise.
72302         * doc/glibc-functions/flistxattr.texi: Likewise.
72303         * doc/glibc-functions/fopencookie.texi: Likewise.
72304         * doc/glibc-functions/freeifaddrs.texi: Likewise.
72305         * doc/glibc-functions/fremovexattr.texi: Likewise.
72306         * doc/glibc-functions/fsetxattr.texi: Likewise.
72307         * doc/glibc-functions/getifaddrs.texi: Likewise.
72308         * doc/glibc-functions/getxattr.texi: Likewise.
72309         * doc/glibc-functions/lgetxattr.texi: Likewise.
72310         * doc/glibc-functions/listxattr.texi: Likewise.
72311         * doc/glibc-functions/llistxattr.texi: Likewise.
72312         * doc/glibc-functions/lremovexattr.texi: Likewise.
72313         * doc/glibc-functions/lsetxattr.texi: Likewise.
72314         * doc/glibc-functions/pow10.texi: Likewise.
72315         * doc/glibc-functions/pow10f.texi: Likewise.
72316         * doc/glibc-functions/rcmd_af.texi: Likewise.
72317         * doc/glibc-functions/removexattr.texi: Likewise.
72318         * doc/glibc-functions/res_init.texi: Likewise.
72319         * doc/glibc-functions/res_mkquery.texi: Likewise.
72320         * doc/glibc-functions/res_query.texi: Likewise.
72321         * doc/glibc-functions/res_querydomain.texi: Likewise.
72322         * doc/glibc-functions/res_send.texi: Likewise.
72323         * doc/glibc-functions/rresvport_af.texi: Likewise.
72324         * doc/glibc-functions/setxattr.texi: Likewise.
72325         * doc/glibc-functions/strcasestr.texi: Likewise.
72327 2008-12-15  Bruno Haible  <bruno@clisp.org>
72329         Fix compilation error on OSF/1 4.0.
72330         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
72331         <sys/time.h>, simply delegate to the system header.
72332         Reported by Daniel Richard G. <oss@teragram.com>.
72334 2008-12-15  Bruno Haible  <bruno@clisp.org>
72336         * doc/posix-functions/openat.texi: Mention the 'openat' module.
72337         * doc/posix-functions/fchmodat.texi: Likewise.
72338         * doc/posix-functions/fchownat.texi: Likewise.
72339         * doc/posix-functions/fdopendir.texi: Likewise.
72340         * doc/posix-functions/fstatat.texi: Likewise.
72341         * doc/posix-functions/mkdirat.texi: Likewise.
72342         * doc/posix-functions/unlinkat.texi: Likewise.
72344 2008-12-14  Bruno Haible  <bruno@clisp.org>
72346         Update doc for POSIX:2008.
72347         * doc/posix-functions/faccessat.texi: New file.
72348         * doc/posix-functions/fchmodat.texi: New file.
72349         * doc/posix-functions/fchownat.texi: New file.
72350         * doc/posix-functions/fdopendir.texi: New file.
72351         * doc/posix-functions/fstatat.texi: New file.
72352         * doc/posix-functions/futimens.texi: New file.
72353         * doc/posix-functions/linkat.texi: New file.
72354         * doc/posix-functions/mkdirat.texi: New file.
72355         * doc/posix-functions/mkfifoat.texi: New file.
72356         * doc/posix-functions/mknodat.texi: New file.
72357         * doc/posix-functions/open_wmemstream.texi: New file.
72358         * doc/posix-functions/openat.texi: New file.
72359         * doc/posix-functions/psiginfo.texi: New file.
72360         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
72361         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
72362         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
72363         * doc/posix-functions/readlinkat.texi: New file.
72364         * doc/posix-functions/renameat.texi: New file.
72365         * doc/posix-functions/strerror_l.texi: New file.
72366         * doc/posix-functions/symlinkat.texi: New file.
72367         * doc/posix-functions/unlinkat.texi: New file.
72368         * doc/posix-functions/utimensat.texi: New file.
72369         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72371 2008-12-14  Bruno Haible  <bruno@clisp.org>
72373         Update doc for POSIX:2008.
72374         * doc/posix-functions/alphasort.texi: Renamed from
72375         doc/glibc-functions/alphasort.texi.
72376         * doc/posix-functions/dirfd.texi: Renamed from
72377         doc/glibc-functions/dirfd.texi.
72378         * doc/posix-functions/dprintf.texi: Renamed from
72379         doc/glibc-functions/dprintf.texi.
72380         * doc/posix-functions/duplocale.texi: Renamed from
72381         doc/glibc-functions/duplocale.texi.
72382         * doc/posix-functions/fexecve.texi: Renamed from
72383         doc/glibc-functions/fexecve.texi.
72384         * doc/posix-functions/fmemopen.texi: Renamed from
72385         doc/glibc-functions/fmemopen.texi.
72386         * doc/posix-functions/freelocale.texi: Renamed from
72387         doc/glibc-functions/freelocale.texi.
72388         * doc/posix-functions/getdate_err.texi: Renamed from
72389         doc/glibc-functions/getdate_err.texi.
72390         * doc/posix-functions/isalnum_l.texi: Renamed from
72391         doc/glibc-functions/isalnum_l.texi.
72392         * doc/posix-functions/isalpha_l.texi: Renamed from
72393         doc/glibc-functions/isalpha_l.texi.
72394         * doc/posix-functions/isblank_l.texi: Renamed from
72395         doc/glibc-functions/isblank_l.texi.
72396         * doc/posix-functions/iscntrl_l.texi: Renamed from
72397         doc/glibc-functions/iscntrl_l.texi.
72398         * doc/posix-functions/isdigit_l.texi: Renamed from
72399         doc/glibc-functions/isdigit_l.texi.
72400         * doc/posix-functions/isgraph_l.texi: Renamed from
72401         doc/glibc-functions/isgraph_l.texi.
72402         * doc/posix-functions/islower_l.texi: Renamed from
72403         doc/glibc-functions/islower_l.texi.
72404         * doc/posix-functions/isprint_l.texi: Renamed from
72405         doc/glibc-functions/isprint_l.texi.
72406         * doc/posix-functions/ispunct_l.texi: Renamed from
72407         doc/glibc-functions/ispunct_l.texi.
72408         * doc/posix-functions/isspace_l.texi: Renamed from
72409         doc/glibc-functions/isspace_l.texi.
72410         * doc/posix-functions/isupper_l.texi: Renamed from
72411         doc/glibc-functions/isupper_l.texi.
72412         * doc/posix-functions/iswalnum_l.texi: Renamed from
72413         doc/glibc-functions/iswalnum_l.texi.
72414         * doc/posix-functions/iswalpha_l.texi: Renamed from
72415         doc/glibc-functions/iswalpha_l.texi.
72416         * doc/posix-functions/iswblank_l.texi: Renamed from
72417         doc/glibc-functions/iswblank_l.texi.
72418         * doc/posix-functions/iswcntrl_l.texi: Renamed from
72419         doc/glibc-functions/iswcntrl_l.texi.
72420         * doc/posix-functions/iswctype_l.texi: Renamed from
72421         doc/glibc-functions/iswctype_l.texi.
72422         * doc/posix-functions/iswdigit_l.texi: Renamed from
72423         doc/glibc-functions/iswdigit_l.texi.
72424         * doc/posix-functions/iswgraph_l.texi: Renamed from
72425         doc/glibc-functions/iswgraph_l.texi.
72426         * doc/posix-functions/iswlower_l.texi: Renamed from
72427         doc/glibc-functions/iswlower_l.texi.
72428         * doc/posix-functions/iswprint_l.texi: Renamed from
72429         doc/glibc-functions/iswprint_l.texi.
72430         * doc/posix-functions/iswpunct_l.texi: Renamed from
72431         doc/glibc-functions/iswpunct_l.texi.
72432         * doc/posix-functions/iswspace_l.texi: Renamed from
72433         doc/glibc-functions/iswspace_l.texi.
72434         * doc/posix-functions/iswupper_l.texi: Renamed from
72435         doc/glibc-functions/iswupper_l.texi.
72436         * doc/posix-functions/iswxdigit_l.texi: Renamed from
72437         doc/glibc-functions/iswxdigit_l.texi.
72438         * doc/posix-functions/isxdigit_l.texi: Renamed from
72439         doc/glibc-functions/isxdigit_l.texi.
72440         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
72441         doc/glibc-functions/mbsnrtowcs.texi.
72442         * doc/posix-functions/mkdtemp.texi: Renamed from
72443         doc/glibc-functions/mkdtemp.texi.
72444         * doc/posix-functions/newlocale.texi: Renamed from
72445         doc/glibc-functions/newlocale.texi.
72446         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
72447         doc/glibc-functions/nl_langinfo_l.texi.
72448         * doc/posix-functions/open_memstream.texi: Renamed from
72449         doc/glibc-functions/open_memstream.texi.
72450         * doc/posix-functions/opterr.texi: Renamed from
72451         doc/glibc-functions/opterr.texi.
72452         * doc/posix-functions/optind.texi: Renamed from
72453         doc/glibc-functions/optind.texi.
72454         * doc/posix-functions/optopt.texi: Renamed from
72455         doc/glibc-functions/optopt.texi.
72456         * doc/posix-functions/psignal.texi: Renamed from
72457         doc/glibc-functions/psignal.texi.
72458         * doc/posix-functions/scandir.texi: Renamed from
72459         doc/glibc-functions/scandir.texi.
72460         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
72461         doc/glibc-functions/sched_get_priority_min.texi.
72462         * doc/posix-functions/signgam.texi: Renamed from
72463         doc/glibc-functions/signgam.texi.
72464         * doc/posix-functions/stpcpy.texi: Renamed from
72465         doc/glibc-functions/stpcpy.texi.
72466         * doc/posix-functions/stpncpy.texi: Renamed from
72467         doc/glibc-functions/stpncpy.texi.
72468         * doc/posix-functions/strcasecmp_l.texi: Renamed from
72469         doc/glibc-functions/strcasecmp_l.texi.
72470         * doc/posix-functions/strcoll_l.texi: Renamed from
72471         doc/glibc-functions/strcoll_l.texi.
72472         * doc/posix-functions/strfmon_l.texi: Renamed from
72473         doc/glibc-functions/strfmon_l.texi.
72474         * doc/posix-functions/strftime_l.texi: Renamed from
72475         doc/glibc-functions/strftime_l.texi.
72476         * doc/posix-functions/strncasecmp_l.texi: Renamed from
72477         doc/glibc-functions/strncasecmp_l.texi.
72478         * doc/posix-functions/strndup.texi: Renamed from
72479         doc/glibc-functions/strndup.texi.
72480         * doc/posix-functions/strnlen.texi: Renamed from
72481         doc/glibc-functions/strnlen.texi.
72482         * doc/posix-functions/strsignal.texi: Renamed from
72483         doc/glibc-functions/strsignal.texi.
72484         * doc/posix-functions/strxfrm_l.texi: Renamed from
72485         doc/glibc-functions/strxfrm_l.texi.
72486         * doc/posix-functions/timer_gettime.texi: Renamed from
72487         doc/glibc-functions/timer_gettime.texi.
72488         * doc/posix-functions/tolower_l.texi: Renamed from
72489         doc/glibc-functions/tolower_l.texi.
72490         * doc/posix-functions/toupper_l.texi: Renamed from
72491         doc/glibc-functions/toupper_l.texi.
72492         * doc/posix-functions/towctrans_l.texi: Renamed from
72493         doc/glibc-functions/towctrans_l.texi.
72494         * doc/posix-functions/towlower_l.texi: Renamed from
72495         doc/glibc-functions/towlower_l.texi.
72496         * doc/posix-functions/towupper_l.texi: Renamed from
72497         doc/glibc-functions/towupper_l.texi.
72498         * doc/posix-functions/uselocale.texi: Renamed from
72499         doc/glibc-functions/uselocale.texi.
72500         * doc/posix-functions/vdprintf.texi: Renamed from
72501         doc/glibc-functions/vdprintf.texi.
72502         * doc/posix-functions/wcpcpy.texi:
72503         Renamed from doc/glibc-functions/wcpcpy.texi.
72504         * doc/posix-functions/wcpncpy.texi: Renamed from
72505         doc/glibc-functions/wcpncpy.texi.
72506         * doc/posix-functions/wcscasecmp.texi: Renamed from
72507         doc/glibc-functions/wcscasecmp.texi.
72508         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
72509         doc/glibc-functions/wcscasecmp_l.texi.
72510         * doc/posix-functions/wcscoll_l.texi: Renamed from
72511         doc/glibc-functions/wcscoll_l.texi.
72512         * doc/posix-functions/wcsdup.texi: Renamed from
72513         doc/glibc-functions/wcsdup.texi.
72514         * doc/posix-functions/wcsncasecmp.texi: Renamed from
72515         doc/glibc-functions/wcsncasecmp.texi.
72516         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
72517         doc/glibc-functions/wcsncasecmp_l.texi.
72518         * doc/posix-functions/wcsnlen.texi: Renamed from
72519         doc/glibc-functions/wcsnlen.texi.
72520         * doc/posix-functions/wcsnrtombs.texi: Renamed from
72521         doc/glibc-functions/wcsnrtombs.texi.
72522         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
72523         doc/glibc-functions/wcsxfrm_l.texi.
72524         * doc/posix-functions/wctrans_l.texi: Renamed from
72525         doc/glibc-functions/wctrans_l.texi.
72526         * doc/posix-functions/wctype_l.texi: Renamed from
72527         doc/glibc-functions/wctype_l.texi.
72528         * doc/gnulib.texi (Function Substitutes): Add these subsections.
72529         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
72530         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
72531         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
72532         these subsections.
72533         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
72534         Remove sections.
72536 2008-12-14  Bruno Haible  <bruno@clisp.org>
72538         Update doc for POSIX:2008.
72539         * doc/posix-functions/*.texi: Update URL of POSIX specification.
72541 2008-12-14  Bruno Haible  <bruno@clisp.org>
72543         Update doc for POSIX:2008.
72544         * doc/pastposix-functions/bcmp.texi: Renamed from
72545         doc/posix-functions/bcmp.texi.
72546         * doc/pastposix-functions/bcopy.texi: Renamed from
72547         doc/posix-functions/bcopy.texi.
72548         * doc/pastposix-functions/bsd_signal.texi: Renamed from
72549         doc/posix-functions/bsd_signal.texi.
72550         * doc/pastposix-functions/bzero.texi: Renamed from
72551         doc/posix-functions/bzero.texi.
72552         * doc/pastposix-functions/ecvt.texi: Renamed from
72553         doc/posix-functions/ecvt.texi.
72554         * doc/pastposix-functions/fcvt.texi: Renamed from
72555         doc/posix-functions/fcvt.texi.
72556         * doc/pastposix-functions/ftime.texi: Renamed from
72557         doc/posix-functions/ftime.texi.
72558         * doc/pastposix-functions/gcvt.texi: Renamed from
72559         doc/posix-functions/gcvt.texi.
72560         * doc/pastposix-functions/getcontext.texi: Renamed from
72561         doc/posix-functions/getcontext.texi.
72562         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
72563         doc/posix-functions/gethostbyaddr.texi.
72564         * doc/pastposix-functions/gethostbyname.texi: Renamed from
72565         doc/posix-functions/gethostbyname.texi.
72566         * doc/pastposix-functions/getwd.texi: Renamed from
72567         doc/posix-functions/getwd.texi.
72568         * doc/pastposix-functions/h_errno.texi: Renamed from
72569         doc/posix-functions/h_errno.texi.
72570         * doc/pastposix-functions/index.texi: Renamed from
72571         doc/posix-functions/index.texi.
72572         * doc/pastposix-functions/makecontext.texi: Renamed from
72573         doc/posix-functions/makecontext.texi.
72574         * doc/pastposix-functions/mktemp.texi: Renamed from
72575         doc/posix-functions/mktemp.texi.
72576         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
72577         doc/posix-functions/pthread_attr_getstackaddr.texi.
72578         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
72579         doc/posix-functions/pthread_attr_setstackaddr.texi.
72580         * doc/pastposix-functions/rindex.texi: Renamed from
72581         doc/posix-functions/rindex.texi.
72582         * doc/pastposix-functions/scalb.texi: Renamed from
72583         doc/posix-functions/scalb.texi.
72584         * doc/pastposix-functions/setcontext.texi: Renamed from
72585         doc/posix-functions/setcontext.texi.
72586         * doc/pastposix-functions/swapcontext.texi: Renamed from
72587         doc/posix-functions/swapcontext.texi.
72588         * doc/pastposix-functions/ualarm.texi: Renamed from
72589         doc/posix-functions/ualarm.texi.
72590         * doc/pastposix-functions/usleep.texi: Renamed from
72591         doc/posix-functions/usleep.texi.
72592         * doc/pastposix-functions/vfork.texi: Renamed from
72593         doc/posix-functions/vfork.texi.
72594         * doc/pastposix-functions/wcswcs.texi: Renamed from
72595         doc/posix-functions/wcswcs.texi.
72596         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
72597         (Function Substitutes): Update.
72599 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72601         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
72602         m4/strerror.m4.
72604 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72605             Bruno Haible  <bruno@clisp.org>
72607         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
72609 2008-12-13  Bruno Haible  <bruno@clisp.org>
72611         * modules/strtoull (Depends-on): Remove unistd.
72613 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72615         * modules/strtoull (Depends-on): Add stdlib.
72617 2008-12-11  Simon Josefsson  <simon@josefsson.org>
72619         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
72621 2008-12-10  Jim Meyering  <meyering@redhat.com>
72623         gl_ASSERT: don't say assertions are disabled when they're not
72624         * m4/assert.m4 (gl_ASSERT): Do not make configure report
72625         "checking whether to enable assertions... no", when they are in
72626         fact enabled.  This is solely a bug in the output of configure.
72627         In spite of saying "no", NDEBUG was not defined in that case.
72628         Also, as noted by Eric Blake, leave assertions enabled upon
72629         --enable-assert=INVALID.
72631 2008-12-10  Bruno Haible  <bruno@clisp.org>
72633         Change MODULES.html to refer to POSIX:2008 where possible.
72634         * MODULES.html.sh (POSIX2008_URL): New variable.
72635         (posix_headers): Remove sys/timeb, ucontext.
72636         (posix2001_headers): New variable.
72637         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
72638         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
72639         index, makecontext, mktemp, pthread_attr_getstackaddr,
72640         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
72641         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
72642         (posix2001_functions): New variable.
72643         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
72644         otherwise.
72646 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72648         add missing include to parse-duration.c
72649         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
72650         * modules/parse-duration (Depends-on): Add xalloc.
72652         fix sed script reading maint.mk
72653         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
72654         (syntax-check-rules): Use it.
72656 2008-12-09  Bruno Haible  <bruno@clisp.org>
72658         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
72659         MacOS X 10.4/PowerPC.
72660         Reported by Simon Josefsson.
72662 2008-12-08  Jim Meyering  <meyering@redhat.com>
72664         work around mingw's lack of some S_IF definitions
72665         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
72666         Reported by Simon Josefsson.
72668 2008-12-08  Bruno Haible  <bruno@clisp.org>
72670         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
72671         applied to variables. Needed on MacOS X 10.4/PowerPC.
72672         Reported by Simon Josefsson.
72674 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
72675         and Eric Blake  <ebb9@byu.net>
72677         assert: honor --enable-assert
72678         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
72679         order to honor --enable-assert, rather than treating it as a
72680         synonym for --disable-assert.
72682 2008-12-08  Jim Meyering  <meyering@redhat.com>
72684         * lib/posixtm.c: Remove now-useless declaration of mktime.
72686         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
72688 2008-12-07  Bruno Haible  <bruno@clisp.org>
72690         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
72691         test_once): Mark functions as static.
72692         * tests/test-tls.c (test_tls): Likewise.
72694 2008-12-07  Bruno Haible  <bruno@clisp.org>
72696         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
72697         iconv_register_autodetect.
72699 2008-12-07  Jim Meyering  <meyering@redhat.com>
72701         posixtm.c: avoid a warning
72702         * lib/posixtm.c (posixtime): Don't initialize tm0.
72703         It's no longer needed to placate gcc4's -Wuninitialized,
72704         and the attempt to placate would elicit a new warning.
72706         unicodeio.c: mark unused parameters
72707         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
72708         (fallback_failure_callback): Likewise.
72710 2008-12-07  Bruno Haible  <bruno@clisp.org>
72712         * gnulib-tool (func_create_testdir): When building the tests
72713         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
72714         Reported by Simon Josefsson.
72716 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72718         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
72720 2008-12-06  Bruno Haible  <bruno@clisp.org>
72722         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
72723         Suggested by Eric Blake.
72725 2008-12-06  Bruno Haible  <bruno@clisp.org>
72727         Fix a c-stack test failure on MacOS X.
72728         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
72729         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
72730         handler for SIGBUS as well.
72731         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
72732         install a signal handler for SIGBUS as well.
72733         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
72735 2008-12-06  Bruno Haible  <bruno@clisp.org>
72737         Advocacy documentation.
72738         * doc/gnulib-intro.texi (Benefits): New section.
72739         * doc/gnulib.texi: Update.
72741 2008-12-06  Bruno Haible  <bruno@clisp.org>
72743         Document the 'manywarnings' module.
72744         * doc/manywarnings.texi: New file.
72745         * doc/gnulib.texi: Include it.
72747 2008-12-05  Eric Blake  <ebb9@byu.net>
72749         tests: silence some gcc warnings
72750         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
72751         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
72752         type mismatches.
72754 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72755             Bruno Haible  <bruno@clisp.org>
72757         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
72759 2008-11-29  Jim Meyering  <meyering@redhat.com>
72761         unicodeio.c: mark unused parameters
72762         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
72763         (fallback_failure_callback): Likewise.
72765         fts: fix a thinko
72766         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
72767         (set_stat_type): Return S_IF*-valued "type" directly.
72768         Prompted by James Youngman's spotting a related bug.
72769         Confirmed by further testing through find.
72771         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
72772         * lib/fts.c (D_TYPE): Define.
72773         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
72774         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
72775         (s_ifmt_shift_bits): New function.
72776         (set_stat_type): New function.
72777         (fts_build): When not calling fts_stat, call set_stat_type
72778         to propagate dirent.d_type info to fts_read caller.
72779         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
72780         fts_statp->st_mode type information may be valid.
72782 2008-11-28  Simon Josefsson  <simon@josefsson.org>
72784         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
72785         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
72786         <sds@gnu.org>.
72788 2008-11-20  Bruno Haible  <bruno@clisp.org>
72790         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
72791         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
72792         INCLUDE_NEXT.
72793         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
72794         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
72795         * modules/math (Makefile.am): Substitute
72796         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
72797         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72799 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
72800             Bruno Haible  <bruno@clisp.org>
72802         * lib/stdint.in.h: Define all type macros so that their expansion is
72803         a single typedef'ed token. Fixes a compilation failure in Boost which
72804         does "using ::int8_t;".
72806 2008-11-18  Simon Josefsson  <simon@josefsson.org>
72808         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
72809         gl_MANYWARN_ALL_GCC.
72810         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
72811         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
72812         * modules/manywarnings: New file.
72813         * MODULES.html.sh: Mention manywarnings module.
72815 2008-11-18  Bruno Haible  <bruno@clisp.org>
72817         * doc/gnulib-tool.texi (Unit tests): New section.
72819 2008-11-18  Simon Josefsson  <simon@josefsson.org>
72821         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
72822         paths like 'lib/po/foo.po'.
72824 2008-11-17  Simon Josefsson  <simon@josefsson.org>
72826         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
72827         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
72829 2008-11-17  Simon Josefsson  <simon@josefsson.org>
72831         * m4/warnings.m4: Use CPPFLAGS to really check whether the
72832         parameter works.
72834 2008-11-17  Simon Josefsson  <simon@josefsson.org>
72836         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
72838 2008-11-17  Bruce Korb  <bkorb@gnu.org>
72840         * modules/parse-duration-tests: New file.
72841         * tests/test-parse-duration.sh: New file.
72842         * tests/test-parse-duration.c: New file.
72844         New module 'parse-duration'.
72845         * lib/parse-duration.h: New file.
72846         * lib/parse-duration.c: New file.
72847         * modules/parse-duration: New file.
72849 2008-11-17  Bruno Haible  <bruno@clisp.org>
72851         * tests/test-select-out.sh: Comment out the first pipe test.
72852         Reported by Simon Josefsson.
72854 2008-11-17  Bruno Haible  <bruno@clisp.org>
72856         * modules/getaddrinfo (Depends-on): Add servent, hostent.
72857         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
72858         gl_HOSTENT.
72860 2008-11-17  Bruno Haible  <bruno@clisp.org>
72862         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
72863         -lnetwork and -lnet. Needed for Haiku and BeOS.
72865 2008-11-16  Bruno Haible  <bruno@clisp.org>
72867         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
72869 2008-11-16  Bruno Haible  <bruno@clisp.org>
72871         Avoid test failure on Haiku.
72872         * tests/test-fsync.c: Include <errno.h>.
72873         (main): Don't require that fsync (0) fails.
72875 2008-11-15  Bruno Haible  <bruno@clisp.org>
72877         New module 'hostent'.
72878         * modules/hostent: New file.
72879         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
72881 2008-11-15  Bruno Haible  <bruno@clisp.org>
72883         New module 'servent'.
72884         * modules/servent: New file.
72885         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
72887 2008-11-15  Bruno Haible  <bruno@clisp.org>
72889         Avoid generating same test program with two different rules.
72890         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
72891         test-frexp to test-frexp-nolibm.
72892         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
72893         test-frexpl to test-frexpl-nolibm.
72895 2008-11-15  Bruno Haible  <bruno@clisp.org>
72897         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
72898         $(FREXPL_LIBM).
72900 2008-11-15  Bruno Haible  <bruno@clisp.org>
72902         * lib/netdb.in.h: Activate the definitions also when the system's
72903         <netdb.h> has 'struct addrinfo'.
72904         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
72905         EAI_OVERFLOW or AI_NUMERICSERV.
72906         * doc/posix-headers/netdb.texi: Document the problem.
72908 2008-11-15  Bruno Haible  <bruno@clisp.org>
72910         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
72912         Make the 'sched' module work on platforms where <sched.h> exists but
72913         is incomplete (such as Haiku).
72914         * lib/sched.in.h; Include the system's <sched.h> if it exists.
72915         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
72916         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
72917         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
72918         HAVE_STRUCT_SCHED_PARAM.
72919         * modules/sched (Depends-on): Add include_next.
72920         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
72921         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
72922         * doc/posix-headers/sched.texi: Document the issue.
72924 2008-11-13  Jim Meyering  <meyering@redhat.com>
72926         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
72927         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
72928         test would fail due to the difference in the Report bugs to ...
72929         line.  The expected address is empty, "<>", while the actual
72930         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
72932 2008-11-12  Bruno Haible  <bruno@clisp.org>
72934         lstat: don't compile lstat.c on systems lacking lstat
72935         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
72936         which don't have lstat; this is handled by lib/sys_stat.in.h already.
72937         Reported by Daniel P. Berrange via Jim Meyering.
72939 2008-11-12  Jim Meyering  <meyering@redhat.com>
72941         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
72943 2008-11-12  Simon Josefsson  <simon@josefsson.org>
72945         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
72946         instead.
72948 2008-11-12  Bruno Haible  <bruno@clisp.org>
72950         * lib/unicodeio.c: Include unistr.h.
72951         (utf8_wctomb): Remove function.
72952         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
72954 2008-11-12  Simon Josefsson  <simon@josefsson.org>
72956         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
72957         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
72958         <bruno@clisp.org>.
72959         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
72961 2008-11-12  Simon Josefsson  <simon@josefsson.org>
72963         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
72964         * doc/gnulib.texi: Add section for warnings.
72966 2008-11-11  Bruno Haible  <bruno@clisp.org>
72968         * lib/sockets.h: Add a comment.
72970 2008-11-11  Karl Berry  <karl@gnu.org>
72972         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
72974 2008-11-11  Eric Blake  <ebb9@byu.net>
72976         fdl.texi: avoid git symlinks
72977         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
72979 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
72981         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
72983 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
72985         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
72986         (gl_WARN_ADD): Substitute $2 if literal.
72988 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
72990         * m4/warning.m4: Remove.
72992 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
72994         * m4/warnings.m4: Almost complete rewrite. :-)
72996 2008-11-10  Simon Josefsson  <simon@josefsson.org>
72998         * modules/warnings: New module.
72999         * m4/warnings.m4: New file.
73000         * MODULES.html.sh: Mention warnings module.
73001         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
73002         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73004 2008-11-10  Eric Blake  <ebb9@byu.net>
73006         fdl.texi: make a symlink to the latest version
73007         * doc/standards.texi: Revert today's earlier change.
73008         * doc/fdl-1.2.texi: Rename from old fdl.texi...
73009         * doc/fdl.texi: ...and replace this with a symlink to the newer
73010         fdl-1.3.texi.
73012 2008-11-10  Bruno Haible  <bruno@clisp.org>
73014         * tests/test-select-fd.c (main): Accept the result file name as fourth
73015         argument.
73016         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
73017         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
73019 2008-11-10  Bruno Haible  <bruno@clisp.org>
73021         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
73022         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
73023         as autoconf-substituted macros.
73024         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
73025         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
73026         gl_NETDB_H_DEFAULTS. Set these variables.
73027         * modules/netdb (Makefile.am): Substitute these variables.
73029 2008-11-10  Eric Blake  <ebb9@byu.net>
73031         standards.texi: include correct file for FDL 1.3
73032         * doc/standards.texi (GNU Free Documentation License): Change
73033         include file to pull in FDL 1.3, not 1.2.
73035         fdl.texi: revert accidental change to license
73036         * doc/fdl.texi: This is FDL 1.2, not 1.3.
73038 2008-11-10  Bruno Haible  <bruno@clisp.org>
73040         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
73041         cross-compiling guesses also when the native compile gives no result.
73043 2008-11-10  Bruno Haible  <bruno@clisp.org>
73045         * lib/spawni.c (__spawni): Force variable into the stack.
73047 2008-11-10  Bruno Haible  <bruno@clisp.org>
73049         Add support for Haiku.
73050         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
73051         glibc and BeOS, but also on Haiku.
73052         * lib/fpurge.c (fpurge): Likewise.
73053         * lib/freadable.c (freadable): Likewise.
73054         * lib/freadahead.c (freadahead): Likewise.
73055         * lib/freading.c (freading): Likewise.
73056         * lib/freadptr.c (freadptr): Likewise.
73057         * lib/freadseek.c (freadptrinc): Likewise.
73058         * lib/fseeko.c (rpl_fseeko): Likewise.
73059         * lib/fseterr.c (fseterr): Likewise.
73060         * lib/fwritable.c (fwritable): Likewise.
73061         * lib/fwriting.c (fwriting): Likewise.
73062         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
73064 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73066         * lib/config.charset: Treat Haiku like BeOS.
73068 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73070         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
73071         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
73073 2008-11-08  Bruno Haible  <bruno@clisp.org>
73075         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
73076         AC_CACHE_CHECK.
73078 2008-11-08  Bruno Haible  <bruno@clisp.org>
73080         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
73082 2008-11-08  Bruno Haible  <bruno@clisp.org>
73084         * tests/test-select-fd.c: New file.
73085         * tests/test-select-in.sh: New file.
73086         * tests/test-select-out.sh: New file.
73087         * tests/test-select-stdin.c: New file.
73088         * modules/select-tests (Files): Add the new files.
73089         (Depends-on): Add gettimeofday.
73090         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
73091         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
73092         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
73094 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
73095             Bruno Haible  <bruno@clisp.org>
73097         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
73099 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
73101         * build-aux/pmccabe2html: Added support for C++ source files.
73103 2008-11-05  Ben Pfaff  <blp@gnu.org>
73105         Fix lib/close.c build on Windows.
73106         * modules/close (Files): Add lib/w32sock.h.
73108 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
73110         Accept Bison's NEWS format.
73111         * build-aux/announce-gen (print_news_deltas): Tweak
73112         $re_prefix.
73114 2008-11-04  Bruno Haible  <bruno@clisp.org>
73116         * modules/random_r (Maintainer): Add glibc.
73118 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73120         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
73121         by karl@freefriends.org (Karl Berry).
73122         * doc/alloca.texi: Likewise.
73123         * doc/c-ctype.texi: Likewise.
73124         * doc/c-strcase.texi: Likewise.
73125         * doc/c-strcaseeq.texi: Likewise.
73126         * doc/c-strcasestr.texi: Likewise.
73127         * doc/c-strstr.texi: Likewise.
73128         * doc/c-strtod.texi: Likewise.
73129         * doc/c-strtold.texi: Likewise.
73130         * doc/ctime.texi: Likewise.
73131         * doc/error.texi: Likewise.
73132         * doc/fdl.texi: Likewise.
73133         * doc/gcd.texi: Likewise.
73134         * doc/getdate.texi: Likewise.
73135         * doc/gnulib-intro.texi: Likewise.
73136         * doc/gnulib-tool.texi: Likewise.
73137         * doc/gnulib.texi: Likewise.
73138         * doc/inet_ntoa.texi: Likewise.
73139         * doc/maintain.texi: Likewise.
73140         * doc/make-stds.texi: Likewise.
73141         * doc/quote.texi: Likewise.
73142         * doc/regexprops-generic.texi: Likewise.
73143         * doc/standards.texi: Likewise.
73144         * doc/verify.texi: Likewise.
73145         * doc/visibility.texi: Likewise.
73146         * doc/gnulib.texi (GNU Free Documentation License): Include
73147         fdl-1.3.texi instead of fdl.texi.
73149 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73151         * doc/fdl-1.3.texi: New file, from
73152         <http://www.gnu.org/licenses/fdl-1.3.texi>.
73153         * modules/fdl-1.3: Add.
73154         * MODULES.html.sh: Add fdl-1.3.
73156 2008-11-03  Bruno Haible  <bruno@clisp.org>
73158         Make determination of absolute name of header file work with AIX xlc.
73159         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
73160         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
73161         preprocessing.
73162         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73163         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
73165 2008-11-03  Simon Josefsson  <simon@josefsson.org>
73167         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
73168         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
73169         <ludo@gnu.org>.
73171 2008-11-02  Bruno Haible  <bruno@clisp.org>
73173         Mark 'strpbrk' obsolete.
73174         * modules/strpbrk (Status, Notice): New sections.
73175         * modules/strtok_r (Depends-on): Add strpbrk.
73177 2008-11-02  Bruno Haible  <bruno@clisp.org>
73179         Mark 'strdup' obsolete.
73180         * modules/strdup (Status, Notice): New sections.
73181         * modules/findprog (Depends-on): Add strdup.
73182         * modules/getaddrinfo (Depends-on): Likewise.
73183         * modules/localename (Depends-on): Likewise.
73184         * modules/relocatable-lib (Depends-on): Likewise.
73185         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
73186         * modules/relocatable-prog (Depends-on): Likewise.
73187         * modules/trim (Depends-on): Likewise.
73188         * modules/unictype/gen-ctype (Depends-on): Likewise.
73189         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73191 2008-11-02  Bruno Haible  <bruno@clisp.org>
73193         Mark 'strcspn' obsolete.
73194         * modules/strcspn (Status, Notice): New sections.
73196 2008-11-02  Bruno Haible  <bruno@clisp.org>
73198         Mark 'rmdir' obsolete.
73199         * modules/rmdir (Status, Notice): New sections.
73200         * modules/clean-temp (Depends-on): Add rmdir.
73201         * modules/openat (Depends-on): Likewise.
73203 2008-11-02  Bruno Haible  <bruno@clisp.org>
73205         Mark 'raise' obsolete.
73206         * modules/raise (Status, Notice): New sections.
73207         (Include): Specify <signal.h>.
73208         * modules/stdio (Depends-on): Add raise.
73209         * modules/write (Depends-on): Likewise.
73211 2008-11-02  Bruno Haible  <bruno@clisp.org>
73213         Mark 'memset' obsolete.
73214         * modules/memset (Status, Notice): New sections.
73216 2008-11-02  Bruno Haible  <bruno@clisp.org>
73218         Mark 'memmove' obsolete.
73219         * modules/memmove (Status, Notice): New sections.
73220         * modules/argp (Depends-on): Add memmove.
73221         * modules/argz (Depends-on): Likewise.
73222         * modules/canonicalize (Depends-on): Likewise.
73223         * modules/canonicalize-lgpl (Depends-on): Likewise.
73224         * modules/fts (Depends-on): Likewise.
73225         * modules/getcwd (Depends-on): Likewise.
73226         * modules/human (Depends-on): Likewise.
73227         * modules/regex (Depends-on): Likewise.
73228         * modules/striconveh (Depends-on): Likewise.
73229         * modules/trim (Depends-on): Likewise.
73230         * modules/unistr/u8-move (Depends-on): Likewise.
73231         * modules/unistr/u16-move (Depends-on): Likewise.
73232         * modules/unistr/u32-move (Depends-on): Likewise.
73234 2008-11-02  Bruno Haible  <bruno@clisp.org>
73236         Mark 'memcpy' obsolete.
73237         * modules/memcpy (Status, Notice): New sections.
73239 2008-11-02  Bruno Haible  <bruno@clisp.org>
73241         Mark 'memcmp' obsolete.
73242         * modules/memcmp (Status, Notice): New sections.
73243         * modules/argmatch (Depends-on): Add memchr.
73244         * modules/backupfile (Depends-on): Likewise.
73245         * modules/c-strcasestr (Depends-on): Likewise.
73246         * modules/crypto/des (Depends-on): Likewise.
73247         * modules/csharpcomp (Depends-on): Likewise.
73248         * modules/fnmatch (Depends-on): Likewise.
73249         * modules/git-merge-changelog (Depends-on): Likewise.
73250         * modules/isnand (Depends-on): Likewise.
73251         * modules/isnand-nolibm (Depends-on): Likewise.
73252         * modules/isnanf (Depends-on): Likewise.
73253         * modules/isnanf-nolibm (Depends-on): Likewise.
73254         * modules/isnanl (Depends-on): Likewise.
73255         * modules/isnanl-nolibm (Depends-on): Likewise.
73256         * modules/mbchar (Depends-on): Likewise.
73257         * modules/memcoll (Depends-on): Likewise.
73258         * modules/quotearg (Depends-on): Likewise.
73259         * modules/regex (Depends-on): Likewise.
73260         * modules/relocatable-prog (Depends-on): Likewise.
73261         * modules/same (Depends-on): Likewise.
73262         * modules/signbit (Depends-on): Likewise.
73263         * modules/strcasestr-simple (Depends-on): Likewise.
73264         * modules/unictype/gen-ctype (Depends-on): Likewise.
73265         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73266         * modules/uniname/uniname (Depends-on): Likewise.
73267         * modules/unistr/u8-cmp (Depends-on): Likewise.
73269 2008-11-02  Bruno Haible  <bruno@clisp.org>
73271         Mark 'memchr' obsolete.
73272         * modules/memchr (Status, Notice): New sections.
73273         * modules/argp (Depends-on): Add memchr.
73274         * modules/base64 (Depends-on): Likewise.
73275         * modules/c-strcasestr (Depends-on): Likewise.
73276         * modules/chdir-long (Depends-on): Likewise.
73277         * modules/fnmatch (Depends-on): Likewise.
73278         * modules/getsubopt (Depends-on): Likewise.
73279         * modules/git-merge-changelog (Depends-on): Likewise.
73280         * modules/glob (Depends-on): Likewise.
73281         * modules/strcasestr-simple (Depends-on): Likewise.
73282         * modules/strnlen (Depends-on): Likewise.
73284 2008-11-02  Bruno Haible  <bruno@clisp.org>
73286         Mark 'atexit' obsolete.
73287         * modules/atexit (Status, Notice): New sections.
73288         * modules/chdir-long (Depends-on): Add atexit.
73289         * modules/wait-process (Depends-on): Likewise.
73291 2008-11-02  Bruno Haible  <bruno@clisp.org>
73293         * gnulib-tool: New option --with-obsolete.
73294         (func_usage): Document it.
73295         (func_modules_transitive_closure): Drop obsolete dependencies if
73296         incobsolete is not true.
73297         (func_import): Read and save the incobsolete variable to the cache.
73299 2008-11-02  Bruno Haible  <bruno@clisp.org>
73301         * modules/TEMPLATE-EXTENDED: New field 'Status'.
73302         * gnulib-tool: New option --extract-status.
73303         (func_usage): Document it.
73304         (sed_extract_prog): Recognize it.
73305         (func_get_status): New function.
73307 2008-10-30  Simon Josefsson  <simon@josefsson.org>
73309         * modules/sockets (License): Change from LGPL to LGPLv2+.
73311 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73313         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
73315 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73317         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73318         Mention times and sys_times.
73319         * modules/sys_times, modules/sys_times-tests: New modules.
73320         * modules/times, modules/times-tests: Likewise
73321         * m4/sys_times_h.m4: New file.
73322         * lib/sys_times.in.h: Likewise
73323         * lib/times.c: Likewise.
73324         * tests/test-sys_times.c: Likewise.
73325         * tests/test-times.c: Likewise.
73326         * doc/posix-headers/sys_times.texi: Update.
73327         * doc/posix-functions/times.texi: Update.
73329 2008-10-28  Jim Meyering  <meyering@redhat.com>
73331         * modules/tempname (Depends-on): Add lstat.
73333         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
73335 2008-10-28  Simon Josefsson  <simon@josefsson.org>
73337         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
73338         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
73339         using idiom used elsewhere in gnulib.
73341 2008-10-27  Jim Meyering  <meyering@redhat.com>
73343         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
73345 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73347         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
73348         TESTS_ENVIRONMENT, for shell scripts that needs to call built
73349         programs.
73350         * tests/test-argp-2.sh: Use $EXEEXT when needed.
73352 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73354         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
73356 2008-10-27  Bruno Haible  <bruno@clisp.org>
73358         * tests/test-lstat.c: Include <stdio.h>.
73360 2008-10-27  Simon Josefsson  <simon@josefsson.org>
73362         * modules/lstat-tests: New module.
73363         * tests/test-lstat.c: New file.
73365 2008-10-26  Jim Meyering  <meyering@redhat.com>
73367         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
73369 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73370             Bruno Haible  <bruno@clisp.org>
73372         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
73373         * modules/configmake (Include): Add a note that the include must come
73374         after all system headers.
73375         * lib/javaversion.c: Include configmake.h after all other includes.
73377 2008-10-26  Bruno Haible  <bruno@clisp.org>
73379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
73380         HAVE_STRUCT_RANDOM_DATA to 1.
73381         (gl_STDLIB_H): Simplify.
73383 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73385         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
73386         substitute HAVE_STRUCT_RANDOM_DATA.
73387         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
73388         random_data.
73389         * modules/stdlib (Makefile.am): Substitute
73390         HAVE_STRUCT_RANDOM_DATA.
73392 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73394         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
73395         * doc/gnulib-intro.texi (Copyright): Likewise.
73397 2008-10-26  Simon Josefsson  <simon@josefsson.org>
73399         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
73400         findings.
73402 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
73403             Bruno Haible  <bruno@clisp.org>
73405         * lib/unistd.in.h: Include <winsock2.h>.
73406         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
73407         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
73408         Provide dummy declarations.
73409         (gethostname): Override.
73410         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
73411         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
73412         gl_PREREQ_SYS_H_WINSOCK2.
73413         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
73414         * doc/posix-functions/gethostname.texi: More details.
73416 2008-10-25  Bruno Haible  <bruno@clisp.org>
73418         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
73419         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
73420         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
73422         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
73423         here ...
73424         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
73425         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
73426         gl_UNISTD_H_DEFAULTS.
73428 2008-10-25  Eric Blake  <ebb9@byu.net>
73430         signbit: avoid spurious compiler failure
73431         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
73432         declarations inside function.
73434 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73435             Bruno Haible  <bruno@clisp.org>
73437         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
73438         * modules/random_r (Depends-on): Add stdint.
73440 2008-10-24  Bruno Haible  <bruno@clisp.org>
73442         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
73443         Eggert.
73444         * modules/strerror (License): Likewise.
73446 2008-10-24  Jim Meyering  <meyering@redhat.com>
73448         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
73449         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
73451 2008-10-24  Eric Blake  <ebb9@byu.net>
73453         getgroups: fix compilation when getgroups is available
73454         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
73455         but with <config.h> override of getgroups disabled.
73457 2008-10-24  Simon Josefsson  <simon@josefsson.org>
73459         * doc/gnulib.texi (Header files): Add note about C++ problems.
73460         Explained by Bruno Haible <bruno@clisp.org>.
73462 2008-10-23  Bruno Haible  <bruno@clisp.org>
73464         Define a dummy SA_NODEFER macro on Interix.
73465         * lib/signal.in.h (SA_NODEFER): Define fallback.
73466         Reported by Aleksey Cheusov <cheusov@tut.by> via
73467         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
73469 2008-10-23  Bruno Haible  <bruno@clisp.org>
73471         * modules/freadahead (License): Change to LGPLv2+.
73472         Suggested by Simon Josefsson.
73474 2008-10-23  Jim Meyering  <meyering@redhat.com>
73476         random_r: new module
73477         * modules/random_r: New file.
73478         * m4/random_r.m4: New file.
73479         * lib/random_r.c: New file, from glibc.
73480         * modules/random_r-tests: New file.
73481         * tests/test-random_r.c: New file.
73482         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
73483          Declare.
73484         (RAND_MAX): Define.
73485         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
73486         * modules/stdlib: Substitute them, too.
73487         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
73488         * doc/glibc-functions/initstate_r.texi: Mention the new module.
73489         * doc/glibc-functions/random_r.texi: Likewise.
73490         * doc/glibc-functions/setstate_r.texi: Likewise.
73491         * doc/glibc-functions/srandom_r.texi: Likewise.
73492         * config/srclist.txt: Mention it.
73494 2008-10-23  David Lutterkort  <lutter@redhat.com>
73496         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
73497         link requirement
73499 2008-10-23  Jim Meyering  <meyering@redhat.com>
73501         selinux-h: mark parameters of stub functions as intentionally unused
73502         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
73503         * lib/se-context.in.h: Likewise.
73505 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73507         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
73509 2008-10-22  Simon Josefsson  <simon@josefsson.org>
73511         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
73513 2008-10-22  Eric Blake  <ebb9@byu.net>
73515         glthread/thread: avoid compiler warning
73516         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
73517         Add unreachable abort to silence compiler.
73519 2008-10-22  Eric Blake  <ebb9@byu.net>
73521         netdb: also supply struct addrinfo for cygwin 1.5.x
73522         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
73523         older cygwin.
73524         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
73525         cygwin.
73526         * doc/posix-headers/netdb.texi (netdb.h): Document this.
73528 2008-10-22  Bruno Haible  <bruno@clisp.org>
73530         * users.txt: Update entry about pspp.
73532 2008-10-21  Bruno Haible  <bruno@clisp.org>
73534         Simplification.
73535         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
73536         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
73538         Simplification.
73539         * lib/ioctl.c (ioctl): Don't undefine.
73540         * lib/socket.c (socket): Don't undefine.
73542         Remove unused module indicator macros.
73543         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
73544         GNULIB_$1 as a C macro.
73546         * doc/posix-functions/close.texi: Undo last change.
73547         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
73548         Windows platforms.
73550 2008-10-21  Bruno Haible  <bruno@clisp.org>
73552         Add gethostname() declaration to <unistd.h>.
73553         * lib/unistd.in.h (gethostname): New declaration.
73554         * lib/gethostname.c: Include <unistd.h>.
73555         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
73556         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
73557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
73558         and HAVE_GETHOSTNAME.
73559         * modules/gethostname (Depends-on): Add unistd.
73560         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73561         (Include): Specify <unistd.h>.
73562         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
73563         HAVE_GETHOSTNAME.
73564         * tests/test-gethostname.c: Include <unistd.h> first.
73566 2008-10-21  Bruno Haible  <bruno@clisp.org>
73568         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
73569         * modules/select-tests (Depends-on): Likewise.
73570         Reported by Simon Josefsson.
73572 2008-10-21  Simon Josefsson  <simon@josefsson.org>
73574         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
73575         * lib/accept.c: New file, based on winsock.c.
73576         * lib/bind.c: New file, based on winsock.c.
73577         * lib/connect.c: New file, based on winsock.c.
73578         * lib/getpeername.c: New file, based on winsock.c.
73579         * lib/getsockname.c: New file, based on winsock.c.
73580         * lib/getsockopt.c: New file, based on winsock.c.
73581         * lib/ioctl.c: New file, based on winsock.c.
73582         * lib/listen.c: New file, based on winsock.c.
73583         * lib/recv.c: New file, based on winsock.c.
73584         * lib/recvfrom.c: New file, based on winsock.c.
73585         * lib/send.c: New file, based on winsock.c.
73586         * lib/sendto.c: New file, based on winsock.c.
73587         * lib/setsockopt.c: New file, based on winsock.c.
73588         * lib/shutdown.c: New file, based on winsock.c.
73589         * lib/socket.c: New file, based on winsock.c.
73590         * lib/w32sock.h: New file, based on winsock.c.
73591         * lib/winsock.c: Remove file.
73592         * modules/accept: Likewise.
73593         * modules/bind: Likewise.
73594         * modules/connect: Likewise.
73595         * modules/getpeername: Likewise.
73596         * modules/getsockname: Likewise.
73597         * modules/getsockopt: Likewise.
73598         * modules/ioctl: Likewise.
73599         * modules/listen: Likewise.
73600         * modules/recv: Likewise.
73601         * modules/recvfrom: Likewise.
73602         * modules/send: Likewise.
73603         * modules/sendto: Likewise.
73604         * modules/setsockopt: Likewise.
73605         * modules/shutdown: Likewise.
73606         * modules/socket: Use socket.c instead of winsock.c.
73607         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
73608         * doc/posix-functions/accept.texi: Doc fix.
73609         * doc/posix-functions/bind.texi: Doc fix.
73610         * doc/posix-functions/close.texi: Doc fix.
73611         * doc/posix-functions/connect.texi: Doc fix.
73612         * doc/posix-functions/getpeername.texi: Doc fix.
73613         * doc/posix-functions/getsockname.texi: Doc fix.
73614         * doc/posix-functions/getsockopt.texi: Doc fix.
73615         * doc/posix-functions/ioctl.texi: Doc fix.
73616         * doc/posix-functions/listen.texi: Doc fix.
73617         * doc/posix-functions/recv.texi: Doc fix.
73618         * doc/posix-functions/recvfrom.texi: Doc fix.
73619         * doc/posix-functions/send.texi: Doc fix.
73620         * doc/posix-functions/sendto.texi: Doc fix.
73621         * doc/posix-functions/setsockopt.texi: Doc fix.
73622         * doc/posix-functions/shutdown.texi: Doc fix.
73623         * doc/posix-functions/socket.texi: Doc fix.
73625 2008-10-20  Bruno Haible  <bruno@clisp.org>
73627         Take into account the role of SIGABRT_COMPAT on Windows 2008.
73628         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
73629         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
73630         as an alias for SIGABRT.
73631         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
73632         (sigaction): Map it to SIGABRT.
73633         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
73635 2008-10-20  Bruno Haible  <bruno@clisp.org>
73637         * lib/fts.c: Don't include lstat.h.
73638         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
73640         Move the lstat() declaration to <sys/stat.h>.
73641         * lib/lstat.h: Remove file.
73642         * lib/sys_stat.in.h: Add special invocation convention.
73643         (lstat): New declaration.
73644         * lib/lstat.c (orig_lstat): New function.
73645         (rpl_lstat): Use orig_lstat instead of lstat.
73646         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
73647         AC_C_INLINE. Set REPLACE_LSTAT.
73648         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
73649         and REPLACE_LSTAT.
73650         * modules/lstat (Files): Remove lib/lstat.h.
73651         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
73652         (Include): Specify <sys/stat.h> instead of lstat.h.
73653         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
73654         REPLACE_LSTAT.
73655         * NEWS: Mention the change.
73657 2008-10-20  Bruno Haible  <bruno@clisp.org>
73659         * modules/posix_spawn-tests: New file.
73660         * tests/test-posix_spawn3.c: New file.
73662 2008-10-20  Bruno Haible  <bruno@clisp.org>
73664         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
73665         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
73666         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
73667         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
73668         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
73670 2008-10-20  Bruno Haible  <bruno@clisp.org>
73672         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
73673         of posix_spawn on AIX 5.3.
73675 2008-10-20  Bruno Haible  <bruno@clisp.org>
73677         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
73679 2008-10-20  Bruno Haible  <bruno@clisp.org>
73681         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
73682         of AC_LANG_PROGRAM.
73684 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73686         * lib/netdb.in.h: Don't define GNU specific constants until they
73687         are supported or needed.  Reported by Bruno Haible
73688         <bruno@clisp.org>.
73690 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73692         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
73694 2008-10-20  Simon Josefsson  <simon@josefsson.org>
73696         * lib/getaddrinfo.h: Remove file.
73697         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
73698         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
73699         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
73700         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
73701         * modules/netdb: Substitute GNULIB_GETADDRINFO.
73702         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
73703         * tests/test-getaddrinfo.c: Likewise.
73704         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
73705         * NEWS: Mention change.
73707 2008-10-19  Bruno Haible  <bruno@clisp.org>
73709         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
73711 2008-10-19  Bruno Haible  <bruno@clisp.org>
73713         * lib/wait-process.c: Include simply <sys/wait.h>.
73714         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
73715         WIFSTOPPED): Remove fallback definitions.
73716         * modules/wait-process (Depends-on): Add sys_wait.
73718         New module 'sys_wait'.
73719         * modules/sys_wait: New file.
73720         * lib/sys_wait.in.h: New file, partially copied from
73721         lib/wait-process.c.
73722         * m4/sys_wait_h.m4: New file.
73723         * doc/posix-headers/sys_wait.texi: Mention the new module.
73725 2008-10-19  Bruno Haible  <bruno@clisp.org>
73727         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
73729 2008-10-19  Bruno Haible  <bruno@clisp.org>
73731         Assume that waitpid() fills an 'int' status, not a 'union wait'.
73732         * lib/wait-process.c (WAIT_T): Remove type.
73733         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
73734         (wait_subprocess): Update.
73736 2008-10-19  Bruno Haible  <bruno@clisp.org>
73738         New module 'atoll'.
73739         * modules/atoll: New file.
73740         * lib/stdlib.in.h (atoll): New declaration.
73741         * lib/atoll.c: New file, from glibc with modifications.
73742         * m4/atoll.m4: New file.
73743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
73744         HAVE_ATOLL.
73745         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
73746         * doc/posix-functions/atoll.texi: Mention the new module.
73748 2008-10-19  Bruno Haible  <bruno@clisp.org>
73750         Add strtoull() declaration to <stdlib.h>.
73751         * lib/stdlib.in.h (strtoull): New declaration.
73752         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
73753         Set HAVE_STRTOULL.
73754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
73755         HAVE_STRTOULL.
73756         * modules/strtoull (Depends-on): Add stdlib.
73757         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73758         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
73759         HAVE_STRTOULL.
73761 2008-10-19  Bruno Haible  <bruno@clisp.org>
73763         Add strtoll() declaration to <stdlib.h>.
73764         * lib/stdlib.in.h (strtoll): New declaration.
73765         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
73766         Set HAVE_STRTOLL.
73767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
73768         HAVE_STRTOLL.
73769         * modules/strtoll (Depends-on): Add stdlib.
73770         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73771         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
73773 2008-10-19  Bruno Haible  <bruno@clisp.org>
73775         * modules/bcopy (Depends-on): Add strings.
73776         (Include): Specify <strings.h>.
73778 2008-10-19  Bruno Haible  <bruno@clisp.org>
73780         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
73782 2008-10-19  Bruno Haible  <bruno@clisp.org>
73784         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
73785         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
73786         mingw.
73788 2008-10-19  Bruno Haible  <bruno@clisp.org>
73790         * lib/atanl.c: Don't include isnanl.h.
73791         * lib/cosl.c: Likewise.
73792         * lib/ldexpl.c: Likewise.
73793         * lib/logl.c: Likewise.
73794         * lib/sinl.c: Likewise.
73795         * lib/sqrtl.c: Likewise.
73796         * lib/tanl.c: Likewise.
73798         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
73799         * lib/isnanf.h: Remove file.
73800         * lib/isnand.h: Remove file.
73801         * lib/isnanl.h: Remove file.
73802         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
73803         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
73804         macros.
73805         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
73806         HAVE_ISNANF, don't define it as a C macro.
73807         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
73808         HAVE_ISNAND, don't define it as a C macro.
73809         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
73810         HAVE_ISNANL, don't define it as a C macro.
73811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
73812         HAVE_ISNAN[FDL].
73813         * modules/isnanf (Files): Remove lib/isnanf.h.
73814         (Depends-on): Add math.
73815         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
73816         (Include): Specify <math.h> instead of isnanf.h.
73817         * modules/isnand (Files): Remove lib/isnand.h.
73818         (Depends-on): Add math.
73819         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
73820         (Include): Specify <math.h> instead of isnand.h.
73821         * modules/isnanl (Files): Remove lib/isnanl.h.
73822         (Depends-on): Add math.
73823         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
73824         (Include): Specify <math.h> instead of isnanl.h.
73825         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
73826         HAVE_ISNAN[FDL].
73827         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
73828         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
73829         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
73830         * NEWS: Mention the change.
73832 2008-10-18  Bruno Haible  <bruno@clisp.org>
73834         Add getusershell(), setusershell(), endusershell() declarations to
73835         <unistd.h>.
73836         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
73837         declarations.
73838         * lib/getusershell.c: Include unistd.h.
73839         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
73840         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
73841         HAVE_GETUSERSHELL.
73842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
73843         and HAVE_GETUSERSHELL.
73844         * modules/getusershell (Depends-on): Add unistd, extensions.
73845         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73846         (Include): Specify <unistd.h>.
73847         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
73848         HAVE_GETUSERSHELL.
73850 2008-10-18  Bruno Haible  <bruno@clisp.org>
73852         Add a getloadavg() declaration to <stdlib.h>.
73853         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
73854         getloadavg declaration.
73855         (getloadavg): New declaration.
73856         * lib/getloadavg.c: Include <stdlib.h> first.
73857         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
73858         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
73859         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
73860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
73861         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
73862         * modules/getloadavg (Depends-on): Add stdlib, extensions.
73863         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73864         (Include): Specify <stdlib.h>.
73865         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
73866         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
73868 2008-10-18  Bruno Haible  <bruno@clisp.org>
73870         * lib/dirchownmod.c: Don't include lchmod.h.
73872         Move the lchmod() declaration to <sys/stat.h>.
73873         * lib/lchmod.h: Remove file.
73874         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
73875         (lchmod): New declaration, moved here from lib/lchown.h.
73876         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
73877         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
73878         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
73879         and HAVE_LCHMOD.
73880         * modules/lchmod (Files): Remove lib/lchmod.h.
73881         (Depends-on): Add sys_stat, extensions.
73882         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
73883         (Include): Specify <sys/stat.h> instead of lchmod.h.
73884         * modules/sys_stat (Depends-on): Add link-warning.
73885         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
73886         definition of GL_LINK_WARNING.
73887         * NEWS: Mention the change.
73889 2008-10-18  Bruno Haible  <bruno@clisp.org>
73891         * lib/fchdir.c: Don't include dirfd.h.
73892         * lib/fts.c: Likewise.
73893         * lib/getcwd.c: Likewise.
73894         * lib/glob.c: Likewise.
73896         Move the dirfd() declaration to <dirent.h>.
73897         * lib/dirfd.h: Remove file.
73898         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
73899         (dirfd): New declaration.
73900         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
73901         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
73902         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
73903         HAVE_DECL_DIRFD.
73904         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
73905         HAVE_DECL_DIRFD.
73906         * modules/dirfd (Files): Remove lib/dirfd.h.
73907         (Depends-on): Add dirent, extensions.
73908         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
73909         (Include): Specify <dirent.h> instead of dirfd.h.
73910         * modules/dirent (Depends-on): Add link-warning.
73911         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
73912         definition of GL_LINK_WARNING.
73913         * NEWS: Mention the change.
73915 2008-10-18  Bruno Haible  <bruno@clisp.org>
73917         Move the euidaccess() declaration to <unistd.h>.
73918         * lib/euidaccess.h: Remove file.
73919         * lib/unistd.in.h (euidaccess): New declaration.
73920         * lib/euidaccess.c: Don't include euidaccess.h.
73921         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
73922         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
73923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
73924         and HAVE_EUIDACCESS.
73925         * modules/euidaccess (Files): Remove lib/euidaccess.h.
73926         (Depends-on): Add unistd.
73927         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73928         (Include): Specify <unistd.h> instead of euidaccess.h.
73929         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
73930         HAVE_EUIDACCESS.
73931         * NEWS: Mention the change.
73933 2008-10-18  Bruno Haible  <bruno@clisp.org>
73935         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
73937         Move the getdomainname() declaration to <unistd.h>.
73938         * lib/getdomainname.h: Remove file.
73939         * lib/unistd.in.h (getdomainname): New declaration.
73940         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
73941         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
73942         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
73943         HAVE_GETDOMAINNAME.
73944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73945         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
73946         * modules/getdomainname (Files): Remove lib/getdomainname.h.
73947         (Depends-on): Add unistd, extensions.
73948         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73949         (Includes): Specify <unistd.h> instead of getdomainname.h.
73950         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
73951         HAVE_GETDOMAINNAME.
73952         * NEWS: Mention the change.
73954 2008-10-18  Bruno Haible  <bruno@clisp.org>
73956         * modules/dirent: New file.
73957         * m4/dirent_h.m4: New file.
73958         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
73959         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
73960         * modules/fchdir (Files): Remove lib/dirent.in.h.
73961         (Depends-on): Add dirent.
73962         (Makefile.am): Move rules to modules/dirent.
73963         * doc/posix-headers/dirent.texi: Mention the new module.
73965 2008-10-18  Bruno Haible  <bruno@clisp.org>
73967         Avoid -Wunused-parameter warnings in public gnulib header files.
73968         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
73969         macro.
73970         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
73972 2008-10-18  Bruno Haible  <bruno@clisp.org>
73974         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
73975         * doc/glibc-functions/error.texi: Mention the module 'error'.
73976         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
73977         * doc/glibc-functions/getdomainname.texi: Mention the module
73978         'getdomainname'.
73979         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
73980         * doc/glibc-functions/getpagesize.texi: Mention the module
73981         'getpagesize'.
73982         * doc/glibc-functions/getusershell.texi: Mention the module
73983         'getusershell'.
73984         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
73985         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
73986         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
73987         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
73988         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
73989         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
73990         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
73991         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
73992         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
73993         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
73994         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
73995         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
73996         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
73997         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
73999 2008-10-17  Bruno Haible  <bruno@clisp.org>
74001         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
74002         HP-UX and IRIX, use -0.0L.
74003         * tests/test-ceill.c (minus_zero): Likewise.
74004         * tests/test-floorl.c (minus_zero): Likewise.
74005         * tests/test-frexpl.c (minus_zero): Likewise.
74006         * tests/test-isnan.c (minus_zerol): Likewise.
74007         * tests/test-isnanl.h (minus_zero): Likewise.
74008         * tests/test-ldexpl.c (minus_zero): Likewise.
74009         * tests/test-roundl.c (minus_zero): Likewise.
74010         * tests/test-signbit.c (minus_zerol): Likewise.
74011         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
74012         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
74013         * tests/test-truncl.c (minus_zero): Likewise.
74014         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
74015         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
74016         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
74017         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
74019 2008-10-17  Bruno Haible  <bruno@clisp.org>
74021         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
74022         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
74023         that it gets activated only for gcc >= 3.0.
74024         * lib/dirent.in.h: Likewise.
74025         * lib/errno.in.h: Likewise.
74026         * lib/fcntl.in.h: Likewise.
74027         * lib/float.in.h: Likewise.
74028         * lib/iconv.in.h: Likewise.
74029         * lib/inttypes.in.h: Likewise.
74030         * lib/locale.in.h: Likewise.
74031         * lib/math.in.h: Likewise.
74032         * lib/netdb.in.h: Likewise.
74033         * lib/netinet_in.in.h: Likewise.
74034         * lib/search.in.h: Likewise.
74035         * lib/signal.in.h: Likewise.
74036         * lib/spawn.in.h: Likewise.
74037         * lib/stdarg.in.h: Likewise.
74038         * lib/stdint.in.h: Likewise.
74039         * lib/stdio.in.h: Likewise.
74040         * lib/stdlib.in.h: Likewise.
74041         * lib/string.in.h: Likewise.
74042         * lib/strings.in.h: Likewise.
74043         * lib/sys_file.in.h: Likewise.
74044         * lib/sys_ioctl.in.h: Likewise.
74045         * lib/sys_select.in.h: Likewise.
74046         * lib/sys_socket.in.h: Likewise.
74047         * lib/sys_stat.in.h: Likewise.
74048         * lib/sys_time.in.h: Likewise.
74049         * lib/sysexits.in.h: Likewise.
74050         * lib/time.in.h: Likewise.
74051         * lib/unistd.in.h: Likewise.
74052         * lib/wchar.in.h: Likewise.
74053         * lib/wctype.in.h: Likewise.
74054         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74056 2008-10-17  Jim Meyering  <meyering@redhat.com>
74058         ignore-value: don't depend on inline module
74059         * modules/ignore-value (Depends-on): Remove 'inline'.
74060         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
74061         Suggestion from Bruno Haible.
74063 2008-10-17  Bruno Haible  <bruno@clisp.org>
74065         New implementation of condition variables for Win32.
74066         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
74067         (gl_linked_waitqueue_t): New type.
74068         (gl_cond_t): Use it.
74069         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
74070         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
74071         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
74072         (glthread_cond_init_func, glthread_cond_wait_func,
74073         glthread_cond_timedwait_func, glthread_cond_signal_func,
74074         glthread_cond_broadcast_func, glthread_cond_destroy_func):
74075         Reimplemented on the basis of gl_linked_waitqueue_t.
74076         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
74077         gl_waitqueue_t.
74078         (gl_rwlock_t): Update.
74079         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
74081 2008-10-17  Simon Josefsson  <simon@josefsson.org>
74083         * modules/recvfrom (Depends-on): Add dependency on getpeername.
74084         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74086 2008-10-17  Jim Meyering  <meyering@redhat.com>
74088         ignore-value: new module
74089         * modules/ignore-value: New file.
74090         * lib/ignore-value.h: New file.
74091         * MODULES.html.sh (Compiler warning management): New section,
74092         just for this module.  More to come.
74094 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74096         open-safer.c: avoid 'signed and unsigned in conditional...' warning
74097         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
74098         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
74100 2008-10-16  Jim Meyering  <meyering@redhat.com>
74102         openat-die.c: avoid 'no previous prototype' warning
74103         * lib/openat-die.c: Include "openat.h".
74104         Reported by Reuben Thomas <rrt@sc3d.org>.
74106 2008-10-16  Simon Josefsson  <simon@josefsson.org>
74108         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
74109         * lib/netdb.in.h: Fix typo.
74110         Reported by Bruno Haible  <bruno@clisp.org>
74112         * lib/netdb.in.h: Include sys/socket.h for platforms without
74113         netdb.h, to get structures like hostent on MinGW.
74114         * modules/netdb (Depends-on): Add sys_socket.
74116 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74118         * modules/netdb, modules/netdb-tests: New file.
74119         * m4/netdb_h.m4: New file.
74120         * lib/netdb.in.h: Add, currently just an empty file pending
74121         definitions.
74122         * tests/test-netdb.c: New file.
74123         * doc/posix-headers/netdb.texi: Mention that we replace it if
74124         needed.
74125         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74126         netdb.
74128 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74130         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
74131         with code.
74133 2008-10-13  Bruno Haible  <bruno@clisp.org>
74135         * lib/glthread/cond.c (glthread_cond_wait_func,
74136         glthread_cond_timedwait_func): Add a comment.
74138 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74140         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
74141         * tests/test-select.c: Likewise,
74143 2008-10-13  Bruno Haible  <bruno@clisp.org>
74145         * lib/glthread/cond.c (glthread_cond_wait_func,
74146         glthread_cond_timedwait_func): Fix variable name.
74147         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74149 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
74151         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
74152         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
74153         struct sockaddr.sa_len.
74154         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
74156 2008-10-13  Simon Josefsson  <simon@josefsson.org>
74158         * build-aux/pmccabe2html: Add css and css_url parameters.
74160 2008-10-12  Bruno Haible  <bruno@clisp.org>
74162         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
74163         calling aclx_get.
74164         Reported by Rainer Tammer <tammer@tammer.net>.
74166 2008-10-12  Bruno Haible  <bruno@clisp.org>
74168         Use msvcrt aware primitives for creation/termination of Win32 threads.
74169         * lib/glthread/thread.c: Include <process.h>.
74170         (glthread_create_func): Use _beginthreadex instead of CreateThread.
74171         (wrapper_func): Update signature.
74172         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
74174 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74175             Bruno Haible  <bruno@clisp.org>
74177         Provide a Win32 implementation of the 'cond' module.
74178         * lib/glthread/cond.h [USE_WIN32]: New implementation.
74179         * lib/glthread/cond.c (glthread_cond_init_func,
74180         glthread_cond_wait_func, glthread_cond_timedwait_func,
74181         glthread_cond_signal_func, glthread_cond_broadcast_func,
74182         glthread_cond_destroy_func) [USE_WIN32]: New functions.
74183         * modules/cond (Dependencies): Add gettimeofday.
74185 2008-10-11  Bruno Haible  <bruno@clisp.org>
74187         Make sleep work on older versions of mingw.
74188         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
74189         only whether it exists.
74190         * doc/posix-functions/sleep.texi: Mention the problem with older
74191         versions of mingw.
74193 2008-10-11  Bruno Haible  <bruno@clisp.org>
74195         New module 'shutdown'.
74196         * modules/shutdown: New file.
74197         * lib/sys_socket.in.h (shutdown): New declaration.
74198         * lib/winsock.c (shutdown): New function.
74199         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
74200         GNULIB_SHUTDOWN.
74201         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
74202         * doc/posix-functions/shutdown.texi: Document the new module.
74204 2008-10-11  Jim Meyering  <meyering@redhat.com>
74206         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
74208 2008-10-11  Bruno Haible  <bruno@clisp.org>
74210         New module 'fclose'.
74211         * modules/fclose: New file.
74212         * lib/stdio.in.h (fclose): New declaration.
74213         * lib/fclose.c: New file.
74214         * m4/fclose.m4: New file.
74215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
74216         REPLACE_FCLOSE.
74217         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
74218         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
74219         REPLACE_FCLOSE.
74220         * modules/close (Depends-on): fclose.
74221         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
74223 2008-10-11  Bruno Haible  <bruno@clisp.org>
74225         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
74226         set errno and don't call _close.
74228 2008-10-10  Bruno Haible  <bruno@clisp.org>
74230         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
74231         ACL, not afterwards. Fixes test failure on Cygwin.
74233 2008-10-09  Ben Pfaff  <blp@gnu.org>
74235         * build-aux/announce-gen: Fix gnulib version related part of usage
74236         message.  Die with a useful error message if no tarballs are
74237         found.
74239 2008-10-10  Jim Meyering  <meyering@redhat.com>
74241         bootstrap: use git's --depth=N option only if it's supported
74242         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
74243         recognize the --depth option.  Reported by Pádraig Brady.
74245 2008-10-09  Bruno Haible  <bruno@clisp.org>
74247         New module 'ioctl'.
74248         * modules/ioctl: New file.
74249         * lib/sys_socket.in.h (ioctl): Remove declaration.
74250         * lib/winsock.c: Include <sys/ioctl.h>.
74251         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
74252         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
74253         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
74254         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
74255         * doc/posix-functions/ioctl.texi: Mention the new module.
74257 2008-10-09  Bruno Haible  <bruno@clisp.org>
74259         New module 'sys_ioctl'.
74260         * lib/sys_ioctl.in.h: New file.
74261         * m4/sys_ioctl_h.m4: New file.
74262         * modules/sys_ioctl: New file.
74263         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
74265 2008-10-09  Bruno Haible  <bruno@clisp.org>
74267         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
74268         * lib/winsock.c: Include <stdarg.h>.
74269         (rpl_ioctl): Change to second argument 'int' and then varargs.
74271 2008-10-09  Bruno Haible  <bruno@clisp.org>
74273         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
74274         when the sys_socket module is present and the system has <winsock2.h>.
74276 2008-10-09  Bruno Haible  <bruno@clisp.org>
74278         * doc/posix-functions/close.texi: Mention module 'close' instead of
74279         module 'sys_socket'.
74281 2008-10-09  Bruno Haible  <bruno@clisp.org>
74283         * doc/glibc-headers/sys_ioctl.texi: New file.
74284         * doc/gnulib.texi: Include it.
74286 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74287             Bruno Haible  <bruno@clisp.org>
74289         Combine the two replacements of 'close'.
74290         * lib/sys_socket.in.h (close): Define to a reminder to include
74291         <unistd.h>.
74292         (_gl_close_fd_maybe_socket): New declaration.
74293         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
74294         * lib/winsock.c (close): Remove undefinition.
74295         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
74296         needed for the gnulib module 'close'.
74297         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
74298         define to an error symbol or to a warning, if suitable.
74299         * lib/close.c: Include <sys/socket.h>.
74300         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
74301         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
74302         UNISTD_H_HAVE_WINSOCK2_H.
74303         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
74304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74305         UNISTD_H_HAVE_WINSOCK2_H.
74306         * modules/sys_socket (Files): Add m4/unistd_h.m4.
74307         (configure.ac): Set a module indicator.
74308         (Makefile.am): Substitute GNULIB_CLOSE.
74309         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
74310         * modules/poll-tests (Depends-on): Add close.
74311         * modules/select-tests (Depends-on): Likewise.
74313 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74314             Bruno Haible  <bruno@clisp.org>
74316         New module 'close'.
74317         * modules/close: New file.
74318         * lib/unistd.in.h (close): Move declaration out of the
74319         FCHDIR_REPLACEMENT scope.
74320         (_gl_unregister_fd): New declaration.
74321         * lib/close.c: New file.
74322         * lib/fchdir.c (rpl_close): Remove function.
74323         * m4/close.m4: New file.
74324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74325         close.
74326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
74327         REPLACE_CLOSE.
74328         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
74329         REPLACE_CLOSE.
74330         * modules/fchdir (Depends-on): Add close.
74332 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74333             Bruno Haible  <bruno@clisp.org>
74335         * lib/fcntl.in.h (open): Simplify conditionals.
74336         (_gl_register_fd): New declaration.
74337         * lib/fchdir.c (rpl_open): Remove function.
74338         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
74339         also.
74340         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
74341         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
74342         open.
74344 2008-10-09  Jim Meyering  <meyering@redhat.com>
74346         GNUmakefile: use the more name-space-friendly "_version"
74347         * top/GNUmakefile (_dummy): Update.
74348         (_version): Rename from "version".
74350 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74351             Bruno Haible  <bruno@clisp.org>
74353         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
74354         rpl_close.
74355         (_gl_register_fd): New function, extracted from rpl_open.
74356         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
74357         (rpl_open, rpl_opendir): Use _gl_register_fd.
74359 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
74361         Fix organization of 'open' replacement.
74362         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
74363         (gl_FUNC_OPEN): Use it.
74364         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
74366 2008-10-08  Bruno Haible  <bruno@clisp.org>
74368         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
74370 2008-10-08  Simon Josefsson  <simon@josefsson.org>
74372         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
74373         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
74374         listen).
74376 2008-10-08  Eric Blake  <ebb9@byu.net>
74378         GNUmakefile: add 'make version' target
74379         * top/GNUmakefile (_curr-ver): Split version update rules...
74380         (version): ...into a target.
74382 2008-10-07  Bruno Haible  <bruno@clisp.org>
74384         Use a more portable replacement expression for -0.0L.
74385         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
74386         instead of -0.0L. Fix m4 quotation.
74388         * tests/test-signbit.c: Include <float.h>.
74389         (minus_zero): New variable.
74390         (test_signbitl): Use minus_zero instead of -zero.
74391         * modules/signbit-tests (Depends-on): Add float.
74393         * tests/test-ceill.c: Include <float.h>.
74394         (zero): Remove variable.
74395         (minus_zero): New variable.
74396         (main): Use minus_zero instead of -zero.
74397         * modules/ceill-tests (Depends-on): Add float.
74399         * tests/test-floorl.c: Include <float.h>.
74400         (zero): Remove variable.
74401         (minus_zero): New variable.
74402         (main): Use minus_zero instead of -zero.
74403         * modules/floorl-tests (Depends-on): Add float.
74405         * tests/test-roundl.c: Include <float.h>.
74406         (zero): Remove variable.
74407         (minus_zero): New variable.
74408         (main): Use minus_zero instead of -zero.
74409         * modules/roundl-tests (Depends-on): Add float.
74411         * tests/test-truncl.c: Include <float.h>.
74412         (zero): Remove variable.
74413         (minus_zero): New variable.
74414         (main): Use minus_zero instead of -zero.
74415         * modules/truncl-tests (Depends-on): Add float.
74417         * tests/test-frexpl.c (zero): Remove variable.
74418         (minus_zero): New variable.
74419         (main): Use minus_zero instead of -zero.
74420         * modules/frexpl-tests (Depends-on): Add float.
74422         * tests/test-isnan.c (zerol): Remove variable.
74423         (minus_zerol): New variable.
74424         (test_long_double): Use minus_zerol instead of -zerol.
74425         * modules/isnan-tests (Depends-on): Add float.
74427         * tests/test-isnanl.h (zero): Remove variable.
74428         (minus_zero): New variable.
74429         (main): Use minus_zero instead of -zero.
74430         * modules/isnanl-nolibm-tests (Depends-on): Add float.
74431         * modules/isnanl-tests (Depends-on): Add float.
74433         * tests/test-ldexpl.c (zero): Remove variable.
74434         (minus_zero): New variable.
74435         (main): Use minus_zero instead of -zero.
74436         * modules/ldexpl-tests (Depends-on): Add float.
74438         * tests/test-snprintf-posix.h (zerol): Remove variable.
74439         (minus_zerol): New variable.
74440         (test_function): Use minus_zerol instead of -zerol.
74441         * modules/snprintf-posix-tests (Depends-on): Add float.
74442         * modules/vsnprintf-posix-tests (Depends-on): Add float.
74444         * tests/test-sprintf-posix.h (zerol): Remove variable.
74445         (minus_zerol): New variable.
74446         (test_function): Use minus_zerol instead of -zerol.
74447         * modules/sprintf-posix-tests (Depends-on): Add float.
74448         * modules/vsprintf-posix-tests (Depends-on): Add float.
74450         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
74451         (minus_zerol): New variable.
74452         (test_function): Use minus_zerol instead of -zerol.
74453         * modules/vasnprintf-posix-tests (Depends-on): Add float.
74455         * tests/test-vasprintf-posix.c (zerol): Remove variable.
74456         (minus_zerol): New variable.
74457         (test_function): Use minus_zerol instead of -zerol.
74458         * modules/vasprintf-posix-tests (Depends-on): Add float.
74460 2008-10-07  Simon Josefsson  <simon@josefsson.org>
74462         * MODULES.html.sh (Support for building documentation): Mention
74463         pmccabe2html.  Sort entries.
74465         Add pmccabe2html module, from gnupdf.
74466         * build-aux/pmccabe.css: New file.
74467         * build-aux/pmccabe2html: New file.
74468         * m4/pmccabe2html.m4: New file.
74469         * modules/pmccabe2html: New file.
74471 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
74473         flock: new module
74474         * MODULES.html.sh: Add to list of modules.
74475         * lib/flock.c: flock implementation for Windows and Unix systems
74476         which have fcntl.
74477         * doc/glibc-functions/flock.texi: Update documentation.
74478         * lib/sys_file.in.h: <sys/file.h> header file.
74479         * m4/flock.m4: M4 macros.
74480         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
74481         * modules/flock: flock module.
74482         * modules/flock-tests: flock tests module.
74483         * modules/sys_file: sys/file.h module.
74484         * tests/test-flock.c: test suite for flock.
74486 2008-10-06  Jim Meyering  <meyering@redhat.com>
74488         bootstrap: check for LT_INIT more portably still ;-)
74489         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
74490         Spotted by Bruno Haible.
74492 2008-10-06  Eric Blake  <ebb9@byu.net>
74494         test-signbit: avoid tripping Irix cc bug on -0.0L
74495         * tests/test-signbit.c (minus_zerol): Delete, and replace with
74496         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
74497         entire testsuite consistent and avoids an Irix 6.2 bug.
74499 2008-10-05  Bruno Haible  <bruno@clisp.org>
74500             Jim Meyering  <jim@meyering.net>
74502         Add an option for ignoring EPIPE during close_stdout.
74503         * lib/closeout.h: Include <stdbool.h>.
74504         (close_stdout_set_ignore_EPIPE): New declaration.
74505         * lib/closeout.c: Include <stdbool.h>.
74506         (ignore_EPIPE): New variable.
74507         (close_stdout_set_ignore_EPIPE): New function.
74508         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
74509         * lib/close-stream.c (close_stream): Mention the possible EPIPE
74510         failure.
74511         * modules/closeout (Depends-on): Add stdbool.
74513 2008-10-05  Bruno Haible  <bruno@clisp.org>
74515         * modules/accept: New file.
74516         * modules/bind: New file.
74517         * modules/connect: New file.
74518         * modules/getpeername: New file.
74519         * modules/getsockname: New file.
74520         * modules/getsockopt: New file.
74521         * modules/listen: New file.
74522         * modules/recv: New file.
74523         * modules/recvfrom: New file.
74524         * modules/send: New file.
74525         * modules/sendto: New file.
74526         * modules/setsockopt: New file.
74527         * modules/socket: New file.
74528         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
74529         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
74530         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
74531         the particular module is requested. Add a link warning when the
74532         particular module is not requested.
74533         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
74534         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
74535         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
74536         the particular module is requested.
74537         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
74538         gl_SYS_SOCKET_H_DEFAULTS): New macros.
74539         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
74540         * modules/sys_socket (Depends-on): Add link-warning.
74541         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
74542         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
74543         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
74544         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
74545         GL_LINK_WARNING.
74546         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
74547         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
74548         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
74549         * doc/posix-functions/getpeername.texi: Mention the new module
74550         'getpeername'.
74551         * doc/posix-functions/getsockname.texi: Mention the new module
74552         'getsockname'.
74553         * doc/posix-functions/getsockopt.texi: Mention the new module
74554         'getsockopt'.
74555         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
74556         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
74557         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
74558         * doc/posix-functions/send.texi: Mention the new module 'send'.
74559         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
74560         * doc/posix-functions/setsockopt.texi: Mention the new module
74561         'setsockopt'.
74562         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
74563         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
74564         listen, connect, accept.
74565         * modules/select-tests (Depends-on): Likewise.
74567 2008-10-05  Bruno Haible  <bruno@clisp.org>
74569         * lib/winsock.c (strerror): Remove unused #undef.
74570         (rpl_close): Remove unused local variable.
74572         * modules/sys_socket (Depends-on); Add errno.
74574 2008-10-05  Bruno Haible  <bruno@clisp.org>
74576         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
74577         (select): Add a link warning when the 'select' module is not used.
74578         * modules/sys_select (Depends-on): Add link-warning.
74579         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
74580         Suggested by Paolo Bonzini.
74582 2008-10-05  Jim Meyering  <meyering@redhat.com>
74584         bootstrap: check for LT_INIT more portably
74585         * build-aux/bootstrap: Avoid using grep -E, since it's not
74586         portable enough.  Suggestion from Bruno Haible.
74588 2008-10-05  Bruno Haible  <bruno@clisp.org>
74590         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
74591         as being fixed by gnulib.
74593 2008-10-05  Bruno Haible  <bruno@clisp.org>
74595         * modules/select-tests: New file, mostly copied from
74596         modules/sys_select-tests.
74597         * tests/test-select.c: New file, mostly copied from
74598         tests/test-sys_select.c.
74599         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
74600         * modules/sys_select-tests (Depends-on): Remove all dependencies.
74601         (Makefile.am): Remove test_sys_select_LDADD.
74603         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
74604         to an undefined symbol, for an error message.
74605         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
74606         (gl_SYS_SELECT_H_DEFAULTS): New macro.
74607         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
74608         winsock-select.c here.
74609         * modules/sys_select (Files): Remove lib/winsock-select.c.
74610         (Depends-on): Remove alloca.
74611         (Makefile.am): Substitute GNULIB_SELECT.
74612         * modules/select: New file.
74613         * doc/posix-functions/select.texi: Update.
74615 2008-10-05  Bruno Haible  <bruno@clisp.org>
74617         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
74618         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
74619         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
74620         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
74621         getdtablesize.
74622         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
74623         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
74625 2008-10-05  Bruno Haible  <bruno@clisp.org>
74627         * modules/getdtablesize-tests: New file.
74628         * tests/test-getdtablesize.c: New file.
74630         New module 'getdtablesize'.
74631         * lib/unistd.in.h (getdtablesize): New declaration.
74632         * lib/getdtablesize.c: New file.
74633         * m4/getdtablesize.m4: New file.
74634         * modules/getdtablesize: New file.
74635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74636         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
74637         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
74638         HAVE_GETDTABLESIZE.
74639         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
74641 2008-10-05  Bruno Haible  <bruno@clisp.org>
74643         * modules/sched (Makefile.am): Fix typo.
74644         Reported by Simon Josefsson.
74646 2008-10-05  Jim Meyering  <meyering@redhat.com>
74648         bootstrap: check for LT_INIT, too
74649         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
74650         are deprecated.  Suggestion from Ralf Wildenhues.
74652 2008-10-05  Bruno Haible  <bruno@clisp.org>
74654         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
74655         overriding them by ours.
74656         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
74658 2008-10-05  Jim Meyering  <meyering@redhat.com>
74660         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
74661         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
74662         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
74664 2008-10-04  Bruno Haible  <bruno@clisp.org>
74666         * modules/dup2 (License): Change to LGPLv2+.
74667         * modules/sleep (License): Likewise.
74668         * modules/perror (License): Likewise.
74669         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
74670         Blake.
74671         * modules/signal (License): Likewise.
74672         * modules/sigprocmask (License): Likewise.
74673         * modules/raise (License): Change to LGPLv2+, with approval by Jim
74674         Meyering.
74676 2008-10-04  Bruno Haible  <bruno@clisp.org>
74678         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
74679         Reported by Rainer Tammer <tammer@tammer.net>.
74681 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
74682             Bruno Haible  <bruno@clisp.org>
74684         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
74685         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
74686         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
74688 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
74690         filevercmp: new module
74691         * lib/filevercmp.h: New function filevercmp comparing version strings.
74692         * lib/filevercmp.c: Implementation of filevercmp function.
74693         * modules/filevercmp: Module metadata.
74694         * tests/test-filevercmp.c: Unit test for new module.
74695         * modules/filevercmp-tests: Unit test metadata.
74696         * MODULES.html.sh: Add filevercmp module.
74698 2008-10-03  Bruno Haible  <bruno@clisp.org>
74700         * lib/c-ctype.h: Add comment.
74701         Reported by Jim Meyering.
74703 2008-10-02  Bruno Haible  <bruno@clisp.org>
74705         * modules/posix_spawn-internal (Depends-on): Add 'open'.
74707 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
74709         * build-aux/bootstrap: Allow renaming bootstrap, and change the
74710         name of bootstrap.conf accordingly.
74712 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
74714         * build-aux/bootstrap: Install git-merge-changelog configuration
74715         items into .gitconfig if needed.
74717 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
74719         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
74720         git repository, and initialize/update it accordingly.
74722 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
74724         * modules/fsync-tests: New file.
74725         * tests/test-fsync.c: New file.
74727         New module 'fsync'.
74728         * lib/fsync.c: New file.
74729         * m4/fsync.m4: New file.
74730         * modules/fsync: New file.
74731         * lib/unistd.in.h (fsync): New declaration.
74732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
74733         GNULIB_FSYNC and HAVE_FSYNC.
74734         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
74735         * MODULES.html.sh (posix_functions): Add fsync.
74736         * doc/posix-functions/fsync.texi: Mention the new module.
74738 2008-10-02  Jim Meyering  <meyering@redhat.com>
74740         fts.c: sync with similar code from coreutils' remove.c
74741         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
74742         Guard also with "#if defined __linux__", since for now at least,
74743         this code is Linux-kernel-specific.
74745 2008-10-02  Jim Meyering  <meyering@redhat.com>
74747         fts: bug fixes
74748         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
74749         Include <sys/vfs.h>, not <sys/statfs.h>.
74751         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
74752         Include <sys/vfs.h>, not <sys/statfs.h>.
74754 2008-10-01  Bruno Haible  <bruno@clisp.org>
74756         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
74757         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
74758         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
74759         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
74760         * doc/posix-functions/posix_spawnp.texi: Likewise.
74761         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
74762         whether posix_spawn actually works.
74763         * m4/pipe.m4 (gl_PIPE): Likewise.
74764         * modules/execute (Files): Add m4/posix_spawn.m4.
74765         * modules/pipe (Files): Add m4/posix_spawn.m4.
74766         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
74768 2008-10-01  Jim Meyering  <meyering@redhat.com>
74770         remove trailing spaces
74771         * NEWS: Likewise.
74772         * lib/poll.c (poll): Likewise.
74773         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
74774         * lib/winsock.c (rpl_close): Likewise.
74775         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
74776         * modules/yield: Likewise.
74777         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
74778         * tests/test-sys_select.c (connect_to_socket): Likewise.
74780         fts.c: adjust a new interface to be more generally useful
74781         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
74782         (fts_build): Adjust caller.
74784 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74786         * modules/cond-tests: New file.
74787         * tests/test-cond.c: New file.
74789 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74790             Bruno Haible  <bruno@clisp.org>
74792         * modules/cond (Dependencies): Add errno, time.
74793         * lib/glthread/cond.h: Include <time.h>.
74794         (gl_cond_define, gl_cond_define_initialized): Use the same definition
74795         across platforms.
74797 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74798             Bruno Haible  <bruno@clisp.org>
74800         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
74802 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74803             Bruno Haible  <bruno@clisp.org>
74805         * modules/tls-tests (Depends-on): Add thread, yield.
74806         (configure.ac): Remove all checks.
74807         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
74808         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
74809         gl_thread_self): Remove definitions. Include glthread/thread.h and
74810         glthread/yield.h instead.
74811         (test_tls): Pass an additional NULL argument to gl_thread_join.
74813 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74814             Bruno Haible  <bruno@clisp.org>
74816         * modules/lock-tests (Depends-on): Add thread, yield.
74817         (configure.ac): Remove all checks.
74818         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
74819         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
74820         gl_thread_self): Remove definitions. Include glthread/thread.h and
74821         glthread/yield.h instead.
74822         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
74823         additional NULL argument to gl_thread_join.
74825 2008-09-30  Bruno Haible  <bruno@clisp.org>
74827         Fix the Win32 implementation of the 'thread' module.
74828         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
74829         pointer type.
74830         (gl_thread_self): Invoke gl_thread_self_func.
74831         (gl_thread_self_func): New declaration.
74832         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
74833         (do_init_self_key, init_self_key): New functions.
74834         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
74835         Remove some fields.
74836         (running_threads, running_lock): Remove variables.
74837         (get_current_thread_handle): New function.
74838         (gl_thread_self_func, wrapper_func, glthread_create_func,
74839         glthread_join_func, gl_thread_exit_func): Largely rewritten and
74840         simplified.
74842 2008-09-30  Bruno Haible  <bruno@clisp.org>
74844         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
74845         files.
74847 2008-09-30  Jim Meyering  <meyering@redhat.com>
74849         fts.m4: correct the test for statfs.f_type
74850         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
74851         when checking for statfs.f_type.
74853 2008-09-15  Simon Josefsson  <simon@josefsson.org>
74855         tests: avoid some compiler warnings
74856         * tests/test-memchr.c (main): Pass NULL indirectly.
74857         * tests/test-getdate.c (main): Remove unused variable 'ret'.
74859 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
74861         getdate.y: disallow countable dayshifts like "4 yesterday ago"
74862         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
74863         exactly specified dayshifts.
74864         (dayshift): New rule.
74865         (rel): Add dayshift.
74866         (relative_time_table) [tomorrow, yesterday, today, now]:
74867         Use tDAY_SHIFT in place of tDAY_UNIT.
74868         * tests/test-getdate.c: Add tests for now-disallowed countable
74869         dayshifts, e.g., "4 yesterday ago".
74871 2008-09-29  Bruno Haible  <bruno@clisp.org>
74873         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
74874         * tests/test-posix_spawn1.in.sh: Renamed from
74875         tests/test-posix_spawn.in.sh.
74876         * tests/test-posix_spawn2.c: New file.
74877         * tests/test-posix_spawn2.in.sh: New file.
74878         * modules/posix_spawnp-tests (Files): Update.
74879         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
74881 2008-09-29  Bruno Haible  <bruno@clisp.org>
74883         Propagate effects of putenv/setenv/unsetenv to child processes.
74884         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
74885         * lib/pipe.c (create_pipe): Likewise.
74887 2008-09-29  Bruno Haible  <bruno@clisp.org>
74889         Enable use of shell scripts as executables in mingw.
74890         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
74891         run the program as a shell script.
74892         * lib/pipe.c (create_pipe): Likewise.
74893         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
74894         resulting array.
74896 2008-09-29  Eric Blake  <ebb9@byu.net>
74898         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
74900 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
74902         * doc/posix-functions/accept.texi: Update mingw problems.
74903         * doc/posix-functions/bind.texi: Update mingw problems.
74904         * doc/posix-functions/close.texi: Update mingw problems.
74905         * doc/posix-functions/connect.texi: Update mingw problems.
74906         * doc/posix-functions/getpeername.texi: Update mingw problems.
74907         * doc/posix-functions/getsockname.texi: Update mingw problems.
74908         * doc/posix-functions/getsockopt.texi: Update mingw problems.
74909         * doc/posix-functions/ioctl.texi: Update mingw problems.
74910         * doc/posix-functions/listen.texi: Update mingw problems.
74911         * doc/posix-functions/recv.texi: Update mingw problems.
74912         * doc/posix-functions/recvfrom.texi: Update mingw problems.
74913         * doc/posix-functions/select.texi: Update mingw problems.
74914         * doc/posix-functions/send.texi: Update mingw problems.
74915         * doc/posix-functions/sendto.texi: Update mingw problems.
74916         * doc/posix-functions/setsockopt.texi: Update mingw problems.
74917         * doc/posix-functions/socket.texi: Update mingw problems.
74919 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
74920             Bruno Haible  <bruno@clisp.org>
74922         * lib/sys_select.in.h: Include sys/time.h.
74923         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
74924         * modules/sys_select: Depend on sys_time.
74925         * tests/test-sys_select.c: Test that sys/select.h defines struct
74926         timeval fully.
74928 2008-09-29  Bruno Haible  <bruno@clisp.org>
74930         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
74931         * lib/sys_select.in.h: Likewise.
74933 2008-09-29  Bruno Haible  <bruno@clisp.org>
74935         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
74937 2008-09-29  Bruno Haible  <bruno@clisp.org>
74939         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
74940         Set LIBSOCKET instead of augmenting LIBS.
74941         * modules/sockets (Link): New section.
74942         * modules/sockets-tests (test_sockets_LDADD): New variable.
74943         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
74944         * modules/poll-tests (test_poll_LDADD): New variable.
74945         * NEWS: Document the change.
74947 2008-09-29  Bruno Haible  <bruno@clisp.org>
74949         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
74950         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
74951         ARPA_INET_H directly.
74952         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74954 2008-09-28  Bruno Haible  <bruno@clisp.org>
74956         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
74957         from gl_HEADER_SYS_SOCKET.
74958         (gl_HEADER_SYS_SOCKET): Invoke it.
74959         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74961 2008-09-28  Bruno Haible  <bruno@clisp.org>
74963         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
74964         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
74965         Needed on OSF/1 4.0.
74967 2008-09-28  Bruno Haible  <bruno@clisp.org>
74969         Override open more carefully.
74970         * lib/open.c (orig_open): New function.
74971         (rpl_open): Use orig_open instead of open.
74972         * lib/fcntl.in.h: Add special invocation convention.
74973         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
74974         (gl_FUNC_OPEN): Invoke it.
74976         Override freopen more carefully.
74977         * lib/freopen.c (orig_freopen): New function.
74978         (rpl_freopen): Use orig_freopen instead of freopen.
74979         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
74980         (gl_FUNC_FREOPEN): Invoke it.
74982         Override fopen more carefully.
74983         * lib/fopen.c (orig_fopen): New function.
74984         (rpl_fopen): Use orig_fopen instead of fopen.
74985         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
74986         (gl_FUNC_FOPEN): Invoke it.
74987         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
74989 2008-09-28  Bruno Haible  <bruno@clisp.org>
74991         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
74992         SIGPIPE.
74994 2008-09-28  Bruno Haible  <bruno@clisp.org>
74996         * tests/test-sigaction.c (handler, main): Disable the check whether
74997         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
74998         glibc systems with LinuxThreads.
75000 2008-09-28  Bruno Haible  <bruno@clisp.org>
75002         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
75004         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
75005         with AIX xlc.
75006         * lib/fcntl.in.h (open): Likewise.
75007         Reported by Rainer Tammer <tammer@tammer.net>.
75009 2008-09-28  Bruno Haible  <bruno@clisp.org>
75011         * modules/posix_spawnp-tests: New file.
75012         * tests/test-posix_spawn.c: New file.
75013         * tests/test-posix_spawn.in.sh: New file.
75015         New module 'posix_spawnp'.
75016         * modules/posix_spawnp: New file.
75017         * lib/spawnp.c: New file, from GNU libc with modifications.
75018         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
75020         New module 'posix_spawn'.
75021         * modules/posix_spawn: New file.
75022         * lib/spawn.c: New file, from GNU libc with modifications.
75023         * doc/posix-functions/posix_spawn.texi: Mention the new module.
75025         New module 'posix_spawnattr_destroy'.
75026         * modules/posix_spawnattr_destroy: New file.
75027         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
75028         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
75029         module.
75031         New module 'posix_spawnattr_setsigmask'.
75032         * modules/posix_spawnattr_setsigmask: New file.
75033         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
75034         modifications.
75035         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
75036         new module.
75038         New module 'posix_spawnattr_getsigmask'.
75039         * modules/posix_spawnattr_getsigmask: New file.
75040         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
75041         modifications.
75042         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
75043         new module.
75045         New module 'posix_spawnattr_setsigdefault'.
75046         * modules/posix_spawnattr_setsigdefault: New file.
75047         * lib/spawnattr_setdefault.c: New file, from GNU libc with
75048         modifications.
75049         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
75050         new module.
75052         New module 'posix_spawnattr_getsigdefault'.
75053         * modules/posix_spawnattr_getsigdefault: New file.
75054         * lib/spawnattr_getdefault.c: New file, from GNU libc with
75055         modifications.
75056         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
75057         new module.
75059         New module 'posix_spawnattr_setschedpolicy'.
75060         * modules/posix_spawnattr_setschedpolicy: New file.
75061         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
75062         modifications.
75063         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
75064         new module.
75066         New module 'posix_spawnattr_getschedpolicy'.
75067         * modules/posix_spawnattr_getschedpolicy: New file.
75068         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
75069         modifications.
75070         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
75071         new module.
75073         New module 'posix_spawnattr_setschedparam'.
75074         * modules/posix_spawnattr_setschedparam: New file.
75075         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
75076         modifications.
75077         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
75078         new module.
75080         New module 'posix_spawnattr_getschedparam'.
75081         * modules/posix_spawnattr_getschedparam: New file.
75082         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
75083         modifications.
75084         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
75085         new module.
75087         New module 'posix_spawnattr_setpgroup'.
75088         * modules/posix_spawnattr_setpgroup: New file.
75089         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
75090         modifications.
75091         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
75092         module.
75094         New module 'posix_spawnattr_getpgroup'.
75095         * modules/posix_spawnattr_getpgroup: New file.
75096         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
75097         modifications.
75098         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
75099         module.
75101         New module 'posix_spawnattr_setflags'.
75102         * modules/posix_spawnattr_setflags: New file.
75103         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
75104         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
75105         module.
75107         New module 'posix_spawnattr_getflags'.
75108         * modules/posix_spawnattr_getflags: New file.
75109         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
75110         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
75111         module.
75113         New module 'posix_spawnattr_init'.
75114         * modules/posix_spawnattr_init: New file.
75115         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
75116         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
75117         module.
75119         New module 'posix_spawn_file_actions_destroy'.
75120         * modules/posix_spawn_file_actions_destroy: New file.
75121         * lib/spawn_faction_destroy.c: New file, from GNU libc with
75122         modifications.
75123         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
75124         the new module.
75126         New module 'posix_spawn_file_actions_addopen'.
75127         * modules/posix_spawn_file_actions_addopen: New file.
75128         * lib/spawn_faction_addopen.c: New file, from GNU libc with
75129         modifications.
75130         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
75131         the new module.
75133         New module 'posix_spawn_file_actions_adddup2'.
75134         * modules/posix_spawn_file_actions_adddup2: New file.
75135         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
75136         modifications.
75137         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
75138         the new module.
75140         New module 'posix_spawn_file_actions_addclose'.
75141         * modules/posix_spawn_file_actions_addclose: New file.
75142         * lib/spawn_faction_addclose.c: New file, from GNU libc with
75143         modifications.
75144         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
75145         the new module.
75147         New module 'posix_spawn_file_actions_init'.
75148         * modules/posix_spawn_file_actions_init: New file.
75149         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
75150         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
75151         new module.
75153         New module 'posix_spawn-internal'.
75154         * modules/posix_spawn-internal: New file.
75155         * lib/spawn_int.h: New file, from GNU libc with modifications.
75156         * lib/spawni.c: New file, from GNU libc with modifications.
75157         * m4/posix_spawn.m4: New file.
75159         New module 'spawn'.
75160         * modules/spawn: New file.
75161         * lib/spawn.in.h: New file, from GNU libc with modifications.
75162         * m4/spawn_h.m4: New file.
75163         * doc/posix-headers/spawn.texi: Mention the new module.
75165 2008-09-28  Bruno Haible  <bruno@clisp.org>
75167         * modules/sched-tests: New file.
75168         * tests/test-sched.c: New file.
75170         New module 'sched'.
75171         * modules/sched: New file.
75172         * lib/sched.in.h: New file.
75173         * m4/sched_h.m4: New file.
75174         * doc/posix-headers/sched.texi: Mention the new module.
75176 2008-09-27  Eric Blake  <ebb9@byu.net>
75178         Fix previous patch, and tweak references to $0.
75179         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
75180         (func_version, func_gnulib_dir): Don't call this program
75181         gnulib-tool.
75182         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
75183         with using $0 in function.
75184         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
75185         (func_fatal_error): Reuse the name the user invoked us with.
75187 2008-09-27  Bruno Haible  <bruno@clisp.org>
75189         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
75190         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
75191         (gl_ICONV_H): Not here.
75192         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
75193         instead of assigning ICONV_H directly.
75195         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
75196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
75197         WCHAR_H directly.
75199 2008-09-27  Bruno Haible  <bruno@clisp.org>
75201         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
75202         * modules/arpa_inet (Depends-on): Add link-warning.
75203         (Makefile.am): Insert the definition of GL_LINK-WARNING.
75204         * modules/unistd (Makefile.am): Likewise.
75206 2008-09-26  Bruno Haible  <bruno@clisp.org>
75208         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
75209         variables.
75210         (func_version): Essentially copied from gnulib-tool.
75211         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
75212         func_readlink): Copied from gnulib-tool.
75214 2008-09-26  Bruno Haible  <bruno@clisp.org>
75216         * gnulib-tool (func_version): Change directory to $gnulib_dir before
75217         invoking git-version-gen.
75219 2008-09-26  Bruno Haible  <bruno@clisp.org>
75221         * posix-modules: Update to directory names changed on 2008-01-19.
75222         Remove commas in output before splitting into words. No more need to
75223         avoid 'ftruncate' since 2007-02-19.
75225 2008-09-26  Bruno Haible  <bruno@clisp.org>
75227         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
75229 2008-09-26  Bruno Haible  <bruno@clisp.org>
75231         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
75232         * modules/fwriteerror (Depends-on): Add errno.
75234 2008-09-26  Bruno Haible  <bruno@clisp.org>
75236         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
75237         * tests/test-vc-list-files-cvs.sh: Likewise.
75239 2008-09-26  Bruno Haible  <bruno@clisp.org>
75241         * doc/posix-headers/sys_resource.texi: Reorder items.
75243 2008-09-26  Jim Meyering  <meyering@redhat.com>
75245         fts: tweak inode comparison function
75246         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
75247         inode numbers, as documented.
75249         fts: sort dirent entries on inode number before traversing
75250         This avoids a quadratic, seek-related performance penalty when
75251         operating on a directory containing many entries (measurable at 10k;
75252         3.5 hours at 2 million entries with a cold cache) on certain types
75253         of file systems, including ext3 and ext4, but not tmpfs.
75254         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
75255         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
75256         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
75257         (fs_handles_readdir_ordered_dirents_efficiently): New function.
75258         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
75259         (fts_build): Set the stat.st_ino member from D_INO.
75260         If it is likely to be useful, sort dirent entries on inode number.
75262         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
75263         and the struct statfs.f_type member.
75264         * modules/fts (Depends-on): Add d-ino.
75266 2008-09-26  Bruno Haible  <bruno@clisp.org>
75268         * modules/sigpipe-die (Depends-on): Add sigpipe.
75270         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
75271         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
75272         and GNULIB_STDIO_H_SIGPIPE are set.
75273         * lib/stdio-write.c: New file.
75274         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
75275         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75276         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75277         REPLACE_STDIO_WRITE_FUNCS.
75278         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
75279         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75280         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75281         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75282         * modules/stdio (Files): Add lib/stdio-write.c.
75283         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
75284         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
75285         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
75286         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
75287         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
75288         REPLACE_FPRINTF_POSIX.
75289         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
75290         REPLACE_PRINTF_POSIX.
75291         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
75292         REPLACE_VFPRINTF_POSIX.
75293         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
75294         REPLACE_VPRINTF_POSIX.
75295         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
75296         SIGPIPE issue.
75297         * doc/posix-functions/fputc.texi: Likewise.
75298         * doc/posix-functions/fputs.texi: Likewise.
75299         * doc/posix-functions/fwrite.texi: Likewise.
75300         * doc/posix-functions/printf.texi: Likewise.
75301         * doc/posix-functions/putc.texi: Likewise.
75302         * doc/posix-functions/putchar.texi: Likewise.
75303         * doc/posix-functions/puts.texi: Likewise.
75304         * doc/posix-functions/vfprintf.texi: Likewise.
75305         * doc/posix-functions/vprintf.texi: Likewise.
75307         * modules/safe-write (Depends-on): Add write.
75309         * modules/sigpipe-tests: New file.
75310         * tests/test-sigpipe.c: New file.
75311         * tests/test-sigpipe.sh: New file.
75313         * modules/write: New file.
75314         * lib/unistd.in.h: Include <sys/types.h>.
75315         (write): New declaration.
75316         * lib/write.c: New file.
75317         * m4/write.m4: New file.
75318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75319         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
75320         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
75321         GNULIB_WRITE, REPLACE_WRITE.
75322         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
75323         and the SIGPIPE issue.
75325         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
75326         (raise): New declaration.
75327         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
75328         (ext_signal): New function.
75329         (rpl_raise): New function.
75330         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
75331         GNULIB_SIGNAL_H_SIGPIPE.
75332         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
75333         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
75335         * modules/sigpipe: New file.
75336         * m4/sigpipe.m4: New file.
75338 2008-09-25  Derek Price  <derek@ximbiot.com>
75339             Bruno Haible  <bruno@clisp.org>
75341         * gnulib-tool (func_import): Report all license incompatibilities, not
75342         just the first one.
75344 2008-09-25  Bruno Haible  <bruno@clisp.org>
75346         * gnulib-tool (func_import): When computing the edits, consider not
75347         only the Makefile.ams that exist but also those that will be generated.
75349 2008-09-25  Simon Josefsson  <simon@josefsson.org>
75351         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
75352         fixes gnulib-tool --test warning about duplicate dependency.
75354 2008-09-25  Bruno Haible  <bruno@clisp.org>
75356         * gnulib-tool: Don't ask the user to perform edits in the generated
75357         Makefile.ams.
75358         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
75359         apply to the Makefile.am being generated.
75360         (func_emit_tests_Makefile_am): Execute edits that apply to the
75361         Makefile.am being generated.
75362         (func_import): Setup list of Makefile.am edits before emitting the
75363         Makefile.ams, not at the end.
75364         (func_create_testdir): Update.
75365         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75367 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75369         * gnulib-tool (func_import): Store the --tests-base option in the
75370         comment in gnulib-cache.m4.
75372 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
75374         * NEWS: Document increased portability that sys_select now provides.
75376         * lib/sys_select.in.h: Install select wrapper.
75377         * lib/sys_socket.in.h: Use more descriptive name when there is no
75378         select wrapper.
75379         * lib/winsock-select.c: New.
75380         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
75381         Require gl_HEADER_SYS_SOCKET.
75382         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
75383         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
75384         * tests/test-sys_select.c: Add functional tests.
75386 2008-09-24  Eric Blake  <ebb9@byu.net>
75388         open, fopen: close fd leak in last patch
75389         * lib/open.c (rpl_open): Close fd before returning error.
75390         * lib/fopen.c (rpl_fopen): Close fd before returning error.
75391         * doc/posix-functions/open.texi (open): Document that Irix also
75392         has the bug.
75393         * doc/posix-functions/fopen.texi (fopen): Likewise.
75394         Reported by Paolo Bonzini.
75396 2008-09-24  Bruno Haible  <bruno@clisp.org>
75398         Ensure that a filename ending in a slash cannot be used to access a
75399         non-directory.
75400         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
75401         to check whether it's really a directory.
75402         * lib/fopen.c: Include fcntl.h, unistd.h.
75403         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
75404         and fdopen().
75405         * modules/fopen (Depends-on): Add unistd.
75406         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
75407         * tests/test-fopen.c (main): Likewise.
75408         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
75409         * doc/posix-functions/fopen.texi: Likewise.
75410         Reported by Eric Blake.
75412 2008-09-23  Eric Blake  <ebb9@byu.net>
75414         c-stack: avoid compiler optimizations when provoking overflow
75415         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
75416         recursion harder to optimize, to ensure a stack overflow occurs.
75417         * tests/test-c-stack.c (recurse): Likewise.
75418         Borrowed from libsigsegv.
75420         c-stack: work around Irix sigaltstack bug
75421         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
75422         whether sigaltstack uses wrong end of stack_t (copied in part from
75423         libsigsegv).
75424         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
75425         Irix bug, without requiring an over-allocation.
75426         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
75427         bug.
75429         fopen: document mingw bug on directories
75430         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
75431         not allowing a stream visiting a directory, even though reading
75432         from such a stream is not portable.
75434 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75436         * lib/poll.c: Rewrite.
75437         * modules/poll: Depend on alloca.
75439 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75441         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
75442         instead define prototypes for a full set of wrappers.  Ensure
75443         that Cygwin does not use the compatibility code, which is only
75444         for MinGW.
75445         * lib/winsock.c: New.
75446         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
75447         * modules/sys_socket: Add lib/winsock.c.
75449         * modules/poll-tests: Add errno and perror.
75450         * tests/test-poll.c: Use ioctl, not ioctlsocket.
75452 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
75454         * tests/test-poll.c: Downgrade minimum needed Winsock version.
75456 2008-09-23  Bruno Haible  <bruno@clisp.org>
75458         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
75459         * doc/glibc-functions/*: Likewise.
75461 2008-09-23  Simon Josefsson  <simon@josefsson.org>
75463         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
75464         success.
75466 2008-09-22  Eric Blake  <ebb9@byu.net>
75467             Bruno Haible  <bruno@clisp.org>
75469         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
75470         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
75471         supply %A but mishandle pseudo-NaN.
75472         Reported by Simon Josefsson.
75474 2008-09-21  Bruno Haible  <bruno@clisp.org>
75476         * tests/test-lock.c (main): Tweak skip message.
75477         * tests/test-tls.c (main): Likewise.
75479 2008-09-21  Bruno Haible  <bruno@clisp.org>
75481         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
75482         whether 'struct sigaction' has sa_sigaction here...
75483         (gl_PREREQ_SIG_HANDLER_H): ... not here.
75484         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
75486 2008-09-21  Bruno Haible  <bruno@clisp.org>
75488         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
75489         section.
75490         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
75491         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
75492         the new section.
75493         (Support for obsolete systems lacking POSIX:2001): New section.
75494         (String handling <string.h>): Move strdup to the new section.
75495         Suggested by Simon Josefsson and Paolo Bonzini.
75497 2008-09-21  Bruno Haible  <bruno@clisp.org>
75499         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
75500         exponents in %e and %g results on 'long double'. Needed for mingw's
75501         improved *printf functions.
75502         * tests/test-vasprintf-posix.c (test_function): Likewise.
75503         * tests/test-snprintf-posix.h (test_function): Likewise.
75504         * tests/test-sprintf-posix.h (test_function): Likewise.
75505         Reported by Eric Blake.
75507 2008-09-21  Bruno Haible  <bruno@clisp.org>
75509         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
75510         * tests/test-sprintf-posix.h (test_function): Likewise.
75512 2008-09-21  Bruno Haible  <bruno@clisp.org>
75514         * modules/getpass (Depends-on): Add strdup-posix.
75516         New module 'strdup-posix'.
75517         * modules/strdup-posix: New file.
75518         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
75519         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
75520         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
75521         REPLACE_STRDUP.
75522         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
75523         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
75524         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75525         strdup-posix.
75527         * modules/strdup (Depends-on): Remove malloc-posix.
75529 2008-09-20  Bruno Haible  <bruno@clisp.org>
75531         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
75532         Wildenhues.
75534 2008-09-20  Bruno Haible  <bruno@clisp.org>
75536         Ensure that wint_t gets defined on IRIX 5.3.
75537         * lib/wchar.in.h (wint_t): Define if not defined by the system.
75538         * lib/wctype.in.h (wint_t): Likewise.
75539         (__wctype_wint_t): Remove type.
75540         (isw*): Use wint_t instead of __wctype_wint_t.
75541         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
75542         * modules/wchar (Files): Add m4/wint_t.m4.
75543         (Makefile.am): Substitute HAVE_WINT_T.
75544         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
75545         * tests/test-wctype.c: Check that wint_t is defined.
75546         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
75547         * doc/posix-headers/wctype.texi: Likewise.
75548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75550 2008-09-18  Bruno Haible  <bruno@clisp.org>
75552         * gnulib-tool (func_exit): Update comment.
75554 2008-09-18  Simon Josefsson  <simon@josefsson.org>
75556         * modules/getaddrinfo (Depends-on): Remove strdup, this module
75557         assumes strdup exists and does not depend on strdup to return
75558         ENOMEM on out of memory conditions.
75560 2008-09-18  Bruno Haible  <bruno@clisp.org>
75562         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
75563         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
75564         digits for the exponent.
75566 2008-09-18  Jim Meyering  <meyering@redhat.com>
75567             Bruno Haible  <bruno@clisp.org>
75569         * lib/vasnprintf.c (decimal_point_char): Define also if
75570         NEED_PRINTF_INFINITE_LONG_DOUBLE.
75572 2008-09-16  Bruno Haible  <bruno@clisp.org>
75573         and Eric Blake  <ebb9@byu.net>
75575         vasnprintf: support Irix 5.3
75576         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
75577         that mishandle long double infinity.
75578         Reported by Tom G. Christensen.
75580 2008-09-16  Bruno Haible  <bruno@clisp.org>
75582         * doc/glibc-functions/scandir.texi: Mention the function is missing on
75583         Solaris 9.
75584         * doc/glibc-functions/alphasort.texi: Likewise.
75585         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
75587 2008-09-16  Jim Meyering  <meyering@redhat.com>
75589         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
75590         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
75591         a umask modification leak out of a subshell.  Otherwise, the
75592         opensolaris /bin/sh would be accepted and thus cause unwarranted
75593         failures in the coreutils test suite.
75595 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
75597         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
75598         to succeed.
75600 2008-09-16  Jim Meyering  <meyering@redhat.com>
75602         avoid spurious test failure when library is built without ACL support
75603         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
75604         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
75605         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
75606         * tests/test-copy-acl.sh: Likewise.
75608 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75610         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
75611         based on character occurrence counts.
75613 2008-09-15  Eric Blake  <ebb9@byu.net>
75615         tests: avoid some compiler warnings
75616         * tests/test-memchr.c (main): Pass NULL indirectly.
75617         * tests/test-closein.c (main): Avoid unused variable.
75619 2008-09-15  Bruno Haible  <bruno@clisp.org>
75621         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
75622         are missing on OpenBSD 4.0 individually.
75623         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75625 2008-09-15  Bruno Haible  <bruno@clisp.org>
75627         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
75628         * doc/posix-functions/strerror.texi: Mention also Cygwin.
75629         * doc/posix-functions/perror.texi: Likewise.
75630         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
75631         is missing.
75632         Reported by Eric Blake.
75634         * lib/errno.in.h: Use replacement values >= 2000.
75635         Reported by Eric Blake.
75637 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75639         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
75640         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
75641         limit.
75642         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
75643         compareseq was aborted.
75645 2008-09-14  Bruno Haible  <bruno@clisp.org>
75647         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
75648         yvec_edit_count.
75649         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
75650         (fstrcmp_bounded): Simplify result computation accordingly.
75652 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75654         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
75655         (fstrcmp): Define in terms of fstrcmp_bounded.
75656         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
75657         lower_bound argument.
75658         Return quickly if the result is certainly < lower_bound.
75659         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
75661 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75663         * lib/diffseq.h (EARLY_ABORT): New macro.
75664         (compareseq): Change return type to bool. Return true when EARLY_ABORT
75665         evaluates to true.
75667 2008-09-14  Bruno Haible  <bruno@clisp.org>
75669         * modules/perror-tests: New file.
75670         * tests/test-perror.sh: New file.
75671         * tests/test-perror.c: New file.
75673         New module 'perror'.
75674         * lib/stdio.in.h (perror): New declaration.
75675         * lib/perror.c: New file.
75676         * m4/perror.m4: New file.
75677         * modules/perror: New file.
75678         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
75679         * doc/posix-functions/perror.texi: Mention the perror module.
75680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
75681         REPLACE_PERROR.
75682         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
75683         REPLACE_PERROR.
75685 2008-09-14  Bruno Haible  <bruno@clisp.org>
75687         * modules/stdio (Makefile.am): Reorder to match the order in
75688         lib/stdio.in.h.
75689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
75691 2008-09-13  Bruno Haible  <bruno@clisp.org>
75693         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
75695 2008-09-13  Bruno Haible  <bruno@clisp.org>
75697         Extend strerror to cover the added errno values.
75698         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
75699         (rpl_strerror): Provide error messages for the added errno values and
75700         for the WSA* values.
75701         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
75702         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
75703         strerror.
75704         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
75705         * modules/strerror (Depends-on): Add errno.
75706         * doc/posix-functions/strerror.texi: Document the change.
75707         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
75708         and EOVERFLOW.
75710 2008-09-13  Bruno Haible  <bruno@clisp.org>
75712         * modules/EOVERFLOW: Remove file.
75713         * m4/eoverflow.m4: Remove file.
75714         * modules/EOVERFLOW-tests: Remove file.
75715         * tests/test-EOVERFLOW.c: Remove file.
75716         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
75717         * modules/ftell (Depends-on): Likewise.
75718         * modules/getdelim (Depends-on): Likewise.
75719         * modules/getugroups (Depends-on): Likewise.
75720         * modules/poll (Depends-on): Likewise.
75721         * modules/snprintf (Depends-on): Likewise.
75722         * modules/sprintf-posix (Depends-on): Likewise.
75723         * modules/vasnprintf (Depends-on): Likewise.
75724         * modules/vasprintf (Depends-on): Likewise.
75725         * modules/vfprintf-posix (Depends-on): Likewise.
75726         * modules/vsnprintf (Depends-on): Likewise.
75727         * modules/vsprintf-posix (Depends-on): Likewise.
75728         * modules/xvasprintf (Depends-on): Likewise.
75729         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
75730         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
75731         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
75732         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
75733         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
75734         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
75735         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
75736         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
75737         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
75738         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
75739         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
75740         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
75741         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
75742         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
75743         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
75744         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
75745         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
75746         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
75747         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
75748         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
75749         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
75750         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
75751         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
75752         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
75753         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
75754         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
75755         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
75756         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
75757         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
75758         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
75759         * MODULES.html.sh: Remove EOVERFLOW.
75760         * NEWS: Mention the change.
75762 2008-09-13  Bruno Haible  <bruno@clisp.org>
75764         * modules/errno-tests: New file.
75765         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
75767         * lib/errno.in.h: New file.
75768         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
75769         * modules/errno: New file.
75770         * doc/posix-headers/errno.texi: Update documentation.
75771         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
75773 2008-09-13  Bruno Haible  <bruno@clisp.org>
75775         * tests/test-poll.c: Use #if for native Windows, rather than testing
75776         __MSVCRT__.
75778 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75779             Bruno Haible  <bruno@clisp.org>
75781         * lib/glob.c: Don't include <pwd.h> on native Windows.
75782         (WINDOWS32): New macro.
75783         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
75785 2008-09-13  Bruno Haible  <bruno@clisp.org>
75787         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
75788         (ETIMEDOUT): Remove macro.
75789         (glthread_cond_timedwait_multithreaded): New declaration.
75790         (glthread_cond_timedwait): Use it.
75791         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
75792         (glthread_cond_timedwait_multithreaded): New function.
75794 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
75796         * modules/poll-tests: Do not check for io.h.
75797         * tests/test-poll.c: Check for __MSVCRT__ instead.
75799 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
75801         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
75802         * modules/poll-tests: Add inet_pton, stdbool, sockets.
75803         * tests/test-poll.c: Use them.  Use _pipe on Windows.
75805 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
75807         * modules/poll-tests: New.
75808         * tests/test-poll.c: New.
75810 2008-09-12  Eric Blake  <ebb9@byu.net>
75812         frexp: test for NetBSD failure on -0.0
75813         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
75814         not all, bugs from NetBSD 3.0 have been fixed.
75815         * doc/posix-functions/frexp.texi (frexp): Document bug.
75816         Reported by Thomas Klausner.
75818         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
75819         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
75820         literal -0.0.
75821         Reported by Jonathan C. Patschke <jp@centtech.com>.
75823 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75825         * lib/glthread/cond.h: Use dummy implementation also if
75826         USE_WIN32_THREADS.
75828 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75830         * modules/fnmatch-posix (License): Change to LGPLv2+.
75831         * modules/fnmatch-gnu (License): Likewise.
75833 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75835         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
75837 2008-09-11  Jim Meyering  <meyering@redhat.com>
75839         * users.txt: Add gtk-vnc.
75841 2008-09-08  Simon Josefsson  <simon@josefsson.org>
75843         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
75844         rotate amounts.
75846         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
75847         required for 16-bit and 8-bit rotates.
75848         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
75849         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
75850         UINT8_MAX instead of hard-coded constants.
75851         Suggested by Paul Eggert.
75853 2008-09-07  Bruno Haible  <bruno@clisp.org>
75855         * tests/test-striconveh.c (main): Check behaviour when converting from
75856         UTF-7.
75858         Make striconveh work better with stateful encodings.
75859         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
75860         that iconv does not increment the inptr when returning -1/EINVAL.
75862 2008-09-07  Bruno Haible  <bruno@clisp.org>
75864         * build-aux/config.rpath: Update according to libtool-2.2.6.
75865         * build-aux/config.libpath: Likewise.
75867 2008-09-06  Bruno Haible  <bruno@clisp.org>
75869         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
75870         * lib/freadptr.c (freadptr): Likewise.
75871         * lib/freadseek.c (freadptrinc): Likewise.
75872         Reported by Simon Josefsson.
75874 2008-09-06  Bruno Haible  <bruno@clisp.org>
75876         * modules/freadptr (License): Change to LGPLv2+.
75877         * modules/freadseek (License): Likewise.
75878         Suggested by Eric Blake.
75880         * modules/memchr2 (License): Change to LGPLv2+.
75881         Approved by Eric Blake.
75883 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75884             Bruno Haible  <bruno@clisp.org>
75886         Make gnulib-tool work with native 'sed' on AIX.
75887         * gnulib-tool (sed_noop): New variable.
75888         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
75889         func_add_or_update, func_create_testdir): Use it to initialize sed
75890         script variables.
75891         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
75893 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
75894             Bruno Haible  <bruno@clisp.org>
75896         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
75897         also works after #include directives.
75899 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
75901         getdate.y: reject an out-of-range timezone value
75902         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
75903         the range [-24...+24].  When specified with only one or two digits,
75904         * tests/test-getdate.c: Tests for the fix.
75905         * doc/getdate.texi: Document this change.
75907 2008-09-03  Bruno Haible  <bruno@clisp.org>
75909         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
75911 2008-09-02  Simon Josefsson  <simon@josefsson.org>
75913         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
75914         <bruce.korb@gmail.com> with ideas from Ben Pfaff
75915         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
75916         Blake <ebb9@byu.net>.
75918         * tests/test-bitrotate.c: Add more test vectors.
75920 2008-09-02  Eric Blake  <ebb9@byu.net>
75922         vasnprintf-posix: handle large precision via %.*d
75923         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
75924         when handling it ourselves.
75925         * tests/test-vasnprintf-posix.c (test_function): Add test.
75926         * tests/test-snprintf-posix.h (test_function): Likewise.
75927         * tests/test-sprintf-posix.h (test_function): Likewise.
75928         * tests/test-vasprintf-posix.c (test_function): Likewise.
75929         Reported by Alain Guibert.
75931 2008-09-01  Eric Blake  <ebb9@byu.net>
75933         c-stack: make configure-time check more robust
75934         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
75935         successful sigaction call.
75936         Reported by Tom G. Christensen.
75938 2008-09-01  Bruno Haible  <bruno@clisp.org>
75940         New module 'findprog-lgpl'.
75941         * modules/findprog-lgpl: New file.
75942         * lib/findprog-lgpl.c: New file.
75943         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
75944         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
75945         to decide whether to use strdup or xstrdup, concatenated_filename or
75946         xconcatenated_filename.
75948 2008-09-01  Bruno Haible  <bruno@clisp.org>
75950         Split module 'concat-filename' into 'concat-filename' (LGPL) and
75951         'xconcat-filename' (GPL).
75952         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
75953         (License): Change to LGPLv2+.
75954         * modules/xconcat-filename: New file.
75955         * lib/concat-filename.h (concatenated_filename): Change specification.
75956         (xconcatenated_filename): New declaration.
75957         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
75958         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
75959         memory situations.
75960         * lib/xconcat-filename.c: New file.
75961         * NEWS: Mention the change.
75962         * lib/findprog.c: Include concat-filename.h, not filename.h.
75963         (find_in_path): Use xconcatenated_filename instead of
75964         concatenated_filename.
75965         * lib/javacomp.c: Include concat-filename.h, not filename.h.
75966         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
75967         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
75968         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
75969         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
75970         instead of concatenated_filename.
75971         * lib/javaexec.c: Include concat-filename.h, not filename.h.
75972         (execute_java_class): Use xconcatenated_filename instead of
75973         concatenated_filename.
75974         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
75975         * modules/javacomp (Depends-on): Likewise.
75976         * modules/javaexec (Depends-on): Likewise.
75978 2008-09-01  Bruno Haible  <bruno@clisp.org>
75980         Split module 'filename' into 'filename' and 'concat-filename'.
75981         * modules/filename: Keep only lib/filename.h.
75982         (License): Change to LGPLv2+.
75983         * modules/concat-filename: New file, extracted from modules/filename.
75984         * lib/filename.h (concatenated_filename): Remove declaration.
75985         * lib/concat-filename.h: New file, extracted from lib/filename.h.
75986         * lib/concat-filename.c: Include concat-filename.h.
75987         * NEWS: Mention the change.
75989 2008-09-01  Simon Josefsson  <simon@josefsson.org>
75991         * lib/bitrotate.h (rotl8, rotr8): Add.
75993         * modules/bitrotate (configure.ac): Need
75994         AC_REQUIRE([AC_C_INLINE]).
75995         (Description): Mention stdint.h.  Reported by Bruno Haible
75996         <bruno@clisp.org>.
75998         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
75999         Paolo Bonzini <bonzini@gnu.org>.
76001 2008-08-31  Bruno Haible  <bruno@clisp.org>
76003         Assume Solaris specific bi-arch conventions on Solaris systems.
76004         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
76005         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
76006         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
76007         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
76008         like acl_libdirstem.
76009         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
76010         acl_libdirstem.
76011         * NEWS: Mention the change.
76012         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
76014 2008-08-31  Jim Meyering  <meyering@redhat.com>
76016         * lib/strftime.h: Add comments describing the two added arguments.
76018         remove duplicate #include directives
76019         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
76020         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
76022 2008-08-31  Bruno Haible  <bruno@clisp.org>
76024         New module 'sigpipe-die'.
76025         * modules/sigpipe-die: New file.
76026         * lib/sigpipe-die.h: New file.
76027         * lib/sigpipe-die.c: New file.
76028         * MODULES.html.sh (Signal handling): Add sigpipe-die.
76030 2008-08-31  Bruno Haible  <bruno@clisp.org>
76032         Don't override previously installed signal handlers.
76033         * lib/fatal-signal.c (saved_sigactions): New variable.
76034         (uninstall_handlers): Reset the signal to the saved handler, not
76035         to SIG_DFL (except when ignored).
76036         (install_handlers): Save the previous handlers.
76038 2008-08-30  Bruno Haible  <bruno@clisp.org>
76040         * gnulib-tool (func_reset_sigpipe): New function.
76041         (func_get_automake_snippet, func_modules_transitive_closure,
76042         func_import): Invoke it before a join command that reads from stdin,
76043         to avoid "echo: write error: Broken pipe" error messages on stderr.
76044         Reported by Sam Steingold <sds@gnu.org>.
76046 2008-08-30  Bruno Haible  <bruno@clisp.org>
76048         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
76049         Code copied from m4/open.m4.
76050         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
76051         access and the filename ends in a slash. Code copied from lib/open.c.
76052         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
76053         * tests/test-fopen.c (main): Check against bug with trailing slash.
76055 2008-08-29  Bruno Haible  <bruno@clisp.org>
76057         Avoid some "gcc -pedantic" warnings.
76058         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
76059         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
76060         * lib/dirent.in.h: Likewise.
76061         * lib/fcntl.in.h: Likewise.
76062         * lib/float.in.h: Likewise.
76063         * lib/iconv.in.h: Likewise.
76064         * lib/inttypes.in.h: Likewise.
76065         * lib/locale.in.h: Likewise.
76066         * lib/math.in.h: Likewise.
76067         * lib/netinet_in.in.h: Likewise.
76068         * lib/search.in.h: Likewise.
76069         * lib/signal.in.h: Likewise.
76070         * lib/stdarg.in.h: Likewise.
76071         * lib/stdint.in.h: Likewise.
76072         * lib/stdio.in.h: Likewise.
76073         * lib/stdlib.in.h: Likewise.
76074         * lib/string.in.h: Likewise.
76075         * lib/strings.in.h: Likewise.
76076         * lib/sys_select.in.h: Likewise.
76077         * lib/sys_socket.in.h: Likewise.
76078         * lib/sys_stat.in.h: Likewise.
76079         * lib/sys_time.in.h: Likewise.
76080         * lib/sysexits.in.h: Likewise.
76081         * lib/time.in.h: Likewise.
76082         * lib/unistd.in.h: Likewise.
76083         * lib/wchar.in.h: Likewise.
76084         * lib/wctype.in.h: Likewise.
76085         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
76086         * modules/fchdir (Makefile.am): Likewise.
76087         * modules/fcntl (Makefile.am): Likewise.
76088         * modules/float (Makefile.am): Likewise.
76089         * modules/iconv_open (Makefile.am): Likewise.
76090         * modules/inttypes (Makefile.am): Likewise.
76091         * modules/locale (Makefile.am): Likewise.
76092         * modules/math (Makefile.am): Likewise.
76093         * modules/netinet_in (Makefile.am): Likewise.
76094         * modules/search (Makefile.am): Likewise.
76095         * modules/signal (Makefile.am): Likewise.
76096         * modules/stdarg (Makefile.am): Likewise.
76097         * modules/stdint (Makefile.am): Likewise.
76098         * modules/stdio (Makefile.am): Likewise.
76099         * modules/stdlib (Makefile.am): Likewise.
76100         * modules/string (Makefile.am): Likewise.
76101         * modules/strings (Makefile.am): Likewise.
76102         * modules/sys_select (Makefile.am): Likewise.
76103         * modules/sys_socket (Makefile.am): Likewise.
76104         * modules/sys_stat (Makefile.am): Likewise.
76105         * modules/sys_time (Makefile.am): Likewise.
76106         * modules/sysexits (Makefile.am): Likewise.
76107         * modules/time (Makefile.am): Likewise.
76108         * modules/unistd (Makefile.am): Likewise.
76109         * modules/wchar (Makefile.am): Likewise.
76110         * modules/wctype (Makefile.am): Likewise.
76111         Reported by Reuben Thomas <rrt@sc3d.org>.
76113 2008-08-29  Bruno Haible  <bruno@clisp.org>
76115         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
76116         any more.
76118 2008-08-29  Simon Josefsson  <simon@josefsson.org>
76120         * MODULES.html.sh (Misc): Add bitrotate.
76122         * modules/bitrotate: New file.
76124         * lib/bitrotate.h: New file.
76126         * modules/bitrotate-tests: New file.
76128         * tests/test-bitrotate.c: New file.
76130         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
76131         on the bitrotate module.
76133         * lib/arctwo.c: Use new bitrotate module.
76135 2008-08-29  Jim Meyering  <meyering@redhat.com>
76137         bootstrap: merge changes from coreutils
76138         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
76139         of copied files.  Remove a kludge, now that this is fixed.
76140         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
76141         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
76142         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
76144 2008-08-29  Bruno Haible  <bruno@clisp.org>
76146         * MODULES.html.sh: Remove --cvs-urls option.
76148 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
76150         maint.mk: adjust to file name change
76151         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
76153 2008-08-28  Jim Meyering  <meyering@redhat.com>
76155         * modules/getndelim2 (License): Relicense to LGPLv2+.
76156         Approved by Richard Stallman for the version of 1995, and by
76157         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
76159 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
76161         * lib/getdelim.c (flockfile, funlockfile): Make all of them
76162         dummy if one is not available.  Do not touch them if
76163         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
76164         (getc_maybe_unlocked): New.
76165         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
76167 2008-08-26  Eric Blake  <ebb9@byu.net>
76169         doc/INSTALL: resync from autoconf
76170         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
76171         (INSTALL_PRELUDE): Delete; this is done more efficiently by
76172         moving...
76173         * install.texi [!autoconf]: ...here.  Resync from autoconf.
76174         * INSTALL: Regenerate.
76175         * INSTALL.ISO: New file.
76176         * INSTALL.UTF-8: Likewise.
76178 2008-08-26  Jim Meyering  <meyering@redhat.com>
76180         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
76181         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
76182         these definitions conditional, so that they may be overridden, too.
76184 2008-08-26  Bruno Haible  <bruno@clisp.org>
76186         Generate INSTALL file variants with prettier quotes.
76187         * doc/Makefile (INSTALL_PRELUDE): New macro.
76188         (INSTALL): Use it.
76189         (INSTALL.ISO, INSTALL.UTF-8): New rules.
76191 2008-08-26  Bruno Haible  <bruno@clisp.org>
76193         Run makeinfo in an English locale.
76194         * doc/Makefile (MAKEINFO): New variable.
76196 2008-08-26  Bruno Haible  <bruno@clisp.org>
76198         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
76199         Suggested by Eric Blake.
76201 2008-08-25  Bruno Haible  <bruno@clisp.org>
76203         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
76205 2008-08-25  Eric Blake  <ebb9@byu.net>
76207         c-stack: test that stack overflow can be caught
76208         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
76209         that platform allows handling stack overflow; at least OS/2 EMX
76210         has sigaltstack, but crashes before transferring control to
76211         handler on stack overflow.
76212         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
76213         check for HAVE_STACK_OVERFLOW_HANDLING.
76214         Reported by Elbert Pol.
76216 2008-08-25  Bruno Haible  <bruno@clisp.org>
76218         * doc/posix-functions/strftime.texi: Fix description of strftime
76219         module.
76221 2008-08-24  Bruno Haible  <bruno@clisp.org>
76223         * tests/uniwidth/test-uc_width2.c: New file.
76224         * tests/uniwidth/test-uc_width2.sh: New file.
76225         * modules/uniwidth/width-tests (Files): Add the new files.
76226         (TESTS): Add uniwidth/test-uc_width2.sh.
76227         (TESTS_ENVIRONMENT): New variable.
76228         (check_PROGRAMS): Add test-uc_width2.
76229         (test_uc_width2_SOURCES): New variable.
76231         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
76232         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
76233         not 0x00AB.
76234         Reported by Alexander V. Lukyanov <lav@netis.ru>.
76236 2008-08-22  Eric Blake  <ebb9@byu.net>
76238         test-lock, test-tls: mention why a test is skipped
76239         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
76240         skipped.
76241         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
76243         count-one-bits: relax license
76244         * modules/count-one-bits (License): Relicense to LGPLv2+.
76245         Suggested by Ludovic Courtès, approved by Ben Pfaff.
76247 2008-08-22  Andreas Schwab  <schwab@suse.de>
76249         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
76250         Remove spurious space in assignment.
76252 2008-08-21  Simon Josefsson  <simon@josefsson.org>
76254         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
76255         Paul Eggert <eggert@CS.UCLA.EDU>.
76257 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
76259         * modules/gettext: Add m4/threadlib.m4.
76261 2008-08-19  Eric Blake  <ebb9@byu.net>
76263         test-c-stack: fix compilation failure on FreeBSD 5.0
76264         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
76265         headers before <sys/resource.h>.
76266         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
76267         the bug.
76268         Reported by Nelson H. F. Beebe.
76270         strverscmp: migrate from "strverscmp.h" to <string.h>
76271         * modules/string (Makefile.am): Add new hooks.
76272         * modules/strverscmp (Files): Remove strverscmp.h.
76273         (Depends-on): Add string.
76274         (configure.ac): Add indicator.
76275         (Include): Mention new header.
76276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
76277         defaults.
76278         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
76279         results.
76280         * lib/strverscmp.h: Delete.
76281         * lib/string.in.h (strverscmp): Provide declaration, when needed.
76282         * tests/test-strverscmp.c (includes): Adjust client.
76283         * lib/check-version.c (includes): Likewise.
76284         * NEWS: Document the change.
76286         strverscmp: add unit test
76287         * modules/strverscmp-tests: New file.
76288         * tests/test-strverscmp.c: Likewise.
76290 2008-08-19  Simon Josefsson  <simon@josefsson.org>
76292         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
76293         regarding Windows crypto stuff, from Mono.
76295 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
76297         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
76298         if present, for intel RND.  Return error on failures.
76300 2008-08-18  Ben Pfaff  <blp@gnu.org>
76302         gitlog-to-changelog: give better diagnostic for failed pipe-open
76303         * build-aux/gitlog-to-changelog: Improve error message: suggest
76304         that the version of Git may be too old.
76306 2008-08-18  Simon Josefsson  <simon@josefsson.org>
76308         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
76309         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
76311 2008-08-18  Bruno Haible  <bruno@clisp.org>
76313         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
76314         pthread_in_use().
76316 2008-08-18  Bruno Haible  <bruno@clisp.org>
76318         * lib/glthread/threadlib.c: Include <pthread.h>.
76320 2008-08-18  Bruno Haible  <bruno@clisp.org>
76322         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
76323         glthread_recursive_lock_* macros.
76324         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
76325         Fix syntax error.
76327 2008-08-18  Bruno Haible  <bruno@clisp.org>
76329         * lib/glthread/thread.c: Avoid forcing a context switch right after
76330         thread creation.
76332 2008-08-17  Bruno Haible  <bruno@clisp.org>
76334         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
76335         * lib/glthread/thread.h: Provide Win32 specific implementation.
76336         * modules/thread (Files): Add lib/glthread/thread.c.
76337         (Depends-on): Add lock.
76338         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
76340 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76342         New module 'yield'.
76343         * modules/yield: New file.
76344         * lib/glthread/yield.h: New file.
76345         * m4/yield.m4: New file.
76346         * MODULES.html.sh (Multithreading): Add yield.
76348 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76350         New module 'thread'.
76351         * modules/thread: New file.
76352         * lib/glthread/thread.h: New file.
76353         * m4/thread.m4: New file.
76354         * MODULES.html.sh (Multithreading): Add thread.
76356 2008-08-17  Bruno Haible  <bruno@clisp.org>
76358         * lib/glthread/lock.h: Include <stdlib.h> always.
76359         * lib/glthread/tls.h: Likewise.
76360         * lib/glthread/cond.h: Likewise.
76362 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76364         New module 'cond'.
76365         * modules/cond: New file.
76366         * lib/glthread/cond.h: New file.
76367         * lib/glthread/cond.c: New file.
76368         * m4/cond.m4: New file.
76369         * MODULES.html.sh (Multithreading): Add cond.
76371 2008-08-16  Eric Blake  <ebb9@byu.net>
76373         c-stack: fix regression on Irix 5.3 from 2008-06-21
76374         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
76375         sa_sigaction...
76376         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
76377         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
76378         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
76379         * modules/signal (Makefile.am): Use the value.
76380         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
76381         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
76382         * doc/posix-headers/signal.texi (signal.h): Document this
76383         portability issue.
76384         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
76385         Reported by Tom G. Christensen.
76387 2008-08-17  Bruno Haible  <bruno@clisp.org>
76389         New module 'threadlib'.
76390         * modules/threadlib: New file.
76391         * lib/glthread/threadlib.c: New file, extracted from
76392         lib/glthread/lock.c.
76393         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
76394         functions.
76395         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
76396         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
76397         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
76398         macros.
76399         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
76400         (gl_DISABLE_THREADS): Remove macro.
76401         * modules/lock (Files): Remove build-aux/config.rpath.
76402         (Depends-on): Remove havelib. Add threadlib.
76403         (configure.ac-early): Remove section.
76404         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
76405         * modules/tls (Depends-on): Remove lock. Add threadlib.
76406         (Link): New section, copied from threadlib.
76407         * MODULES.html.sh (Multithreading): Add threadlib.
76409 2008-08-14  Bruno Haible  <bruno@clisp.org>
76411         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
76412         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
76413         glthread_rwlock_unlock, glthread_rwlock_destroy,
76414         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
76415         glthread_recursive_lock_destroy): Define as macros always.
76416         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
76417         glthread_lock_lock.
76418         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
76419         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
76420         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
76421         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
76422         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
76423         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
76424         (glthread_recursive_lock_lock_func): Renamed from
76425         glthread_recursive_lock_lock.
76426         (glthread_recursive_lock_unlock_func): Renamed from
76427         glthread_recursive_lock_unlock.
76428         (glthread_recursive_lock_destroy_func): Renamed from
76429         glthread_recursive_lock_destroy.
76431 2008-08-14  Bruno Haible  <bruno@clisp.org>
76433         * lib/glthread/lock.h: Renamed from lib/lock.h.
76434         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
76435         * lib/glthread/tls.h: Renamed from lib/tls.h.
76436         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
76437         * lib/fstrcmp.c: Update includes.
76438         * lib/strsignal.c: Update includes.
76439         * modules/lock (Files, Makefile.am): Update.
76440         (Include): Change to "glthread/lock.h".
76441         * modules/tls (Files, Makefile.am): Update.
76442         (Include): Change to "glthread/tls.h".
76443         * tests/test-lock.c: Update includes.
76444         * tests/test-tls.c: Update includes.
76445         * NEWS: Mention the renamed header files.
76447 2008-08-11  Jim Meyering  <meyering@redhat.com>
76449         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
76451 2008-08-11  Eric Blake  <ebb9@byu.net>
76453         test-c-stack: avoid C99-ism
76454         * tests/test-c-stack.c (main): Fix whitespace, move declaration
76455         before statement.
76456         Reported by Alain Guibert.
76458 2008-08-10  Jim Meyering  <meyering@redhat.com>
76460         ensure that return value of uinttostr et al are not ignored
76461         * lib/inttostr.h (__GNUC_PREREQ): Define.
76462         (__attribute_warn_unused_result__): Define.
76463         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
76465 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
76467         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
76468         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
76470 2008-08-07  Jim Meyering  <meyering@redhat.com>
76472         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
76474         * modules/mkstemp (License): Relicense under LGPLv2+.
76475         * modules/tempname (License): Likewise.
76477 2008-08-06  Bruno Haible  <bruno@clisp.org>
76479         * lib/poll.c (poll): Further micro-optimization.
76481 2008-08-06  Jim Meyering  <meyering@redhat.com>
76483         inet_pton.c: use locale-independent tolower
76484         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
76485         (inet_pton6): Use c_tolower rather than tolower.
76486         * modules/inet_pton (Depends-on): Add c-ctype.
76488 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
76490         * lib/poll.c (poll): Avoid division when timeout is 0, cache
76491         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
76493 2008-08-06  Jim Meyering  <meyering@redhat.com>
76495         * modules/inet_pton (License): Relicense under LGPLv2+.
76497 2008-08-03  Bruno Haible  <bruno@clisp.org>
76499         Additional non-aborting API for lock and tls.
76500         * lib/lock.h: Include <errno.h>.
76501         (glthread_lock_init): New macro/function.
76502         (gl_lock_init): Define as wrapper around glthread_lock_init.
76503         (glthread_lock_lock): New macro/function.
76504         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
76505         (glthread_lock_unlock): New macro/function.
76506         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
76507         (glthread_lock_destroy): New macro/function.
76508         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
76509         (glthread_rwlock_init): New macro/function.
76510         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
76511         (glthread_rwlock_rdlock): New macro/function.
76512         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
76513         (glthread_rwlock_wrlock): New macro/function.
76514         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
76515         (glthread_rwlock_unlock): New macro/function.
76516         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
76517         (glthread_rwlock_destroy): New macro/function.
76518         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
76519         (glthread_recursive_lock_init): New macro/function.
76520         (gl_recursive_lock_init): Define as wrapper around
76521         glthread_recursive_lock_init.
76522         (glthread_recursive_lock_lock): New macro/function.
76523         (gl_recursive_lock_lock): Define as wrapper around
76524         glthread_recursive_lock_lock.
76525         (glthread_recursive_lock_unlock): New macro/function.
76526         (gl_recursive_lock_unlock): Define as wrapper around
76527         glthread_recursive_lock_unlock.
76528         (glthread_recursive_lock_destroy): New macro/function.
76529         (gl_recursive_lock_destroy): Define as wrapper around
76530         glthread_recursive_lock_destroy.
76531         (glthread_once): New macro/function.
76532         (gl_once): Define as wrapper around glthread_once.
76533         Update function declarations.
76534         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
76535         glthread_rwlock_init. Return error code.
76536         (glthread_rwlock_rdlock_multithreaded): Renamed from
76537         glthread_rwlock_rdlock. Return error code.
76538         (glthread_rwlock_wrlock_multithreaded): Renamed from
76539         glthread_rwlock_wrlock. Return error code.
76540         (glthread_rwlock_unlock_multithreaded): Renamed from
76541         glthread_rwlock_unlock. Return error code.
76542         (glthread_rwlock_destroy_multithreaded): Renamed from
76543         glthread_rwlock_destroy. Return error code.
76544         (glthread_recursive_lock_init_multithreaded): Renamed from
76545         glthread_recursive_lock_init. Return error code.
76546         (glthread_recursive_lock_lock_multithreaded): Renamed from
76547         glthread_recursive_lock_lock. Return error code.
76548         (glthread_recursive_lock_unlock_multithreaded): Renamed from
76549         glthread_recursive_lock_unlock. Return error code.
76550         (glthread_recursive_lock_destroy_multithreaded): Renamed from
76551         glthread_recursive_lock_destroy. Return error code.
76552         (glthread_once_call): Make static.
76553         (glthread_once_multithreaded): Renamed from glthread_once.
76554         * lib/tls.h: Include <errno.h>.
76555         (glthread_tls_key_init): New macro/function.
76556         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
76557         (glthread_tls_set): New macro/function.
76558         (gl_tls_set): Define as wrapper around glthread_tls_set.
76559         (glthread_tls_key_destroy): New macro/function.
76560         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
76561         Update function declarations.
76562         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
76563         glthread_tls_get.
76564         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76566 2008-08-04  Eric Blake  <ebb9@byu.net>
76568         gnumakefile: use space, not TAB, outside of targets
76569         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
76571 2008-08-02  Jim Meyering  <meyering@redhat.com>
76573         getdate.y: avoid locale-dependent date parsing failure
76574         In Turkish locales, getdate would fail to recognize keywords
76575         containing a lowercase "i".  The solution is not to rely on
76576         locale-sensitive case-conversion.
76577         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
76578         (lookup_word): Use c_toupper in place of toupper.
76579         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
76580         Reported by Vefa Bicakci <bicave@superonline.com> in
76581         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
76582         * modules/getdate (Depends-on): Add c-ctype.
76584 2008-08-02  Bruno Haible  <bruno@clisp.org>
76586         * gnulib-tool (func_import): When updating or creating a .gitignore
76587         file, prepend each added line with a slash, and ignore leading slashes
76588         from the existing lines.
76589         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
76591 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76593         Portability fix for GNU make 3.79.1.
76594         * top/GNUmakefile: Avoid 'else COND', which older GNU make
76595         versions do not understand.
76597 2008-08-01  Bruno Haible  <bruno@clisp.org>
76599         Work around bug of HP-UX 10.20 cc with -0.0 literal.
76600         * tests/test-isnanf.h (zero): New variable.
76601         (main): Avoid literal -0.0f.
76602         * tests/test-isnand.h (zero): New variable.
76603         (main): Avoid literal -0.0.
76604         * tests/test-isnanl.h (zero): New variable.
76605         (main): Avoid literal -0.0L.
76606         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
76607         (test_float, test_double, test_long_double): Avoid literals -0.0f,
76608         -0.0, -0.0L.
76609         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
76610         (test_signbitd): Avoid literal -0.0.
76611         (test_signbitl): Avoid literal -0.0L.
76612         * tests/test-ceilf1.c (zero): New variable.
76613         (main): Avoid literal -0.0f.
76614         * tests/test-ceill.c (zero): New variable.
76615         (main): Avoid literal -0.0L.
76616         * tests/test-floorf1.c (zero): New variable.
76617         (main): Avoid literal -0.0f.
76618         * tests/test-floorl.c (zero): New variable.
76619         (main): Avoid literal -0.0L.
76620         * tests/test-roundf1.c (zero): New variable.
76621         (main): Avoid literal -0.0f.
76622         * tests/test-round1.c (zero): New variable.
76623         (main): Avoid literal -0.0.
76624         * tests/test-roundl.c (zero): New variable.
76625         (main): Avoid literal -0.0L.
76626         * tests/test-truncf1.c (zero): New variable.
76627         (main): Avoid literal -0.0f.
76628         * tests/test-trunc1.c (zero): New variable.
76629         (main): Avoid literal -0.0.
76630         * tests/test-truncl.c (zero): New variable.
76631         (main): Avoid literal -0.0L.
76632         * tests/test-frexp.c (zero): New variable.
76633         (main): Avoid literal -0.0.
76634         * tests/test-frexpl.c (zero): New variable.
76635         (main): Avoid literal -0.0L.
76636         * tests/test-ldexpl.c (zero): New variable.
76637         (main): Avoid literal -0.0L.
76638         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
76639         (zerod, zerol): New variables.
76640         (test_function): Avoid literals -0.0, -0.0L.
76641         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
76642         (zerod, zerol): New variables.
76643         (test_function): Avoid literals -0.0, -0.0L.
76644         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
76645         (zerod, zerol): New variables.
76646         (test_function): Avoid literals -0.0, -0.0L.
76647         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
76648         (zerod, zerol): New variables.
76649         (test_function): Avoid literals -0.0, -0.0L.
76650         * tests/test-strtod.c (zero): New variable.
76651         (main): Avoid literal -0.0.
76652         Reported by Jonathan C. Patschke <jp@centtech.com>.
76654 2008-07-31  Jim Meyering  <meyering@redhat.com>
76656         sha256.h: correct definition of SHA224_DIGEST_SIZE
76657         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
76658         Reported by Paulie Pena IV <paulie4@gmail.com>.
76659         Define as 224 / 8, rather than as a literal.
76660         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
76661         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
76662         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
76664 2008-07-31  Bruno Haible  <bruno@clisp.org>
76666         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
76667         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
76668         Reported by Jonathan Patschke <jp@centtech.com>.
76670 2008-07-31  Bruno Haible  <bruno@clisp.org>
76672         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
76673         Reported by Paolo Bonzini <bonzini@gnu.org>.
76675 2008-07-30  Eric Blake  <ebb9@byu.net>
76677         test-strtod: allow compilation without -lm
76678         * tests/test-strtod.c (main): Avoid link dependence on fabs.
76679         Reported by Dennis Clarke <blastwave@gmail.com>.
76681 2008-07-28  Jim Meyering  <meyering@redhat.com>
76683         bootstrap: work also when there are no .po files in po/
76684         * build-aux/bootstrap (update_po_files): Complete the change
76685         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
76687 2008-07-27  Jim Meyering  <meyering@redhat.com>
76689         * users.txt: Add zile.
76691 2008-07-26  Ben Pfaff  <blp@gnu.org>
76693         Add missing dependencies on new m4/exponent[fdl].m4 files.
76694         * modules/isnanf-nolibm: Add m4/exponentf.m4.
76695         * modules/isnand-nolibm: Add m4/exponentd.m4.
76696         * modules/isnanl-nolibm: Add m4/exponentl.m4.
76697         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
76698         m4/isnan[fdl].m4, because the macros actually used moved.
76699         Reported by Jim Meyering.
76701 2008-07-14  Ben Pfaff  <blp@gnu.org>
76703         Add isinf module.
76704         * lib/isinf.c: New file.
76705         * lib/math.in.h: Define isinf macro if we have decided to replace
76706         it.
76707         * m4/isinf.m4: New file.
76708         * m4/math_h.m4: Initialize and substitute variables for isinf
76709         module.
76710         * modules/isinf: New file.
76711         * modules/isinf-tests: New file.
76712         * modules/math: Add substitutions for new module.
76713         * tests/test-isinf.c: New file.
76714         * doc/posix-functions/isinf.texi: Mention new module.
76715         * MODULES.html.sh: Mention new module.
76717 2008-07-14  Ben Pfaff  <blp@gnu.org>
76719         Factor out some macros for use by additional modules.
76720         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
76721         exponentf.m4.
76722         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
76723         exponentd.m4.
76724         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
76725         file exponentl.m4.
76726         * m4/exponentf.m4: New file.
76727         * m4/exponentd.m4: New file.
76728         * m4/exponentl.m4: New file.
76729         * modules/isnanf: Use new file m4/exponentf.m4.
76730         * modules/isnand: Use new file m4/exponentd.m4.
76731         * modules/isnanl: Use new file m4/exponentl.m4.
76733 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
76735         mktime.c: normalize tp->tm_isdst value to -1/0/1.
76736         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
76737         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
76738         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
76740         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
76741         readlink on platforms without PATH_MAX.
76743 2008-07-21  Eric Blake  <ebb9@byu.net>
76745         Warn, not fail, on stale version.
76746         * top/GNUmakefile (_curr-ver): Tone down previous patch.
76748         Don't allow installation with stale devel version number.
76749         * top/GNUmakefile (_is-install-target): New macro.
76750         (_curr-ver): Forbid installation with stale version number.
76752 2008-07-20  Bruno Haible  <bruno@clisp.org>
76754         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
76755         TESTS_ENVIRONMENT.
76756         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
76758 2008-07-20  Bruno Haible  <bruno@clisp.org>
76760         * lib/c-stack.h (c_stack_action): Add documentation.
76761         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
76763 2008-07-20  Bruno Haible  <bruno@clisp.org>
76765         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
76766         * modules/readlink (License): Likewise.
76768 2008-07-17  Eric Blake  <ebb9@byu.net>
76770         * modules/c-stack (Link): Fix typo.
76772         Make c-stack use libsigsegv, when available.
76773         * modules/c-stack (Depends-on): Add libsigsegv.
76774         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
76775         needed.
76776         * lib/c-stack.c (SIGSTKSZ): Define fallback.
76777         (segv_handler, overflow_handler, c_stack_action)
76778         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
76779         implementation when libsigsegv is available, but only when using
76780         the library is necessary.
76781         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
76782         comment, explaining why XSI check fails on Linux.
76783         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
76784         * tests/test-c-stack2.sh: Tweak skip message.
76785         * NEWS: Document new link-time requirements.
76787 2008-07-16  Eric Blake  <ebb9@byu.net>
76789         c-stack: Expose false positives when not using libsigsegv.
76790         * modules/c-stack-tests (Files): Expand test.
76791         * tests/test-c-stack.c (main): Add means to conditionally trigger
76792         non-overflow SIGSEGV.
76793         * tests/test-c-stack2.sh: New file.
76795 2008-07-14  Bruno Haible  <bruno@clisp.org>
76797         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
76798         Reported by Eric Blake.
76800 2008-07-14  Sam Steingold  <sds@gnu.org>
76801             Bruno Haible  <bruno@clisp.org>
76803         New module libsigsegv.
76804         * modules/libsigsegv: New file.
76805         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
76806         modifications.
76807         * MODULES.html.sh (Signal handling): New section.
76809 2008-07-14  Bruno Haible  <bruno@clisp.org>
76811         * modules/unictype/ctype-* (Description): Add the word "function".
76812         Improves the resulting doc in MODULES.html.
76814 2008-07-12  Ben Pfaff  <blp@gnu.org>
76816         Add longlong module.
76817         * modules/longlong: New file.
76819 2008-07-12  Bruno Haible  <bruno@clisp.org>
76821         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
76822         to empty.
76824 2008-07-10  Ben Pfaff  <blp@gnu.org>
76826         Add isnan module.
76827         * doc/posix-functions/isnan.texi: Mention new module.
76828         * lib/math.in.h: Define isnan macro if we have decided to replace
76829         it.
76830         * m4/isnan.m4: New file.
76831         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
76832         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
76833         also.
76834         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
76835         redundancy.
76836         * m4/math_h.m4: Initialize and substitute variables for isnan
76837         module.
76838         * modules/isnan: New file.
76839         * modules/isnan-tests: New file.
76840         * modules/math: Add substitutions for new module.
76841         * tests/test-isnan.c: New file.
76842         * MODULES.html.sh: Mention new module.
76844 2008-07-10  Ben Pfaff  <blp@gnu.org>
76846         Add isnanf module.
76847         * lib/isnanf.m4: New file.
76848         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
76849         (gl_HAVE_ISNANF_IN_LIBM): New macro.
76850         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
76851         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
76852         * modules/isnanf: New file.
76853         * modules/isnanf-tests: New file.
76854         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
76855         files.
76856         * tests/test-isnanf-nolibm.c: factored most of its contents into
76857         new file tests/test-isnanf.h.
76858         * tests/test-isnanf.h: New file.
76859         * tests/test-isnanf.c: New file.
76860         * MODULES.html.sh: Mention new module.
76861         * doc/glibc-functions/isnanf.texi: Mention new module.
76863 2008-07-10  Ben Pfaff  <blp@gnu.org>
76865         Add isnand module.
76866         * lib/isnand.h: New file.
76867         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
76868         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
76869         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
76870         functionality also.
76871         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
76872         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
76873         (gl_HAVE_ISNAND_IN_LIBM): New macro.
76874         * modules/isnand: New file.
76875         * modules/isnand-tests: New file.
76876         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
76877         files.
76878         * tests/test-isnand-nolibm.c: factored most of its contents into
76879         new file tests/test-isnand.h.
76880         * tests/test-isnand.h: New file.
76881         * tests/test-isnand.c: New file.
76882         * MODULES.html.sh: Mention new module.
76884 2008-07-10  Ben Pfaff  <blp@gnu.org>
76886         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
76887         * lib/isnand.h: Rename lib/isnand-nolibm.h.
76888         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
76889         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
76890         * modules/isnanf-nolibm: Update references to renamed files.
76891         * modules/isnand-nolibm: Likewise.
76892         * modules/isnanf-nolibm-tests: Likewise.
76893         * modules/isnand-nolibm-tests: Likewise.
76894         * lib/frexp.c: Likewise.
76895         * lib/isfinite.c: Likewise.
76896         * lib/signbitd.c: Likewise.
76897         * lib/signbitf.c: Likewise.
76898         * lib/vasnprintf.c: Likewise.
76899         * tests/test-ceilf1.c: Likewise.
76900         * tests/test-ceilf2.c: Likewise.
76901         * tests/test-floorf1.c: Likewise.
76902         * tests/test-floorf2.c: Likewise.
76903         * tests/test-frexp.c: Likewise.
76904         * tests/test-round1.c: Likewise.
76905         * tests/test-round2.c: Likewise.
76906         * tests/test-roundf1.c: Likewise.
76907         * tests/test-strtod.c: Likewise.
76908         * tests/test-trunc1.c: Likewise.
76909         * tests/test-trunc2.c: Likewise.
76910         * tests/test-truncf1.c: Likewise.
76911         * tests/test-truncf2.c: Likewise.
76912         * NEWS: Mention the renamed header files.
76914 2008-07-11  Jim Meyering  <meyering@redhat.com>
76916         vc-list-files: make the last-resort awk code more portable
76917         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
76918         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
76919         does not support it.
76921 2008-07-10  Eric Blake  <ebb9@byu.net>
76923         Work with tar's bootstrap.
76924         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
76925         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
76926         an m4 comment.
76928 2008-07-09  Jim Meyering  <meyering@redhat.com>
76930         posix-shell.m4: fix typo that made this test malfunction
76931         * m4/posix-shell.m4: Remove capitalization in variable name.
76933 2008-07-08  Bruno Haible  <bruno@clisp.org>
76935         * m4/onceonly.m4: Update comments.
76936         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76938 2008-07-04  Jim Meyering  <meyering@redhat.com>
76940         * users.txt: Add vc-dwim.
76941         (bison, coreutils): Use the gitweb URL.
76943 2008-07-03  Jim Meyering  <meyering@redhat.com>
76945         * users.txt: Add libffcall.  From Sam Steingold.
76947 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
76949         getdate.y: do not ignore TZ with relative day, month or year offset
76950         * lib/getdate.y (get_date): Move the tz-handling block to follow the
76951         relative-date-handling, since otherwise, the latter would clobber the
76952         sole output (an updated Start value) of the tz-handling block.
76953         * tests/test-getdate.c: Tests for the fix
76955 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76957         Recognize 'foo_LIBRARIES += libgnu.a'.
76958         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
76959         makefile snippet has already specified an installation location,
76960         also using '+='.
76962 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
76964         getdate.y: factor out common actions
76965         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
76966         Use them in place of open-coded actions.
76968 2008-07-01  Simon Josefsson  <simon@josefsson.org>
76970         Add self-test for getdate module.
76971         * modules/getdate-tests: New file.
76972         * tests/test-getdate.c: New file.
76974 2008-06-29  Bruno Haible  <bruno@clisp.org>
76976         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
76977         .gitignore.
76978         Reported by Sylvain Beucler <beuc@beuc.net>.
76980 2008-06-29  Bruno Haible  <bruno@clisp.org>
76982         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
76983         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
76985 2008-06-29  Bruno Haible  <bruno@clisp.org>
76987         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
76988         EXTRA_DIST.
76989         Reported by Sylvain Beucler <beuc@beuc.net>.
76991 2008-06-26  Jim Meyering  <meyering@redhat.com>
76993         make several modules depend on the "open" module
76994         This provides slightly increased consistency when opening-for-write
76995         the name of a non-directory spelled with a trailing slash.
76996         * modules/chdir-safer: Likewise.
76997         * modules/chown: Likewise.
76998         * modules/clean-temp: Likewise.
76999         * modules/copy-file: Likewise.
77000         * modules/fchdir: Likewise.
77001         * modules/fcntl-safer: Likewise.
77002         * modules/pipe: Likewise.
77003         * modules/utime: Likewise.
77004         Prompted by Eric Blake and Bruno Haible.
77006 2008-06-24  Andreas Schwab  <schwab@suse.de>
77008         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
77009         literals can be used as initializers for global variables.
77011 2008-06-23  Eric Blake  <ebb9@byu.net>
77013         Make gnulib-cache.m4 easier to diff.
77014         * gnulib-tool (func_import): Allow newlines when reading cached
77015         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
77017 2008-06-23  Bruno Haible  <bruno@clisp.org>
77019         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
77020         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
77021         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
77022         m4/signalblocking.m4.
77023         (gl_PREREQ_SIGACTION): Don't invoke it.
77024         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
77025         gl_PREREQ_SIG_HANDLER_H.
77026         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77027         Don't check for sigaction here.
77029 2008-06-23  Bruno Haible  <bruno@clisp.org>
77031         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
77032         (install_handlers): Don't set the SA_RESETHAND flag.
77034 2008-06-23  Bruno Haible  <bruno@clisp.org>
77036         * m4/sigaction.m4: Comment fixes.
77037         * lib/signal.in.h: Likewise.
77039 2008-06-23  Eric Blake  <ebb9@byu.net>
77041         Fix typo.
77042         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
77044         Avoid SA_ namespace.
77045         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
77046         Reported by Ralf Wildenhues.
77048         Avoid test failure due to SA_RESTORER.
77049         * tests/test-sigaction.c (SA_MASK): New macro.
77050         (main): Avoid failing due to extension flags being set.
77051         Reported by Jim Meyering.
77053         Revert use of sig-handler.h in sigprocmask.c.
77054         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
77055         it requires the existence of struct sigaction.
77056         * lib/sigprocmask.c (handler_t): Restore typedef.
77057         (rpl_signal, old_handlers): Use local type.
77059 2008-06-22  Bruno Haible  <bruno@clisp.org>
77061         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
77062         conditionally.
77063         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
77065 2008-06-22  Bruno Haible  <bruno@clisp.org>
77067         * doc/posix-functions/siginterrupt.texi: Move note.
77069         * lib/signal.in.h (SA_RESTART): New macro.
77070         * lib/sigaction.c: Update comment.
77072         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
77074         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
77075         (gl_PREREQ_SIGPROCMASK): Invoke it.
77076         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
77078         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
77080         * lib/sigprocmask.c: Update a comment.
77082 2008-06-21  Eric Blake  <ebb9@byu.net>
77084         Use sigaction module rather than signal().
77085         * modules/c-stack (Depends-on): Add sigaction.
77086         * modules/fatal-signal (Depends-on): Likewise.
77087         * modules/nanosleep (Depends-on): Likewise.
77088         * modules/sigprocmask (Files): Add sig-handler.h.
77089         * modules/sigaction (Files): Likewise.
77090         * lib/sig-handler.h (get_handler): New file, suggested by Paul
77091         Eggert.
77092         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
77093         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
77094         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
77095         (init_fatal_signals): Likewise.
77096         * lib/nanosleep.c (rpl_nanosleep): Likewise.
77097         (siginterrupt): Delete fallback.
77098         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
77099         instead.
77100         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
77101         siginterrupt.
77103         New module sigaction, for mingw.
77104         * modules/sigaction: New module...
77105         * modules/sigaction-tests: ...and its test.
77106         * m4/sigaction.m4: New file.
77107         * lib/sigaction.c: Likewise.
77108         * tests/test-sigaction.c: Likewise.
77109         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
77110         * modules/signal (Makefile.am): Likewise.
77111         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
77112         needed.
77113         * doc/posix-headers/signal.texi (signal.h): Mention provided
77114         types.
77115         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
77116         that sigaction is preferable.
77117         * doc/posix-functions/sigaction.texi (sigaction): Mention new
77118         module.
77119         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77120         sigaction.
77122         Improve robustness of sigprocmask by overriding signal.
77123         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
77124         is in use.
77125         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
77126         (SIGKILL, SIGSTOP): Provide fallbacks.
77127         (rpl_signal): Implement.
77128         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
77129         signal can be called inside handlers.
77131         Fix nanosleep module on mingw.
77132         * modules/nanosleep (Depends-on): Add sys_select.
77133         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
77135         Fix licensing of sigprocmask.
77136         * modules/raise (License): Relicense as LGPL.
77138 2008-06-21  Bruno Haible  <bruno@clisp.org>
77140         * lib/propername.c (proper_name_utf8): Don't use the transliterated
77141         result if it contains question marks.
77142         Reported by Michael Geng <linux@michaelgeng.de>.
77144 2008-06-19  Bruno Haible  <bruno@clisp.org>
77146         Fix CVS-ism.
77147         * doc/gnulib.texi: Include updated-stamp.texi.
77148         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
77149         (updated-stamp.texi): New rule.
77150         (gnulib.info): Depend on it.
77151         * doc/.gitignore: Add updated-stamp.texi.
77152         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
77154 2008-06-19  Bruno Haible  <bruno@clisp.org>
77156         * doc/Makefile (gnulib.info): Update and simplify dependencies.
77157         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77159 2008-06-19  Eric Blake  <ebb9@byu.net>
77161         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
77162         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
77163         Reported by Stepan Kasal.
77165 2008-06-18  Bruno Haible  <bruno@clisp.org>
77167         * lib/fatal-signal.c (init_fatal_signals): Add comment.
77168         Reported by Eric Blake.
77170 2008-06-18  Eric Blake  <ebb9@byu.net>
77172         Work around cygwin 1.5.25 strsignal bug.
77173         * tests/test-strsignal.c: Allow for const char *.
77174         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
77176 2008-06-18  Simon Josefsson  <simon@josefsson.org>
77178         * users.txt: Update URL to article and add author/date
77179         information.
77181 2008-06-17  Bruno Haible  <bruno@clisp.org>
77183         New macro gl_DISABLE_THREADS.
77184         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
77185         if the user did not pass --enable-threads or --disable-threads option.
77186         (gl_DISABLE_THREADS): New macro.
77187         Reported by Eric Blake <ebb9@byu.net>.
77189 2008-06-17  Bruno Haible  <bruno@clisp.org>
77191         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
77192         when the macro ignores it.
77193         Based on a patch by Eric Blake <ebb9@byu.net>.
77195 2008-06-17  Bruno Haible  <bruno@clisp.org>
77197         * modules/tls (License): Change to LGPLv2+.
77198         Reported by Eric Blake.
77200 2008-06-17  Eric Blake  <ebb9@byu.net>
77202         Simplify c-stack prerequisites.
77203         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
77204         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
77205         no longer requires <ucontext.h> to exist.  Optimize setrlimit
77206         check.
77207         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
77208         <sys/resource.h>.
77210         Move c-stack test into testsuite.
77211         * modules/c-stack-tests: New file.
77212         * lib/c-stack.c [DEBUG]: Move test program...
77213         * tests/test-c-stack.c: ...into this new file.  Skip rather than
77214         fail test if sigaltstack is lacking.
77215         * tests/test-c-stack.sh: New driver file.
77217 2008-06-16  Eric Blake  <ebb9@byu.net>
77219         Use raise module consistently.
77220         * modules/fatal-signal (Depends-on): Add raise.
77221         * modules/sigprocmask (Depends-on): Likewise.
77222         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
77223         * lib/sigprocmask.c (sigprocmask): Likewise.
77224         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77225         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
77227         Fix compliance bug in sigpending.
77228         * lib/sigprocmask.c (sigpending): Return pending array via
77229         parameter, not return value.
77231 2008-06-14  Eric Blake  <ebb9@byu.net>
77233         Improve obstack-printf test code.
77234         * tests/test-obstack-printf.c (test_function): Fix comment, and
77235         simplify usage of obstack_* in macros.  Add a test for coverage.
77236         Reported by Bruno Haible.
77238 2008-06-14  Bruno Haible  <bruno@clisp.org>
77240         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
77241         array size as a constant, not as a const variable.
77242         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
77243         AC_USE_SYSTEM_EXTENSIONS.
77244         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
77245         Test whether the obstack_printf function actually exists.
77246         * modules/obstack-printf (Depends-on): Add extensions.
77247         (Include): Remove obstack.h.
77248         * modules/obstack-printf-posix (Depends-on): Add extensions.
77249         (Include): Remove obstack.h.
77251 2008-06-13  Eric Blake  <ebb9@byu.net>
77253         Add obstack-printf and obstack-printf-posix modules.
77254         * modules/obstack-printf: New file.
77255         * modules/obstack-printf-posix: Likewise.
77256         * MODULES.html.sh (Misc): Mention them.
77257         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
77258         Likewise.
77259         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
77260         Likewise.
77261         * modules/stdio (Makefile.am): Accomodate new modules.
77262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77263         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
77264         Declare.
77265         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
77266         functions.
77267         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
77268         (gl_REPLACE_OBSTACK_PRINTF): New macros
77269         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
77270         * tests/test-obstack-printf.c: New file.
77271         * modules/obstack-printf-tests: Likewise.
77272         * modules/obstack-printf-posix-tests: Likewise.
77274 2008-06-11  Bruno Haible  <bruno@clisp.org>
77276         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
77277         * lib/open.c: Include errno.h.
77278         (open): Fail when attempting to write to a file that has a trailing
77279         slash.
77280         * tests/test-open.c (main): Test against trailing slash bug.
77281         * doc/posix-functions/open.texi: Mention the trailing slash bug.
77283 2008-06-10  Bruno Haible  <bruno@clisp.org>
77285         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
77286         for $? to work inside the trap command, with various /bin/sh-s.
77287         * tests/test-vc-list-files-cvs.sh: Likewise.
77289 2008-06-10  Bruno Haible  <bruno@clisp.org>
77291         * lib/acl-internal.h: Don't include gettext.h here.
77292         * lib/set-mode-acl.c: Include gettext.h here.
77293         * lib/copy-acl.c: Likewise.
77295 2008-06-10  Bruno Haible  <bruno@clisp.org>
77297         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
77298         * lib/wait-process.c (wait_subprocess): Likewise.
77299         * lib/execute.h (execute): Add termsigp argument.
77300         * lib/execute.c (execute): Likewise.
77301         * lib/csharpcomp.c (compile_csharp_using_pnet,
77302         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
77303         * lib/csharpexec.c (execute_csharp_using_pnet,
77304         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
77305         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
77306         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
77307         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
77308         is_jikes_present): Update.
77309         * lib/javaexec.c (execute_java_class): Update.
77310         * lib/javaversion.c (execute_and_read_line): Update.
77311         * NEWS: Document the changes.
77312         Reported by Eric Blake.
77314 2008-06-10  Eric Blake  <ebb9@byu.net>
77316         Add missing include.
77317         * tests/test-strstr.c (includes): Add <signal.h>.
77318         * tests/test-strcasestr.c (includes): Likewise.
77319         * tests/test-memmem.c (includes): Likewise.
77321 2008-06-10  Bruno Haible  <bruno@clisp.org>
77323         * lib/wait-process.c (wait_subprocess): Add an assertion.
77325 2008-06-10  Bruno Haible  <bruno@clisp.org>
77327         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
77329 2008-06-10  Bruno Haible  <bruno@clisp.org>
77331         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
77332         using alarm().
77333         * tests/test-strcasestr.c (main): Likewise.
77334         * tests/test-strstr.c (main): Likewise.
77336 2008-06-09  Bruno Haible  <bruno@clisp.org>
77338         Work around the Solaris 10 ACE ACLs ABI change.
77339         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
77340         declare if ACL_NO_TRIVIAL is present.
77341         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
77342         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
77343         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
77344         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
77345         define if ACL_NO_TRIVIAL is present.
77346         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
77347         and use the current ABI.
77348         (file_has_acl): Use same #if condition as elsewhere.
77349         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
77350         in use, and use the current ABI.
77351         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
77352         Reported by Jim Meyering.
77354 2008-06-09  Eric Blake  <ebb9@byu.net>
77356         Work around environments that (stupidly) ignore SIGALRM.
77357         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
77358         before using alarm().
77359         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77360         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
77361         Reported by Ian Beckwith <ianb@erislabs.net>.
77363         Produce autobuild blurb earlier in log.
77364         * modules/autobuild (configure.ac-early): Move AB_INIT here.
77366 2008-06-09  Jim Meyering  <meyering@redhat.com>
77367         and Ondřej Vašík  <ovasik@redhat.com>
77369         utimens.c: correct kernel bug work-around
77370         Ondřej Vašík found that the invalid return value of 280 indicates
77371         failure, not success, and the kernel bug we're trying to work
77372         around affects not just the utimensat call, but also the fallback
77373         futimens call.
77374         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
77375         not success.
77376         [HAVE_FUTIMENS]: Use the same work-around, here.
77378 2008-06-09  Jim Meyering  <meyering@redhat.com>
77380         add more guards around definition of ACE_-related code
77381         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
77382         ALLOW and ACE_OWNER are also defined.
77384 2008-06-08  Bruno Haible  <bruno@clisp.org>
77386         * lib/acl-internal.h: Add me as co-author.
77387         * lib/file-has-acl.c: Likewise.
77388         * lib/set-mode-acl.c: Likewise.
77389         * lib/copy-acl.c: Likewise.
77391 2008-06-08  Bruno Haible  <bruno@clisp.org>
77393         Add support for AIX ACLs.
77394         * lib/acl-internal.h (acl_nontrivial): New declaration.
77395         * lib/file-has-acl.c (acl_nontrivial): New function.
77396         (file_has_acl): Add implementation using AIX 4 ACL API.
77397         * lib/set-mode-acl.c (qset_acl): Likewise.
77398         * lib/copy-acl.c (qcopy_acl): Likewise.
77400 2008-06-08  Bruno Haible  <bruno@clisp.org>
77402         Add support for HP-UX ACLs.
77403         * lib/acl-internal.h (acl_nontrivial): New declaration.
77404         * lib/file-has-acl.c (acl_nontrivial): New function.
77405         (file_has_acl): Add implementation using HP-UX 11 ACL API.
77406         * lib/set-mode-acl.c (qset_acl): Likewise.
77407         * lib/copy-acl.c (qcopy_acl): Likewise.
77409 2008-06-08  Bruno Haible  <bruno@clisp.org>
77411         Add support for Cygwin ACLs.
77412         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
77413         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
77414         the chmod_or_fchmod call.
77415         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
77417 2008-06-08  Bruno Haible  <bruno@clisp.org>
77419         Fix bug with setuid modes in Solaris 10+ code.
77420         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
77421         succeeded, when the mode contains some special bits.
77423 2008-06-08  Bruno Haible  <bruno@clisp.org>
77425         Add support for Solaris 7..10 ACLs.
77426         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
77427         declarations.
77428         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
77429         functions.
77430         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
77431         * lib/set-mode-acl.c (qset_acl): Likewise.
77432         * lib/copy-acl.c (qcopy_acl): Likewise.
77434 2008-06-08  Bruno Haible  <bruno@clisp.org>
77436         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
77437         declaration.
77438         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
77439         (acl_access_nontrivial): Remove MacOS X case.
77440         (file_has_acl): Use acl_extended_nontrivial.
77441         * lib/copy-acl.c (qcopy_acl): Likewise.
77443 2008-06-08  Bruno Haible  <bruno@clisp.org>
77445         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
77447 2008-06-08  Jim Meyering  <meyering@redhat.com>
77449         * modules/acl (Maintainer): Add Bruno Haible.
77451 2008-06-07  Bruno Haible  <bruno@clisp.org>
77453         Improve support for Tru64 ACLs.
77454         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
77455         ACL on OSF/1.
77457 2008-06-07  Bruno Haible  <bruno@clisp.org>
77459         Add support for MacOS X ACLs.
77460         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
77461         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
77462         * lib/set-mode-acl.c (qset_acl): Likewise.
77463         * lib/copy-acl.c (qcopy_acl): Likewise.
77465 2008-06-07  Bruno Haible  <bruno@clisp.org>
77467         Fix memory leak introduced on 2008-05-22.
77468         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
77469         use.
77471 2008-06-07  Bruno Haible  <bruno@clisp.org>
77473         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
77474         to construct an empty ACL.
77476 2008-06-07  Bruno Haible  <bruno@clisp.org>
77478         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
77479         precisely.
77480         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
77482 2008-06-07  Bruno Haible  <bruno@clisp.org>
77484         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
77485         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
77487 2008-06-07  Bruno Haible  <bruno@clisp.org>
77489         * doc/posix-functions/_setjmp.texi: Explain the use of this function
77490         regardless of POSIX.
77491         * doc/posix-functions/_longjmp.texi: Likewise.
77492         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
77493         SystemV platform in this case.
77495 2008-06-06  Eric Blake  <ebb9@byu.net>
77497         Document abort() bugs.
77498         * doc/posix-functions/abort.texi (abort): Mention anomalies.
77500         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
77501         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
77502         sigsetjmp.
77503         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
77504         siglongjmp, but only as a macro.
77505         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
77506         is obsolete.
77507         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
77509         Tweak documentation to cover cygwin argz bugs.
77510         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
77511         argz bug fix; no code change needed since no cygwin releases
77512         occurred between the last fix and the bug being tested.
77513         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
77514         module and recently fixed cygwin bugs.
77515         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
77516         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
77517         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
77518         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
77519         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
77520         Likewise.
77521         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
77522         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
77523         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
77524         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
77525         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
77526         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
77527         Likewise.
77529         Avoid gcc warning on cygwin.
77530         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
77531         !ACL_NO_TRIVIAL]: Avoid unused variable.
77533 2008-06-05  Eric Blake  <ebb9@byu.net>
77535         Be tolerant of UNKNOWN version in gnulib-tool test dir.
77536         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
77537         git-version-gen fails to come up with a version.
77538         Reported by Simon Josefsson.
77540 2008-06-05  Jim Meyering  <meyering@redhat.com>
77541             Paul Eggert  <eggert@cs.ucla.edu>
77543         utimens.c: work around a probable Linux kernel bug
77544         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
77545         appears to be a kernel bug that causes utimensat to return 280
77546         instead of 0, indicating success.
77548 2008-06-04  Bruno Haible  <bruno@clisp.org>
77550         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
77551         2008-06-01 commit.
77553 2008-06-04  Bruno Haible  <bruno@clisp.org>
77555         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
77556         * lib/file-has-acl.c (acl_access_nontrivial): New function.
77557         (file_has_acl): Use it. Save errno afterwards.
77558         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
77560 2008-06-03  Bruno Haible  <bruno@clisp.org>
77562         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
77563         draft code. Simplify #ifs.
77564         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
77565         Put Solaris code after POSIX-draft code. Fix comments regarding
77566         Solaris 10, HP-UX. Mention Cygwin.
77567         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
77569 2008-06-03  Eric Blake  <ebb9@byu.net>
77571         Provide fallback for older kernels.
77572         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
77573         Provide runtime fallback if kernel lacks support.
77574         Reported by Mike Frysinger.
77576 2008-06-02  Bruno Haible  <bruno@clisp.org>
77578         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
77579         it exists.
77581 2008-06-02  Bruno Haible  <bruno@clisp.org>
77583         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
77584         * lib/copy-acl.c (qcopy_acl): Update comment.
77586 2008-06-02  Bruno Haible  <bruno@clisp.org>
77588         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
77589         like ACL APIs.
77591 2008-06-02  Bruno Haible  <bruno@clisp.org>
77593         * tests/test-file-has-acl.sh: Use different code for Cygwin.
77594         * tests/test-set-mode-acl.sh: Likewise.
77595         * tests/test-copy-acl.sh: Likewise.
77596         * tests/test-copy-file.sh: Likewise.
77598 2008-06-02  Bruno Haible  <bruno@clisp.org>
77600         * tests/test-file-has-acl.sh: Remove unused code.
77602 2008-06-01  Bruno Haible  <bruno@clisp.org>
77604         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
77605         (copy_acl): Just a wrapper around qcopy_acl that emits the error
77606         messages.
77607         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
77609 2008-06-01  Bruno Haible  <bruno@clisp.org>
77611         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
77612         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
77613         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
77614         APIs.
77615         * modules/acl-tests (configure.ac): Remove tests now contained in
77616         m4/acl.m4.
77618 2008-06-02  Jim Meyering  <meyering@redhat.com>
77620         announce-gen: use a better key-server host name
77621         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
77622         it may be more consistently reliable.  Suggested by Werner Koch
77623         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
77625 2008-06-01  Bruno Haible  <bruno@clisp.org>
77627         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
77628         Reported by Voroskoi Andras <voroskoi@gmail.com>.
77630 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
77632         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
77634 2008-06-01  Bruno Haible  <bruno@clisp.org>
77636         New ACL tests.
77637         * tests/test-file-has-acl.sh: New file.
77638         * tests/test-file-has-acl.c: New file.
77639         * tests/test-set-mode-acl.sh: New file.
77640         * tests/test-set-mode-acl.c: New file.
77641         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
77642         * tests/test-copy-acl.c: New file.
77643         * modules/acl-tests: New file, based on modules/copy-file-tests.
77644         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
77645         (Depends-on): Add acl-tests.
77646         (configure.ac): Remove checks.
77647         (Makefile.am): Don't create test-sameacls program here any more.
77649 2008-06-01  Bruno Haible  <bruno@clisp.org>
77651         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
77652         * tests/test-sameacls.c: Include progname.h.
77653         (main): Invoke set_program_name. Portability fixes for MacOS X,
77654         Solaris, HP-UX.
77656 2008-06-01  Bruno Haible  <bruno@clisp.org>
77658         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
77659         function.
77660         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
77662 2008-06-01  Bruno Haible  <bruno@clisp.org>
77664         * modules/rpmatch (Depends-on): Add strdup.
77666 2008-06-01  Bruno Haible  <bruno@clisp.org>
77668         * lib/pipe.c: Include unistd-safer.h.
77669         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
77670         * modules/pipe (Depends-on): Add unistd-safer.
77672 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77674         * modules/autobuild (configure.ac): Call AB_INIT.
77676 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77678         * tests/test-getaddrinfo.c: Don't print debug messages by default.
77679         Suggested by Bruno Haible <bruno@clisp.org>.
77681 2008-05-30  Simon Josefsson  <simon@josefsson.org>
77683         * tests/test-base64.c: Cast size_t to unsigned long when invoking
77684         printf.  Use %lu instead of %d.  Reported by Bruno Haible
77685         <bruno@clisp.org>.
77687 2008-05-29  Eric Blake  <ebb9@byu.net>
77689         Prefer new POSIX 200x interfaces over futimesat.
77690         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
77691         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
77692         when available.
77693         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
77695 2008-05-28  Bruno Haible  <bruno@clisp.org>
77697         * modules/stpcpy (License): Change to LGPLv2+.
77698         Requested by David Lutterkort <dlutter@redhat.com>.
77700 2008-05-27  Bruno Haible  <bruno@clisp.org>
77702         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
77703         current mingw.
77704         Reported by Jose E. Marchesi <jemarch@gnu.org>.
77706 2008-05-27  Bruno Haible  <bruno@clisp.org>
77708         * modules/iconv_open (Link): New section, from module 'iconv'.
77709         * modules/striconv (Link): Likewise.
77710         * modules/striconveh (Link): Likewise.
77711         * modules/xstriconv (Link): Likewise.
77712         * modules/unicodeio (Link): Likewise.
77713         * modules/propername (Link): Likewise.
77714         Reported by Jim Meyering.
77716 2008-05-26  Jim Meyering  <meyering@redhat.com>
77718         sha256: do not artificially restrict buffer length to be < 2^32
77719         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
77720         uint32_t to size_t.
77721         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
77722         to match.
77724         avoid unaligned access errors, e.g., on sparc
77725         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
77726         direct access through a possibly-unaligned uint64* pointer.
77727         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
77728         direct access through a possibly-unaligned uint32* pointer.
77729         Prompted by this patch from Tom "spot" Callaway:
77730         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
77732         sha512.c: fix typo in comment
77733         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
77735 2008-05-25  Bruno Haible  <bruno@clisp.org>
77737         * lib/set-mode-acl.c: Renamed from lib/acl.c.
77738         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
77739         (Makefile.am): Update lib_SOURCES.
77741 2008-05-25  Bruno Haible  <bruno@clisp.org>
77743         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
77745 2008-05-25  Jim Meyering  <meyering@redhat.com>
77747         useless-if-before-free: freed expr may have white-space differences
77748         * build-aux/useless-if-before-free: Recognize cases in which the
77749         freed expression differs from the tested one in embedded white
77750         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
77751         $1 was used, so we can't make any regexp shy.  Improved tests now
77752         detect this.
77754         useless-if-before-free: accept white space in the expression.
77755         * build-aux/useless-if-before-free: For now, any white space
77756         in the expression must be identical in the free argument.
77758         useless-if-before-free: efficiency tweak
77759         * build-aux/useless-if-before-free: Make the expression-matching
77760         regexp "shy".
77761         Make the *outer* regexp shy, not the expr-matching one.
77763         update code-in-comment to accept cast of free arg
77764         * build-aux/useless-if-before-free: Update regexp.
77766 2008-05-25  Bruno Haible  <bruno@clisp.org>
77768         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
77769         * modules/copy-file-tests (Files, Makefile.am): Update.
77770         * tests/test-copy-file.c (func_test_copy): Update.
77772 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
77774         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
77776 2008-05-23  Bruno Haible  <bruno@clisp.org>
77778         Improve support for ACLs on OSF/1.
77779         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
77780         Remove fallback for unknown flavors of ACLs.
77782 2008-05-22  Bruno Haible  <bruno@clisp.org>
77784         Add support for ACLs on OSF/1.
77785         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
77786         replacements.
77787         (acl_free_text): New macro fallback.
77788         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
77789         acl_free.
77790         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
77791         acl_free_text function. Require AC_C_INLINE.
77793 2008-05-22  Bruno Haible  <bruno@clisp.org>
77795         Make copy_acl work on MacOS X 10.5.
77796         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
77797         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
77798         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
77799         If MODE_INSIDE_ACL, don't assume that every system has the same text
77800         representation for ACLs as FreeBSD.
77801         * lib/copy-acl.c (copy_acl): Add support for platforms with
77802         !MODE_INSIDE_ACL.
77803         * lib/file-has-acl.c (file_has_acl): Likewise.
77804         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
77805         FreeBSD, MacOS X, or IRIX, respectively.
77807 2008-05-22  Bruno Haible  <bruno@clisp.org>
77809         * lib/acl.h: Don't include <sys/acl.h>.
77810         (GETACLCNT): Move fallback to lib/acl-internal.h.
77811         * lib/acl-internal.h: Include <sys/acl.h> here.
77812         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
77814 2008-05-22  Bruno Haible  <bruno@clisp.org>
77816         Split off copy_acl function to separate file.
77817         * lib/copy-acl.c: New file, extracted from lib/acl.c.
77818         * lib/acl.c (copy_acl): Moved function to separate file.
77819         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
77820         * modules/acl (Files): Add lib/copy-acl.c.
77821         (Makefiles.am): Augment lib_SOURCES.
77823 2008-05-22  Bruno Haible  <bruno@clisp.org>
77825         * modules/copy-file-tests: New file.
77826         * tests/test-copy-file.sh: New file.
77827         * tests/test-copy-file.c: New file.
77828         * tests/test-copy-file-sameacls.c: New file.
77830 2008-05-22  Eric Blake  <ebb9@byu.net>
77832         Avoid gcc warning.
77833         * tests/test-memcmp.c (main): Pass NULL indirectly.
77835 2008-05-21  Bruno Haible  <bruno@clisp.org>
77837         Add reference doc about ACLs.
77838         * doc/acl-resources.txt: New file.
77839         * doc/acl-cygwin.txt: New file.
77841 2008-05-21  Bruno Haible  <bruno@clisp.org>
77843         Avoid one more warning from gcc.
77844         * lib/vasnprintf.c (IF_LINT): Update comments.
77845         (VASNPRINTF): Use it also for the 'prefix' array initializer.
77847 2008-05-21  Jim Meyering  <meyering@redhat.com>
77849         avoid a warning from gcc
77850         * lib/vasnprintf.c (IF_LINT): Define.
77851         (scale10_round_decimal_long_double):
77852         Use it to avoid a "may be used uninitialized" warning.
77853         (scale10_round_decimal_double): Likewise.
77855 2008-05-21  Simon Josefsson  <simon@josefsson.org>
77857         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
77858         declared.
77860 2008-05-20  Bruno Haible  <bruno@clisp.org>
77862         * tests/test-memcmp.c (main): Test also the sign of the result. Test
77863         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
77865 2008-05-20  Simon Josefsson  <simon@josefsson.org>
77867         * modules/memcmp-tests: New file.
77868         * tests/test-memcmp.c: New file.
77870 2008-05-19  Bruno Haible  <bruno@clisp.org>
77872         * modules/propername (Notice, configure.ac): Put quoted "..." into
77873         --keyword option.
77874         * lib/propername.h: Update comments accordingly.
77875         Reported by Eric Blake.
77877 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
77879         * modules/getpass-gnu (Depends-on): Add fseeko.
77881 2008-05-19  Simon Josefsson  <simon@josefsson.org>
77883         * modules/base64-tests: New file.
77885 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
77887         * lib/base64.c (base64_decode_ctx): If a decode context structure
77888         was passed in use it to ignore newlines.  If a context structure
77889         was _not_ passed in, continue to treat newlines as garbage (this
77890         is the historical behavior).  Formerly base64_decode.
77891         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
77892         takes a decode context structure.
77893         * lib/base64.h (base64_decode): Macro for four-argument calls.
77894         (base64_decode_alloc): Likewise.
77895         * lib/base64.c (base64_decode_ctx): If a decode context structure
77896         was passed in use it to ignore newlines.  If a context structure
77897         was _not_ passed in, continue to treat newlines as garbage (this
77898         is the historical behavior).  Formerly base64_decode.
77899         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
77900         takes a decode context structure.
77901         * lib/base64.h (base64_decode): Macro for four-argument calls.
77902         (base64_decode_alloc): Likewise.
77904 2008-05-19  Jim Meyering  <meyering@redhat.com>
77906         avoid a warning from gcc
77907         * lib/trim.c (IF_LINT): Define.
77908         (trim2): Use it to avoid a "may be used uninitialized" warning.
77910         Fix doc typo.
77911         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
77913 2008-05-19  Bruno Haible  <bruno@clisp.org>
77915         * doc/glibc-functions/getpass.texi: Document limits of other
77916         implementations.
77918 2008-05-19  Simon Josefsson  <simon@josefsson.org>
77919             Bruno Haible <bruno@clisp.org>
77921         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
77923 2008-05-18  Bruno Haible  <bruno@clisp.org>
77925         * modules/propername: New file, from GNU gettext.
77926         * lib/propername.h: New file, from GNU gettext.
77927         * lib/propername.c: New file, from GNU gettext.
77928         * MODULES.html.sh (Internationalization functions): Add propername.
77930 2008-05-16  Jim Meyering  <meyering@redhat.com>
77931             Bruno Haible  <bruno@clisp.org>
77933         Avoid some warnings from "gcc -Wshadow".
77934         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
77936 2008-05-15  Eric Blake  <ebb9@byu.net>
77938         Extend previous patch to cygwin 1.7.0.
77939         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
77940         fast implementation in cygwin >= 1.7.0.
77941         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
77942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77944 2008-05-15  Bruno Haible  <bruno@clisp.org>
77946         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
77947         implementation in glibc >= 2.9.
77948         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
77949         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77951 2008-05-15  Bruno Haible  <bruno@clisp.org>
77953         * MODULES.html.sh (Internationalization functions): Remove linebreak.
77954         (Unicode string functions): Add unilbrk/*.
77955         Reported by Karl Berry.
77957 2008-05-15  Eric Blake  <ebb9@byu.net>
77959         Fix violation of <stdbool.h> replacement in regex.
77960         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
77961         * lib/regexec.c (re_search_internal): Likewise.
77962         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
77964 2008-05-15  Jim Meyering  <meyering@redhat.com>
77966         avoid distracting test output when git or cvs is not found
77967         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
77968         * tests/test-vc-list-files-git.sh: Likewise.
77970 2008-05-15  Eric Blake  <ebb9@byu.net>
77972         Glibc finally accepted the memmem speedup code, bugzilla #5514.
77973         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
77974         glibc version.
77975         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
77976         * doc/posix-functions/strstr.texi (strstr): Likewise.
77977         * lib/str-two-way.h (MAX): Sychronize with glibc.
77979 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
77981         * lib/regcomp.c (optimize_utf8): Add a note on why we test
77982         opr.ctx_type.
77983         (calc_first): Initialize constraint field.
77984         (duplicate_node_closure): Use it instead of special casing ANCHORS.
77985         Fix grammar.
77986         (duplicate_node): Merge constraint field for all node types.
77987         (calc_eclosure_iter): Look at constraint field for all node types.
77988         * lib/regex_internal.c (create_cd_newstate): Don't look at
77989         opr.ctx_type.
77991 2008-05-14  Bruno Haible  <bruno@clisp.org>
77993         Help GCC to do better code generation.
77994         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
77995         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
77996         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
77997         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
77998         Declare with attribute 'malloc' if supported.
78000 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
78002         use "echo STR|wc -c" rather than unportable "expr length STR"
78003         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
78004         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
78006 2008-05-14  Jim Meyering  <meyering@redhat.com>
78008         use dd ibs=$n count=1 ... rather than less-portable head -c$n
78009         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
78010         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
78011         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
78012         via Collin Lasse.
78014 2008-05-14  Eric Blake  <ebb9@byu.net>
78016         Avoid quadratic growth in gl_LIBSOURCES.
78017         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
78018         Suggested by Bruno Haible.
78020         Test xmemdup0.
78021         * modules/xmemdup0-tests: New file.
78022         * tests/test-xmemdup0.c: Likewise.
78024 2008-05-13  Eric Blake  <ebb9@byu.net>
78026         Split xmemdup0 into its own module.
78027         * modules/xmemdup0: New file.
78028         * lib/xmemdup0.h: Likewise.
78029         * lib/xmemdup0.c: Likewise.
78030         * MODULES.html.sh (Memory management functions): Add xmemdup0.
78031         * lib/xalloc.h (xmemdup0): Remove.
78032         * lib/xmalloc.c (xmemdup0): Likewise.
78034 2008-05-13  Eric Blake  <ebb9@byu.net>
78035             Bruno Haible  <bruno@clisp.org>
78037         Reduce number of forks required during autoconf.
78038         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
78039         and gl_LIBSOURCES_DIR.
78040         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
78041         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
78042         m4_syscmd per file.
78043         <m4_foreach_w>: Move...
78044         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
78046 2008-05-13  Eric Blake  <ebb9@byu.net>
78048         * gnulib-tool: Fix various comment typos.
78050 2008-05-12  Bruno Haible  <bruno@clisp.org>
78052         Tailor the linebreaking algorithm.
78053         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
78055 2008-05-12  Bruno Haible  <bruno@clisp.org>
78057         Update to Unicode 5.0.0.
78058         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78059         LBP_JV, LBP_JT. Redistribute values.
78060         (unilbrk_table): Change size.
78061         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
78062         Unicode TR#14 rev. 22.
78063         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78064         LBP_JV, LBP_JT. Redistribute values.
78065         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
78066         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
78067         Update.
78068         * lib/unilbrk/lbrkprop1.h: Regenerated.
78069         * lib/unilbrk/lbrkprop2.h: Regenerated.
78070         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
78071         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
78072         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
78073         Likewise.
78074         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
78075         Likewise.
78076         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
78077         result.
78078         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
78079         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
78080         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
78081         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
78082         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
78083         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
78085 2008-05-11  Bruno Haible  <bruno@clisp.org>
78087         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
78089 2008-05-11  Bruno Haible  <bruno@clisp.org>
78091         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
78092         * modules/unilbrk/gen-lbrk: New file.
78094 2008-05-11  Bruno Haible  <bruno@clisp.org>
78096         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
78097         * m4/sha512.m4 (gl_SHA512): Likewise.
78099 2008-05-11  Jim Meyering  <meyering@redhat.com>
78101         New modules: crypto/sha256, crypto/sha512 (from coreutils)
78102         * modules/crypto/sha256: New file.
78103         * modules/crypto/sha512: Likewise.
78104         * lib/sha256.c: Likewise.
78105         * lib/sha256.h: Likewise.
78106         * lib/sha512.c: Likewise.
78107         * lib/sha512.h: Likewise.
78108         * lib/u64.h: Likewise.
78109         * m4/sha256.m4: Likewise.
78110         * m4/sha512.m4: Likewise.
78111         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
78113 2008-05-10  Bruno Haible  <bruno@clisp.org>
78115         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
78116         (Input/Output <stdio.h>): Add xprintf.
78117         (Signal handling <signal.h>): Add strsignal.
78118         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
78119         (Core language properties): Add func.
78120         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
78121         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
78122         strings.
78123         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
78124         (Input/output): New section.
78125         (File system functions): Add openat-die, stat-macros.
78126         (Networking functions): Add sockets.
78127         (Unicode string functions): Add unictype/*.
78128         (Support for building libraries and executables): Add gperf.
78129         (Support for building documentation): Add agpl-3.0.
78130         (Misc): Add nocrash.
78132 2008-05-10  Bruno Haible  <bruno@clisp.org>
78134         * modules/unictype/gen-ctype: New file.
78136 2008-05-10  Jim Meyering  <meyering@redhat.com>
78138         Make chdir-safer.c more efficient on a system with no symlinks.
78139         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
78140         also if ELOOP is zero.  Suggested by Bruno Haible.
78142         Make chdir-safer.c slightly safer.
78143         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
78144         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
78146         Avoid compile failure on systems without ELOOP (like mingw).
78147         * lib/chdir-safer.c (ELOOP): Define if not already defined.
78148         Reported by Bruno Haible.
78150 2008-05-10  Bruno Haible  <bruno@clisp.org>
78152         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
78153         (is_utf8_encoding): Use a case-insensitive comparison.
78154         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
78155         streq.
78157 2008-05-10  Bruno Haible  <bruno@clisp.org>
78159         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
78160         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
78161         * lib/unilbrk/ulc-common.h (iconv_string_length,
78162         iconv_string_keeping_offsets): Remove declarations.
78163         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
78164         Don't include <iconv.h>, streq.h, xsize.h.
78165         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
78166         conversion.
78167         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
78168         <iconv.h>, streq.h, xsize.h.
78169         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
78170         conversion.
78171         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
78172         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
78173         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
78174         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
78176 2008-05-10  Bruno Haible  <bruno@clisp.org>
78178         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
78179         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
78181         * modules/unilbrk/u32-width-linebreaks-tests: New file.
78182         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
78184         * modules/unilbrk/u16-width-linebreaks-tests: New file.
78185         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
78187         * modules/unilbrk/u8-width-linebreaks-tests: New file.
78188         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
78190         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
78191         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
78193         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
78194         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
78196         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
78197         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
78199         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
78200         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
78202 2008-05-10  Bruno Haible  <bruno@clisp.org>
78204         Split up 'linebreak' module.
78205         * lib/unilbrk.h: New file, based on lib/linebreak.h.
78206         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
78207         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
78208         modifications.
78209         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
78210         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
78211         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
78212         lib/linebreak.c.
78213         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
78214         lib/linebreak.c.
78215         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
78216         lib/linebreak.c.
78217         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
78218         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
78219         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
78220         lib/linebreak.c.
78221         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
78222         lib/linebreak.c.
78223         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
78224         lib/linebreak.c.
78225         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
78226         lib/linebreak.c.
78227         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
78228         lib/linebreak.c.
78229         * modules/unilbrk/base: New file.
78230         * modules/unilbrk/tables: New file.
78231         * modules/unilbrk/u8-possible-linebreaks: New file.
78232         * modules/unilbrk/u16-possible-linebreaks: New file.
78233         * modules/unilbrk/u32-possible-linebreaks: New file.
78234         * modules/unilbrk/ulc-common: New file.
78235         * modules/unilbrk/ulc-possible-linebreaks: New file.
78236         * modules/unilbrk/u8-width-linebreaks: New file.
78237         * modules/unilbrk/u16-width-linebreaks: New file.
78238         * modules/unilbrk/u32-width-linebreaks: New file.
78239         * modules/unilbrk/ulc-width-linebreaks: New file.
78240         * lib/linebreak.h: Remove file.
78241         * lib/linebreak.c: Remove file.
78242         * m4/linebreak.m4: Remove file.
78243         * modules/linebreak: Remove file.
78244         * NEWS: Mention the changes.
78246 2008-05-09  Eric Blake  <ebb9@byu.net>
78248         Add xmemdup0.
78249         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
78250         implementation.
78251         * lib/xmalloc.c (xmemdup0): New C implementation.
78253 2008-05-08  Bruno Haible  <bruno@clisp.org>
78255         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
78257 2008-05-07  Eric Blake  <ebb9@byu.net>
78259         Support cross-compilation of <wctype.h>.
78260         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
78261         AC_CACHE_CHECK.
78263 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
78265         * build-aux/vc-list-files: Add support for bzr.
78267 2008-05-03  Jim Meyering  <meyering@redhat.com>
78269         avoid failed assertion with tight malloc
78270         * tests/test-getndelim2.c: Correct an off-by-one assertion.
78272 2008-05-03  Simon Josefsson  <simon@josefsson.org>
78274         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
78275         are needed from arpa/inet.h.
78276         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
78277         Reported by Bruno Haible.
78279 2008-05-02  Jim Meyering  <meyering@redhat.com>
78281         avoid compilation error on FreeBSD 6
78282         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
78284 2008-05-01  Jim Meyering  <meyering@redhat.com>
78286         useless-if-before-free: correct --help's exit status description
78287         * build-aux/useless-if-before-free (usage): Like grep, exit 0
78288         for one or more matches, etc.  Reported by Bruno Haible.
78290         vc-list-files: make the stand-alone gnulib test work
78291         * modules/vc-list-files-tests (configure.ac):
78292         Define and AC_SUBST abs_aux_dir.
78293         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
78294         $(abs_top_srcdir) to each script and having each of them
78295         duplicate the work of setting PATH, set PATH here, using
78296         the new variable, abs_aux_dir instead.
78297         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
78298         * tests/test-vc-list-files-git.sh: Likewise.
78299         Reported by Bruno Haible.
78301 2008-05-01  Bruno Haible  <bruno@clisp.org>
78303         * lib/getndelim2.c (getndelim2): Fix newsize computation during
78304         reallocation. Rename 'done' to 'found_delimiter'.
78306 2008-05-01  Jim Meyering  <meyering@redhat.com>
78308         vc-list-files: accommodate /bin/sh like the one from Solaris 10
78309         * build-aux/vc-list-files: Use `...`, not $(...).
78311 2008-04-30  Jim Meyering  <meyering@redhat.com>
78313         add tests for vc-list-files
78314         * modules/vc-list-files-tests: New module.
78315         * tests/test-vc-list-files-cvs.sh: New file.
78316         * tests/test-vc-list-files-git.sh: New file.
78318         avoid a warning from gcc
78319         * lib/getndelim2.c (IF_LINT): Define.
78320         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
78322         vc-list-files: work properly with build-aux/cvsu, too
78323         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
78324         to all cvs-based clauses.
78326         vc-list-files: work properly in the CVS+awk case, too
78327         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
78329         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
78330         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
78331         take more than one file argument, so .  Add quotes, just in case $dir
78332         ever contains a shell meta-character.  Prompted by Soren Hansen in
78333         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
78335 2008-04-29  Eric Blake  <ebb9@byu.net>
78337         Optimize getndelim2 to use block operations when possible.
78338         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
78339         freadseek, and memchr2.
78340         * lib/getndelim2.c (getndelim2): Use them for block reads.
78342 2008-04-29  Bruno Haible  <bruno@clisp.org>
78344         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
78345         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78346         * modules/inet_ntop (Depends-on): Add extensions.
78347         * modules/inet_pton (Depends-on): Likewise.
78348         Reported by Simon Josefsson.
78350 2008-04-29  Jim Meyering  <meyering@redhat.com>
78352         When the is more than one match in a block, match all of them.
78353         * build-aux/useless-if-before-free: Iterate through each block
78354         until there are no more matches.
78356         Fix broken useless-if-before-free script.
78357         * build-aux/useless-if-before-free: Fix typo: missing "?" after
78358         the expression to match cast of argument to free-like function.
78360 2008-04-29  Eric Blake  <ebb9@byu.net>
78362         Use new header.
78363         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
78365 2008-04-29  Jim Meyering  <meyering@redhat.com>
78367         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
78368         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
78369         by gnulib to exist and to declare e.g., inet_ntop.
78370         Don't include "inet_ntop.h", now removed.
78372         * m4/arpa_inet_h.m4: Remove trailing blanks.
78374 2008-04-29  Eric Blake  <ebb9@byu.net>
78376         Silence valgrind on safe reads beyond potential array bounds.
78377         * lib/rawmemchr.valgrind: New file.
78378         * lib/strchrnul.valgrind: Likewise.
78379         * modules/rawmemchr (Files): Distribute new file.
78380         * modules/strchrnul (Files): Likewise.
78381         Suggested by Bruno Haible.
78383 2008-04-29  Bruno Haible  <bruno@clisp.org>
78385         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
78386         (inet_ntop, inet_pton): Change portability warning's wording.
78387         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
78388         Invoke gl_CHECK_NEXT_HEADERS.
78389         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
78390         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
78391         set ARPA_INET_H.
78392         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78393         * modules/arpa_inet (Description): No longer only for systems that
78394         lack it.
78395         (Depends-on): Add include_next.
78396         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
78397         HAVE_ARPA_INET_H.
78399 2008-04-29  Jim Meyering  <meyering@redhat.com>
78401         * modules/mkdir (License): Re-license as LGPLv2+.
78403 2008-04-29  Bruno Haible  <bruno@clisp.org>
78405         * modules/rawmemchr (Maintainer): Set to Eric.
78406         * modules/strchrnul (Maintainer): Likewise.
78408 2008-04-29  Simon Josefsson  <simon@josefsson.org>
78410         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
78411         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
78413         * modules/arpa_inet (arpa/inet.h): Use them.
78415 2008-04-28  Eric Blake  <ebb9@byu.net>
78417         Test getndelim2.
78418         * modules/getndelim2-tests: New file.
78419         * tests/test-getndelim2.c: Likewise.
78420         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
78421         stream.
78422         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
78424         * MODULES.html.sh: Document new module.
78426 2008-04-20  Bruno Haible  <bruno@clisp.org>
78428         * lib/c-stack.c (die): Use raise.
78429         * modules/c-stack (Depends-on): Add raise.
78431 2008-04-28  Bruno Haible  <bruno@clisp.org>
78433         Expect rpmatch to be declared.
78434         * lib/yesno.c (rpmatch): Remove declaration.
78436         Declare rpmatch.
78437         * lib/stdlib.in.h (rpmatch): New declaration.
78438         * lib/rpmatch.c: Include <stdlib.h> first.
78439         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
78440         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
78441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
78442         HAVE_RPMATCH.
78443         * modules/rpmatch (Depends-on): Add stdlib, extensions.
78444         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
78445         (Include): Set to <stdlib.h>.
78446         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
78447         HAVE_RPMATCH.
78448         * NEWS: Document the change.
78450 2008-04-28  Bruno Haible  <bruno@clisp.org>
78452         Change rpmatch to use nl_langinfo when appropriate.
78453         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
78454         (N_): New macro.
78455         (localized_pattern): New function/macro.
78456         (try): Remove match, nomatch arguments. Copy the pattern into safe
78457         memory before caching it.
78458         (rpmatch): Use localized_pattern. Add translator comments.
78459         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
78460         Suggested by Eric Blake.
78461         * modules/rpmatch (Depends-on): Add stdbool.
78463 2008-04-28  Eric Blake  <ebb9@byu.net>
78465         Add rawmemchr module, matching glibc.
78466         * modules/string (Makefile.am): New indicator.
78467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
78468         * lib/string.in.h (rawmemchr): Declare when appropriate.
78469         * modules/rawmemchr: New file.
78470         * m4/rawmemchr.m4: Likewise.
78471         * lib/rawmemchr.c: Likewise.
78472         * modules/rawmemchr-tests: Likewise.
78473         * tests/test-rawmemchr.c: Likewise.
78474         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
78475         module.
78476         * modules/strchrnul (Depends-on): Add rawmemchr.
78477         * lib/strchrnul.c (strchrnul): Optimize a corner case.
78479         Whitespace cleanup.
78480         * tests/test-strchrnul.c: Reindent.
78481         * lib/strchrnul.c: Likewise.
78483         Optimize and test strchrnul.
78484         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
78485         * modules/strchrnul-tests: New file.
78486         * tests/test-strchrnul.c: Likewise.
78488         Remove intprops dependency.
78489         * modules/memchr (Depends-on): Remove intprops.
78490         * modules/memrchr (Depends-on): Likewise.
78491         * modules/memchr2 (Depends-on): Likewise.
78492         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
78493         * lib/memrchr.c (__memrchr): Likewise.
78494         * lib/memrchr2.c (memchr2): Likewise.
78495         Reported by Simon Josefsson.
78497 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78499         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
78500         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78502 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78504         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
78506         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
78508         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
78510         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
78511         declarations.
78512         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
78514         * m4/inet_pton.m4: Don't check for header files.
78516         * m4/inet_ntop.m4: Don't check for header files.
78518 2008-04-28  Simon Josefsson  <simon@josefsson.org>
78520         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
78521         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
78522         trigger for cygwin).
78523         Reported by Bruno Haible  <bruno@clisp.org>.
78525 2008-04-28  Bruno Haible  <bruno@clisp.org>
78527         * doc/posix-functions/strdup.texi: Mention mingw problem.
78529 2008-04-27  Bruno Haible  <bruno@clisp.org>
78531         * modules/stat-time-tests (Depends-on): Add sleep.
78532         * tests/test-stat-time.c (force_unlink): New function.
78533         (cleanup): Use it.
78534         (test_mtime): Remove the ctime related tests.
78535         (test_ctime): New function, containing the ctime related tests.
78536         (main): Call test_ctime, except on native Windows platforms.
78538 2008-04-27  Bruno Haible  <bruno@clisp.org>
78540         * lib/rpmatch.c (rpmatch): Add some comments.
78541         Reported by James Youngman <jay@gnu.org>.
78543 2008-04-27  Bruno Haible  <bruno@clisp.org>
78545         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
78546         quiet NaNs.
78548 2008-04-27  Bruno Haible  <bruno@clisp.org>
78550         Make test-yesno.sh work on mingw.
78551         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
78552         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
78553         (main): Set stdin to binary mode.
78554         * modules/yesno-tests (Depends-on): Add binary-io.
78556 2008-04-27  Bruno Haible  <bruno@clisp.org>
78558         Fix 'isfinite' on x86, x86_64, ia64 platforms.
78559         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
78560         argument that lie outside the IEEE 854 domain.
78561         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
78562         (gl_ISFINITE): Use it.
78563         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
78565 2008-04-27  Bruno Haible  <bruno@clisp.org>
78567         Allow local renaming in config.h.
78568         * lib/memrchr.c (memrchr): Don't undefine outside libc.
78570 2008-04-27  Bruno Haible  <bruno@clisp.org>
78572         * lib/memchr.c (__memchr): Change type of 'i'.
78573         * lib/memchr2.c (memchr2): Likewise.
78575 2008-04-26  Eric Blake  <ebb9@byu.net>
78576         and Bruno Haible  <bruno@clisp.org>
78578         Optimize and test memrchr.
78579         * modules/memrchr (Depends-on): Add intprops.
78580         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
78581         * modules/memrchr-tests: New file.
78582         * tests/test-memrchr.c: New file.
78584 2008-04-26  Bruno Haible  <bruno@clisp.org>
78586         Add tentative support for DragonFly BSD.
78587         * lib/stdio-impl.h: Add macros for DragonFly BSD.
78588         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
78589         fp.
78590         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
78591         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
78592         * lib/fpurge.c (fpurge): Likewise.
78593         * lib/freadable.c (freaadable): Likewise.
78594         * lib/freadahead.c (freadahead): Likewise.
78595         * lib/freading.c (freading): Likewise.
78596         * lib/freadptr.c (freadptr): Likewise.
78597         * lib/freadseek.c (freadptrinc): Likewise.
78598         * lib/fseeko.c (fseeko): Likewise.
78599         * lib/fseterr.c (fseterr): Likewise.
78600         * lib/fwritable.c (fwritable): Likewise.
78601         * lib/fwriting.c (fwriting): Likewise.
78603 2008-04-26  Bruno Haible  <bruno@clisp.org>
78605         * lib/stdio-impl.h: New file.
78606         * lib/fbufmode.c: Include stdio-impl.h.
78607         (fbufmode): Use fp_, remove redundant #defines.
78608         * lib/fflush.c: Include stdio-impl.h.
78609         (clear_ungetc_buffer): Remove redundant #defines.
78610         * lib/fpurge.c: Include stdio-impl.h.
78611         (fpurge): Remove redundant #defines.
78612         * lib/freadable.c: Include stdio-impl.h.
78613         (freadable): Remove redundant #defines.
78614         * lib/freadahead.c: Include stdio-impl.h.
78615         (freadahead): Remove redundant #defines.
78616         * lib/freading.c: Include stdio-impl.h.
78617         (freading): Remove redundant #defines.
78618         * lib/freadptr.c: Include stdio-impl.h.
78619         (freadptr): Remove redundant #defines.
78620         * lib/freadseek.c: Include stdio-impl.h.
78621         (freadptrinc): Remove redundant #defines.
78622         * lib/fseeko.c: Include stdio-impl.h.
78623         (rpl_fseeko): Remove redundant #defines.
78624         * lib/fseterr.c: Include stdio-impl.h.
78625         (fseterr): Remove redundant #defines.
78626         * lib/fwritable.c: Include stdio-impl.h.
78627         (fwritable: Remove redundant #defines.
78628         * lib/fwriting.c: Include stdio-impl.h.
78629         (fwriting): Remove redundant #defines.
78630         * modules/fbufmode (Files): Add lib/stdio-impl.h.
78631         * modules/fflush (Files): Likewise.
78632         * modules/fpurge (Files): Likewise.
78633         * modules/freadable (Files): Likewise.
78634         * modules/freadahead (Files): Likewise.
78635         * modules/freading (Files): Likewise.
78636         * modules/freadptr (Files): Likewise.
78637         * modules/freadseek (Files): Likewise.
78638         * modules/fseeko (Files): Likewise.
78639         * modules/fseterr (Files): Likewise.
78640         * modules/fwritable (Files): Likewise.
78641         * modules/fwriting (Files): Likewise.
78643 2008-04-26  Bruno Haible  <bruno@clisp.org>
78645         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
78646         restore_seek_optimization, update_fpos_cache): New functions, extracted
78647         from rpl_fflush.
78648         (rpl_fflush): Use them.
78649         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
78650         (gl_REPLACE_FFLUSH): Use it.
78652 2008-04-26  Bruno Haible  <bruno@clisp.org>
78654         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
78655         on Solaris.
78656         * tests/test-xstrtoimax.sh: Likewise.
78657         * tests/test-xstrtoumax.sh: Likewise.
78658         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78660 2008-04-26  Bruno Haible  <bruno@clisp.org>
78662         * modules/memchr-tests: New file.
78663         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
78665 2008-04-26  Eric Blake  <ebb9@byu.net>
78666             Bruno Haible  <bruno@clisp.org>
78668         * lib/memchr.c: Include intprops.h.
78669         (__memchr): Optimize parallel detection of matching bytes. Rename local
78670         variables. Add explanatory comments.
78672 2008-04-26  Bruno Haible  <bruno@clisp.org>
78674         Fix module 'memchr', broken since 2000-10-28.
78675         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
78677 2008-04-26  Bruno Haible  <bruno@clisp.org>
78679         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
78680         comments.
78682 2008-04-25  Eric Blake  <ebb9@byu.net>
78684         Use native fstatat on cygwin 1.7.0.
78685         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
78686         first.
78688 2008-04-23  Eric Blake  <ebb9@byu.net>
78690         Improve memchr2 performance.
78691         * lib/memchr2.c (memchr2): Further optimize parallel detection of
78692         NUL bytes.
78693         * modules/memchr2 (Depends-on): Use intprops.h.
78695 2008-04-23  Simon Josefsson  <simon@josefsson.org>
78697         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
78698         an inline function instead of a CPP macro.  Patch by Ben Pfaff
78699         <blp@cs.stanford.edu>.
78701 2008-04-23  Simon Josefsson  <simon@josefsson.org>
78703         * lib/arpa_inet.in.h: New file.
78705         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
78706         (Makefile.am): Sed in substitute header file.
78708         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
78709         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
78711         * modules/inet_ntop (configure.ac): Use
78712         gl_ARPA_INET_MODULE_INDICATOR.
78714         * modules/inet_pton (configure.ac): Use
78715         gl_ARPA_INET_MODULE_INDICATOR.
78717 2008-04-22  Jim Meyering  <meyering@redhat.com>
78719         * modules/verify (License): Re-license as LGPLv2+.
78721 2008-04-22  Simon Josefsson  <simon@josefsson.org>
78723         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
78724         parameter to void* as per POSIX standard (MinGW uses char*).
78726 2008-04-21  Bruno Haible  <bruno@clisp.org>
78728         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78729         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78730         Define to replacements if REPLACE_ISWCNTRL is 1.
78731         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
78732         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
78733         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
78734         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
78735         what it fixes.
78736         * doc/posix-functions/iswalpha.texi: Likewise.
78737         * doc/posix-functions/iswblank.texi: Likewise.
78738         * doc/posix-functions/iswcntrl.texi: Likewise.
78739         * doc/posix-functions/iswdigit.texi: Likewise.
78740         * doc/posix-functions/iswgraph.texi: Likewise.
78741         * doc/posix-functions/iswlower.texi: Likewise.
78742         * doc/posix-functions/iswprint.texi: Likewise.
78743         * doc/posix-functions/iswpunct.texi: Likewise.
78744         * doc/posix-functions/iswspace.texi: Likewise.
78745         * doc/posix-functions/iswupper.texi: Likewise.
78746         * doc/posix-functions/iswxdigit.texi: Likewise.
78747         Reported by Alain Guibert.
78749 2008-04-21  Bruno Haible  <bruno@clisp.org>
78751         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
78752         Patch by Alain Guibert.
78754 2008-04-21  Bruno Haible  <bruno@clisp.org>
78756         Fix test failures on mingw.
78757         * tests/test-xstrtol.c (print_no_progname): New function.
78758         (main): Install it in error_print_progname hook.
78759         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
78760         * tests/test-xstrtoimax.sh: Likewise.
78761         * tests/test-xstrtoumax.sh: Likewise.
78763 2008-04-21  Bruno Haible  <bruno@clisp.org>
78765         Fix test failure on mingw.
78766         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
78768 2008-04-21  Bruno Haible  <bruno@clisp.org>
78770         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
78771         Actually assign a value.
78773 2008-04-20  Bruno Haible  <bruno@clisp.org>
78775         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
78776         take 2.
78777         * lib/canonicalize.c (canonicalize_file_name): Elide if the
78778         'canonicalize-lgpl' module is also used.
78779         * lib/canonicalize-lgpl.c: Undo last change.
78780         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
78782 2008-04-20  Bruno Haible  <bruno@clisp.org>
78784         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
78785         config.h. Provide _mkdir based fallback for mingw.
78786         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
78787         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
78788         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
78789         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
78790         rather than defining mkdir in config.h.
78791         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
78792         (gl_SYS_STAT_H_DEFAULTS): New macro.
78793         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
78794         HAVE_IO_H any more.
78795         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
78796         HAVE_DECL_MKDIR and HAVE_IO_H.
78798 2008-04-20  Bruno Haible  <bruno@clisp.org>
78800         * lib/isapipe.c: Port to native Windows platforms.
78802 2008-04-20  Bruno Haible  <bruno@clisp.org>
78804         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
78806 2008-04-21  Eric Blake  <ebb9@byu.net>
78808         Work around preprocessors that don't handle UINTMAX_MAX.
78809         * lib/memchr2.c (memchr2): Avoid embedded #if.
78810         Reported by Alain Guibert, fix suggested by Bruno Haible.
78812 2008-04-21  Simon Josefsson  <simon@josefsson.org>
78814         * doc/posix-functions/strftime.texi (strftime): Explain better
78815         Windows incompatibility.  Suggested by Micah Cowan
78816         <micah@cowan.name>.
78818 2008-04-20  Bruno Haible  <bruno@clisp.org>
78820         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
78821         unistr/u8-mblen.
78823 2008-04-20  Bruno Haible  <bruno@clisp.org>
78825         Fix test failure on platforms with non-GNU iconv.
78826         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
78827         (U_TO_U8): Use it, rather than u16_to_u8.
78828         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
78829         units at the end of the input string.
78830         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
78832 2008-04-20  Bruno Haible  <bruno@clisp.org>
78834         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
78835         when the resulting length is 0.
78836         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
78838 2008-04-20  Bruno Haible  <bruno@clisp.org>
78840         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
78841         works.
78842         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
78844 2008-04-20  Bruno Haible  <bruno@clisp.org>
78846         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
78847         * modules/tsearch-tests (configure.ac): Test for initstate function.
78849 2008-04-20  Bruno Haible  <bruno@clisp.org>
78851         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
78852         for nlink_t if missing.
78853         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
78855 2008-04-19  Bruno Haible  <bruno@clisp.org>
78857         Work around snprintf bug on Linux libc5.
78858         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
78859         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
78860         gl_SNPRINTF_SIZE1.
78861         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78862         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
78863         that test failed.
78864         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
78865         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
78866         * modules/snprintf (Files): Add m4/printf.m4.
78867         * modules/vsnprintf (Files): Likewise.
78868         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
78869         * doc/posix-functions/vsnprintf.texi: Likewise.
78871 2008-04-19  Bruno Haible  <bruno@clisp.org>
78873         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
78874         from 0.0058 to less than 10^-7.
78876 2008-04-19  Bruno Haible  <bruno@clisp.org>
78878         Fix rounding when a precision is given.
78879         * lib/vasnprintf.c (is_borderline): New function.
78880         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
78881         9...9x.
78882         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
78883         %e, %g.
78884         * tests/test-vasprintf-posix.c (test_function): Likewise.
78885         * tests/test-snprintf-posix.h (test_function): Likewise.
78886         * tests/test-sprintf-posix.h (test_function): Likewise.
78887         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
78888         * tests/test-printf-posix.h (test_function): Likewise.
78889         * tests/test-printf-posix.output: Update.
78890         Reported by John Darrington <john@darrington.wattle.id.au> via
78891         Ben Pfaff <blp@cs.stanford.edu>.
78893 2008-04-18  Simon Josefsson  <simon@josefsson.org>
78895         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
78896         Suggested by Bruno Haible <bruno@clisp.org>.
78898 2008-04-17  Bruno Haible  <bruno@clisp.org>
78900         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
78901         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
78902         implementation.
78903         Patch by Bruce Merry <bmerry@gmail.com>.
78905 2008-04-17  Simon Josefsson  <simon@josefsson.org>
78907         * doc/posix-functions/strftime.texi (strftime): Mention that %e
78908         doesn't work under Windows.
78910 2008-04-16  Bruno Haible  <bruno@clisp.org>
78912         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
78913         New macros.
78914         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
78915         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
78916         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
78917         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
78918         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
78919         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
78920         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
78921         macros.
78922         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
78923         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
78924         Northern Sotho, Uighur.
78926 2008-04-16  Bruno Haible  <bruno@clisp.org>
78928         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
78929         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
78930         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
78931         Reported by Daniel Bergström <daniel@octocode.com>.
78933 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
78934             Bruno Haible  <bruno@clisp.org>
78936         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
78937         function.
78938         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
78939         New functions, mostly extracted from gl_locale_name_default.
78940         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
78942 2008-04-16  Eric Blake  <ebb9@byu.net>
78944         Adjust strtod detection to catch glibc 2.7 bug.
78945         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
78946         Reported by John Gatewood Ham.
78948 2008-04-16  Bruno Haible  <bruno@clisp.org>
78950         Add tentative support for Linux libc5.
78951         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
78952         * lib/fpurge.c (fpurge): Likewise.
78953         * lib/freadable.c (freadable): Likewise.
78954         * lib/freadahead.c (freadahead): Likewise.
78955         * lib/freading.c (freading): Likewise.
78956         * lib/freadptr.c (freadptr): Likewise.
78957         * lib/freadseek.c (freadptrinc): Likewise.
78958         * lib/fseeko.c (rpl_fseeko): Likewise.
78959         * lib/fseterr.c (fseterr): Likewise.
78960         * lib/fwritable.c (fwritable): Likewise.
78961         * lib/fwriting.c (fwriting): Likewise.
78962         Reported by Alain Guibert <alguibert+bts@free.fr>.
78964 2008-04-15  Bruno Haible  <bruno@clisp.org>
78966         * modules/mathl (configure.ac): Define module indicator.
78968 2008-04-15  Bruno Haible  <bruno@clisp.org>
78970         * lib/logl.c (logl): Remove unused variables.
78972 2008-04-15  Bruno Haible  <bruno@clisp.org>
78974         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
78975         fails.
78977 2008-04-15  Bruno Haible  <bruno@clisp.org>
78979         * lib/trim.c (trim2): Fix argument of isspace() macro.
78981 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
78983         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
78984         to 0.
78985         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
78987 2008-04-14  Bruno Haible  <bruno@clisp.org>
78989         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
78990         AC_LANG_PROGRAM argument.
78991         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
78992         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
78993         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
78994         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
78995         * m4/math_h.m4 (gl_MATH_H): Likewise.
78996         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
78997         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
78998         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
78999         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
79000         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79001         * m4/regex.m4 (gl_REGEX): Likewise.
79002         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
79003         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
79004         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
79005         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
79006         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
79007         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
79008         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
79009         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
79011 2008-04-14  Jim Meyering  <meyering@redhat.com>
79013         test-strtod: fix typos: s/abs/fabs/
79014         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
79016 2008-04-13  Bruno Haible  <bruno@clisp.org>
79018         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
79019         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
79020         module is also used and while not building the reloc-wrapper.
79022 2008-04-13  Bruno Haible  <bruno@clisp.org>
79024         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
79026 2008-04-13  Bruno Haible  <bruno@clisp.org>
79028         Fix AIX compilation failure introduced on 2008-04-02.
79029         * tests/test-frexp.c (exp): Undefine before redefining.
79030         * tests/test-frexpl.c (exp): Likewise.
79032 2008-04-13  Bruno Haible  <bruno@clisp.org>
79034         Work around a HP-UX stdio bug.
79035         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
79036         * tests/test-ftello.c (main): Likewise.
79037         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
79038         * doc/posix-functions/ftello.texi: Likewise.
79040 2008-04-13  Bruno Haible  <bruno@clisp.org>
79042         Make test-signbit pass on HP-UX/hppa.
79043         * tests/test-signbit.c (minus_zerol): New variable.
79044         (test_signbitl): Use it.
79046 2008-04-13  Bruno Haible  <bruno@clisp.org>
79048         Make truncl work on OSF/1 4.0.
79049         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
79050         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79051         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
79053         HAVE_DECL_TRUNCL.
79054         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
79055         HAVE_DECL_TRUNCL.
79056         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
79058 2008-04-13  Bruno Haible  <bruno@clisp.org>
79060         * lib/unictype.h: Remove trailing comma from enumeration definitions.
79062 2008-04-13  Bruno Haible  <bruno@clisp.org>
79064         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
79065         expression, so as to avoid HP-UX 11 cc compiler bug.
79067 2008-04-13  Bruno Haible  <bruno@clisp.org>
79069         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
79071 2008-04-13  Bruno Haible  <bruno@clisp.org>
79073         * lib/git-merge-changelog.c: Remove empty declaration outside of
79074         functions.
79076 2008-04-13  Bruno Haible  <bruno@clisp.org>
79078         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
79080 2008-04-13  Bruno Haible  <bruno@clisp.org>
79082         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
79083         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
79084         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
79085         also if it exists but lacks definitions of the SHUT_* macros.
79086         * modules/sys_socket (Description): Update.
79087         Reported by Elbert Pol <e.pol@chello.nl>.
79089 2008-04-13  Bruno Haible  <bruno@clisp.org>
79091         * lib/localcharset.c (OS2): Don't redefine if already defined.
79092         Reported by Elbert Pol <e.pol@chello.nl>.
79094 2008-04-13  Bruno Haible  <bruno@clisp.org>
79096         * lib/binary-io.h [__EMX__]: Include <io.h>.
79097         Reported by Elbert Pol <e.pol@chello.nl>.
79099 2008-04-12  Bruno Haible  <bruno@clisp.org>
79101         * lib/fpucw.h: Enable the definitions also for x86_64.
79102         Needed for NetBSD/x86_64.
79103         Reported by Thomas Klausner <tk@giga.or.at>.
79105 2008-04-12  Bruno Haible  <bruno@clisp.org>
79107         * tests/test-strtod.c: Include isnand.h.
79108         (main): Use isnand instead of isnan.
79109         Reported by Jim Meyering.
79111 2008-04-12  Bruno Haible  <bruno@clisp.org>
79113         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
79114         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
79116 2008-04-12  Jim Meyering  <meyering@redhat.com>
79118         * m4/math_h.m4 (gl_MATH_H): Fix typos.
79120 2008-04-12  Bruno Haible  <bruno@clisp.org>
79122         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
79123         Reported by Elbert Pol <e.pol@chello.nl>.
79125 2008-04-12  Eric Blake  <ebb9@byu.net>
79127         Work around Solaris 10 math.h bug.
79128         * m4/math_h.m4 (gl_MATH_H): Check for bug.
79129         (gl_MATH_H_DEFAULTS): Set up default.
79130         * modules/math (Makefile.am): Replace new indicators.
79131         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
79132         * tests/test-math.c (main): Test this.
79133         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
79134         * doc/posix-headers/math.texi (math.h): Mention bug.
79135         Reported by Nelson H. F. Beebe and Jim Meyering.
79137 2008-04-11  Bruno Haible  <bruno@clisp.org>
79139         Adapt to future versions of Apple GCC.
79140         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
79141         Reported by Peter O'Gorman <peter@pogma.com>.
79143 2008-04-11  Bruno Haible  <bruno@clisp.org>
79145         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
79147 2008-04-11  Bruno Haible  <bruno@clisp.org>
79149         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
79151         * modules/getaddrinfo-tests (Makefile.am): Define
79152         test_getaddrinfo_LDADD.
79154 2008-04-11  Bruno Haible  <bruno@clisp.org>
79156         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
79157         (init): Fix syntax error.
79158         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
79159         is declared.
79161 2008-04-11  Bruno Haible  <bruno@clisp.org>
79163         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
79164         * modules/glob (Depends-on): Add stdbool.
79166 2008-04-11  Bruno Haible  <bruno@clisp.org>
79168         * lib/trim.c: Include <string.h>.
79170 2008-04-11  Eric Blake  <ebb9@byu.net>
79172         Avoid compile failure on OS/2.
79173         * lib/regex_internal.h (internal_function): Disable optimization
79174         on OS/2 (__EMX__), where it caused compiler error.
79175         Reported by Elbert Pol.
79177 2008-04-11  Bruno Haible  <bruno@clisp.org>
79179         Flush the standard error stream before aborting. Needed on mingw.
79180         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
79181         * tests/test-array_list.c (ASSERT): Likewise.
79182         * tests/test-array_oset.c (ASSERT): Likewise.
79183         * tests/test-avltree_list.c (ASSERT): Likewise.
79184         * tests/test-avltree_oset.c (ASSERT): Likewise.
79185         * tests/test-avltreehash_list.c (ASSERT): Likewise.
79186         * tests/test-binary-io.c (ASSERT): Likewise.
79187         * tests/test-byteswap.c (ASSERT): Likewise.
79188         * tests/test-c-ctype.c (ASSERT): Likewise.
79189         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
79190         * tests/test-c-strcasestr.c (ASSERT): Likewise.
79191         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
79192         * tests/test-c-strstr.c (ASSERT): Likewise.
79193         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
79194         * tests/test-canonicalize.c (ASSERT): Likewise.
79195         * tests/test-carray_list.c (ASSERT): Likewise.
79196         * tests/test-ceilf1.c (ASSERT): Likewise.
79197         * tests/test-ceilf2.c (ASSERT): Likewise.
79198         * tests/test-ceill.c (ASSERT): Likewise.
79199         * tests/test-count-one-bits.c (ASSERT): Likewise.
79200         * tests/test-fbufmode.c (ASSERT): Likewise.
79201         * tests/test-fflush2.c (ASSERT): Likewise.
79202         * tests/test-floorf1.c (ASSERT): Likewise.
79203         * tests/test-floorf2.c (ASSERT): Likewise.
79204         * tests/test-floorl.c (ASSERT): Likewise.
79205         * tests/test-fopen.c (ASSERT): Likewise.
79206         * tests/test-fpending.c (ASSERT): Likewise.
79207         * tests/test-fprintf-posix.c (ASSERT): Likewise.
79208         * tests/test-fpurge.c (ASSERT): Likewise.
79209         * tests/test-freadable.c (ASSERT): Likewise.
79210         * tests/test-freadahead.c (ASSERT): Likewise.
79211         * tests/test-freading.c (ASSERT): Likewise.
79212         * tests/test-freadptr.c (ASSERT): Likewise.
79213         * tests/test-freadptr2.c (ASSERT): Likewise.
79214         * tests/test-freadseek.c (ASSERT): Likewise.
79215         * tests/test-freopen.c (ASSERT): Likewise.
79216         * tests/test-frexp.c (ASSERT): Likewise.
79217         * tests/test-frexpl.c (ASSERT): Likewise.
79218         * tests/test-fseek.c (ASSERT): Likewise.
79219         * tests/test-fseeko.c (ASSERT): Likewise.
79220         * tests/test-fstrcmp.c (ASSERT): Likewise.
79221         * tests/test-ftell.c (ASSERT): Likewise.
79222         * tests/test-ftello.c (ASSERT): Likewise.
79223         * tests/test-func.c (ASSERT): Likewise.
79224         * tests/test-fwritable.c (ASSERT): Likewise.
79225         * tests/test-fwriting.c (ASSERT): Likewise.
79226         * tests/test-getdelim.c (ASSERT): Likewise.
79227         * tests/test-getline.c (ASSERT): Likewise.
79228         * tests/test-i-ring.c (ASSERT): Likewise.
79229         * tests/test-iconv-utf.c (ASSERT): Likewise.
79230         * tests/test-iconv.c (ASSERT): Likewise.
79231         * tests/test-isfinite.c (ASSERT): Likewise.
79232         * tests/test-isnand.c (ASSERT): Likewise.
79233         * tests/test-isnanf.c (ASSERT): Likewise.
79234         * tests/test-isnanl.h (ASSERT): Likewise.
79235         * tests/test-ldexpl.c (ASSERT): Likewise.
79236         * tests/test-linked_list.c (ASSERT): Likewise.
79237         * tests/test-linkedhash_list.c (ASSERT): Likewise.
79238         * tests/test-localename.c (ASSERT): Likewise.
79239         * tests/test-lseek.c (ASSERT): Likewise.
79240         * tests/test-mbscasecmp.c (ASSERT): Likewise.
79241         * tests/test-mbscasestr1.c (ASSERT): Likewise.
79242         * tests/test-mbscasestr2.c (ASSERT): Likewise.
79243         * tests/test-mbscasestr3.c (ASSERT): Likewise.
79244         * tests/test-mbscasestr4.c (ASSERT): Likewise.
79245         * tests/test-mbschr.c (ASSERT): Likewise.
79246         * tests/test-mbscspn.c (ASSERT): Likewise.
79247         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
79248         * tests/test-mbspbrk.c (ASSERT): Likewise.
79249         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
79250         * tests/test-mbsrchr.c (ASSERT): Likewise.
79251         * tests/test-mbsspn.c (ASSERT): Likewise.
79252         * tests/test-mbsstr1.c (ASSERT): Likewise.
79253         * tests/test-mbsstr2.c (ASSERT): Likewise.
79254         * tests/test-mbsstr3.c (ASSERT): Likewise.
79255         * tests/test-memchr2.c (ASSERT): Likewise.
79256         * tests/test-memmem.c (ASSERT): Likewise.
79257         * tests/test-open.c (ASSERT): Likewise.
79258         * tests/test-printf-frexp.c (ASSERT): Likewise.
79259         * tests/test-printf-frexpl.c (ASSERT): Likewise.
79260         * tests/test-printf-posix.c (ASSERT): Likewise.
79261         * tests/test-quotearg.c (ASSERT): Likewise.
79262         * tests/test-rbtree_list.c (ASSERT): Likewise.
79263         * tests/test-rbtree_oset.c (ASSERT): Likewise.
79264         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
79265         * tests/test-round1.c (ASSERT): Likewise.
79266         * tests/test-roundf1.c (ASSERT): Likewise.
79267         * tests/test-roundl.c (ASSERT): Likewise.
79268         * tests/test-signbit.c (ASSERT): Likewise.
79269         * tests/test-sleep.c (ASSERT): Likewise.
79270         * tests/test-snprintf-posix.c (ASSERT): Likewise.
79271         * tests/test-snprintf.c (ASSERT): Likewise.
79272         * tests/test-sprintf-posix.c (ASSERT): Likewise.
79273         * tests/test-stat-time.c (ASSERT): Likewise.
79274         * tests/test-strcasestr.c (ASSERT): Likewise.
79275         * tests/test-strerror.c (ASSERT): Likewise.
79276         * tests/test-striconv.c (ASSERT): Likewise.
79277         * tests/test-striconveh.c (ASSERT): Likewise.
79278         * tests/test-striconveha.c (ASSERT): Likewise.
79279         * tests/test-strsignal.c (ASSERT): Likewise.
79280         * tests/test-strstr.c (ASSERT): Likewise.
79281         * tests/test-strtod.c (ASSERT): Likewise.
79282         * tests/test-trunc1.c (ASSERT): Likewise.
79283         * tests/test-trunc2.c (ASSERT): Likewise.
79284         * tests/test-truncf1.c (ASSERT): Likewise.
79285         * tests/test-truncf2.c (ASSERT): Likewise.
79286         * tests/test-truncl.c (ASSERT): Likewise.
79287         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
79288         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
79289         * tests/test-vasnprintf.c (ASSERT): Likewise.
79290         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
79291         * tests/test-vasprintf.c (ASSERT): Likewise.
79292         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
79293         * tests/test-vprintf-posix.c (ASSERT): Likewise.
79294         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
79295         * tests/test-vsnprintf.c (ASSERT): Likewise.
79296         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
79297         * tests/test-wcwidth.c (ASSERT): Likewise.
79298         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
79299         * tests/test-xprintf-posix.c (ASSERT): Likewise.
79300         * tests/test-xvasprintf.c (ASSERT): Likewise.
79301         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
79302         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
79303         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
79304         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
79305         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
79306         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
79307         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
79308         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
79309         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
79310         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
79311         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
79312         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
79313         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
79314         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
79315         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
79316         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
79317         * tests/unictype/test-block_list.c (ASSERT): Likewise.
79318         * tests/unictype/test-block_of.c (ASSERT): Likewise.
79319         * tests/unictype/test-block_test.c (ASSERT): Likewise.
79320         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
79321         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
79322         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
79323         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
79324         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
79325         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
79326         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
79327         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
79328         * tests/unictype/test-combining.c (ASSERT): Likewise.
79329         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
79330         * tests/unictype/test-digit.c (ASSERT): Likewise.
79331         * tests/unictype/test-mirror.c (ASSERT): Likewise.
79332         * tests/unictype/test-numeric.c (ASSERT): Likewise.
79333         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
79334         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
79335         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
79336         * tests/unictype/test-scripts.c (ASSERT): Likewise.
79337         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
79338         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
79339         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
79340         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
79341         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
79342         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
79343         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
79344         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
79345         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
79346         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
79347         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
79348         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
79349         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
79350         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
79351         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
79352         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
79353         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
79354         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
79355         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
79356         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
79357         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
79358         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
79359         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
79360         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
79361         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
79362         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
79363         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
79364         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
79365         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
79366         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
79367         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
79368         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
79369         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
79370         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
79371         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
79372         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
79373         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
79374         Reported by Eric Blake.
79376 2008-04-11  Bruno Haible  <bruno@clisp.org>
79378         * lib/wchar.in.h: Tweak comment.
79380 2008-04-11  Bruno Haible  <bruno@clisp.org>
79382         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
79383         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
79384         gl_COMMON.
79385         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
79387 2008-04-11  Bruno Haible  <bruno@clisp.org>
79389         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
79391 2008-04-11  Simon Josefsson  <simon@josefsson.org>
79393         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
79394         of attempting to use non-existing /dev/*random.  Based on patch
79395         from Adam Strzelecki <ono@java.pl> in
79396         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
79398 2008-04-08  Bruno Haible  <bruno@clisp.org>
79400         Add tentative support for emx+gcc.
79401         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
79402         * lib/fpurge.c (fpurge): Likewise.
79403         * lib/freadable.c (freadable): Likewise.
79404         * lib/freadahead.c (freadahead): Likewise.
79405         * lib/freading.c (freading): Likewise.
79406         * lib/freadptr.c (freadptr): Likewise.
79407         * lib/freadseek.c (freadptrinc): Likewise.
79408         * lib/fseeko.c (rpl_fseeko): Likewise.
79409         * lib/fseterr.c (fseterr): Likewise.
79410         * lib/fwritable.c (fwritable): Likewise.
79411         * lib/fwriting.c (fwriting): Likewise.
79412         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
79414 2008-04-09  Eric Blake  <ebb9@byu.net>
79416         Avoid some autoconf warnings.
79417         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
79418         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
79419         * m4/afs.m4 (gl_AFS): Likewise.
79420         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
79421         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
79422         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79423         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
79424         (gl_INTEGER_TYPE_SUFFIX): Likewise.
79425         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
79426         (AC_CHECK_DECLS_ONCE): Likewise.
79427         Rename file...
79428         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
79429         gnulib-tool requires autoconf 2.59 or better.
79430         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
79432 2008-04-08  Eric Blake  <ebb9@byu.net>
79434         Use 'git describe --match' if present (added in git 1.5.5).
79435         * build-aux/git-version-gen: Limit result to tags that match 'v*'
79436         if possible.
79438 2008-04-08  Bruno Haible  <bruno@clisp.org>
79440         Add tentative support for OpenServer.
79441         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
79442         _ptr, _cnt.
79443         * lib/fpurge.c (fpurge): Likewise.
79444         * lib/freadable.c (freadable): Likewise.
79445         * lib/freadahead.c (freadahead): Likewise.
79446         * lib/freading.c (freading): Likewise.
79447         * lib/freadptr.c (freadptr): Likewise.
79448         * lib/freadseek.c (freadptrinc): Likewise.
79449         * lib/fseeko.c (rpl_fseeko): Likewise.
79450         * lib/fseterr.c (fseterr): Likewise.
79451         * lib/fwritable.c (fwritable): Likewise.
79452         * lib/fwriting.c (fwriting): Likewise.
79453         Reported by Roger Cornelius <rac@tenzing.org> and
79454         Brian K. White <brian@aljex.com>.
79456 2008-04-06  Jim Meyering  <meyering@redhat.com>
79458         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
79460 2008-04-06  Bruno Haible  <bruno@clisp.org>
79462         Avoid possible error with non-ASCII bytes in UTF-8 locales.
79463         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
79464         * tests/test-printf-posix.sh: Likewise.
79465         * tests/test-vfprintf-posix.sh: Likewise.
79466         * tests/test-vprintf-posix.sh: Likewise.
79467         * tests/test-xprintf-posix.sh: Likewise.
79469 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79471         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
79472         hide error from 'ls', needed on OS/2.
79473         Report by Elbert Pol <elbert.pol@gmail.com>.
79475 2008-04-04  Eric Blake  <ebb9@byu.net>
79477         Make test-fseeko.c failures meaningful.
79478         * tests/test-fseeko.c: Print line number on failure.
79479         * tests/test-fseek.c: Likewise.
79480         Reported by Nelson H. F. Beebe.
79482         Improve strtod bug detection check.
79483         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
79484         required for Solaris 10.
79485         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
79487 2008-04-04  Bruno Haible  <bruno@clisp.org>
79489         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
79490         by m4/setenv.m4.
79492 2008-04-03  Eric Blake  <ebb9@byu.net>
79494         Ensure sane .version contents.
79495         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
79496         version string.
79497         * build-aux/git-version-gen: Improve documentation.
79499         Make GNU make output nicer.
79500         * top/GNUmakefile [!_have-Makefile]: Add dependency on
79501         MAKECMDGOALS to enforce message for all command line targets.  Set
79502         srcdir for use in maint.mk.
79504         Another maintainer tweak.
79505         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
79506         a target that regenerates version.
79508 2008-04-03  Jim Meyering  <meyering@redhat.com>
79510         vc-list-files: don't cause coreutils "make po-check" failure
79511         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
79513 2008-04-03  Eric Blake  <ebb9@byu.net>
79515         Allow VPATH usage of vc-list-files.
79516         * build-aux/vc-list-files (scriptversion): Add timestamp.
79517         (options): Add --help, --version, -C.
79518         (CVS): Support installed cvsu.
79520 2008-04-02  Bruno Haible  <bruno@clisp.org>
79522         Avoid some "statement with no effect" warnings from gcc.
79523         * tests/test-wctype.c (main): Explicitly ignore unused values.
79524         Reported by Jim Meyering.
79526 2008-04-02  Jim Meyering  <meyering@redhat.com>
79528         Avoid some warnings from "gcc -Wshadow".
79529         * tests/test-frexp.c (exp): Define to a different identifier.
79530         * tests/test-frexpl.c (exp): Likewise.
79532 2008-04-03  Jim Meyering  <meyering@redhat.com>
79534         bootstrap: remove dangling *.[ch] symlinks from lib
79535         * build-aux/bootstrap [dangling symlink removal]: Move find's
79536         -depth option to precede all others, to avoid a warning.
79537         Remove *.[ch] files too, and from "$source_base" (usually lib/).
79539 2008-04-02  Bruno Haible  <bruno@clisp.org>
79541         Avoid some warnings from "gcc -Wshadow".
79542         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
79543         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
79544         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
79545         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
79546         Reported by Jim Meyering.
79548 2008-04-01  Bruno Haible  <bruno@clisp.org>
79550         Fix test to work on IRIX 6.5 with cc.
79551         * tests/test-math.c (numeric_equal): New function.
79552         (main): Use it.
79554 2008-04-01  Bruno Haible  <bruno@clisp.org>
79556         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
79558 2008-04-01  Bruno Haible  <bruno@clisp.org>
79560         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
79561         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79562         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
79563         (Depends-on): Remove math.
79565         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
79566         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79567         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
79568         (Depends-on): Remove math.
79570         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
79571         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79572         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
79573         (Depends-on): Remove math.
79574         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
79575         (Depends-on): Remove math.
79577         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
79578         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
79579         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
79580         (Depends-on): Remove math.
79581         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
79582         (Depends-on): Remove math.
79584         * tests/test-round1.c: Include nan.h.
79585         (main): Use NaNd instead of NAN.
79586         * modules/round-tests (Files): Add tests/nan.h.
79588         * tests/test-trunc1.c: Include nan.h.
79589         (main): Use NaNd instead of NAN.
79590         * modules/trunc-tests (Files): Add tests/nan.h.
79592         * tests/test-roundf1.c: Include nan.h.
79593         (main): Use NaNf instead of NAN.
79594         * modules/roundf-tests (Files): Add tests/nan.h.
79596         * tests/test-truncf1.c: Include nan.h.
79597         (main): Use NaNf instead of NAN.
79598         * modules/truncf-tests (Files): Add tests/nan.h.
79600         * tests/test-ceilf1.c: Include nan.h.
79601         (main): Use NaNf instead of NAN.
79602         * modules/ceilf-tests (Files): Add tests/nan.h.
79604         * tests/test-floorf1.c: Include nan.h.
79605         (main): Use NaNf instead of NAN.
79606         * modules/floorf-tests (Files): Add tests/nan.h.
79608         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
79609         (main): Use NaNf instead of NAN.
79610         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
79612         * tests/test-isnand.c: Include nan.h instead of <math.h>.
79613         (main): Use NaNd instead of NAN.
79614         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
79616         * tests/test-frexp.c: Include nan.h.
79617         (main): Use NaNd instead of NAN.
79618         * modules/frexp-tests (Files): Add tests/nan.h.
79620         * lib/isnan.c: Don't include <math.h>.
79621         (FUNC): Don't use NAN macro.
79622         * modules/isnand-nolibm (Depends-on): Remove math.
79623         * modules/isnanf-nolibm (Depends-on): Remove math.
79624         * modules/isnanl (Depends-on): Remove math.
79625         * modules/isnanl-nolibm (Depends-on): Remove math.
79627         * tests/nan.h: New file.
79629 2008-04-01  Eric Blake  <ebb9@byu.net>
79631         Fix typos.
79632         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
79633         values to be the right type.
79635         For now, cater to gnulib strtod inaccuracies.
79636         * tests/test-strtod.c (main): Allow 1-ulp error on expected
79637         fractional results.  While not as nice from a QoI perspective, it
79638         is a quicker patch than correctly implementing decimal to binary
79639         rounding.
79641 2008-03-31  Eric Blake  <ebb9@byu.net>
79643         Guarantee a definition of NAN.
79644         * lib/math.in.h (NAN): Define if missing.
79645         * tests/test-math.c (main): Test it.
79646         * doc/posix-headers/math.texi (math.h): Document this.
79647         * lib/isnan.c (rpl_isnand): Use it.
79648         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
79649         * tests/test-floorf1.c (NaN): Likewise.
79650         * tests/test-frexp.c (NaN): Likewise.
79651         * tests/test-isnand.c (NaN): Likewise.
79652         * tests/test-isnanf.c (NaN): Likewise.
79653         * tests/test-round1.c (NaN): Likewise.
79654         * tests/test-roundf1.c (NaN): Likewise.
79655         * tests/test-snprintf-posix.h (NaN): Likewise.
79656         * tests/test-sprintf-posix.h (NaN): Likewise.
79657         * tests/test-trunc1.c (NaN): Likewise.
79658         * tests/test-truncf1.c (NaN): Likewise.
79659         * tests/test-vasnprintf-posix.c (NaN): Likewise.
79660         * tests/test-vasprintf-posix.c (NaN): Likewise.
79661         * modules/isnand-nolibm (Depends-on): Add math.
79662         * modules/isnanf-nolibm (Depends-on): Likewise.
79663         * modules/isnanl (Depends-on): Likewise.
79664         * modules/isnanl-nolibm (Depends-on): Likewise.
79665         * modules/snprintf-posix-tests (Depends-on): Likewise.
79666         * modules/sprintf-posix-tests (Depends-on): Likewise.
79667         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
79668         * modules/vsprintf-posix-tests (Depends-on): Likewise.
79669         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
79670         * modules/vasprintf-posix-tests (Depends-on): Likewise.
79672 2008-03-31  Bruno Haible  <bruno@clisp.org>
79674         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
79675         * doc/posix-functions/strtod.texi: Likewise.
79677 2008-03-31  Bruno Haible  <bruno@clisp.org>
79679         * tests/test-strtod.c (main): Don't use C99 syntax.
79681 2008-03-31  Bruno Haible  <bruno@clisp.org>
79683         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
79684         Reported by Eric Blake.
79686 2008-03-31  Jim Meyering  <meyering@redhat.com>
79688         Don't compare actual signbit return values.
79689         * tests/test-strtod.c (main): Rather, compare only their
79690         zero/non-zero nature.
79692 2008-03-31  Eric Blake  <ebb9@byu.net>
79694         More strtod documentation.
79695         * doc/posix-functions/strtod.texi (strtod): Interpret more test
79696         failures as distinct bugs.
79698 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
79700         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
79701         Problem reported by Erik Benada in
79702         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
79704 2008-03-30  Bruno Haible  <bruno@clisp.org>
79706         * tests/test-strtod.c: Add comments about which assertion fails on which
79707         platform.
79708         * doc/posix-functions/strtod.texi: Add info about many more platforms.
79710 2008-03-30  Eric Blake  <ebb9@byu.net>
79712         Test signbit behavior on zeros.
79713         * tests/test-signbit.c (test_signbitf): Add tests for zero.
79714         (test_signbitd, test_signbitl): Likewise.
79716         More strtod touchups.
79717         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
79718         sign of negative underflow, for now.  Use .5, not .1.
79719         * doc/posix-functions/strtod.texi (strtod): Mention these
79720         limitations.
79721         Reported by Jim Meyering.
79723 2008-03-30  Bruno Haible  <bruno@clisp.org>
79725         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
79726         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
79728 2008-03-30  Bruno Haible  <bruno@clisp.org>
79730         Avoid failure when attempting to return empty iconv results on some
79731         platforms.
79732         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
79733         allocation, don't report ENOMEM when the resulting string is empty.
79735 2008-03-30  Bruno Haible  <bruno@clisp.org>
79737         Fix buffer overrun.
79738         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
79739         Don't consider the width for tmp_length. Check count against tmp_length
79740         before doing the padding. Ensure enough allocation during padding.
79742 2008-03-30  Eric Blake  <ebb9@byu.net>
79744         strtod touchups.
79745         * lib/strtod.c (strtod): Avoid compiler warnings.
79746         Reported by Jim Meyering.
79748 2008-03-30  Bruno Haible  <bruno@clisp.org>
79750         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
79751         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
79752         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
79753         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
79754         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
79755         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
79756         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
79757         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
79759         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
79760         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
79761         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
79762         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
79763         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
79764         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
79765         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
79766         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
79768         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
79769         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
79770         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
79771         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
79772         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
79773         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
79774         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
79775         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
79777         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
79778         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
79780         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
79781         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
79783         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
79784         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
79786         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
79787         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
79788         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
79790         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
79791         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
79792         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
79794         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
79795         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
79796         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
79798         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
79799         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
79800         * modules/vasprintf (Depends-on): Add EOVERFLOW.
79802         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
79803         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
79804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
79805         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
79806         (Depends-on): Add EOVERFLOW.
79807         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
79808         (Depends-on): Add EOVERFLOW.
79809         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
79810         (Depends-on): Add EOVERFLOW.
79811         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
79812         (Depends-on): Add EOVERFLOW.
79813         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
79814         (Depends-on): Add EOVERFLOW.
79815         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
79816         (Depends-on): Add EOVERFLOW.
79817         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
79818         (Depends-on): Add EOVERFLOW.
79819         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
79820         (Depends-on): Add EOVERFLOW.
79822         * lib/sprintf.c (EOVERFLOW): Remove fallback.
79823         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
79824         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
79826         * lib/snprintf.c (EOVERFLOW): Remove fallback.
79827         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
79828         * modules/snprintf (Depends-on): Add EOVERFLOW.
79830         * lib/poll.c (EOVERFLOW): Remove fallback.
79831         * modules/poll (Depends-on): Add EOVERFLOW.
79833         * lib/getugroups.c (EOVERFLOW): Remove fallback.
79834         * modules/getugroups (Depends-on): Add EOVERFLOW.
79836         * lib/getdelim.c (EOVERFLOW): Remove fallback.
79837         * modules/getdelim (Depends-on): Add EOVERFLOW.
79839         * lib/ftell.c (EOVERFLOW): Remove fallback.
79840         * modules/ftell (Depends-on): Add EOVERFLOW.
79842         * lib/fprintf.c (EOVERFLOW): Remove fallback.
79843         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
79844         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
79846         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
79848         * modules/EOVERFLOW-tests: New file.
79849         * tests/test-EOVERFLOW.c: New file.
79851         * modules/EOVERFLOW: New file.
79852         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
79854 2008-03-30  Bruno Haible  <bruno@clisp.org>
79856         Fix bug introduced on 2007-06-10.
79857         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
79858         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
79860 2008-03-30  Bruno Haible  <bruno@clisp.org>
79862         Improve freadseek's efficiency after ungetc.
79863         * lib/freadseek.c: Include freadahead.h.
79864         (freadptrinc): New function, extracted from freadseek.
79865         (freadseek): Use it in a loop. Use freadahead to determine the number
79866         of loop iterations.
79867         * modules/freadseek (Depends-on): Add freadahead.
79868         (configure.ac): Require AC_C_INLINE.
79870 2008-03-30  Bruno Haible  <bruno@clisp.org>
79872         * lib/freadseek.c (freadseek): Don't ignore the return value of
79873         freadptr.
79875 2008-03-29  Eric Blake  <ebb9@byu.net>
79877         Add hex float support.
79878         * modules/strtod (Depends-on): Add c-ctype.
79879         (Link): Mention POW_LIB.
79880         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
79881         whitespace between 'e' and exponent.
79882         * tests/test-strtod.c (main): Enable hex float tests.
79883         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
79884         now provides.
79886         Document various strtod bugs, with some fixes.
79887         * doc/posix-functions/strtod.texi (strtod): Document bugs with
79888         "-0x", "inf", "nan", and hex constants.
79889         * doc/posix-functions/atof.texi (atof): Likewise.
79890         * modules/stdlib (Makefile.am): Support strtod.
79891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
79892         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
79893         detect additional strtod bugs.
79894         * lib/stdlib.in.h (rpl_strtod): Add declarations.
79895         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
79896         bool where appropriate.  Parse 'inf' and 'nan'.
79897         * tests/test-strtod.c: New file.
79898         * modules/strtod (Depends-on): Add stdbool, stdlib.
79899         (configure.ac): Turn on module indicator.
79900         * modules/strtod-tests: New module.
79902 2008-03-29  Eric Blake  <ebb9@byu.net>
79904         Fix ftell on mingw.
79905         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
79906         * modules/ftell-tests (Depends-on): Add binary-io.
79907         * modules/ftello-tests (Depends-on): Likewise.
79908         * tests/test-ftell.c (main): Enhance test to cover behavior after
79909         ungetc.  Enforce binary mode.
79910         * tests/test-ftello.c (main): Likewise.
79912         Pass test-freadseek on cygwin.
79913         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
79914         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
79915         ungetc buffer.
79917         * tests/test-fflush2.c (main): Fix typo.
79919 2008-03-29  Bruno Haible  <bruno@clisp.org>
79921         * tests/test-fflush2.c (main): Temporarily disable the contents of
79922         this test.
79923         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
79924         Reported by Eric Blake.
79926 2008-03-28  Simon Josefsson  <simon@josefsson.org>
79928         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
79929         (GC_SHA224_DIGEST_SIZE): Add.
79931         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
79932         (gc_hash_digest_length): Likewise.
79933         (gc_hash_buffer): Likewise.
79935 2008-03-25  Bruno Haible  <bruno@clisp.org>
79937         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
79938         detail which gettext release to use.
79939         Reported by Simon Josefsson.
79941 2008-03-26  Jim Meyering  <meyering@redhat.com>
79943         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
79944         * modules/gnumakefile (clean-GNUmakefile): Also, use
79945         test ... && ... || : syntax rather than if-then ... fi.
79947         gnumakefile: Don't double-quote-expand $(VPATH) value.
79948         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
79950 2008-03-24  Eric Blake  <ebb9@byu.net>
79952         Alter GNUmakefile to install into top directory.
79953         * modules/maintainer-makefile: Split, and add dependency...
79954         * modules/gnumakefile: to this new module.
79955         * build-aux/GNUmakefile: Move...
79956         * top/GNUmakefile: ...here.
79957         * build-aux/maint.mk: Move...
79958         * top/maint.mk: ...here.
79959         * MODULES.html.sh (Support for maintaining...): Document new
79960         module.
79962 2008-03-23  Bruno Haible  <bruno@clisp.org>
79964         * gnulib-tool: New options --vc-files, --no-vc-files.
79965         (func_usage): Document them.
79966         (vc_files): New variable.
79967         (func_import): Consider vc_files.
79968         (func_create_testdir): Set vc_files to empty.
79969         Suggested by Jim Meyering and Karl Berry.
79971 2008-03-23  Bruno Haible  <bruno@clisp.org>
79973         Fix regex compilation error on HP-UX 11.
79974         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
79975         * modules/regex (Files): Add m4/mbstate_t.m4.
79976         Reported by Ton Voon <ton.voon@altinity.com>.
79978 2008-03-23  Bruno Haible  <bruno@clisp.org>
79980         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
79982 2008-03-23  Eric Blake  <ebb9@byu.net>
79983             Bruno Haible  <bruno@clisp.org>
79985         Install files from top/ in the destination directory.
79986         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
79987         augmentation also for the files from top/.
79988         (func_import, func_create_testdir): Rewrite file names:
79989         top/filename -> filename.
79991 2008-03-23  Bruno Haible  <bruno@clisp.org>
79993         Tweak "gnulib --version" output.
79994         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
79996 2008-03-23  Bruno Haible  <bruno@clisp.org>
79998         Tweak "gnulib --version" output.
79999         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
80000         rather than contents of ChangeLog, when possible.
80002 2008-03-21  Eric Blake  <ebb9@byu.net>
80004         More --version tweaks.
80005         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
80006         date of last ChangeLog entry.
80008 2008-03-21  Jim Meyering  <meyering@redhat.com>
80010         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
80012 2008-03-20  Eric Blake  <ebb9@byu.net>
80014         VPATH fix.
80015         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
80017 2008-03-20  Simon Josefsson  <simon@josefsson.org>
80019         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
80020         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
80022 2008-03-20  Eric Blake  <ebb9@byu.net>
80024         Sync GNUmakefile with coreutils.
80025         * build-aux/GNUmakefile (have-Makefile): Rename...
80026         (_have-Makefile): ...to this, for namespace consideration.
80027         (GNUmakefile.cfg): Include, if present.
80028         (_autoreconf): Define a default.
80029         (_is-dist-target): New rule for rebuilds to pick up intra-release
80030         version.
80031         (maint-cfg.mk): Rename...
80032         (cfg.mk): ...to this.
80034 2008-03-18  Jim Meyering  <meyering@redhat.com>
80036         New script and module: mktempd
80037         * MODULES.html.sh (maint+release support): Add mktempd.
80038         * build-aux/mktempd: New file.
80039         * modules/mktempd: New file.
80041 2008-03-15  Jim Meyering  <meyering@redhat.com>
80043         Undo last change.
80044         * lib/sha1.c, lib/md5.c: 63 != ~63.
80045         Reported by Andreas Schwab.
80047         sha1.c, md5.c: Hoist a redundant expression.
80048         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
80049         "ctx->buflen" only once, before calling *_process_block.
80050         * lib/md5.c (md5_process_bytes): Likewise.
80052 2008-03-14  Eric Blake  <ebb9@byu.net>
80054         Bump copyright year in files generated by gnulib-tool.
80055         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
80056         gnulib-tool, rather than hard-coding it.
80058         Fix 'gnulib-tool --version' output to work with git.
80059         * gnulib-tool (func_gnulib_dir): New function, extracted from...
80060         (startup): ...here.
80061         (func_version): Use it to invoke git-version-gen, rather than
80062         relying on CVS keyword expansion.  Modernize wording.
80063         (cvsdatestamp, last_checkin_date, version): Kill unused
80064         variables.
80066 2008-03-12  Jim Meyering  <meyering@redhat.com>
80068         Recognize optional cast of the argument to free.
80069         * build-aux/useless-if-before-free: Update regexps.
80071         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
80073 2008-03-11  Bruno Haible  <bruno@clisp.org>
80075         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
80076         by a single package.
80077         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
80078         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
80079         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
80080         Reported by Sam Steingold <sds@gnu.org>.
80082 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80084         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
80085         repositories.
80087 2008-03-11  Bruno Haible  <bruno@clisp.org>
80089         Avoid conflicts between local macro definitions.
80090         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
80091         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
80093 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
80094             Bruno Haible  <bruno@clisp.org>
80096         Make va_copy work with some version of xlc on AIX 5.1.
80097         * lib/stdarg.in.h: New file.
80098         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
80099         On AIX, use a <stdarg.h> file substitute.
80100         * modules/stdarg (Files): Add lib/stdarg.in.h.
80101         (Depends-on): Add include_next.
80102         (Makefile.am): Build a stdarg.h substitute if requested.
80103         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
80105 2008-03-10  Bruno Haible  <bruno@clisp.org>
80107         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
80108         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80109         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80111 2008-03-10  Bruno Haible  <bruno@clisp.org>
80113         * modules/stdlib (Depends-on): Add include_next, remove
80114         absolute-header.
80116 2008-03-09  Bruno Haible  <bruno@clisp.org>
80118         * lib/freadahead.h (freadahead): Document more precisely.
80119         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
80120         the sum of both buffer sizes.
80121         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
80122         * NEWS: Document the change.
80124 2008-03-09  Bruno Haible  <bruno@clisp.org>
80126         Extend freadptr to return also the buffer size.
80127         * lib/freadptr.h (freadptr): Add sizep argument.
80128         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
80129         (freadptr): Add sizep argument. Determine buffer size like freadahead
80130         does.
80131         * tests/test-freadptr.c: Don't include freadahead.h.
80132         (main): Adapt for new calling convention of freadptr.
80133         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
80134         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
80135         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
80136         tests/test-freadptr2.sh.
80137         (Depends): Remove freadahead.
80138         (TESTS): Add test-freadptr2.sh.
80139         (check_PROGRAMS): Add test-freadptr2.
80141 2008-03-09  Bruno Haible  <bruno@clisp.org>
80143         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
80144         Report and solution by Simon Josefsson.
80146 2008-03-06  Bruno Haible  <bruno@clisp.org>
80148         Make fflush after ungetc work on BSD platforms.
80149         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
80150         * tests/test-fflush2.c: New file.
80151         * tests/test-fflush2.sh: New file.
80152         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
80153         tests/test-fflush2.c.
80154         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
80155         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
80157 2008-03-06  Eric Blake  <ebb9@byu.net>
80159         Likewise for ftello.
80160         * modules/ftello (Dependencies): Add extensions.
80161         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
80163 2008-03-06  Bruno Haible  <bruno@clisp.org>
80165         * modules/fseeko (Dependencies): Add extensions.
80166         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
80167         Needed on glibc systems.
80169 2008-03-06  Bruno Haible  <bruno@clisp.org>
80171         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
80172         email address.
80173         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80175 2008-03-06  Bruno Haible  <bruno@clisp.org>
80177         * users.txt: Add libgnupdf.
80179 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
80181         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
80182         (Header File Substitutes, Function Substitutes,
80183         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
80184         (Build robot for gnulib): Fix typo.
80186 2008-03-06  Bruno Haible  <bruno@clisp.org>
80188         * doc/gnulib-tool.texi (VCS Issues): Small updates.
80189         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80191 2008-03-06  Bruno Haible  <bruno@clisp.org>
80193         * doc/func.texi: New file, extracted from doc/gnulib.texi.
80194         * doc/gnulib.texi: Include it.
80196 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80198         * modules/func (License): Change license to unlimited; there was
80199         no LGPL parts in the module anyway.
80201 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80203         * modules/__func__: Renamed to modules/func.
80204         * modules/__func__-tests: Renamed to modules/func-tests.
80205         * tests/test-__func__.c: Renamed to tests/test-func.c.
80206         * m4/__func__.m4: Renamed to m4/func.m4.
80207         * doc/gnulib.texi (__func__): Section renamed to func.
80208         Suggested by Eric Blake <ebb9@byu.net>.
80210 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80212         * doc/gnulib.texi (__func__): Use C99 terminology when talking
80213         about __func__.  Make example self-contained.  Suggested by Eric
80214         Blake <ebb9@byu.net>.
80216         * tests/test-__func__.c (main): Avoid extraneous () around __func.
80217         Suggested by Eric Blake <ebb9@byu.net>.
80219 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80221         * modules/__func__: New file.
80222         * modules/__func__-tests: New file.
80223         * tests/test-__func__.c: New file.
80224         * m4/__func__.m4: New file.
80225         * doc/gnulib.texi (__func__): Document __func__ module.
80227 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80229         * modules/byteswap (License): Re-license as LGPLv2+.
80231 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80233         * doc/Makefile: Add pdf target.
80235 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80237         * modules/inline (License): Use 'unlimited', since there are only
80238         *.m4 files in this module.
80240 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80241             Bruno Haible  <bruno@clisp.org>
80243         Add support for HP C 7.1 on OpenVMS 8.3.
80244         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
80246 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80248         Update VMS specifics.
80249         * lib/getopt.c [VMS]: Remove include of unixlib.h.
80251 2008-03-02  Jim Meyering  <meyering@redhat.com>
80253         Remove the last dependency on the "free" module.
80254         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
80255         Reported by Bob Proulx.
80257         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
80259         Remove useless "if" tests before free.  Deprecate "free" module.
80260         * doc/posix-functions/free.texi: Mention that this
80261         module is no longer useful.
80262         * modules/free (Notice): Say this module is obsolete.
80263         * modules/readutmp (Depends-on): Remove free.
80264         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
80265         * lib/putenv.c (putenv): Likewise.
80266         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
80267         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
80268         * tests/test-c-strcasestr.c (main): Likewise.
80269         * tests/test-c-strstr.c (main): Likewise.
80270         * tests/test-mbscasestr1.c (main): Likewise.
80271         * tests/test-mbscasestr2.c (main): Likewise.
80272         * tests/test-mbsstr1.c (main): Likewise.
80273         * tests/test-mbsstr2.c (main): Likewise.
80274         * tests/test-memmem.c (main): Likewise.
80275         * tests/test-strcasestr.c (main): Likewise.
80276         * tests/test-striconv.c (main): Likewise.
80277         * tests/test-striconveh.c (main): Likewise.
80278         * tests/test-striconveha.c (main): Likewise.
80279         * tests/test-strstr.c (main): Likewise.
80281         * build-aux/git-version-gen: Adjust a comment and the Usage string.
80283         bootstrap: sync from coreutils again
80284         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
80286 2008-03-01  Jim Meyering  <meyering@redhat.com>
80288         bootstrap: sync from coreutils
80289         * build-aux/bootstrap (update_po_files): Copy a .po file into place
80290         also when the target doesn't exist.
80292 2008-03-01  Eric Blake  <ebb9@byu.net>
80294         Fix bugs in last patch.
80295         * lib/memchr2.c (memchr2): Fix typo.
80296         * tests/test-memchr2.c: Test previous bug, and don't use GNU
80297         extension.
80298         Reported by Bruce Korb.
80300         New module 'memchr2'.
80301         * modules/memchr2: New file.
80302         * modules/memchr2-tests: Likewise.
80303         * lib/memchr2.h: Likewise.
80304         * lib/memchr2.c: Likewise, based on memchr.c.
80305         * tests/test-memchr2.c: New test.
80306         * MODULES.html.sh (String handling): Add memchr2.
80308 2008-02-29  Bruno Haible  <bruno@clisp.org>
80310         * modules/freadseek-tests: New file.
80311         * tests/test-freadseek.sh: New file.
80312         * tests/test-freadseek.c: New file.
80314         New module 'freadseek'.
80315         * modules/freadseek: New file.
80316         * lib/freadseek.h: New file.
80317         * lib/freadseek.c: New file.
80318         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
80320 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
80322         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
80323         wydawca.
80325         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
80326         program_invocation_name and program_invocation_short_name are
80327         present.
80329 2008-02-28  Bruno Haible  <bruno@clisp.org>
80331         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
80332         * tests/test-freadptr.sh: Also test non-seekable stdin.
80334 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
80336         * build-aux/bootstrap (source_base, m4_base)
80337         (doc_base, tests_base): New variables.
80338         (gnulib_tool_options): Do not hardcode base directories, use
80339         the above variables instead.
80341 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
80343         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
80345 2008-02-28  Bruno Haible  <bruno@clisp.org>
80347         * modules/freadptr-tests: New file.
80348         * tests/test-freadptr.sh: New file.
80349         * tests/test-freadptr.c: New file.
80351         New module 'freadptr'.
80352         * modules/freadptr: New file.
80353         * lib/freadptr.h: New file.
80354         * lib/freadptr.c: New file.
80355         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
80357 2008-02-26  Karl Berry  <karl@freefriends.org>
80359         Sync from Libtool:
80360         * libltdl/argz.c (argz_add, argz_count): New functions.
80361         * libltdl/argz.in.h: Declare them.
80362         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
80364 2008-02-22  Bruno Haible  <bruno@clisp.org>
80366         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
80367         is a pointer type.  Needed for HP-UX 10.
80368         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
80369         * doc/posix-functions/gmtime_r.texi: Likewise.
80370         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80372 2008-02-24  Bruno Haible  <bruno@clisp.org>
80374         * modules/environ-tests: New file.
80375         * tests/test-environ.c: New file.
80377         New module 'environ'.
80378         * modules/environ: New file.
80379         * lib/unistd.in.h (environ): New declaration.
80380         * m4/environ.m4: New file.
80381         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
80382         after use.
80383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
80384         HAVE_DECL_ENVIRON.
80385         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
80386         HAVE_DECL_ENVIRON.
80387         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
80388         wrong claim that 'environ' is missing on some systems.
80389         * modules/execute (Depends-on): Add environ.
80390         * lib/execute.c (environ): Remove fallback declaration.
80391         * modules/pipe (Depends-on): Add environ.
80392         * lib/pipe.c (environ): Remove fallback declaration.
80393         * modules/setenv (Depends-on): Add environ.
80394         * lib/setenv.c (environ): Remove fallback declaration.
80395         * modules/unsetenv (Depends-on): Add environ.
80396         * lib/unsetenv.c (environ): Remove fallback declaration.
80397         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
80398         m4/environ.m4.
80399         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
80400         (gl_PREREQ_UNSETENV): Likewise.
80402 2008-02-24  Bruno Haible  <bruno@clisp.org>
80404         * doc/posix-functions/environ.texi: Document the MacOS X problem.
80406 2008-02-20  Bob Proulx  <bob@proulx.com>
80408         Enable use of older two part flavor 'git describe'.
80409         * build-aux/git-version-gen: If using the older two part flavor of
80410         git version then recreate the third part now present in the
80411         newer three part flavor of git describe.
80413 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
80415         * lib/fts.c (fts_build): Typo correction to comment.
80417 2008-02-17  Bruno Haible  <bruno@clisp.org>
80419         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
80420         generating no-op conflicts.
80422 2008-02-17  Bruno Haible  <bruno@clisp.org>
80424         Speed up by 10%.
80425         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
80426         result_entries, rather than an index-based loop.
80428 2008-02-17  Bruno Haible  <bruno@clisp.org>
80430         Speed up by 25%.
80431         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
80432         'hashcode_cached'.
80433         (entry_create): New function.
80434         (entry_hashcode): Use the cached hashcode if possible.
80435         (read_changelog_file, try_split_merged_entry): Use entry_create.
80437 2008-02-17  Bruno Haible  <bruno@clisp.org>
80439         Speed up from O(n^2) to O(n) for long ChangeLog files.
80440         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
80441         (read_changelog_file): Change implementation of entries_reversed list
80442         to rbtreehash.
80443         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
80445 2008-02-17  Bruno Haible  <bruno@clisp.org>
80447         New option --split-merged-entry.
80448         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
80449         (find_paragraph_end, try_split_merged_entry): New functions.
80450         (long_options): Add option --split-merged-entry.
80451         (usage): Document option --split-merged-entry.
80452         (main): Implement option --split-merged-entry.
80453         Reported by Eric Blake.
80455 2008-02-17  Bruno Haible  <bruno@clisp.org>
80457         * lib/git-merge-changelog.c: Include c-strstr.h.
80458         (main): Support the "git pull --rebase" situation.
80459         * modules/git-merge-changelog (Depends-on): Add c-strstr.
80460         Reported by Eric Blake.
80462 2008-02-16  Eric Blake  <ebb9@byu.net>
80464         Avoid doubling \ in common case of "c-maybe" quoting style.
80465         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
80466         eliding outer quotes.
80467         * lib/quotearg.h: Document this.
80468         * tests/test-quotearg.c (result_strings, inputs, results_g)
80469         (flag_results, locale_results): Test it by adding a new string to
80470         each test group.
80471         (compare_strings): Test new string.
80473 2008-02-13  Eric Blake  <ebb9@byu.net>
80475         Avoid trigraph quoting in default output.
80476         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
80477         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
80478         unless explicitly requested.
80479         * tests/test-quotearg.c (flag_results, main): Add additional tests.
80481 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
80483         Don't rely on signed integer overflowing to negative value.
80484         * lib/getugroups.c (getugroups): Include <limits.h>.
80485         Instead, compare against INT_MAX, and increment only if the test passes.
80487 2008-02-13  Jim Meyering  <meyering@redhat.com>
80488         and Eric Blake  <ebb9@byu.net>
80490         Avoid shadowing warning and compile errors on Linux.
80491         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
80492         forwarding macros on Linux.
80493         (dcgettext): Define a stub, for Linux.
80494         (results_g, main): Avoid warnings.
80496 2008-02-12  Eric Blake  <ebb9@byu.net>
80498         Silence warning in last patch.
80499         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
80501         Quotearg part 4: add tests, fix c-maybe colon quoting.
80502         * lib/quotearg.h: Improve documentation.
80503         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
80504         escapes when adding outer quotes.  When quoting trigraphs, use
80505         valid C notation.  When quoting NUL, omit extra characters if next
80506         character is not digit.  Alter prototype.
80507         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
80508         callers.
80509         * modules/quotearg-tests: New module.
80510         * tests/test-quotearg.c: New test.
80512 2008-02-07  Eric Blake  <ebb9@byu.net>
80514         Quotearg part 3: add flag to control outer quote elision.
80515         * lib/quotearg.h (c_maybe_quoting_style): New style.
80516         (enum quoting_flags): Better documentation of flags.
80517         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
80518         c-maybe style.
80519         (quotearg_buffer_restyled): Handle new flag to elide outer
80520         quotes.
80522         Quotearg part 2: add flag that can control NUL elision.
80523         * lib/quotearg.h (set_quoting_flags): New prototype.
80524         * lib/quotearg.c (struct quoting_options): Add flag field.
80525         (set_quoting_flags): New function.
80526         (quotearg_buffer_restyled): Add flags parameter.
80527         (quotearg_alloc_mem): Set the flag if length cannot be returned.
80528         (quotearg_n_options): Set the flag, since length cannot be
80529         returned.
80530         (quoting_options_from_style): Default flags correctly.
80532         Quotearg part 1: more wrappers, restore quotearg_char state.
80533         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
80534         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
80535         (quotearg_colon_mem): New wrappers.
80536         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
80537         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
80538         functions.
80539         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
80540         (quotearg_colon_mem): New functions.
80542 2008-02-11  Bruno Haible  <bruno@clisp.org>
80544         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
80545         library in the current directory: it does not work with parallel make.
80546         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80548 2008-02-11  Bruno Haible  <bruno@clisp.org>
80550         * .gitattributes: New file.
80552 2008-02-11  Jim Meyering  <meyering@redhat.com>
80554         useless-if-before-free: Fix reversed exit values.
80555         * build-aux/useless-if-before-free: Use correct values
80556         for EXIT_MATCH and EXIT_NO_MATCH.
80558         * build-aux/useless-if-before-free: Close stdout carefully.
80560 2008-02-10  Bruno Haible  <bruno@clisp.org>
80562         New module 'git-merge-changelog'.
80563         * modules/git-merge-changelog: New file.
80564         * lib/git-merge-changelog.c: New file.
80566 2008-02-10  Jim Meyering  <meyering@redhat.com>
80568         useless-if-before-free: New option: --list (-l).
80570         useless-if-before-free: Don't exit immediately upon open failure.
80571         * build-aux/useless-if-before-free: Exit 2 for errors.
80572         Upon failure to open a file, don't exit immediately.
80573         Rather, just warn and continue with any remaining files.
80575 2008-02-10  Bruno Haible  <bruno@clisp.org>
80577         New abstract list operation 'node_set_value'.
80578         * lib/gl_list.h (gl_list_node_set_value): New function.
80579         (struct gl_list_implementation): New field node_set_value.
80580         * lib/gl_list.c (gl_list_node_set_value): New function.
80581         * lib/gl_array_list.c (gl_array_node_set_value): New function.
80582         (gl_array_list_implementation): Update.
80583         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
80584         (gl_carray_list_implementation): Update.
80585         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
80586         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
80587         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
80588         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
80589         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
80590         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
80591         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
80592         Update.
80593         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
80594         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
80595         (gl_sublist_list_implementation): Update.
80597 2008-02-10  Bruno Haible  <bruno@clisp.org>
80599         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
80600         Needed when ELEMENT is #defined to 'some_type *'.
80602 2008-02-10  Jim Meyering  <meyering@redhat.com>
80604         New script and module: useless-if-before-free
80605         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
80606         * build-aux/useless-if-before-free: New file.
80607         * modules/useless-if-before-free: New file.
80609         * build-aux/gitlog-to-changelog: Use committer date, not author date.
80611         xstrtol_error: Fix typo.
80612         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
80613         s/exit_failure/exit_status/.
80615 2008-02-09  Jim Meyering  <meyering@redhat.com>
80617         New script and module: gitlog-to-changelog
80618         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
80619         * modules/gitlog-to-changelog: New file.
80620         * build-aux/gitlog-to-changelog: New file.
80622 2008-02-08  Jim Meyering  <meyering@redhat.com>
80624         Avoid two "parameter unused" warnings.
80625         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
80626         Mark "st" as used.
80628         Use "git COMMAND", not "git-COMMAND".
80629         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
80630         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
80631         * build-aux/git-version-gen: Use "git status", not "git-status".
80633 2008-02-07  Bruno Haible  <bruno@clisp.org>
80635         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
80636         Avoids a crash on Windows Vista.
80637         Reported by Adam Strzelecki <ono@java.pl> via
80638         Simon Josefsson <simon@josefsson.org>.
80640 2008-02-06  Bruno Haible  <bruno@clisp.org>
80642         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
80643         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
80644         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
80645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
80646         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
80647         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
80648         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
80649         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
80650         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
80651         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
80652         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
80653         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
80654         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
80655         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
80656         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
80657         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
80658         left-adjust flag.
80659         * tests/test-snprintf-posix.h (test_function): Likewise.
80660         * tests/test-sprintf-posix.h (test_function): Likewise.
80661         * tests/test-vasprintf-posix.c (test_function): Likewise.
80662         * doc/posix-functions/fprintf.texi: Update.
80663         * doc/posix-functions/printf.texi: Update.
80664         * doc/posix-functions/snprintf.texi: Update.
80665         * doc/posix-functions/sprintf.texi: Update.
80666         * doc/posix-functions/vfprintf.texi: Update.
80667         * doc/posix-functions/vprintf.texi: Update.
80668         * doc/posix-functions/vsnprintf.texi: Update.
80669         * doc/posix-functions/vsprintf.texi: Update.
80670         Reported by Peter Fales <psfales@alcatel-lucent.com>.
80672 2008-02-06  Bruno Haible  <bruno@clisp.org>
80674         Fix bug introduced on 2008-01-26.
80675         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
80677 2008-02-06  Bruno Haible  <bruno@clisp.org>
80679         Fix bug introduced on 2007-06-10.
80680         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
80681         !NEED_PRINTF_FLAG_ZERO.
80683 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
80685         getloadavg: use libperfstat on AIX5
80686         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
80688 2008-02-03  Bruno Haible  <bruno@clisp.org>
80690         * lib/diffseq.h: Add comments about required #includes.
80691         Reported by Michael Biggs <gnulib@doubleplum.net>.
80693 2008-02-01  Bruno Haible  <bruno@clisp.org>
80695         * users.txt: Add gnuit.
80697 2008-01-31  Bruno Haible  <bruno@clisp.org>
80699         * lib/md4.c (set_uint32): Mark as inline.
80700         * lib/md5.c (set_uint32): Likewise.
80701         * lib/sha1.c (set_uint32): Likewise.
80702         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
80703         * m4/md5.m4 (gl_MD5): Likewise.
80704         * m4/sha1.m4 (gl_SHA1): Likewise.
80706 2008-01-31  Jim Meyering  <meyering@redhat.com>
80708         Use "sizeof VAR", rather than a literal "4".
80709         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
80710         * lib/md4.c (md4_read_ctx): Likewise.
80711         * lib/sha1.c (sha1_read_ctx): Likewise.
80713 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80715         * tests/test-sha1.c: New file, based on test-md5.c.
80717         * modules/crypto/sha1-tests: New file.
80719 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80721         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
80723 2008-01-31  Jim Meyering  <meyering@redhat.com>
80725         Prefer "sizeof v" over the equivalent "4".
80726         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
80727         * lib/md5.c (set_uint32): Likewise.
80728         * lib/sha1.c (set_uint32): Likewise.
80730 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80732         * lib/sha1.c (set_uint32): Mark function as static.
80734 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80736         md2: clarify comments to say that alignment is not required.
80737         * lib/md2.h: Remove warning about alignment in comment.
80738         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
80739         never been required.
80741 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80743         md4: adapt alignment constraint fix from sha1.
80744         * lib/md4.c (set_uint32): New function, from sha1.c
80745         (md4_read_ctx): Use it.
80746         (md4_finish_ctx): Doc fix.
80747         * lib/md4.h: Doc fix.
80749 2008-01-31  Simon Josefsson  <simon@josefsson.org>
80751         md5: adapt alignment constraint fix from sha1.
80752         * lib/md5.c (set_uint32): New function, from sha1.c
80753         (md5_read_ctx): Use it.
80754         (md5_finish_ctx): Doc fix.
80755         * lib/md5.h: Doc fix.
80757 2008-01-30  Peter Palfrader  <weasel@debian.org>
80759         sha1: remove the result buffer alignment constraint
80760         * lib/sha1.c (set_uint32): New function.
80761         (sha1_read_ctx): Rewrite to remove the result buffer alignment
80762         constraint.
80763         (sha1_finish_ctx): Remove comment warning about alignment constraint.
80764         * lib/sha1.h: Likewise.
80766 2008-01-30  Andreas Schwab  <schwab@suse.de>
80767             Bruno Haible  <bruno@clisp.org>
80769         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
80770         correct definition of LDBL_MIN_EXP.
80772 2008-01-30  Karl Berry  <karl@gnu.org>
80774         * config/srclist-update: try to preserve x bit on updates.
80775         * config/srclistvars.sh: update for karl.
80777 2008-01-29  Jim Meyering  <meyering@redhat.com>
80779         vasnprintf.c: Avoid warning about unused label
80780         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
80781         "overflow" label definition and associated code with the
80782         same cpp condition that guards the sole use of that label.
80784 2008-01-26  Bruno Haible  <bruno@clisp.org>
80786         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
80787         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
80788         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
80789         * lib/isnanl-nolibm.h (isnanl): Likewise.
80790         Reported by Paul Eggert <eggert@cs.ucla.edu>.
80792 2008-01-26  Bruno Haible  <bruno@clisp.org>
80794         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
80795         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
80797 2008-01-26  Bruno Haible  <bruno@clisp.org>
80799         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
80800         GCC >= 4.0 built-in.
80801         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
80803 2008-01-26  Bruno Haible  <bruno@clisp.org>
80805         Rename isnan, applicable to 'double' only, to isnand.
80806         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
80807         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
80808         (configure.ac): Update.
80809         (Include): Replace "isnan.h" with "isnand.h".
80810         * m4/isnand.m4: Renamed from m4/isnan.m4.
80811         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
80812         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
80813         instead of isnan.c.
80814         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
80815         instead of HAVE_ISNAN_IN_LIBC.
80816         (isnand): Renamed from isnan.
80817         * lib/isnand.c: New file.
80818         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
80819         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
80820         (Makefile.am): Update.
80821         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
80822         Include isnand.h instead of isnan.h.
80823         (main): Test isnand instead of isnan.
80824         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
80825         isnan-nolibm.
80826         * modules/frexp (Depends-on): Likewise.
80827         * modules/frexp-tests (Depends-on): Likewise.
80828         * modules/frexp-nolibm (Depends-on): Likewise.
80829         * modules/frexp-nolibm-tests (Depends-on): Likewise.
80830         * modules/isfinite (Depends-on): Likewise.
80831         * modules/round-tests (Depends-on): Likewise.
80832         * modules/signbit (Depends-on): Likewise.
80833         * modules/signbit-tests (Depends-on): Likewise.
80834         * modules/snprintf-posix (Depends-on): Likewise.
80835         * modules/sprintf-posix (Depends-on): Likewise.
80836         * modules/trunc-tests (Depends-on): Likewise.
80837         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
80838         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
80839         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
80840         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
80841         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
80842         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
80843         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
80844         * modules/vasnprintf-posix (Depends-on): Likewise.
80845         * modules/vasprintf-posix (Depends-on): Likewise.
80846         * modules/vfprintf-posix (Depends-on): Likewise.
80847         * modules/vsnprintf-posix (Depends-on): Likewise.
80848         * modules/vsprintf-posix (Depends-on): Likewise.
80849         * lib/frexp.c: Include isnand.h instead of isnan.h.
80850         (ISNAN): Set to isnand instead of isnan.
80851         * lib/isfinite.c: Include isnand.h instead of isnan.h.
80852         (gl_isfinited): Use isnand instead of isnan.
80853         * lib/signbitd.c: Include isnand.h instead of isnan.h.
80854         (gl_signbitd): Use isnand instead of isnan.
80855         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
80856         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
80857         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
80858         (main): Use isnand instead of isnan.
80859         * tests/test-round1.c: Include isnand.h.
80860         (main): Use isnand instead of isnan.
80861         * tests/test-round2.c: Include isnand.h instead of isnan.h.
80862         (ISNAN): Set to isnand instead of isnan.
80863         * tests/test-trunc1.c: Include isnand.h.
80864         (main): Use isnand instead of isnan.
80865         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
80866         (equal): Use isnand instead of isnan.
80867         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
80868         isnand-nolibm.
80869         * NEWS: Mention the change.
80871 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
80872             Bruno Haible  <bruno@clisp.org>
80874         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
80875         the GCC builtins for signbits are present and set
80876         REPLACE_SIGNBIT_USING_GCC if so.
80877         * lib/math.in.h (signbit): Define using GCC builtins if
80878         REPLACE_SIGNBIT_USING_GCC is set.
80879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
80880         REPLACE_SIGNBIT_USING_GCC.
80881         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
80883 2008-01-25  Jim Meyering  <meyering@redhat.com>
80885         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
80886         * lib/poll.c: Include <config.h>, not "config.h".
80887         * tests/test-getaddrinfo.c: Likewise.
80889 2008-01-25  Simon Josefsson  <simon@josefsson.org>
80891         * modules/sockets-tests: New file.
80893 2008-01-24  Simon Josefsson  <simon@josefsson.org>
80895         * modules/sockets: New module, can be used to call WSA_Startup and
80896         WSA_Cleanup when needed.
80898         * lib/sockets.h, lib/sockets.c: New files.
80900         * m4/sockets.m4: New file.
80902         * tests/test-sockets.c: New file.
80904 2008-01-19  Bruno Haible  <bruno@clisp.org>
80906         * doc/posix-headers: Renamed from doc/headers.
80907         * doc/posix-functions: Renamed from doc/functions.
80908         * doc/gnulib.texi: Update.
80910 2008-01-19  Bruno Haible  <bruno@clisp.org>
80912         * doc/glibc-functions/strcasestr.texi: Include contents of
80913         doc/functions/strcasestr.texi, fixing the list of platforms.
80914         * doc/functions/strcasestr.texi: Remove file.
80916 2008-01-19  Bruno Haible  <bruno@clisp.org>
80918         * doc/glibc-functions/memmem.texi: Include contents of
80919         doc/functions/memmem.texi.
80920         * doc/functions/memmem.texi: Remove file.
80922 2008-01-18  Bruno Haible  <bruno@clisp.org>
80924         * doc/glibc-functions/*.texi: New files.
80925         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
80926         to use the new files.
80928 2008-01-17  Bruno Haible  <bruno@clisp.org>
80930         * tests/test-gethostname.c (main): Fix printf statement.
80932 2008-01-17  Simon Josefsson  <simon@josefsson.org>
80934         * modules/gethostname-tests: New file.
80936         * tests/test-gethostname.c: New file.
80938 2008-01-17  Simon Josefsson  <simon@josefsson.org>
80940         * lib/gethostname.c: Include string.h unconditionally, strncpy is
80941         used by the UNAME case.  Reported by Bruno Haible
80942         <bruno@clisp.org>.
80944 2008-01-17  Eric Blake  <ebb9@byu.net>
80946         Convert c-strcasestr to be more efficient.
80947         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
80948         (Depends-on): Add c-strcase, remove malloca, strnlen.
80949         * tests/test-c-strcasestr.c (main): Enhance test.
80950         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
80952 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
80954         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
80955         Use it in creating po/Makevars.
80957 2008-01-15  Simon Josefsson  <simon@josefsson.org>
80959         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
80960         Applications that requires it should initialize libgcrypt
80961         manually.
80963 2008-01-16  Simon Josefsson  <simon@josefsson.org>
80965         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
80967 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
80969         Fix problem with getdate on mingw32 reported by Simon Josefsson
80970         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
80971         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
80972         tzname", when deciding whether to declare tzname.
80973         * lib/strftime.c (tzname): Likewise.
80975 2008-01-15  Bruno Haible  <bruno@clisp.org>
80977         Work around a MacOS X 10.5 bug in frexpl().
80978         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
80979         * doc/functions/frexpl.texi: Document the bug.
80980         Reported by Elias Pipping <pipping@gentoo.org>.
80982 2008-01-14  Eric Blake  <ebb9@byu.net>
80984         Touch up previous patch.
80985         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
80986         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
80988         Convert strcasestr module to use Two-Way algorithm.
80989         * modules/strcasestr-simple: New module, based on the old
80990         strcasestr, but with Two-Way rather than KMP.
80991         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
80992         * lib/string.in.h (rpl_strcasestr): Declare.
80993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
80994         performance.
80995         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
80996         * modules/string (Makefile.am): Support strcasestr.
80997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
80998         * modules/strcasestr-tests (Depends-on): Check for alarm.
80999         * tests/test-strcasestr.c: Augment test.
81000         * lib/str-two-way.h: Clean up stray macro.
81001         * NEWS: Document new module.
81002         * MODULES.html.sh (string handling): Likewise.
81003         * doc/functions/strcasestr.texi: New file.
81004         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
81005         here, since it is not a POSIX function.
81007 2008-01-14  Colin Watson  <cjwatson@debian.org>
81008             Bruno Haible  <bruno@clisp.org>
81010         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
81011         works fine; if not, set REPLACE_STRSIGNAL.
81012         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
81013         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81014         REPLACE_STRSIGNAL.
81015         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
81016         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
81017         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
81019 2008-01-14  Bruno Haible  <bruno@clisp.org>
81021         * modules/strsignal (Include): Change to <string.h>.
81023 2008-01-14  Colin Watson  <cjwatson@debian.org>
81025         * modules/argp (Notice): Add a notice recommending to change
81026         XGETTEXT_OPTIONS.
81027         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
81029 2008-01-13  Colin Watson  <cjwatson@debian.org>
81031         * modules/strsignal-tests: New file.
81032         * tests/test-strsignal.c: New file.
81034         * lib/strsignal.c: New file, from glibc with modifications.
81035         * lib/siglist.h: New file, from glibc with modifications.
81036         * lib/string.in.h (strsignal): New declaration.
81037         * m4/strsignal.m4: New file.
81038         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81039         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
81040         * modules/strsignal: New file.
81041         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
81042         HAVE_DECL_STRSIGNAL.
81044 2008-01-13  Bruno Haible  <bruno@clisp.org>
81046         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
81047         locale encoding is not ASCII. Needed for OpenBSD 4.0.
81048         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81049         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81051 2008-01-13  Bruno Haible  <bruno@clisp.org>
81053         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
81054         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
81055         * lib/argp.h (__attribute__): Likewise.
81056         * lib/c-stack.c (__attribute__): Likewise.
81057         * lib/error.h (__attribute__): Likewise.
81058         * lib/fts.c (__attribute__): Likewise.
81059         * lib/openat.h (__attribute__): Likewise.
81060         * lib/stdio.in.h (__attribute__): Likewise.
81061         * lib/string.in.h (__attribute__): Likewise.
81062         * lib/utimens.c (__attribute__): Likewise.
81063         * lib/vasnprintf.h (__attribute__): Likewise.
81064         * lib/xalloc.h (__attribute__): Likewise.
81065         * lib/xprintf.h (__attribute__): Likewise.
81066         * lib/xstrtol.h (__attribute__): Likewise.
81067         * lib/xvasprintf.h (__attribute__): Likewise.
81069 2008-01-12  Bruno Haible  <bruno@clisp.org>
81071         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
81072         * doc/glibc-headers/a.out.texi: New file.
81073         * doc/glibc-headers/aliases.texi: New file.
81074         * doc/glibc-headers/alloca.texi: New file.
81075         * doc/glibc-headers/ar.texi: New file.
81076         * doc/glibc-headers/argp.texi: New file.
81077         * doc/glibc-headers/argz.texi: New file.
81078         * doc/glibc-headers/byteswap.texi: New file.
81079         * doc/glibc-headers/crypt.texi: New file.
81080         * doc/glibc-headers/endian.texi: New file.
81081         * doc/glibc-headers/envz.texi: New file.
81082         * doc/glibc-headers/err.texi: New file.
81083         * doc/glibc-headers/error.texi: New file.
81084         * doc/glibc-headers/execinfo.texi: New file.
81085         * doc/glibc-headers/fpu_control.texi: New file.
81086         * doc/glibc-headers/fstab.texi: New file.
81087         * doc/glibc-headers/fts.texi: New file.
81088         * doc/glibc-headers/getopt.texi: New file.
81089         * doc/glibc-headers/ieee754.texi: New file.
81090         * doc/glibc-headers/ifaddrs.texi: New file.
81091         * doc/glibc-headers/libintl.texi: New file.
81092         * doc/glibc-headers/mcheck.texi: New file.
81093         * doc/glibc-headers/mntent.texi: New file.
81094         * doc/glibc-headers/obstack.texi: New file.
81095         * doc/glibc-headers/paths.texi: New file.
81096         * doc/glibc-headers/printf.texi: New file.
81097         * doc/glibc-headers/pty.texi: New file.
81098         * doc/glibc-headers/resolv.texi: New file.
81099         * doc/glibc-headers/shadow.texi: New file.
81100         * doc/glibc-headers/sysexits.texi: New file.
81101         * doc/glibc-headers/ttyent.texi: New file.
81103 2008-01-12  Jim Meyering  <meyering@redhat.com>
81105         announce-gen: emit Gnulib's git-based version string.
81106         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
81107         New option --gnulib-version=V, where V is expected to be
81108         the output of running git describe in the gnulib directory.
81109         (get_tool_versions): Request feedback on xdelta.  I suspect it's
81110         not useful, and plan to stop publishing an xdelta file with each
81111         coreutils release.
81113         * build-aux/announce-gen: Also check for lzma-compressed files.
81115 2008-01-11  Bruno Haible  <bruno@clisp.org>
81117         * tests/test-memmem.c (main): Increase maximum allowed time.
81118         * tests/test-strstr.c (main): Likewise.
81120 2008-01-11  Bruno Haible  <bruno@clisp.org>
81122         * doc/functions/memmem.texi: Add more precisions about platforms.
81123         * doc/functions/strstr.texi: Likewise.
81125 2008-01-10  Eric Blake  <ebb9@byu.net>
81127         * m4/strstr.m4: Delete cruft from copy-n-paste.
81128         Reported by Bruno Haible.
81130 2008-01-10  Bruno Haible  <bruno@clisp.org>
81132         Make c-strstr rely on strstr.
81133         * lib/c-strstr.c: Don't include str-kmp.h.
81134         (c_strstr): Define in terms of strstr.
81135         * modules/c-strstr (Files): Remove lib/str-kmp.h.
81136         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
81138 2008-01-10  Bruno Haible  <bruno@clisp.org>
81140         * doc/gnulib.texi (String Functions in C Locale): New section.
81141         * doc/c-ctype.texi: New file.
81142         * doc/c-strcase.texi: New file.
81143         * doc/c-strcaseeq.texi: New file.
81144         * doc/c-strcasestr.texi: New file.
81145         * doc/c-strstr.texi: New file.
81146         * doc/c-strtod.texi: New file.
81147         * doc/c-strtold.texi: New file.
81149 2008-01-10  Eric Blake  <ebb9@byu.net>
81151         * lib/relocatable.h: Fix a comment.
81153 2008-01-10  Eric Blake  <ebb9@byu.net>
81155         Share two-way algorithm.
81156         * lib/str-two-way.h: New file, merged from...
81157         * lib/memmem.c: ...here...
81158         * lib/strstr.c: ...and here.
81159         * modules/memmem (Files): Use it.
81160         * modules/strstr (Files): Likewise.
81162         Avoid quadratic strstr implementations.
81163         * lib/strstr.c: New file.
81164         * m4/strstr.m4: Likewise.
81165         * modules/strstr: Likewise.
81166         * modules/strstr-tests: Likewise.
81167         * tests/test-strstr.c: Likewise.
81168         * lib/string.in.h (rpl_strstr): Declare.
81169         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
81170         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
81171         * modules/string (Makefile.am): Likewise.
81172         * MODULES.html.sh (string handling): Mention new module.
81173         * doc/functions/strstr.texi (strstr): Document the bug.
81175 2008-01-10  Bruno Haible  <bruno@clisp.org>
81177         * lib/relocatable.h (relocate): State whether result is freshly
81178         allocated or not.
81179         * lib/relocatable.c (relocate): Return a freshly allocated string
81180         instead of a pointer to a privately held string.
81181         Reported by Sylvain Beucler <beuc@gnu.org>.
81183 2008-01-10  Colin Watson  <cjwatson@debian.org>
81185         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
81186         s/S_ISNLK/S_ISLNK/.
81188 2008-01-09  Bruno Haible  <bruno@clisp.org>
81190         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
81191         and other files.
81192         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
81193         if it's only a guess.
81194         * modules/memmem: Simplify by depending on memmem-simple.
81196 2008-01-09  Bruno Haible  <bruno@clisp.org>
81198         Work around OpenBSD 4.0 tdelete() bug.
81199         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
81200         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
81201         macros and don't redefine the enum values.
81202         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
81203         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
81204         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
81206 2008-01-09  Bruno Haible  <bruno@clisp.org>
81208         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
81209         (main): Don't perform the tests if setlocale did not install a UTF-8
81210         locale. Needed on OpenBSD 4.0.
81211         * modules/wcwidth-tests (Depends-on): Add localcharset.
81213 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81215         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
81216         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
81217         * NEWS: announce this.
81218         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
81220 2008-01-09  Simon Josefsson  <simon@josefsson.org>
81221         and Eric Blake  <ebb9@byu.net>
81223         Add memmem-simple module.
81224         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
81225         (gl_FUNC_MEMMEM): Separate performance from presence checks.
81226         * modules/memmem-simple: New file.
81227         * modules/memmem (Description): Tweak.
81228         * MODULES.html.sh (string handling): Mention new module.
81229         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
81230         addressed by memmem-simple.
81231         * NEWS: Document the difference.
81233 2008-01-09  Eric Blake  <ebb9@byu.net>
81235         Give gcc some memmem optimization hints.
81236         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
81237         (strcasestr): Declare as pure.
81238         * modules/memmem (Maintainer): Claim my implementation.
81240 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81242         Support AIX 6.1 and higher.
81243         * build-aux/config.libpath: Likewise.
81244         * build-aux/config.rpath: Likewise.
81246 2008-01-08  Jim Meyering  <meyering@redhat.com>
81247             Bruno Haible  <bruno@clisp.org>
81249         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
81250         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
81251         Reported by Peter Fales in
81252         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
81254 2008-01-08  Bruno Haible  <bruno@clisp.org>
81256         * modules/unictype/category-of (Depends-on): Add
81257         unictype/category-none.
81258         * modules/unictype/category-and-tests (Depends-on): Add
81259         unictype/category-{L,N,Lu,Nd}.
81260         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
81261         * modules/unictype/category-or-tests (Depends-on): Add
81262         unictype/category-{L,N}.
81263         * modules/unictype/category-name-tests (Depends-on): Add
81264         unictype/category-{Z,Nl}.
81265         Reported by Simon Josefsson.
81267 2008-01-08  Bruno Haible  <bruno@clisp.org>
81269         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
81270         convention better.
81271         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
81272         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
81273         Reported by Peter Miller <millerp@canb.auug.org.au>.
81275 2008-01-08  Eric Blake  <ebb9@byu.net>
81277         Rewrite memmem to guarantee linear complexity without malloc.
81278         * lib/memmem.c (memmem): Use Two-Way rather than
81279         Knuth-Morris-Pratt, to allow O(1) space usage.
81280         (critical_factorization, two_way_short_needle)
81281         (two_way_long_needle): New functions.
81282         (knuth_morris_pratt): Delete.
81283         * modules/memmem (Depends-on): No longer need malloca or stdbool.
81284         Add stdint.
81285         * tests/test-memmem.c (main): Add tests for periodic needle and
81286         sublinear performance.
81287         * doc/functions/memmem.texi (memmem): Document other deficiencies
81288         in cygwin and older glibc.
81290 2008-01-08  Bruno Haible  <bruno@clisp.org>
81292         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
81293         augmentation.
81295 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
81297         Add a configure time option: --disable-acl.
81298         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
81299         AC_ARG_ENABLE(acl).
81301 2008-01-06  Simon Josefsson  <simon@josefsson.org>
81303         * tests/test-localename.c: Don't include obsolete "setenv.h".
81305         * modules/localename-tests (Depends-on): Need unsetenv.
81307 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81309         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
81311 2008-01-06  Colin Watson  <cjwatson@debian.org>
81313         * users.txt: Add man-db.
81315 2008-01-07  Bruno Haible  <bruno@clisp.org>
81317         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
81318         previous section name.
81320 2008-01-07  Bruno Haible  <bruno@clisp.org>
81322         * lib/progname.c (set_program_name): Don't strip off a leading
81323         "lt-" prefix outside a .libs directory.
81324         Suggested by Paul Eggert.
81326 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
81327             Bruno Haible  <bruno@clisp.org>
81329         Improve memory cleanup in 'relocatable' module.
81330         * lib/relocatable.h (compute_curr_prefix): Change return type to
81331         'char *'.
81332         * lib/relocatable.c (compute_curr_prefix): Change return type to
81333         'char *'. Free curr_installdir after use.
81334         (relocate): Free curr_prefix_better after use.
81335         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
81337 2008-01-01  Bruno Haible  <bruno@clisp.org>
81339         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
81340         failure on older glibc systems.
81341         Reported by Peter Fales <psfales@alcatel-lucent.com>.
81343 2008-01-05  Eric Blake  <ebb9@byu.net>
81345         Avoid quadratic system memmem.
81346         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
81347         Reported by Ralf Wildenhues.
81349         Fix memmem test for mingw.
81350         * modules/memmem-tests (configure.ac): Check for alarm.
81351         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
81352         it.
81353         * doc/functions/memmem.texi: New file.
81354         * doc/gnulib.texi (Function Substitutes): Add memmem.
81355         Reported by Bruno Haible.
81357 2008-01-04  Bruno Haible  <bruno@clisp.org>
81359         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
81360         Require gl_HEADER_STRINGS_H_DEFAULTS, not
81361         gl_HEADER_STRING_H_DEFAULTS.
81363 2008-01-04  Eric Blake  <ebb9@byu.net>
81365         Shorten duration of memmem test.
81366         * tests/test-memmem.c (main): Use alarm to declare failure if test
81367         is taking too long.
81368         Reported by Ralf Wildenhues.
81370 2007-12-21  Simon Josefsson  <simon@josefsson.org>
81372         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
81373         string, needed by strerror.
81375 2008-01-03  Colin Watson  <cjwatson@debian.org>
81376             Bruno Haible  <bruno@clisp.org>
81378         * doc/gnulib-tool.texi (Localization): New section.
81380 2008-01-02  Bruno Haible  <bruno@clisp.org>
81382         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
81383         variables to 'unsigned char *' type.
81384         Reported by Paul Eggert.
81386 2008-01-02  Jim Meyering  <jim@meyering.net>
81388         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
81390 2007-12-31  Jim Meyering  <jim@meyering.net>
81392         Avoid use of private FTS type name.
81393         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
81395 2007-12-30  Karl Berry  <karl@gnu.org>
81397         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
81398         work around defect in Texinfo and/or the standalone Info browser.
81400 2007-12-30  Bruno Haible  <bruno@clisp.org>
81402         Unify 5 copies of the KMP code.
81403         * lib/str-kmp.h: New file.
81404         * lib/c-strcasestr.c: Include str-kmp.h.
81405         (knuth_morris_pratt): Remove function.
81406         (c_strcasestr): Update.
81407         * lib/c-strstr.c: Include str-kmp.h.
81408         (knuth_morris_pratt): Remove function.
81409         (c_strcasestr): Update.
81410         * lib/mbscasestr.c: Include str-kmp.h.
81411         (knuth_morris_pratt_unibyte): Remove function.
81412         * lib/mbsstr.c: Include str-kmp.h.
81413         (knuth_morris_pratt_unibyte): Remove function.
81414         * lib/strcasestr.c: Include str-kmp.h.
81415         (knuth_morris_pratt): Remove function.
81416         (strcasestr): Update.
81417         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
81418         * modules/c-strstr (Files): Likewise.
81419         * modules/mbscasestr (Files): Likewise.
81420         * modules/mbsstr (Files): Likewise.
81421         * modules/strcasestr (Files): Likewise.
81422         Suggested by Paul Eggert.
81424 2007-12-30  Bruno Haible  <bruno@clisp.org>
81426         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
81427         defined.
81429 2007-12-30  Bruno Haible  <bruno@clisp.org>
81431         * lib/xmalloca.h: Include xalloc.h.
81432         (xnmalloca): New macro.
81434 2007-12-30  Bruno Haible  <bruno@clisp.org>
81436         * lib/malloca.h (nmalloca): New macro.
81437         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
81438         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
81439         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
81440         knuth_morris_pratt_multibyte): Likewise.
81441         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
81442         knuth_morris_pratt_multibyte): Likewise.
81443         * lib/memmem.c (knuth_morris_pratt): Likewise.
81444         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
81446 2007-12-25  Bruno Haible  <bruno@clisp.org>
81448         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
81449         * lib/glob.c: Don't include openat.h.
81450         (link_exists2_p): Add back the code that deals with the
81451         !GLOB_ALTDIRFUNC case.
81452         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
81453         let it do the filename concatenation.
81454         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
81455         * modules/glob (Depends-on): Remove openat.
81457 2007-12-31  Bruno Haible  <bruno@clisp.org>
81459         * modules/dirfd (License): Change to LGPLv2+.
81460         Approved by Jim Meyering.
81462 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
81464         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
81465         when multiplying M by sizeof (size_t).
81467 2007-12-10  Martin Lambers  <marlam@marlam.de>
81469         Override getpagesize on mingw.
81470         * lib/getpagesize.c: New file.
81471         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
81472         * modules/getpagesize (Files): Add lib/getpagesize.c.
81473         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
81474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81475         REPLACE_GETPAGESIZE.
81476         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
81478 2007-12-25  Bruno Haible  <bruno@clisp.org>
81480         * modules/localcharset (Notice): New field.
81481         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
81482         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
81484 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
81485             Bruno Haible  <bruno@clisp.org>
81487         Avoid using the syntax symbol() in formatted documentation.
81488         * MODULES.html.sh (func_module): When replacing symbol() with a
81489         hyperlink, remove the parentheses. Show an error if some remain.
81490         Recognize and render the '...' syntax.
81491         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
81492         Rework. Add paragraph about GCC's inlining.
81493         * doc/alloca.texi: Likewise.
81494         * doc/error.texi: Remove parentheses from symbol reference.
81495         * doc/gnulib-intro.texi: Likewise.
81496         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
81497         * modules/fnmatch (Description): Reword to say "the ... function".
81498         * modules/full-read (Description): Likewise.
81499         * modules/full-write (Description): Likewise.
81500         * modules/safe-read (Description): Likewise.
81501         * modules/safe-write (Description): Likewise.
81502         * modules/strchrnul (Description): Likewise.
81503         * modules/trim (Description): Likewise.
81504         * modules/error (Description): Remove parentheses from symbol
81505         references.
81506         * modules/verror (Description): Likewise.
81507         Reported by Karl Berry.
81509 2007-12-25  Bruno Haible  <bruno@clisp.org>
81511         Fixup after 2007-10-16 commit.
81512         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
81514 2007-12-24  Bruno Haible  <bruno@clisp.org>
81516         Make --enable-relocatable work with DESTDIR.
81517         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
81518         to compute installdir from destprog.
81519         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
81520         also set the RELOC_DESTDIR variable.
81521         Reported by Левашев Иван <octagram@bluebottle.com>.
81523 2007-12-24  Bruno Haible  <bruno@clisp.org>
81525         Fix link error due to xalloc_die().
81526         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
81527         of xreadlink.
81528         * lib/relocwrapper.c: Update comments.
81529         * build-aux/install-reloc: Remove xreadlink.c from file list.
81530         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
81531         xreadlink.c.
81532         Reported by Левашев Иван <octagram@bluebottle.com>.
81534 2007-12-24  Bruno Haible  <bruno@clisp.org>
81536         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
81537         * lib/setenv.h: Remove file.
81538         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
81539         lib/setenv.h.
81540         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
81541         (Depends-on): Add stdlib.
81542         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
81543         gl_FUNC_UNSETENV.
81544         (Include): Replace setenv.h with <stdlib.h>.
81545         * modules/unsetenv: New file.
81546         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
81547         * lib/unsetenv.c: Include <stdlib.h> first.
81548         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
81549         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
81550         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
81551         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
81552         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
81553         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
81555         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
81556         * doc/functions/unsetenv.texi: Update.
81557         * modules/xsetenv (Depends-on): Add unsetenv.
81558         * modules/getdate (Depends-on): Likewise.
81559         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
81560         * lib/xsetenv.c: Don't include setenv.h.
81561         * lib/getdate.y: Likewise.
81562         * lib/relocwrapper.c: Likewise.
81563         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
81564         (Depends-on): Add stdlib.
81565         * NEWS: Mention the changes.
81566         Reported by Левашев Иван <octagram@bluebottle.com>.
81568 2007-12-23  Bruno Haible  <bruno@clisp.org>
81570         * lib/memmem.c (memmem): Use lowercase variable names. Tab
81571         indentation.
81573 2007-12-23  Bruno Haible  <bruno@clisp.org>
81575         * lib/c-strcasestr.c: Add more comments.
81576         * lib/c-strstr.c: Likewise.
81577         * lib/mbscasestr.c: Likewise.
81578         * lib/mbsstr.c: Likewise.
81579         * lib/strcasestr.c: Likewise.
81580         * lib/memmem.c: Likewise.
81582 2007-12-23  Bruno Haible  <bruno@clisp.org>
81584         * tests/test-memmem.c: Include <string.h> first.
81586 2007-12-22  Bruno Haible  <bruno@clisp.org>
81588         * gnulib-tool (func_create_testdir): Change $auxdir while generating
81589         the contents of $testsbase.
81590         Reported by Ralf Wildenhues.
81592 2007-12-22  Bruno Haible  <bruno@clisp.org>
81594         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
81595         two variables local_ldadd_before, local_ldadd_last.
81597 2007-12-20  Eric Blake  <ebb9@byu.net>
81599         Work around circular library issue when cross-compiling.
81600         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
81601         that progname.o does not need to pull in rpl_memcmp.
81603 2007-12-19  Eric Blake  <ebb9@byu.net>
81605         Fix memmem to avoid O(n^2) worst-case complexity.
81606         * lib/memmem.c (knuth_morris_pratt): New function.
81607         (memmem): Use it if first few naive iterations fail.
81608         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
81609         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
81610         * modules/memchr (License): Likewise.
81611         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
81612         malloca.
81613         * tests/test-memmem.c: Rewrite, borrowing ideas from
81614         test-mbsstr1.c; the old version wouldn't even compile!
81615         * modules/memmem-tests: New file.
81616         * lib/string.in.h (rpl_memmem): Add declaration.
81617         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
81618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
81619         REPLACE_MEMMEM.
81621 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
81623         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
81624         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
81625         before any system include files, and undef after them all.  This
81626         should fix a problem on VMS reported by John E. Malmberg in
81627         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
81629 2007-12-17  Eric Blake  <ebb9@byu.net>
81631         Revert addition of verify, for BSD/OS.
81632         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
81633         can't handle large files, for the sake of obsolete platforms.
81634         * modules/fseeko (Depends-on): Remove verify.
81635         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
81636         * doc/functions/ftello.texi (ftello): Likewise.
81637         * doc/functions/fgetpos.texi (fgetpos): Likewise.
81638         Reported by Larry Jones.
81640 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
81642         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
81643         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
81645 2007-12-17  Jim Meyering  <meyering@redhat.com>
81647         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
81648         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
81649         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
81650         * modules/getcwd (Depends-on): Add openat.
81651         Reported by Petr Salinger.
81653 2007-12-17  Bruno Haible  <bruno@clisp.org>
81655         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
81656         avoid a segmentation fault of the configure test on x86_64 systems.
81658 2007-12-15  Jim Meyering  <meyering@redhat.com>
81660         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
81662 2007-12-13  Eric Blake  <ebb9@byu.net>
81664         Another fseek test.
81665         * tests/test-fseek.c (main): Also test ungetc handling.
81666         * tests/test-fseeko.c (main): Likewise.
81667         * modules/fseeko (Depends-on): Add verify.
81668         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
81669         large.
81670         Reported by Larry Jones.
81672         Fix fseeko on mingw.
81673         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
81674         seek.
81676         Beef up fseek tests.
81677         * tests/test-fseek.c (main): Also test eof handling.
81678         * tests/test-fseeko.c (main): Likewise.
81679         Reported by Larry Jones.
81681 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
81683         Fix fseeko on BSD-based platforms.
81684         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
81685         successful seek.
81687 2007-12-12  Eric Blake  <ebb9@byu.net>
81689         Allow circular dependency of separate libtests.a
81690         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
81691         when use_libtests.
81693 2007-12-11  Eric Blake  <ebb9@byu.net>
81695         Fix bug with -0.0L in previous patch.
81696         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
81697         * tests/test-isnan.c (main): Also test on zeroes.
81698         * tests/test-isnanf.c (main): Likewise.
81699         * tests/test-isnanl.h (main): Likewise.
81701         Detect pseudo-denormals on x86 even when cross-compiling.
81702         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
81703         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
81704         invalid bit patterns that happen to satisfy ==.
81706         Avoid link failures with separate libtests.a.
81707         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
81708         last, to satisfy circular dependencies.
81710 2007-12-11  Eric Blake  <ebb9@byu.net>
81711         and Bruno Haible  <bruno@clisp.org>
81713         Fix OpenBSD 4.0 <float.h> handling of long double.
81714         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
81715         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
81716         * doc/headers/float.texi (float.h): Document OpenBSD bug.
81718 2007-12-11  Jim Meyering  <meyering@redhat.com>
81720         * users.txt: Add libvirt.
81722         Support versions of autoconf prior to 2.59c.
81723         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
81724         if it is not already defined.
81726 2007-12-09  Bruno Haible  <bruno@clisp.org>
81728         Let 'gnulib-tool --import' collect sources needed for the tests in
81729         tests/ rather than in lib/.
81730         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
81731         argument. If true, add rules to generate libtests.a, and put libtests.a
81732         into $(LDADD). Consider source files in subdirectories and set
81733         uses_subdirs.
81734         (func_emit_initmacro_start, func_emit_initmacro_end,
81735         func_emit_initmacro_done): Pass all arguments explicitly.
81736         (func_import): Determine two module lists main_modules,
81737         testsrelated_modules. Determine use_libtests. Determine two variables
81738         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
81739         instead of just sed_transform_lib_file. Determine two variables
81740         main_files and testsrelated_files. Compute 'files' as the union of
81741         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
81742         func_add_or_update. In the generated gnulib-comp.m4, collect the
81743         object files for tests/ in different variables than those for lib/.
81744         Substitute LIBTESTS_LIBDEPS.
81745         (func_create_testdir): Combine the uses_subdirs results from
81746         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
81748 2007-12-09  Bruno Haible  <bruno@clisp.org>
81750         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
81751         the build-aux directory.
81753 2007-12-09  Bruno Haible  <bruno@clisp.org>
81755         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
81756         introduced on 2006-09-09.
81758 2007-12-07  Jim Meyering  <meyering@redhat.com>
81760         Let these macros work also with autoconf-2.59.
81761         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
81762         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
81763         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
81765 2007-12-06  Jim Meyering  <meyering@redhat.com>
81767         Avoid a configure-time syntax error in gl_FUNC_ACL.
81768         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
81769         function in each branch, before testing the cache variable.
81771 2007-12-04  Eric Blake  <ebb9@byu.net>
81773         Make scripts executable.
81774         * build-aux/config.guess: Add execute permissions.
81775         * build-aux/config.sub: Likewise.
81776         * build-aux/gendocs.sh: Likewise.
81778         Fix frexp on mingw.
81779         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
81780         cross-compiling.
81781         * doc/functions/frexp.texi (frexp): Document the bug.
81783         Make cygwin fseeko check more reliable.
81784         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
81785         version numbers, rather than unrelated feature check.
81786         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
81787         * doc/functions/ftello.texi (ftello): Likewise.
81788         Reported by Bruno Haible.
81790         * m4/strerror.m4: Bump version number.
81792 2007-12-03  Bruno Haible  <bruno@clisp.org>
81794         * doc/functions/mprotect.texi: Mention the mingw problem.
81796 2007-12-03  Eric Blake  <ebb9@byu.net>
81798         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
81799         REPLACE_STRERROR is initialized before this macro.
81801 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
81803         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
81804         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
81805         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
81806         put -lsec in even for programs other than 'ls'.  This fixes a problem
81807         for gettext reported by Bruno Haible in
81808         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
81809         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
81810         Add support for Solaris 10.  This isn't efficient, but should get the
81811         job done for now.
81813 2007-12-03  James Youngman  <jay@gnu.org>
81815         * doc/regexprops-generic.texi: change "an close-group" to "a
81816         close-group" and "illegal" to "not allowed".
81818 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81820         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
81821         pr_byname.h. Needed for the rare case when the maintainer has done
81822         "make maintainer-clean" in the source directory and then attempts a
81823         build outside the source directory.
81824         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
81825         scripts_byname.h.
81827 2007-12-02  Martin Lambers  <marlam@marlam.de>
81828             Bruno Haible  <bruno@clisp.org>
81830         * lib/getpagesize.h: Remove file.
81831         * lib/unistd.in.h: Include declaration of getpagesize here.
81832         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
81833         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
81834         HAVE_SYS_PARAM_H.
81835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
81836         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
81837         * modules/getpagesize (Files): Remove lib/getpagesize.h.
81838         (Depends-on): Add unistd.
81839         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
81840         (Include): Use <unistd.h> instead of getpagesize.h.
81841         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
81842         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
81843         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
81844         gl_GETPAGESIZE invocation, already handled by module dependency.
81845         * lib/pagealign_alloc.c: Don't include getpagesize.h.
81847 2007-12-02  Bruno Haible  <bruno@clisp.org>
81849         * modules/strings-tests: New file.
81850         * tests/test-strings.c: New file.
81852         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
81853         * lib/strings.in.h: New file.
81854         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
81855         * m4/strings_h.m4: New file.
81856         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
81857         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
81858         * modules/strings: New file.
81859         * modules/string (Makefile.am): Update.
81860         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
81861         Reported by Karl Berry.
81863 2007-12-01  Eric Blake  <ebb9@byu.net>
81865         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
81866         accommodate fix in cygwin 1.5.25.
81868 2007-12-01  Jim Meyering  <meyering@redhat.com>
81870         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
81871         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
81872         that would inhibit utf8-optimization of a regexp containing line-
81873         or buffer-anchors, e.g., `^', `$'.
81875 2007-11-30  Bruno Haible  <bruno@clisp.org>
81877         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
81878         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
81879         glthread_recursive_lock_init.
81880         * lib/lock.c (glthread_recursive_lock_init)
81881         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
81882         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81884 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
81886         New function qset_acl, like set_acl but with syscall semantics.
81887         * lib/acl.h (qset_acl): New decl.
81888         * lib/acl.c (qset_acl): New function.
81889         (set_acl): Use new function.  Use more-consistent diagnostics.
81891 2007-11-28  Jim Meyering  <meyering@redhat.com>
81893         * modules/physmem (License): Change from GPL to LGPLv2+.
81895 2007-11-26  Bruno Haible  <bruno@clisp.org>
81897         * lib/vasnprintf.c (decode_long_double): Don't abort if the
81898         'long double' type has excess precision.
81899         Reported by Jim Meyering in
81900         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
81902 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81904         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
81905         Sync from <http://gnu.org/licenses>.
81906         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
81907         with license text from same location.
81908         * doc/maintain.texi, doc/standards.texi:  Sync from
81909         <http://savannah.gnu.org/projects/gnustandards>.
81911 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
81912         and Jim Meyering  <meyering@redhat.com>
81914         Adjust getdate' grammar to accept a slightly more regular language.
81915         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
81916         Before, the former was rejected.
81917         * lib/getdate.y (digits_to_date_time): New function, factored
81918         out of ...
81919         (number): ...here.  Just call digits_to_date_time.
81920         (hybrid): New non-terminal to handle an <unsigned number,
81921         signed relative offset> sequence consistently.
81923 2007-11-18  Jim Meyering  <meyering@redhat.com>
81925         Pull my changes from coreutils:
81926         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
81927         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
81928         use of $gnulib_tool_option_extras, so that it's separated from the
81929         preceding argument.
81931         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
81932         * build-aux/bootstrap (cp_mark_as_generated): Create any required
81933         parent destination directories before copying a file into place.
81935 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
81937         bootstrap: work also with 4-argument variant of AC_INIT
81938         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
81940 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81942         Port test-getaddrinfo to Solaris.
81943         Problem reported by Bruno Haible in
81944         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
81945         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
81946         explanation of setting 'hints'.
81947         Don't reject an implementation merely because it returns EAI_SERVICE.
81948         (EAI_SERVICE): Define to 0 if not defined.
81950 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
81952         The license of gnu-make and posix-shell is now "GPLed build tool".
81953         * modules/gnu-make (License): Likewise.
81954         * modules/posix-shell (License): Likewise.
81956         New module posix-shell, for determining a POSIX shell
81957         or perhaps something that is close enough to a POSIX shell.
81958         * m4/posix-shell.m4: New file.
81959         * modules/posix-shell: New file.
81961         * MODULES.html.sh: Mention new module.
81963         New module gnu-make, for determining whether we're using GNU Make.
81964         * m4/gnu-make.m4: New file.
81965         * modules/gnu-make: New file.
81966         * MODULES.html.sh: Mention new module.
81968 2007-11-14  Jim Meyering  <meyering@redhat.com>
81970         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
81971         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
81972         use this macro to create a function _definition_.
81973         Remove useless "#undef ARGMATCH_DIE".
81975 2007-11-14  Bruno Haible  <bruno@clisp.org>
81977         * lib/config.charset: Update for OpenBSD 4.1.
81978         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
81980 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
81982         Document 64-bit #if problems in stdint.texi.
81983         * doc/headers/stdint.texi (stdint.h): Mention problems with
81984         64-bit-#if, and how to work around them.
81986         Don't insist on 'long long int' support in the preprocessor.  It
81987         breaks too many things.  For example, PRIdMAX still uses a 'long
81988         long int' format with the latest Sun compiler, even though
81989         HAVE_LONG_LONG_INT isn't defined due to that compiler's
81990         preprocessor problem.  This causes the latest coreutils to dump
81991         core on Solaris 10 sparc with the Sun C compiler.
81992         Instead, fix the 2007-10-16 problem in a different way, by evaluating
81993         the troublesome expressions at configure-time, not at #if-time.
81994         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
81995         preprocessor.
81996         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
81997         compile-time C checks, done at 'configure'-time.
81998         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
81999         * modules/inttypes (Makefile): Substitute the new symbols that
82000         gl_INTTYPES_H now generates.
82001         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
82003 2007-11-12  Bruno Haible  <bruno@clisp.org>
82005         Tests for Unicode character classification functions.
82007         * modules/unictype/bidicategory-byname-tests: New file.
82008         * modules/unictype/bidicategory-name-tests: New file.
82009         * modules/unictype/bidicategory-of-tests: New file.
82010         * modules/unictype/bidicategory-test-tests: New file.
82011         * modules/unictype/block-list-tests: New file.
82012         * modules/unictype/block-of-tests: New file.
82013         * modules/unictype/block-test-tests: New file.
82014         * modules/unictype/category-C-tests: New file.
82015         * modules/unictype/category-Cc-tests: New file.
82016         * modules/unictype/category-Cf-tests: New file.
82017         * modules/unictype/category-Cn-tests: New file.
82018         * modules/unictype/category-Co-tests: New file.
82019         * modules/unictype/category-Cs-tests: New file.
82020         * modules/unictype/category-L-tests: New file.
82021         * modules/unictype/category-Ll-tests: New file.
82022         * modules/unictype/category-Lm-tests: New file.
82023         * modules/unictype/category-Lo-tests: New file.
82024         * modules/unictype/category-Lt-tests: New file.
82025         * modules/unictype/category-Lu-tests: New file.
82026         * modules/unictype/category-M-tests: New file.
82027         * modules/unictype/category-Mc-tests: New file.
82028         * modules/unictype/category-Me-tests: New file.
82029         * modules/unictype/category-Mn-tests: New file.
82030         * modules/unictype/category-N-tests: New file.
82031         * modules/unictype/category-Nd-tests: New file.
82032         * modules/unictype/category-Nl-tests: New file.
82033         * modules/unictype/category-No-tests: New file.
82034         * modules/unictype/category-P-tests: New file.
82035         * modules/unictype/category-Pc-tests: New file.
82036         * modules/unictype/category-Pd-tests: New file.
82037         * modules/unictype/category-Pe-tests: New file.
82038         * modules/unictype/category-Pf-tests: New file.
82039         * modules/unictype/category-Pi-tests: New file.
82040         * modules/unictype/category-Po-tests: New file.
82041         * modules/unictype/category-Ps-tests: New file.
82042         * modules/unictype/category-S-tests: New file.
82043         * modules/unictype/category-Sc-tests: New file.
82044         * modules/unictype/category-Sk-tests: New file.
82045         * modules/unictype/category-Sm-tests: New file.
82046         * modules/unictype/category-So-tests: New file.
82047         * modules/unictype/category-Z-tests: New file.
82048         * modules/unictype/category-Zl-tests: New file.
82049         * modules/unictype/category-Zp-tests: New file.
82050         * modules/unictype/category-Zs-tests: New file.
82051         * modules/unictype/category-and-not-tests: New file.
82052         * modules/unictype/category-and-tests: New file.
82053         * modules/unictype/category-byname-tests: New file.
82054         * modules/unictype/category-name-tests: New file.
82055         * modules/unictype/category-none-tests: New file.
82056         * modules/unictype/category-of-tests: New file.
82057         * modules/unictype/category-or-tests: New file.
82058         * modules/unictype/category-test-withtable-tests: New file.
82059         * modules/unictype/combining-class-tests: New file.
82060         * modules/unictype/ctype-alnum-tests: New file.
82061         * modules/unictype/ctype-alpha-tests: New file.
82062         * modules/unictype/ctype-blank-tests: New file.
82063         * modules/unictype/ctype-cntrl-tests: New file.
82064         * modules/unictype/ctype-digit-tests: New file.
82065         * modules/unictype/ctype-graph-tests: New file.
82066         * modules/unictype/ctype-lower-tests: New file.
82067         * modules/unictype/ctype-print-tests: New file.
82068         * modules/unictype/ctype-punct-tests: New file.
82069         * modules/unictype/ctype-space-tests: New file.
82070         * modules/unictype/ctype-upper-tests: New file.
82071         * modules/unictype/ctype-xdigit-tests: New file.
82072         * modules/unictype/decimal-digit-tests: New file.
82073         * modules/unictype/digit-tests: New file.
82074         * modules/unictype/mirror-tests: New file.
82075         * modules/unictype/numeric-tests: New file.
82076         * modules/unictype/property-alphabetic-tests: New file.
82077         * modules/unictype/property-ascii-hex-digit-tests: New file.
82078         * modules/unictype/property-bidi-arabic-digit-tests: New file.
82079         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
82080         * modules/unictype/property-bidi-block-separator-tests: New file.
82081         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
82082         * modules/unictype/property-bidi-common-separator-tests: New file.
82083         * modules/unictype/property-bidi-control-tests: New file.
82084         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
82085         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
82086         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
82087         * modules/unictype/property-bidi-european-digit-tests: New file.
82088         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
82089         * modules/unictype/property-bidi-left-to-right-tests: New file.
82090         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
82091         * modules/unictype/property-bidi-other-neutral-tests: New file.
82092         * modules/unictype/property-bidi-pdf-tests: New file.
82093         * modules/unictype/property-bidi-segment-separator-tests: New file.
82094         * modules/unictype/property-bidi-whitespace-tests: New file.
82095         * modules/unictype/property-byname-tests: New file.
82096         * modules/unictype/property-combining-tests: New file.
82097         * modules/unictype/property-composite-tests: New file.
82098         * modules/unictype/property-currency-symbol-tests: New file.
82099         * modules/unictype/property-dash-tests: New file.
82100         * modules/unictype/property-decimal-digit-tests: New file.
82101         * modules/unictype/property-default-ignorable-code-point-tests: New file.
82102         * modules/unictype/property-deprecated-tests: New file.
82103         * modules/unictype/property-diacritic-tests: New file.
82104         * modules/unictype/property-extender-tests: New file.
82105         * modules/unictype/property-format-control-tests: New file.
82106         * modules/unictype/property-grapheme-base-tests: New file.
82107         * modules/unictype/property-grapheme-extend-tests: New file.
82108         * modules/unictype/property-grapheme-link-tests: New file.
82109         * modules/unictype/property-hex-digit-tests: New file.
82110         * modules/unictype/property-hyphen-tests: New file.
82111         * modules/unictype/property-id-continue-tests: New file.
82112         * modules/unictype/property-id-start-tests: New file.
82113         * modules/unictype/property-ideographic-tests: New file.
82114         * modules/unictype/property-ids-binary-operator-tests: New file.
82115         * modules/unictype/property-ids-trinary-operator-tests: New file.
82116         * modules/unictype/property-ignorable-control-tests: New file.
82117         * modules/unictype/property-iso-control-tests: New file.
82118         * modules/unictype/property-join-control-tests: New file.
82119         * modules/unictype/property-left-of-pair-tests: New file.
82120         * modules/unictype/property-line-separator-tests: New file.
82121         * modules/unictype/property-logical-order-exception-tests: New file.
82122         * modules/unictype/property-lowercase-tests: New file.
82123         * modules/unictype/property-math-tests: New file.
82124         * modules/unictype/property-non-break-tests: New file.
82125         * modules/unictype/property-not-a-character-tests: New file.
82126         * modules/unictype/property-numeric-tests: New file.
82127         * modules/unictype/property-other-alphabetic-tests: New file.
82128         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
82129         * modules/unictype/property-other-grapheme-extend-tests: New file.
82130         * modules/unictype/property-other-id-continue-tests: New file.
82131         * modules/unictype/property-other-id-start-tests: New file.
82132         * modules/unictype/property-other-lowercase-tests: New file.
82133         * modules/unictype/property-other-math-tests: New file.
82134         * modules/unictype/property-other-uppercase-tests: New file.
82135         * modules/unictype/property-paired-punctuation-tests: New file.
82136         * modules/unictype/property-paragraph-separator-tests: New file.
82137         * modules/unictype/property-pattern-syntax-tests: New file.
82138         * modules/unictype/property-pattern-white-space-tests: New file.
82139         * modules/unictype/property-private-use-tests: New file.
82140         * modules/unictype/property-punctuation-tests: New file.
82141         * modules/unictype/property-quotation-mark-tests: New file.
82142         * modules/unictype/property-radical-tests: New file.
82143         * modules/unictype/property-sentence-terminal-tests: New file.
82144         * modules/unictype/property-soft-dotted-tests: New file.
82145         * modules/unictype/property-space-tests: New file.
82146         * modules/unictype/property-terminal-punctuation-tests: New file.
82147         * modules/unictype/property-test-tests: New file.
82148         * modules/unictype/property-titlecase-tests: New file.
82149         * modules/unictype/property-unassigned-code-value-tests: New file.
82150         * modules/unictype/property-unified-ideograph-tests: New file.
82151         * modules/unictype/property-uppercase-tests: New file.
82152         * modules/unictype/property-variation-selector-tests: New file.
82153         * modules/unictype/property-white-space-tests: New file.
82154         * modules/unictype/property-xid-continue-tests: New file.
82155         * modules/unictype/property-xid-start-tests: New file.
82156         * modules/unictype/property-zero-width-tests: New file.
82157         * modules/unictype/scripts-tests: New file.
82158         * modules/unictype/syntax-c-ident-tests: New file.
82159         * modules/unictype/syntax-c-whitespace-tests: New file.
82160         * modules/unictype/syntax-java-ident-tests: New file.
82161         * modules/unictype/syntax-java-whitespace-tests: New file.
82162         * tests/unictype/test-bidi_byname.c: New file.
82163         * tests/unictype/test-bidi_name.c: New file.
82164         * tests/unictype/test-bidi_of.c: New file.
82165         * tests/unictype/test-bidi_test.c: New file.
82166         * tests/unictype/test-block_list.c: New file.
82167         * tests/unictype/test-block_of.c: New file.
82168         * tests/unictype/test-block_test.c: New file.
82169         * tests/unictype/test-categ_and.c: New file.
82170         * tests/unictype/test-categ_and_not.c: New file.
82171         * tests/unictype/test-categ_byname.c: New file.
82172         * tests/unictype/test-categ_name.c: New file.
82173         * tests/unictype/test-categ_none.c: New file.
82174         * tests/unictype/test-categ_of.c: New file.
82175         * tests/unictype/test-categ_or.c: New file.
82176         * tests/unictype/test-categ_test_withtable.c: New file.
82177         * tests/unictype/test-combining.c: New file.
82178         * tests/unictype/test-decdigit.c: New file.
82179         * tests/unictype/test-digit.c: New file.
82180         * tests/unictype/test-mirror.c: New file.
82181         * tests/unictype/test-numeric.c: New file.
82182         * tests/unictype/test-pr_byname.c: New file.
82183         * tests/unictype/test-pr_test.c: New file.
82184         * tests/unictype/test-predicate-part1.h: New file.
82185         * tests/unictype/test-predicate-part2.h: New file.
82186         * tests/unictype/test-scripts.c: New file.
82187         * tests/unictype/test-sy_c_ident.c: New file.
82188         * tests/unictype/test-sy_java_ident.c: New file.
82190         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
82191         for Unicode 5.0.0.
82192         * tests/unictype/test-categ_Cc.c: Likewise.
82193         * tests/unictype/test-categ_Cf.c: Likewise.
82194         * tests/unictype/test-categ_Cn.c: Likewise.
82195         * tests/unictype/test-categ_Co.c: Likewise.
82196         * tests/unictype/test-categ_Cs.c: Likewise.
82197         * tests/unictype/test-categ_L.c: Likewise.
82198         * tests/unictype/test-categ_Ll.c: Likewise.
82199         * tests/unictype/test-categ_Lm.c: Likewise.
82200         * tests/unictype/test-categ_Lo.c: Likewise.
82201         * tests/unictype/test-categ_Lt.c: Likewise.
82202         * tests/unictype/test-categ_Lu.c: Likewise.
82203         * tests/unictype/test-categ_M.c: Likewise.
82204         * tests/unictype/test-categ_Mc.c: Likewise.
82205         * tests/unictype/test-categ_Me.c: Likewise.
82206         * tests/unictype/test-categ_Mn.c: Likewise.
82207         * tests/unictype/test-categ_N.c: Likewise.
82208         * tests/unictype/test-categ_Nd.c: Likewise.
82209         * tests/unictype/test-categ_Nl.c: Likewise.
82210         * tests/unictype/test-categ_No.c: Likewise.
82211         * tests/unictype/test-categ_P.c: Likewise.
82212         * tests/unictype/test-categ_Pc.c: Likewise.
82213         * tests/unictype/test-categ_Pd.c: Likewise.
82214         * tests/unictype/test-categ_Pe.c: Likewise.
82215         * tests/unictype/test-categ_Pf.c: Likewise.
82216         * tests/unictype/test-categ_Pi.c: Likewise.
82217         * tests/unictype/test-categ_Po.c: Likewise.
82218         * tests/unictype/test-categ_Ps.c: Likewise.
82219         * tests/unictype/test-categ_S.c: Likewise.
82220         * tests/unictype/test-categ_Sc.c: Likewise.
82221         * tests/unictype/test-categ_Sk.c: Likewise.
82222         * tests/unictype/test-categ_Sm.c: Likewise.
82223         * tests/unictype/test-categ_So.c: Likewise.
82224         * tests/unictype/test-categ_Z.c: Likewise.
82225         * tests/unictype/test-categ_Zl.c: Likewise.
82226         * tests/unictype/test-categ_Zp.c: Likewise.
82227         * tests/unictype/test-categ_Zs.c: Likewise.
82228         * tests/unictype/test-ctype_alnum.c: Likewise.
82229         * tests/unictype/test-ctype_alpha.c: Likewise.
82230         * tests/unictype/test-ctype_blank.c: Likewise.
82231         * tests/unictype/test-ctype_cntrl.c: Likewise.
82232         * tests/unictype/test-ctype_digit.c: Likewise.
82233         * tests/unictype/test-ctype_graph.c: Likewise.
82234         * tests/unictype/test-ctype_lower.c: Likewise.
82235         * tests/unictype/test-ctype_print.c: Likewise.
82236         * tests/unictype/test-ctype_punct.c: Likewise.
82237         * tests/unictype/test-ctype_space.c: Likewise.
82238         * tests/unictype/test-ctype_upper.c: Likewise.
82239         * tests/unictype/test-ctype_xdigit.c: Likewise.
82240         * tests/unictype/test-decdigit.h: Likewise.
82241         * tests/unictype/test-digit.h: Likewise.
82242         * tests/unictype/test-numeric.h: Likewise.
82243         * tests/unictype/test-pr_alphabetic.c: Likewise.
82244         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
82245         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
82246         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
82247         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
82248         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
82249         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
82250         * tests/unictype/test-pr_bidi_control.c: Likewise.
82251         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
82252         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
82253         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
82254         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
82255         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
82256         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
82257         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
82258         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
82259         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
82260         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
82261         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
82262         * tests/unictype/test-pr_combining.c: Likewise.
82263         * tests/unictype/test-pr_composite.c: Likewise.
82264         * tests/unictype/test-pr_currency_symbol.c: Likewise.
82265         * tests/unictype/test-pr_dash.c: Likewise.
82266         * tests/unictype/test-pr_decimal_digit.c: Likewise.
82267         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
82268         * tests/unictype/test-pr_deprecated.c: Likewise.
82269         * tests/unictype/test-pr_diacritic.c: Likewise.
82270         * tests/unictype/test-pr_extender.c: Likewise.
82271         * tests/unictype/test-pr_format_control.c: Likewise.
82272         * tests/unictype/test-pr_grapheme_base.c: Likewise.
82273         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
82274         * tests/unictype/test-pr_grapheme_link.c: Likewise.
82275         * tests/unictype/test-pr_hex_digit.c: Likewise.
82276         * tests/unictype/test-pr_hyphen.c: Likewise.
82277         * tests/unictype/test-pr_id_continue.c: Likewise.
82278         * tests/unictype/test-pr_id_start.c: Likewise.
82279         * tests/unictype/test-pr_ideographic.c: Likewise.
82280         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
82281         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
82282         * tests/unictype/test-pr_ignorable_control.c: Likewise.
82283         * tests/unictype/test-pr_iso_control.c: Likewise.
82284         * tests/unictype/test-pr_join_control.c: Likewise.
82285         * tests/unictype/test-pr_left_of_pair.c: Likewise.
82286         * tests/unictype/test-pr_line_separator.c: Likewise.
82287         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
82288         * tests/unictype/test-pr_lowercase.c: Likewise.
82289         * tests/unictype/test-pr_math.c: Likewise.
82290         * tests/unictype/test-pr_non_break.c: Likewise.
82291         * tests/unictype/test-pr_not_a_character.c: Likewise.
82292         * tests/unictype/test-pr_numeric.c: Likewise.
82293         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
82294         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
82295         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
82296         * tests/unictype/test-pr_other_id_continue.c: Likewise.
82297         * tests/unictype/test-pr_other_id_start.c: Likewise.
82298         * tests/unictype/test-pr_other_lowercase.c: Likewise.
82299         * tests/unictype/test-pr_other_math.c: Likewise.
82300         * tests/unictype/test-pr_other_uppercase.c: Likewise.
82301         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
82302         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
82303         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
82304         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
82305         * tests/unictype/test-pr_private_use.c: Likewise.
82306         * tests/unictype/test-pr_punctuation.c: Likewise.
82307         * tests/unictype/test-pr_quotation_mark.c: Likewise.
82308         * tests/unictype/test-pr_radical.c: Likewise.
82309         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
82310         * tests/unictype/test-pr_soft_dotted.c: Likewise.
82311         * tests/unictype/test-pr_space.c: Likewise.
82312         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
82313         * tests/unictype/test-pr_titlecase.c: Likewise.
82314         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
82315         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
82316         * tests/unictype/test-pr_uppercase.c: Likewise.
82317         * tests/unictype/test-pr_variation_selector.c: Likewise.
82318         * tests/unictype/test-pr_white_space.c: Likewise.
82319         * tests/unictype/test-pr_xid_continue.c: Likewise.
82320         * tests/unictype/test-pr_xid_start.c: Likewise.
82321         * tests/unictype/test-pr_zero_width.c: Likewise.
82322         * tests/unictype/test-sy_c_whitespace.c: Likewise.
82323         * tests/unictype/test-sy_java_whitespace.c: Likewise.
82325 2007-11-12  Bruno Haible  <bruno@clisp.org>
82327         Unicode character classification functions.
82328         * lib/unictype.h: New file.
82329         * modules/unictype/base: New file.
82330         * modules/unictype/category-L: New file.
82331         * modules/unictype/category-Lu: New file.
82332         * modules/unictype/category-Ll: New file.
82333         * modules/unictype/category-Lt: New file.
82334         * modules/unictype/category-Lm: New file.
82335         * modules/unictype/category-Lo: New file.
82336         * modules/unictype/category-M: New file.
82337         * modules/unictype/category-Mn: New file.
82338         * modules/unictype/category-Mc: New file.
82339         * modules/unictype/category-Me: New file.
82340         * modules/unictype/category-N: New file.
82341         * modules/unictype/category-Nd: New file.
82342         * modules/unictype/category-Nl: New file.
82343         * modules/unictype/category-No: New file.
82344         * modules/unictype/category-P: New file.
82345         * modules/unictype/category-Pc: New file.
82346         * modules/unictype/category-Pd: New file.
82347         * modules/unictype/category-Ps: New file.
82348         * modules/unictype/category-Pe: New file.
82349         * modules/unictype/category-Pi: New file.
82350         * modules/unictype/category-Pf: New file.
82351         * modules/unictype/category-Po: New file.
82352         * modules/unictype/category-S: New file.
82353         * modules/unictype/category-Sm: New file.
82354         * modules/unictype/category-Sc: New file.
82355         * modules/unictype/category-Sk: New file.
82356         * modules/unictype/category-So: New file.
82357         * modules/unictype/category-Z: New file.
82358         * modules/unictype/category-Zs: New file.
82359         * modules/unictype/category-Zl: New file.
82360         * modules/unictype/category-Zp: New file.
82361         * modules/unictype/category-C: New file.
82362         * modules/unictype/category-Cc: New file.
82363         * modules/unictype/category-Cf: New file.
82364         * modules/unictype/category-Cs: New file.
82365         * modules/unictype/category-Co: New file.
82366         * modules/unictype/category-Cn: New file.
82367         * modules/unictype/category-or: New file.
82368         * modules/unictype/category-of: New file.
82369         * modules/unictype/category-test: New file.
82370         * modules/unictype/category-test-withtable: New file.
82371         * modules/unictype/category-byname: New file.
82372         * modules/unictype/category-none: New file.
82373         * modules/unictype/category-and: New file.
82374         * modules/unictype/category-and-not: New file.
82375         * modules/unictype/category-name: New file.
82376         * modules/unictype/combining-class: New file.
82377         * modules/unictype/category-all: New file.
82378         * modules/unictype/bidicategory-all: New file.
82379         * modules/unictype/bidicategory-byname: New file.
82380         * modules/unictype/bidicategory-name: New file.
82381         * modules/unictype/bidicategory-of: New file.
82382         * modules/unictype/bidicategory-test: New file.
82383         * modules/unictype/decimal-digit: New file.
82384         * modules/unictype/digit: New file.
82385         * modules/unictype/numeric: New file.
82386         * modules/unictype/mirror: New file.
82387         * modules/unictype/property-white-space: New file.
82388         * modules/unictype/property-alphabetic: New file.
82389         * modules/unictype/property-other-alphabetic: New file.
82390         * modules/unictype/property-not-a-character: New file.
82391         * modules/unictype/property-default-ignorable-code-point: New file.
82392         * modules/unictype/property-other-default-ignorable-code-point: New
82393         file.
82394         * modules/unictype/property-deprecated: New file.
82395         * modules/unictype/property-logical-order-exception: New file.
82396         * modules/unictype/property-variation-selector: New file.
82397         * modules/unictype/property-private-use: New file.
82398         * modules/unictype/property-unassigned-code-value: New file.
82399         * modules/unictype/property-uppercase: New file.
82400         * modules/unictype/property-other-uppercase: New file.
82401         * modules/unictype/property-lowercase: New file.
82402         * modules/unictype/property-other-lowercase: New file.
82403         * modules/unictype/property-titlecase: New file.
82404         * modules/unictype/property-soft-dotted: New file.
82405         * modules/unictype/property-id-start: New file.
82406         * modules/unictype/property-other-id-start: New file.
82407         * modules/unictype/property-id-continue: New file.
82408         * modules/unictype/property-other-id-continue: New file.
82409         * modules/unictype/property-xid-start: New file.
82410         * modules/unictype/property-xid-continue: New file.
82411         * modules/unictype/property-pattern-white-space: New file.
82412         * modules/unictype/property-pattern-syntax: New file.
82413         * modules/unictype/property-join-control: New file.
82414         * modules/unictype/property-grapheme-base: New file.
82415         * modules/unictype/property-grapheme-extend: New file.
82416         * modules/unictype/property-other-grapheme-extend: New file.
82417         * modules/unictype/property-grapheme-link: New file.
82418         * modules/unictype/property-bidi-control: New file.
82419         * modules/unictype/property-bidi-left-to-right: New file.
82420         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
82421         * modules/unictype/property-bidi-arabic-right-to-left: New file.
82422         * modules/unictype/property-bidi-european-digit: New file.
82423         * modules/unictype/property-bidi-eur-num-separator: New file.
82424         * modules/unictype/property-bidi-eur-num-terminator: New file.
82425         * modules/unictype/property-bidi-arabic-digit: New file.
82426         * modules/unictype/property-bidi-common-separator: New file.
82427         * modules/unictype/property-bidi-block-separator: New file.
82428         * modules/unictype/property-bidi-segment-separator: New file.
82429         * modules/unictype/property-bidi-whitespace: New file.
82430         * modules/unictype/property-bidi-non-spacing-mark: New file.
82431         * modules/unictype/property-bidi-boundary-neutral: New file.
82432         * modules/unictype/property-bidi-pdf: New file.
82433         * modules/unictype/property-bidi-embedding-or-override: New file.
82434         * modules/unictype/property-bidi-other-neutral: New file.
82435         * modules/unictype/property-hex-digit: New file.
82436         * modules/unictype/property-ascii-hex-digit: New file.
82437         * modules/unictype/property-ideographic: New file.
82438         * modules/unictype/property-unified-ideograph: New file.
82439         * modules/unictype/property-radical: New file.
82440         * modules/unictype/property-ids-binary-operator: New file.
82441         * modules/unictype/property-ids-trinary-operator: New file.
82442         * modules/unictype/property-zero-width: New file.
82443         * modules/unictype/property-space: New file.
82444         * modules/unictype/property-non-break: New file.
82445         * modules/unictype/property-iso-control: New file.
82446         * modules/unictype/property-format-control: New file.
82447         * modules/unictype/property-dash: New file.
82448         * modules/unictype/property-hyphen: New file.
82449         * modules/unictype/property-punctuation: New file.
82450         * modules/unictype/property-line-separator: New file.
82451         * modules/unictype/property-paragraph-separator: New file.
82452         * modules/unictype/property-quotation-mark: New file.
82453         * modules/unictype/property-sentence-terminal: New file.
82454         * modules/unictype/property-terminal-punctuation: New file.
82455         * modules/unictype/property-currency-symbol: New file.
82456         * modules/unictype/property-math: New file.
82457         * modules/unictype/property-other-math: New file.
82458         * modules/unictype/property-paired-punctuation: New file.
82459         * modules/unictype/property-left-of-pair: New file.
82460         * modules/unictype/property-combining: New file.
82461         * modules/unictype/property-composite: New file.
82462         * modules/unictype/property-decimal-digit: New file.
82463         * modules/unictype/property-numeric: New file.
82464         * modules/unictype/property-diacritic: New file.
82465         * modules/unictype/property-extender: New file.
82466         * modules/unictype/property-ignorable-control: New file.
82467         * modules/unictype/property-test: New file.
82468         * modules/unictype/property-byname: New file.
82469         * modules/unictype/property-all: New file.
82470         * modules/unictype/scripts: New file.
82471         * modules/unictype/scripts-all: New file.
82472         * modules/unictype/block-of: New file.
82473         * modules/unictype/block-test: New file.
82474         * modules/unictype/block-list: New file.
82475         * modules/unictype/block-all: New file.
82476         * modules/unictype/syntax-c-whitespace: New file.
82477         * modules/unictype/syntax-java-whitespace: New file.
82478         * modules/unictype/syntax-c-ident: New file.
82479         * modules/unictype/syntax-java-ident: New file.
82480         * modules/unictype/ctype-alnum: New file.
82481         * modules/unictype/ctype-alpha: New file.
82482         * modules/unictype/ctype-cntrl: New file.
82483         * modules/unictype/ctype-digit: New file.
82484         * modules/unictype/ctype-graph: New file.
82485         * modules/unictype/ctype-lower: New file.
82486         * modules/unictype/ctype-print: New file.
82487         * modules/unictype/ctype-punct: New file.
82488         * modules/unictype/ctype-space: New file.
82489         * modules/unictype/ctype-upper: New file.
82490         * modules/unictype/ctype-xdigit: New file.
82491         * modules/unictype/ctype-blank: New file.
82492         * lib/unictype/bidi_byname.c: New file.
82493         * lib/unictype/bidi_name.c: New file.
82494         * lib/unictype/bidi_of.c: New file.
82495         * lib/unictype/bidi_test.c: New file.
82496         * lib/unictype/bitmap.h: New file.
82497         * lib/unictype/block_test.c: New file.
82498         * lib/unictype/blocks.c: New file.
82499         * lib/unictype/categ_C.c: New file.
82500         * lib/unictype/categ_Cc.c: New file.
82501         * lib/unictype/categ_Cf.c: New file.
82502         * lib/unictype/categ_Cn.c: New file.
82503         * lib/unictype/categ_Co.c: New file.
82504         * lib/unictype/categ_Cs.c: New file.
82505         * lib/unictype/categ_L.c: New file.
82506         * lib/unictype/categ_Ll.c: New file.
82507         * lib/unictype/categ_Lm.c: New file.
82508         * lib/unictype/categ_Lo.c: New file.
82509         * lib/unictype/categ_Lt.c: New file.
82510         * lib/unictype/categ_Lu.c: New file.
82511         * lib/unictype/categ_M.c: New file.
82512         * lib/unictype/categ_Mc.c: New file.
82513         * lib/unictype/categ_Me.c: New file.
82514         * lib/unictype/categ_Mn.c: New file.
82515         * lib/unictype/categ_N.c: New file.
82516         * lib/unictype/categ_Nd.c: New file.
82517         * lib/unictype/categ_Nl.c: New file.
82518         * lib/unictype/categ_No.c: New file.
82519         * lib/unictype/categ_P.c: New file.
82520         * lib/unictype/categ_Pc.c: New file.
82521         * lib/unictype/categ_Pd.c: New file.
82522         * lib/unictype/categ_Pe.c: New file.
82523         * lib/unictype/categ_Pf.c: New file.
82524         * lib/unictype/categ_Pi.c: New file.
82525         * lib/unictype/categ_Po.c: New file.
82526         * lib/unictype/categ_Ps.c: New file.
82527         * lib/unictype/categ_S.c: New file.
82528         * lib/unictype/categ_Sc.c: New file.
82529         * lib/unictype/categ_Sk.c: New file.
82530         * lib/unictype/categ_Sm.c: New file.
82531         * lib/unictype/categ_So.c: New file.
82532         * lib/unictype/categ_Z.c: New file.
82533         * lib/unictype/categ_Zl.c: New file.
82534         * lib/unictype/categ_Zp.c: New file.
82535         * lib/unictype/categ_Zs.c: New file.
82536         * lib/unictype/categ_and.c: New file.
82537         * lib/unictype/categ_and_not.c: New file.
82538         * lib/unictype/categ_byname.c: New file.
82539         * lib/unictype/categ_name.c: New file.
82540         * lib/unictype/categ_none.c: New file.
82541         * lib/unictype/categ_of.c: New file.
82542         * lib/unictype/categ_or.c: New file.
82543         * lib/unictype/categ_test.c: New file.
82544         * lib/unictype/combining.c: New file.
82545         * lib/unictype/ctype_alnum.c: New file.
82546         * lib/unictype/ctype_alpha.c: New file.
82547         * lib/unictype/ctype_blank.c: New file.
82548         * lib/unictype/ctype_cntrl.c: New file.
82549         * lib/unictype/ctype_digit.c: New file.
82550         * lib/unictype/ctype_graph.c: New file.
82551         * lib/unictype/ctype_lower.c: New file.
82552         * lib/unictype/ctype_print.c: New file.
82553         * lib/unictype/ctype_punct.c: New file.
82554         * lib/unictype/ctype_space.c: New file.
82555         * lib/unictype/ctype_upper.c: New file.
82556         * lib/unictype/ctype_xdigit.c: New file.
82557         * lib/unictype/decdigit.c: New file.
82558         * lib/unictype/digit.c: New file.
82559         * lib/unictype/identsyntaxmap.h: New file.
82560         * lib/unictype/mirror.c: New file.
82561         * lib/unictype/numeric.c: New file.
82562         * lib/unictype/pr_alphabetic.c: New file.
82563         * lib/unictype/pr_ascii_hex_digit.c: New file.
82564         * lib/unictype/pr_bidi_arabic_digit.c: New file.
82565         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
82566         * lib/unictype/pr_bidi_block_separator.c: New file.
82567         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
82568         * lib/unictype/pr_bidi_common_separator.c: New file.
82569         * lib/unictype/pr_bidi_control.c: New file.
82570         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
82571         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
82572         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
82573         * lib/unictype/pr_bidi_european_digit.c: New file.
82574         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
82575         * lib/unictype/pr_bidi_left_to_right.c: New file.
82576         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
82577         * lib/unictype/pr_bidi_other_neutral.c: New file.
82578         * lib/unictype/pr_bidi_pdf.c: New file.
82579         * lib/unictype/pr_bidi_segment_separator.c: New file.
82580         * lib/unictype/pr_bidi_whitespace.c: New file.
82581         * lib/unictype/pr_byname.c: New file.
82582         * lib/unictype/pr_byname.gperf: New file.
82583         * lib/unictype/pr_combining.c: New file.
82584         * lib/unictype/pr_composite.c: New file.
82585         * lib/unictype/pr_currency_symbol.c: New file.
82586         * lib/unictype/pr_dash.c: New file.
82587         * lib/unictype/pr_decimal_digit.c: New file.
82588         * lib/unictype/pr_default_ignorable_code_point.c: New file.
82589         * lib/unictype/pr_deprecated.c: New file.
82590         * lib/unictype/pr_diacritic.c: New file.
82591         * lib/unictype/pr_extender.c: New file.
82592         * lib/unictype/pr_format_control.c: New file.
82593         * lib/unictype/pr_grapheme_base.c: New file.
82594         * lib/unictype/pr_grapheme_extend.c: New file.
82595         * lib/unictype/pr_grapheme_link.c: New file.
82596         * lib/unictype/pr_hex_digit.c: New file.
82597         * lib/unictype/pr_hyphen.c: New file.
82598         * lib/unictype/pr_id_continue.c: New file.
82599         * lib/unictype/pr_id_start.c: New file.
82600         * lib/unictype/pr_ideographic.c: New file.
82601         * lib/unictype/pr_ids_binary_operator.c: New file.
82602         * lib/unictype/pr_ids_trinary_operator.c: New file.
82603         * lib/unictype/pr_ignorable_control.c: New file.
82604         * lib/unictype/pr_iso_control.c: New file.
82605         * lib/unictype/pr_join_control.c: New file.
82606         * lib/unictype/pr_left_of_pair.c: New file.
82607         * lib/unictype/pr_line_separator.c: New file.
82608         * lib/unictype/pr_logical_order_exception.c: New file.
82609         * lib/unictype/pr_lowercase.c: New file.
82610         * lib/unictype/pr_math.c: New file.
82611         * lib/unictype/pr_non_break.c: New file.
82612         * lib/unictype/pr_not_a_character.c: New file.
82613         * lib/unictype/pr_numeric.c: New file.
82614         * lib/unictype/pr_other_alphabetic.c: New file.
82615         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
82616         * lib/unictype/pr_other_grapheme_extend.c: New file.
82617         * lib/unictype/pr_other_id_continue.c: New file.
82618         * lib/unictype/pr_other_id_start.c: New file.
82619         * lib/unictype/pr_other_lowercase.c: New file.
82620         * lib/unictype/pr_other_math.c: New file.
82621         * lib/unictype/pr_other_uppercase.c: New file.
82622         * lib/unictype/pr_paired_punctuation.c: New file.
82623         * lib/unictype/pr_paragraph_separator.c: New file.
82624         * lib/unictype/pr_pattern_syntax.c: New file.
82625         * lib/unictype/pr_pattern_white_space.c: New file.
82626         * lib/unictype/pr_private_use.c: New file.
82627         * lib/unictype/pr_punctuation.c: New file.
82628         * lib/unictype/pr_quotation_mark.c: New file.
82629         * lib/unictype/pr_radical.c: New file.
82630         * lib/unictype/pr_sentence_terminal.c: New file.
82631         * lib/unictype/pr_soft_dotted.c: New file.
82632         * lib/unictype/pr_space.c: New file.
82633         * lib/unictype/pr_terminal_punctuation.c: New file.
82634         * lib/unictype/pr_test.c: New file.
82635         * lib/unictype/pr_titlecase.c: New file.
82636         * lib/unictype/pr_unassigned_code_value.c: New file.
82637         * lib/unictype/pr_unified_ideograph.c: New file.
82638         * lib/unictype/pr_uppercase.c: New file.
82639         * lib/unictype/pr_variation_selector.c: New file.
82640         * lib/unictype/pr_white_space.c: New file.
82641         * lib/unictype/pr_xid_continue.c: New file.
82642         * lib/unictype/pr_xid_start.c: New file.
82643         * lib/unictype/pr_zero_width.c: New file.
82644         * lib/unictype/scripts.c: New file.
82645         * lib/unictype/sy_c_ident.c: New file.
82646         * lib/unictype/sy_c_whitespace.c: New file.
82647         * lib/unictype/sy_java_ident.c: New file.
82648         * lib/unictype/sy_java_whitespace.c: New file.
82650         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
82651         Unicode 5.0.0.
82652         * lib/unictype/blocks.h: Likewise.
82653         * lib/unictype/categ_C.h: Likewise.
82654         * lib/unictype/categ_Cc.h: Likewise.
82655         * lib/unictype/categ_Cf.h: Likewise.
82656         * lib/unictype/categ_Cn.h: Likewise.
82657         * lib/unictype/categ_Co.h: Likewise.
82658         * lib/unictype/categ_Cs.h: Likewise.
82659         * lib/unictype/categ_L.h: Likewise.
82660         * lib/unictype/categ_Ll.h: Likewise.
82661         * lib/unictype/categ_Lm.h: Likewise.
82662         * lib/unictype/categ_Lo.h: Likewise.
82663         * lib/unictype/categ_Lt.h: Likewise.
82664         * lib/unictype/categ_Lu.h: Likewise.
82665         * lib/unictype/categ_M.h: Likewise.
82666         * lib/unictype/categ_Mc.h: Likewise.
82667         * lib/unictype/categ_Me.h: Likewise.
82668         * lib/unictype/categ_Mn.h: Likewise.
82669         * lib/unictype/categ_N.h: Likewise.
82670         * lib/unictype/categ_Nd.h: Likewise.
82671         * lib/unictype/categ_Nl.h: Likewise.
82672         * lib/unictype/categ_No.h: Likewise.
82673         * lib/unictype/categ_P.h: Likewise.
82674         * lib/unictype/categ_Pc.h: Likewise.
82675         * lib/unictype/categ_Pd.h: Likewise.
82676         * lib/unictype/categ_Pe.h: Likewise.
82677         * lib/unictype/categ_Pf.h: Likewise.
82678         * lib/unictype/categ_Pi.h: Likewise.
82679         * lib/unictype/categ_Po.h: Likewise.
82680         * lib/unictype/categ_Ps.h: Likewise.
82681         * lib/unictype/categ_S.h: Likewise.
82682         * lib/unictype/categ_Sc.h: Likewise.
82683         * lib/unictype/categ_Sk.h: Likewise.
82684         * lib/unictype/categ_Sm.h: Likewise.
82685         * lib/unictype/categ_So.h: Likewise.
82686         * lib/unictype/categ_Z.h: Likewise.
82687         * lib/unictype/categ_Zl.h: Likewise.
82688         * lib/unictype/categ_Zp.h: Likewise.
82689         * lib/unictype/categ_Zs.h: Likewise.
82690         * lib/unictype/categ_of.h: Likewise.
82691         * lib/unictype/combining.h: Likewise.
82692         * lib/unictype/ctype_alnum.h: Likewise.
82693         * lib/unictype/ctype_alpha.h: Likewise.
82694         * lib/unictype/ctype_blank.h: Likewise.
82695         * lib/unictype/ctype_cntrl.h: Likewise.
82696         * lib/unictype/ctype_digit.h: Likewise.
82697         * lib/unictype/ctype_graph.h: Likewise.
82698         * lib/unictype/ctype_lower.h: Likewise.
82699         * lib/unictype/ctype_print.h: Likewise.
82700         * lib/unictype/ctype_punct.h: Likewise.
82701         * lib/unictype/ctype_space.h: Likewise.
82702         * lib/unictype/ctype_upper.h: Likewise.
82703         * lib/unictype/ctype_xdigit.h: Likewise.
82704         * lib/unictype/decdigit.h: Likewise.
82705         * lib/unictype/digit.h: Likewise.
82706         * lib/unictype/mirror.h: Likewise.
82707         * lib/unictype/numeric.h: Likewise.
82708         * lib/unictype/pr_alphabetic.h: Likewise.
82709         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
82710         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
82711         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
82712         * lib/unictype/pr_bidi_block_separator.h: Likewise.
82713         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
82714         * lib/unictype/pr_bidi_common_separator.h: Likewise.
82715         * lib/unictype/pr_bidi_control.h: Likewise.
82716         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
82717         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
82718         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
82719         * lib/unictype/pr_bidi_european_digit.h: Likewise.
82720         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
82721         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
82722         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
82723         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
82724         * lib/unictype/pr_bidi_pdf.h: Likewise.
82725         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
82726         * lib/unictype/pr_bidi_whitespace.h: Likewise.
82727         * lib/unictype/pr_combining.h: Likewise.
82728         * lib/unictype/pr_composite.h: Likewise.
82729         * lib/unictype/pr_currency_symbol.h: Likewise.
82730         * lib/unictype/pr_dash.h: Likewise.
82731         * lib/unictype/pr_decimal_digit.h: Likewise.
82732         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
82733         * lib/unictype/pr_deprecated.h: Likewise.
82734         * lib/unictype/pr_diacritic.h: Likewise.
82735         * lib/unictype/pr_extender.h: Likewise.
82736         * lib/unictype/pr_format_control.h: Likewise.
82737         * lib/unictype/pr_grapheme_base.h: Likewise.
82738         * lib/unictype/pr_grapheme_extend.h: Likewise.
82739         * lib/unictype/pr_grapheme_link.h: Likewise.
82740         * lib/unictype/pr_hex_digit.h: Likewise.
82741         * lib/unictype/pr_hyphen.h: Likewise.
82742         * lib/unictype/pr_id_continue.h: Likewise.
82743         * lib/unictype/pr_id_start.h: Likewise.
82744         * lib/unictype/pr_ideographic.h: Likewise.
82745         * lib/unictype/pr_ids_binary_operator.h: Likewise.
82746         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
82747         * lib/unictype/pr_ignorable_control.h: Likewise.
82748         * lib/unictype/pr_iso_control.h: Likewise.
82749         * lib/unictype/pr_join_control.h: Likewise.
82750         * lib/unictype/pr_left_of_pair.h: Likewise.
82751         * lib/unictype/pr_line_separator.h: Likewise.
82752         * lib/unictype/pr_logical_order_exception.h: Likewise.
82753         * lib/unictype/pr_lowercase.h: Likewise.
82754         * lib/unictype/pr_math.h: Likewise.
82755         * lib/unictype/pr_non_break.h: Likewise.
82756         * lib/unictype/pr_not_a_character.h: Likewise.
82757         * lib/unictype/pr_numeric.h: Likewise.
82758         * lib/unictype/pr_other_alphabetic.h: Likewise.
82759         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
82760         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
82761         * lib/unictype/pr_other_id_continue.h: Likewise.
82762         * lib/unictype/pr_other_id_start.h: Likewise.
82763         * lib/unictype/pr_other_lowercase.h: Likewise.
82764         * lib/unictype/pr_other_math.h: Likewise.
82765         * lib/unictype/pr_other_uppercase.h: Likewise.
82766         * lib/unictype/pr_paired_punctuation.h: Likewise.
82767         * lib/unictype/pr_paragraph_separator.h: Likewise.
82768         * lib/unictype/pr_pattern_syntax.h: Likewise.
82769         * lib/unictype/pr_pattern_white_space.h: Likewise.
82770         * lib/unictype/pr_private_use.h: Likewise.
82771         * lib/unictype/pr_punctuation.h: Likewise.
82772         * lib/unictype/pr_quotation_mark.h: Likewise.
82773         * lib/unictype/pr_radical.h: Likewise.
82774         * lib/unictype/pr_sentence_terminal.h: Likewise.
82775         * lib/unictype/pr_soft_dotted.h: Likewise.
82776         * lib/unictype/pr_space.h: Likewise.
82777         * lib/unictype/pr_terminal_punctuation.h: Likewise.
82778         * lib/unictype/pr_titlecase.h: Likewise.
82779         * lib/unictype/pr_unassigned_code_value.h: Likewise.
82780         * lib/unictype/pr_unified_ideograph.h: Likewise.
82781         * lib/unictype/pr_uppercase.h: Likewise.
82782         * lib/unictype/pr_variation_selector.h: Likewise.
82783         * lib/unictype/pr_white_space.h: Likewise.
82784         * lib/unictype/pr_xid_continue.h: Likewise.
82785         * lib/unictype/pr_xid_start.h: Likewise.
82786         * lib/unictype/pr_zero_width.h: Likewise.
82787         * lib/unictype/scripts.h: Likewise.
82788         * lib/unictype/scripts_byname.gperf: Likewise.
82789         * lib/unictype/sy_c_ident.h: Likewise.
82790         * lib/unictype/sy_c_whitespace.h: Likewise.
82791         * lib/unictype/sy_java_ident.h: Likewise.
82792         * lib/unictype/sy_java_whitespace.h: Likewise.
82794         * lib/unictype/Makefile: New file.
82795         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
82796         glibc.
82797         * lib/unictype/3level.h: New file, copied from glibc.
82798         * lib/unictype/3levelbit.h: New file.
82800 2007-11-11  Bruno Haible  <bruno@clisp.org>
82802         * modules/gperf: New file.
82803         * modules/iconv_open (Depends-on): Add it.
82804         (Makefile.am): Remove the GPERF definition.
82806 2007-11-11  Bruno Haible  <bruno@clisp.org>
82808         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
82809         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
82811 2007-11-11  Bruno Haible  <bruno@clisp.org>
82813         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
82814         (usage): Remove function.
82816 2007-11-11  Bruno Haible  <bruno@clisp.org>
82818         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
82819         gl_FUNC_CEILF_LIBS.
82820         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
82821         gl_FUNC_CEIL_LIBS.
82822         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
82823         gl_FUNC_CEILL_LIBS.
82824         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
82825         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
82826         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
82828 2007-11-11  Bruno Haible  <bruno@clisp.org>
82830         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
82831         roundf were declared but do not exist on functions.
82832         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
82833         roundl were declared but do not exist on functions.
82834         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
82835         HAVE_FLOORL_AND_CEILL, respectively.
82836         Needed for Sun C on Solaris 10.
82838 2007-11-11  Bruno Haible  <bruno@clisp.org>
82840         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
82841         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
82842         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
82843         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
82844         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
82845         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
82846         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
82847         HAVE_DECL_ROUNDF.
82848         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
82849         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
82850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
82851         of HAVE_DECL_ROUND*.
82852         * modules/math (Makefile.am): Update.
82854 2007-11-10  Bruno Haible  <bruno@clisp.org>
82856         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
82857         ptrdiff_t as m4/intl.m4.
82859 2007-11-10  Jim Meyering  <meyering@redhat.com>
82861         Avoid link failure for the argmatch test.
82862         * tests/test-argmatch.c (usage): Define function to avoid a link
82863         failure: argmatch_die requires a usage function.
82865 2007-11-09  Bruno Haible  <bruno@clisp.org>
82867         * doc/functions/snprintf.texi: Mention BeOS deficiency.
82868         * doc/functions/vsnprintf.texi: Likewise.
82869         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
82870         with a size argument < 2.
82872 2007-11-09  Bruno Haible  <bruno@clisp.org>
82874         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
82875         buffer. Fixes an inefficiency introduced on 2007-11-03.
82877 2007-11-09  Bruno Haible  <bruno@clisp.org>
82879         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
82880         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
82882 2007-11-08  Jim Meyering  <meyering@redhat.com>
82884         Change cache variable name prefix "jm_" to "gl_" everywhere.
82885         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
82886         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
82887         * m4/uptime.m4: s/gl_/jm_/
82889 2007-11-07  Bruno Haible  <bruno@clisp.org>
82891         Update to GNU gettext 0.17.
82892         * m4/intl.m4: Update to GNU gettext 0.17.
82893         * m4/po.m4: Likewise.
82894         * modules/gettext (Files): Remove m4/ulonglong.m4.
82895         (configure.ac): Require gettext infrastructure from version 0.17.
82897 2007-11-06  Bruno Haible  <bruno@clisp.org>
82899         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
82900         symbolic values are not defined in a public header.
82901         * lib/freadable.c (freadable) [QNX]: Likewise.
82902         * lib/freadahead.c (freadahead) [QNX]: Likewise.
82903         * lib/freading.c (freading) [QNX]: Likewise.
82904         * lib/fseterr.c (fseterr) [QNX]: Likewise.
82905         * lib/fwritable.c (fwritable) [QNX]: Likewise.
82906         * lib/fwriting.c (fwriting) [QNX]: Likewise.
82907         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
82908         Reported by Alain Magloire.
82910         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
82912 2007-11-05  Bruno Haible  <bruno@clisp.org>
82914         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
82915         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
82916         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
82917         Reported by Eric Blake.
82919 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82920             Bruno Haible  <bruno@clisp.org>
82922         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
82923         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
82924         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
82925         (malloc): Undefine also before including <stdlib.h>.
82926         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
82927         Needed on OSF/1 4.0.
82929 2007-11-05  Jim Meyering  <meyering@redhat.com>
82931         git-version-gen: sync from coreutils.
82932         * build-aux/git-version-gen: Add comments.
82933         Change the first '-' to '.' in the snapshot version string,
82934         e.g., 6.9-377-08144 -> 6.9.377-08144
82935         Remove first parameter.
82936         Don't declare a version "-dirty" merely because a time
82937         stamp has changed.
82939 2007-11-04  Bruno Haible  <bruno@clisp.org>
82941         * lib/lock.h: Protect all macro definitions containing an 'if'
82942         statement through a "do { ... } while (0)".
82943         * lib/tls.h: Likewise.
82945 2007-11-04  Bruno Haible  <bruno@clisp.org>
82947         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
82949 2007-11-04  Bruno Haible  <bruno@clisp.org>
82951         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
82952         * modules/fprintf-posix (Depends-on): Add nocrash.
82953         * modules/snprintf-posix (Depends-on): Likewise.
82954         * modules/sprintf-posix (Depends-on): Likewise.
82955         * modules/vasnprintf-posix (Depends-on): Likewise.
82956         * modules/vasprintf-posix (Depends-on): Likewise.
82957         * modules/vfprintf-posix (Depends-on): Likewise.
82958         * modules/vsnprintf-posix (Depends-on): Likewise.
82959         * modules/vsprintf-posix (Depends-on): Likewise.
82960         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
82961         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
82962         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
82963         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
82964         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
82965         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
82966         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
82968 2007-11-04  Bruno Haible  <bruno@clisp.org>
82970         * modules/nocrash: New file.
82971         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
82972         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
82974 2007-11-04  Bruno Haible  <bruno@clisp.org>
82976         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
82977         precision handling.
82978         * tests/test-vasprintf-posix.c (test_function): Likewise.
82979         * tests/test-snprintf-posix.h (test_function): Likewise.
82980         * tests/test-sprintf-posix.h (test_function): Likewise.
82982         Fix *printf behaviour for large precisions on mingw and BeOS.
82983         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
82984         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
82985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
82986         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
82987         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82988         gl_PRINTF_PRECISION and test its result. Invoke
82989         gl_PREREQ_VASNPRINTF_PRECISION.
82990         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82991         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82992         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82993         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82994         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82995         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82996         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82997         * doc/functions/fprintf.texi: Update.
82998         * doc/functions/printf.texi: Update.
82999         * doc/functions/snprintf.texi: Update.
83000         * doc/functions/sprintf.texi: Update.
83001         * doc/functions/vfprintf.texi: Update.
83002         * doc/functions/vprintf.texi: Update.
83003         * doc/functions/vsnprintf.texi: Update.
83004         * doc/functions/vsprintf.texi: Update.
83006 2007-11-04  Bruno Haible  <bruno@clisp.org>
83008         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
83010 2007-11-04  Bruno Haible  <bruno@clisp.org>
83012         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
83013         Reported by Sylvain Beucler <beuc@gnu.org>.
83015 2007-11-03  Bruno Haible  <bruno@clisp.org>
83017         * tests/test-fprintf-posix2.sh: New file.
83018         * tests/test-fprintf-posix2.c: New file.
83019         * modules/fprintf-posix-tests (Files): Add them.
83020         (TESTS): Add test-fprintf-posix2.sh.
83021         (configure.ac): Check for getrlimit and setrlimit.
83022         (check_PROGRAMS): Add test-fprintf-posix2.
83024         * tests/test-printf-posix2.sh: New file.
83025         * tests/test-printf-posix2.c: New file.
83026         * modules/printf-posix-tests (Files): Add them.
83027         (TESTS): Add test-printf-posix2.sh.
83028         (configure.ac): Check for getrlimit and setrlimit.
83029         (check_PROGRAMS): Add test-printf-posix2.
83031         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
83032         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
83033         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
83034         (decode_double): New function, copied from decode_long_double.
83035         (scale10_round_decimal_decoded): New function, extracted from
83036         scale10_round_decimal_long_double.
83037         (scale10_round_decimal_long_double): Use it.
83038         (scale10_round_decimal_double): New function.
83039         (floorlog10): New function.
83040         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
83041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
83042         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83043         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83044         gl_PRINTF_ENOMEM and test its result. Invoke
83045         gl_PREREQ_VASNPRINTF_ENOMEM.
83046         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83047         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83048         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83049         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83050         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83051         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83052         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83053         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
83054         * modules/snprintf-posix (Depends-on): Likewise.
83055         * modules/sprintf-posix (Depends-on): Likewise.
83056         * modules/vasnprintf-posix (Depends-on): Likewise.
83057         * modules/vasprintf-posix (Depends-on): Likewise.
83058         * modules/vfprintf-posix (Depends-on): Likewise.
83059         * modules/vsnprintf-posix (Depends-on): Likewise.
83060         * modules/vsprintf-posix (Depends-on): Likewise.
83061         * doc/functions/fprintf.texi: Update.
83062         * doc/functions/printf.texi: Update.
83063         * doc/functions/snprintf.texi: Update.
83064         * doc/functions/sprintf.texi: Update.
83065         * doc/functions/vfprintf.texi: Update.
83066         * doc/functions/vprintf.texi: Update.
83067         * doc/functions/vsnprintf.texi: Update.
83068         * doc/functions/vsprintf.texi: Update.
83070 2007-11-03  Bruno Haible  <bruno@clisp.org>
83072         * modules/frexp-nolibm-tests: New file.
83074         * modules/frexp-nolibm: New file.
83075         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
83077 2007-11-03  Bruno Haible  <bruno@clisp.org>
83079         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
83080         value is C99 compliant.
83081         Needed for OSF/1 5.1.
83083 2007-11-03  Bruno Haible  <bruno@clisp.org>
83085         Fix out-of-memory handling of vasnprintf.
83086         * lib/printf-parse.c: Include <errno.h>.
83087         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
83088         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
83089         is already set.
83091 2007-11-02  Eric Blake  <ebb9@byu.net>
83093         Fix tests on cygwin.
83094         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
83096 2007-11-01  Bruno Haible  <bruno@clisp.org>
83098         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
83099         warning.
83100         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
83101         needed for POSIX compatibility.
83103 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83105         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
83106         for compatibility with GNU.
83108 2007-11-01  Bruno Haible  <bruno@clisp.org>
83110         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
83111         (putenv): Renamed from rpl_putenv. Change argument type from
83112         'const char *' to 'char *'.
83113         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
83114         of defining putenv in config.h, just set REPLACE_PUTENV.
83115         * modules/putenv (Depends-on): Add stdlib.
83116         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83117         (Include): Use <stdlib.h>.
83118         * lib/stdlib.in.h (putenv): New declaration.
83119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
83120         REPLACE_PUTENV.
83121         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
83122         REPLACE_PUTENV.
83123         Needed for MacOS X 10.5.0.
83124         Reported by Peter O'Gorman <peter@pogma.com>.
83126 2007-11-01  Jim Meyering  <meyering@redhat.com>
83128         Treat an empty date string exactly like "0".
83129         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
83130         if the remaining date string (to be parsed) is empty, use "0".
83131         Reported by Mischa Molhoek and discussed in this thread:
83132         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
83134 2007-10-31  Bruno Haible  <bruno@clisp.org>
83136         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
83137         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
83138         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
83139         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
83140         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
83141         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
83143 2007-10-31  Bruno Haible  <bruno@clisp.org>
83145         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
83146         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
83147         (AC_TYPE_LONG_LONG_INT): Use it.
83148         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
83149         it as well.
83150         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
83151         to m4/longlong.m4.
83152         * modules/stdint (Files): Remove m4/ulonglong.m4.
83153         * modules/strtoull (Files): Use m4/longlong.m4 instead of
83154         m4/ulonglong.m4.
83155         * modules/strtoumax (Files): Likewise.
83157 2007-10-30  Bruno Haible  <bruno@clisp.org>
83159         * modules/xvasprintf-posix: New file.
83160         Suggested by Eric Blake.
83162 2007-10-30  Bruno Haible  <bruno@clisp.org>
83164         * modules/xprintf-posix-tests: New file.
83165         * tests/test-xprintf-posix.sh: New file.
83166         * tests/test-xprintf-posix.c: New file.
83167         * tests/test-xfprintf-posix.c: New file.
83169         * modules/xprintf-posix: New file.
83171 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83173         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
83174         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
83175         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
83177 2007-10-29  Bruno Haible  <bruno@clisp.org>
83179         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
83180         contain the special marker '_cv_'.
83181         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
83182         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
83183         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
83184         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
83185         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
83186         Reported by Ralf Wildenhues.
83188 2007-10-29  Bruno Haible  <bruno@clisp.org>
83190         * gnulib-tool (func_import): When --lgpl is not specified, set
83191         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
83192         GPLv3.
83193         Reported by Simon Josefsson.
83195 2007-10-28  Bruno Haible  <bruno@clisp.org>
83197         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
83198         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
83199         HAVE_DECL_ISFINITE.
83200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83201         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
83202         HAVE_DECL_ISFINITE.
83204 2007-10-28  Bruno Haible  <bruno@clisp.org>
83206         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
83207         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
83209 2007-10-28  Bruno Haible  <bruno@clisp.org>
83211         Fix link errors with Sun C 5.0 on Solaris 10.
83212         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
83213         function is declared but not present in the compiler's libm.
83214         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
83215         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
83216         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
83217         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
83218         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
83219         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
83220         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
83221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83222         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
83223         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
83224         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
83225         HAVE_DECL_FLOORL.
83227 2007-10-28  Bruno Haible  <bruno@clisp.org>
83229         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
83230         gl_FUNC_FLOORL. Cache the result.
83231         (gl_FUNC_FLOORL): Use it.
83232         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
83233         gl_FUNC_CEILL. Cache the result.
83234         (gl_FUNC_CEILL): Use it.
83236         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
83237         gl_FUNC_FLOOR. Cache the result.
83238         (gl_FUNC_FLOOR): Use it.
83239         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
83240         gl_FUNC_CEIL. Cache the result.
83241         (gl_FUNC_CEIL): Use it.
83243         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
83244         gl_FUNC_FLOORF. Cache the result.
83245         (gl_FUNC_FLOORF): Use it.
83246         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
83247         gl_FUNC_CEILF. Cache the result.
83248         (gl_FUNC_CEILF): Use it.
83250 2007-10-28  Bruno Haible  <bruno@clisp.org>
83252         * gnulib-tool: Allow specifying the LGPL version number through
83253         --lgpl=2 or --lgpl=3.
83254         (func_usage): Document --lgpl with argument.
83255         Handle --lgpl=... arguments.
83256         (func_import): Recognize also gl_LGPL calls with an argument. When
83257         --lgpl=2 is used and the module's license is just LGPL, report an
83258         error. Set sed_transform_lib_file according to the lgpl variable. In
83259         the generated files, use --lgpl or gl_LGPL invocations with argument,
83260         if necessary.
83261         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
83262         an LGPv2+ license.
83263         * doc/gnulib-tool.texi (Modified imports): Update explanation of
83264         gl_LGPL macro.
83266 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83267             Bruno Haible  <bruno@clisp.org>
83269         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
83270         (u16_uctomb_aux): Likewise.
83271         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
83272         !HAVE_INLINE.
83273         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
83275 2007-10-28  Bruno Haible  <bruno@clisp.org>
83277         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
83278         Invoke AM_GETTEXT_OPTION if it exists.
83279         * modules/vasprintf: Likewise.
83280         * modules/verror: Likewise.
83281         * modules/xprintf: Likewise.
83282         * modules/xvasprintf: Likewise.
83284 2007-10-27  Ben Pfaff  <blp@gnu.org>
83286         * lib/math.in.h: Define isfinite macro and prototypes for
83287         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
83288         implementations.
83289         * m4/math_h.m4: New substitutions for isfinite module.
83290         * lib/isfinite.c: New file.
83291         * m4/isfinite.m4: New file.
83292         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
83293         * modules/isfinite: New file.
83294         * modules/isfinite-tests: New file.
83295         * tests/tests-isfinite.c: New file.
83296         * doc/functions/isfinite.texi: Mention isfinite module.
83297         * MODULES.html.sh: Mention new module.
83299 2007-10-27  Ben Pfaff  <blp@gnu.org>
83301         Ralf Wildenhues reported that Tru64 4.0D declares the round
83302         functions but does not have definitions.
83303         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
83304         cannot be found in any library, set the output variable to
83305         "missing" instead of "".
83306         * m4/round.m4: Also use our substitute if we cannot find round in
83307         any library, even if it is declared.
83308         * m4/roundf.m4: Likewise for roundf.
83309         * m4/roundl.m4: Likewise for roundl.
83310         * lib/math.in.h: Undefine roundf, round, roundl before defining
83311         their replacements, to allow for hypothetical systems where these
83312         may be defined as macros but not available in libraries.
83314 2007-10-27  Bruno Haible  <bruno@clisp.org>
83316         * doc/gnulib.texi: Invoke @firstparagraphindent.
83317         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
83318         changes in gnulib.
83319         (Source changes): New section.
83321 2007-10-26  Bruno Haible  <bruno@clisp.org>
83323         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
83324         borrowed from autoconf.
83326 2007-10-26  Bruno Haible  <bruno@clisp.org>
83328         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
83329         strerror returned the empty string. Needed on HP-UX 11.00.
83331 2007-10-24  Micah Cowan  <micah@cowan.name>
83333         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
83334         * build-aux/bootstrap: Remove support for now-unnecessary option,
83335         --cvs-user, and envvars CVS_USER, CVS_RSH.
83337 2007-10-24  Jim Meyering  <meyering@redhat.com>
83339         Avoid diagnostics from sha1sum when there is no cached checksum.
83340         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
83341         if the po.s1 file hasn't been created yet.
83343         * build-aux/bootstrap: Sync from coreutils:
83344         2007-10-24  Jim Meyering  <meyering@redhat.com>
83345         Get gnulib from the git repository, not from an obsolete cvs one.
83346         * build-aux/bootstrap: Suggestion from Micah Cowan.
83347         2007-10-04  Jim Meyering  <jim@meyering.net>
83348         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
83349         (update_po_files): Work also when there are no .po files in po/.
83351 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83353         * README: Append ".git" to git and cg examples.
83354         Problem reported by Benoit Sigoure.
83356 2007-10-23  Micah Cowan  <micah@cowan.name>
83358         * users.txt: Add wget.
83360 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83362         Fix linking of some unistdio tests on FreeBSD.
83363         * modules/unistdio/u16-vsnprintf-tests
83364         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
83365         * modules/unistdio/u16-vsprintf-tests
83366         (test_u16_vsnprintf1_LDADD): Likewise.
83367         * modules/unistdio/u32-vsnprintf-tests
83368         (test_u32_vsnprintf1_LDADD): Likewise.
83369         * modules/unistdio/u32-vsprintf-tests
83370         (test_u32_vsprintf1_LDADD): Likewise.
83371         * modules/unistdio/u8-vsnprintf-tests
83372         (test_u8_vsnprintf1_LDADD): Likewise.
83373         * modules/unistdio/u8-vsprintf-tests
83374         (test_u8_vsprintf1_LDADD): Likewise.
83375         * modules/unistdio/ulc-vsnprintf-tests
83376         (test_ulc_vsnprintf1_LDADD): Likewise.
83377         * modules/unistdio/ulc-vsprintf-tests
83378         (test_ulc_vsprintf1_LDADD): Likewise.
83380         Fix linking of some uniconv tests on FreeBSD.
83381         * modules/uniconv/u16-conv-from-enc-tests
83382         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
83383         * modules/uniconv/u16-conv-to-enc-tests
83384         (test_u16_conv_to_enc_LDADD): Likewise.
83385         * modules/uniconv/u16-strconv-from-enc-tests
83386         (test_u16_strconv_from_enc_LDADD): Likewise.
83387         * modules/uniconv/u16-strconv-to-enc-tests
83388         (test_u16_strconv_to_enc_LDADD): Likewise.
83389         * modules/uniconv/u32-conv-from-enc-tests
83390         (test_u32_conv_from_enc_LDADD): Likewise.
83391         * modules/uniconv/u32-conv-to-enc-tests
83392         (test_u32_conv_to_enc_LDADD): Likewise.
83393         * modules/uniconv/u32-strconv-from-enc-tests
83394         (test_u32_strconv_from_enc_LDADD): Likewise.
83395         * modules/uniconv/u32-strconv-to-enc-tests
83396         (test_u32_strconv_to_enc_LDADD): Likewise.
83397         * modules/uniconv/u8-conv-from-enc-tests
83398         (test_u8_conv_from_enc_LDADD): Likewise.
83399         * modules/uniconv/u8-conv-to-enc-tests
83400         (test_u8_conv_to_enc_LDADD): Likewise.
83401         * modules/uniconv/u8-strconv-from-enc-tests
83402         (test_u8_strconv_from_enc_LDADD): Likewise.
83403         * modules/uniconv/u8-strconv-to-enc-tests
83404         (test_u8_strconv_to_enc_LDADD): Likewise.
83406 2007-10-22  Bruno Haible  <bruno@clisp.org>
83408         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
83409         size.
83411 2007-10-22  Eric Blake  <ebb9@byu.net>
83413         Tweak x*printf documentation.
83414         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
83415         variable name and comments.
83416         Suggested by Bruno Haible.
83418 2007-10-22  Bruno Haible  <bruno@clisp.org>
83420         * lib/acl.c (copy_acl): Fix file name in comment.
83422 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83424         Fix Tru64 problem with stdbool.h.
83425         * lib/stdbool.in.h (false, true):
83426         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
83427         Don't declare as an enum in this situation; it runs afoul of Tru64.
83428         Problem reported by Steven M. Schweda in
83429         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
83431 2007-10-22  Eric Blake  <ebb9@byu.net>
83433         Also wrap vf?printf.
83434         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
83435         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
83436         (xvprintf, xvfprintf): New functions.
83438 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83440         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
83441         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
83443         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
83444         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
83446 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83448         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
83449         by Bruno Haible.
83451 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83453         * lib/getloadavg.c
83454         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
83455         Undef `sys' after including sys/table.h, for Tru64 4.0D.
83457         * tests/test-i-ring.c: Work for C89.
83459 2007-10-22  Bruno Haible  <bruno@clisp.org>
83461         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
83462         -1u, in preprocessor expression, so that we don't test for the bug
83463         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
83464         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
83466 2007-10-22  Eric Blake  <ebb9@byu.net>
83468         * tests/test-yesno.sh: Silence stderr during test.
83470 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83472         * modules/crypto/gc-camellia: New file.
83474         * m4/gc-camellia.m4: New file.
83476         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
83478         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
83480 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83482         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
83483         --help to stdout.  Reported by sms@antinode.org (Steven
83484         M. Schweda).
83486 2007-10-22  Simon Josefsson  <simon@josefsson.org>
83488         * users.txt: Fix link to libksba.
83490 2007-10-21  Ben Pfaff  <blp@gnu.org>
83492         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
83493         round.c roundf implementation that depends on floorf and ceilf to
83494         be tested unconditionally.
83496 2007-10-21  Ben Pfaff  <blp@gnu.org>
83498         * m4/check-libm-func.m4: Removed.
83499         * m4/check-math-lib.m4: New file.
83500         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
83501         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
83502         definition and lack of AC_LIBOBJ([roundf]).
83503         * m4/roundl.m4: Ditto, and similarly for roundl.
83504         * modules/round: Reference new m4 file.
83505         * modules/roundf: Ditto.
83506         * modules/roundl: Ditto.
83507         * tests/test-round2.c (main): Use ROUND instead of round.
83508         Bug report from Bruno Haible.
83510 2007-10-21  Bruno Haible  <bruno@clisp.org>
83512         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
83513         context.
83515 2007-10-21  Bruno Haible  <bruno@clisp.org>
83517         * tests/test-wcwidth.c (main): Allow negative result for some control
83518         characters.
83520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
83521         Needed on OSF/1 5.1.
83523 2007-10-21  Bruno Haible  <bruno@clisp.org>
83525         * tests/test-floorf1.c: Include isnanf.h.
83526         (main): Use isnanf() instead of isnan().
83527         * tests/test-ceilf1.c: Include isnanf.h.
83528         (main): Use isnanf() instead of isnan().
83529         * tests/test-truncf1.c: Include isnanf.h.
83530         (main): Use isnanf() instead of isnan().
83531         * tests/test-roundf1.c: Include isnanf.h.
83532         (main): Use isnanf() instead of isnan().
83534 2007-10-21  Eric Blake  <ebb9@byu.net>
83536         * users.txt: Update URL for m4.
83538 2007-10-21  Bruno Haible  <bruno@clisp.org>
83540         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
83542 2007-10-21  Bruno Haible  <bruno@clisp.org>
83544         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
83545         Git's management files if the CVS files are not present.
83547 2007-10-20  Bruno Haible  <bruno@clisp.org>
83549         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
83550         gcc-3.4.x.
83552 2007-10-20  Ben Pfaff  <blp@gnu.org>
83554         * lib/math.in.h: Declare round, roundf, roundl if we are providing
83555         implementations.
83556         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
83557         * lib/round.c: New file.
83558         * lib/roundf.c: New file.
83559         * lib/roundl.c: New file.
83560         * m4/round.m4: New file.
83561         * m4/roundf.m4: New file.
83562         * m4/roundl.m4: New file.
83563         * m4/check-libm-func-m4: New file.
83564         * modules/math: Replace round, roundf, roundl related @VARS@ in
83565         math.in.h.
83566         * modules/round: New file.
83567         * modules/round-tests: New file.
83568         * modules/roundf: New file.
83569         * modules/roundf-tests: New file.
83570         * modules/roundl: New file.
83571         * modules/roundl-tests: New file.
83572         * tests/test-round1.c: New file.
83573         * tests/test-round2.c: New file.
83574         * tests/test-roundf1.c: New file.
83575         * tests/test-roundf2.c: New file.
83576         * tests/test-roundl.c: New file.
83577         * doc/functions/round.texi: Mention round module.
83578         * doc/functions/roundf.texi: Mention roundf module.
83579         * doc/functions/roundl.texi: Mention roundl module.
83580         * MODULES.html.sh: Mention new modules.
83581         Thanks to Bruno Haible for suggestions.
83583 2007-10-20  Jim Meyering  <meyering@redhat.com>
83585         * lib/xprintf.c: Include <config.h> unconditionally.
83587         Change xprintf's license to GPL.
83588         * modules/xprintf (License): s/LGPL/GPL/, since this module
83589         depends on modules (exit and exitfail) which are GPL.
83590         Suggestion from Bruno Haible.
83592         xprintf fixes.
83593         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
83594         Use a clearer diagnostic.
83595         Patch from Bruno Haible.
83597 2007-10-20  Bruno Haible  <bruno@clisp.org>
83599         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
83600         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
83601         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83603 2007-10-20  Bruno Haible  <bruno@clisp.org>
83605         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
83606         precision in the comparison result > x - 1 or similar.
83607         * tests/test-ceilf2.c (correct_result_p): Likewise.
83608         * tests/test-truncf2.c (correct_result_p): Likewise.
83609         * tests/test-trunc2.c (correct_result_p): Likewise.
83610         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83612 2007-10-20  Bruno Haible  <bruno@clisp.org>
83614         * modules/ceil: New file.
83615         * m4/ceil.m4: New file.
83616         * doc/functions/ceil.texi: Mention the 'ceil' module.
83618 2007-10-20  Bruno Haible  <bruno@clisp.org>
83620         * modules/floor: New file.
83621         * m4/floor.m4: New file.
83622         * doc/functions/floor.texi: Mention the 'floor' module.
83624 2007-10-20  Bruno Haible  <bruno@clisp.org>
83626         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
83627         of %a.
83628         * modules/floorf-tests (Depends-on): Likewise.
83629         * modules/truncf-tests (Depends-on): Likewise.
83630         * modules/trunc-tests (Depends-on): Likewise.
83631         Reported by Ben Pfaff.
83633 2007-10-19  Jim Meyering  <meyering@redhat.com>
83635         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
83636         Don't bother testing specific errno values.  Just test ferror.
83638         New module: xprintf
83639         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
83641 2007-10-19  Bruno Haible  <bruno@clisp.org>
83643         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
83644         syntax.
83645         * modules/javaexec (Makefile.am): Likewise.
83646         * modules/relocatable-prog (Makefile.am): Likewise.
83647         Suggested by Jim Meyering.
83649 2007-10-18  Bruno Haible  <bruno@clisp.org>
83651         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
83652         Reported by Jim Meyering.
83654 2007-10-18  Eric Blake  <ebb9@byu.net>
83656         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
83658 2007-10-18  Bruno Haible  <bruno@clisp.org>
83660         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
83661         the format string into writable memory. Needed in Fortify conditions.
83663 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
83664             Bruno Haible  <bruno@clisp.org>
83666         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
83667         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
83668         * modules/trim (Depends-on): Add mbchar.
83669         (configure.ac): Add gl_FUNC_MBRTOWC.
83670         (Makefile.am): Augment lib_SOURCES.
83672 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
83674         Modify glob.c to use fstatat and dirfd, to simplify it.
83675         Suggested by Eric Blake.
83676         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
83677         Don't include <stdbool.h>; not used.
83678         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
83679         (link_exists_p): Simplify implementation, since we can now assume
83680         dirfd and fstatat.
83681         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
83683 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83685         * gnulib-tool (func_get_dependencies): Fix sed script to
83686         match only tests.
83688 2007-10-17  Bruno Haible  <bruno@clisp.org>
83690         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
83691         allow locale names without encoding suffix.
83692         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
83693         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
83695 2007-10-16  Bruno Haible  <bruno@clisp.org>
83697         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
83698         * lib/getgroups.c (getgroups): Likewise.
83699         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
83701 2007-10-16  Bruno Haible  <bruno@clisp.org>
83703         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
83704         * modules/malloc-posix (License): Likewise.
83705         * modules/realloc-posix (License): Likewise.
83706         * modules/calloc-posix (License): Likewise.
83707         * modules/intprops (License): Change from GPL to LGPL, with
83708         Paul Eggert's approval.
83710 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
83712         Merge glibc changes into lib/glob.c.
83714         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
83715         2007-10-15 04:59:03 UTC.  Here are the changes:
83717         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
83719         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
83721         * lib/glob.c: Add some branch prediction throughout.
83723         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
83725         [BZ #5103]
83726         * lib/glob.c (glob): Recognize patterns starting \/.
83728         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
83730         [BZ #3996]
83731         * lib/glob.c (attribute_hidden): Define if not defined.
83732         (glob): Unescape dirname, filename or username when needed and not
83733         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
83734         is NULL.  Handle unescaped [ in pattern without closing ].
83735         Don't pass GLOB_CHECK down to recursive glob for directories.
83736         (__glob_pattern_type): New function.
83737         (__glob_pattern_p): Implement using __glob_pattern_type.
83738         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
83739         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
83740         Remove unreachable code.
83742         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
83744         * lib/glob.c (glob_in_dir): Add some comments and asserts to
83745         explain why there are no leaks.
83747         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
83749         [BZ #3253]
83750         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
83751         time, rather allocate increasingly bigger arrays of pointers, if
83752         possible with alloca, if too large with malloc.
83754 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
83756         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
83757         Problem reported by H.Merijn Brand in
83758         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
83759         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
83760         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
83762 2007-10-15  Bruno Haible  <bruno@clisp.org>
83764         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
83765         with explicit rpl_ prefix.
83766         * lib/fopen.c (fopen): Likewise.
83767         * lib/freopen.c (freopen): Likewise.
83768         * lib/iconv.c (iconv): Likewise.
83769         * lib/iconv_close.c (iconv_close): Likewise.
83771 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83773         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
83775 2007-10-15  Bruno Haible  <bruno@clisp.org>
83777         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
83778         <stddef.h> instead of <stdlib.h> since we only need NULL.
83779         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83781 2007-10-15  Bruno Haible  <bruno@clisp.org>
83783         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
83784         Replace paragraph talking about LIBOBJS.
83785         Reported by Colin Watson <cjwatson@debian.org>.
83787 2007-10-15  Bruno Haible  <bruno@clisp.org>
83789         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
83790         <stdlib.h> before using NULL.
83792 2007-10-15  Simon Josefsson  <simon@josefsson.org>
83794         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
83795         Reported by Albert Chin <china@thewrittenword.com>.
83797 2007-10-14  Bruno Haible  <bruno@clisp.org>
83799         * modules/iconv_open-utf-tests: New file.
83800         * tests/test-iconv-utf.c: New file.
83802         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
83803         * modules/iconv_open-utf: New file.
83804         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
83805         (iconv, iconv_close): New declarations.
83806         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
83807         be defined.
83808         (iconv_open): Add special handling of conversion between UTF-8 and
83809         UTF-{16,32}{BE,LE}.
83810         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
83811         * lib/iconv_close.c: New file.
83812         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
83813         gl_FUNC_ICONV_OPEN.
83814         (gl_FUNC_ICONV_OPEN): Use it.
83815         (gl_FUNC_ICONV_OPEN_UTF): New macro.
83816         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
83817         and REPLACE_ICONV_UTF.
83818         * modules/iconv_open (Depends-on): Add c-strcase.
83819         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
83820         ICONV_CONST.
83821         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
83823 2007-10-13  Albert Chin  <china@thewrittenword.com>
83824             Bruno Haible  <bruno@clisp.org>
83826         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
83827         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
83829 2007-10-13  Bruno Haible  <bruno@clisp.org>
83831         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
83832         defined, use the ISO C99 inline semantics.
83833         * lib/argp.h (ARGP_EI): Likewise.
83835 2007-10-13  Bruno Haible  <bruno@clisp.org>
83837         Handle 'inline' change in gcc 4.3.0.
83838         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
83839         argp_fmtstream_write, argp_fmtstream_set_lmargin,
83840         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
83841         argp_fmtstream_point): Disable 'extern' declaration if the function
83842         definition is going to be provided inline.
83843         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
83844         semantics, not the ISO C99 inline semantics.
83845         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
83846         'extern' declaration if the function definition is going to be provided
83847         inline.
83848         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
83849         the GNU C inline semantics, not the ISO C99 inline semantics. With
83850         GCC 4.2, avoid a warning.
83852 2007-10-13  Bruno Haible  <bruno@clisp.org>
83854         * lib/freading.h (freading): Enable the use of __freading for
83855         glibc >= 2.7.
83856         * lib/freading.c (freading): Likewise.
83858 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
83860         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
83861         "warning: C99 inline functions are not supported; using GNU89".
83863 2007-10-12  Bruno Haible  <bruno@clisp.org>
83865         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
83866         of 2.
83867         * tests/test-ceilf2.c: New file.
83868         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
83870         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
83871         * modules/ceilf-tests: Update.
83873 2007-10-12  Bruno Haible  <bruno@clisp.org>
83875         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
83876         of 2.
83877         * tests/test-floorf2.c: New file.
83878         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
83880         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
83881         * modules/floorf-tests: Update.
83883 2007-10-12  Bruno Haible  <bruno@clisp.org>
83885         * tests/test-trunc2.c: New file.
83886         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
83888         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
83889         * modules/trunc-tests: Update.
83891 2007-10-12  Bruno Haible  <bruno@clisp.org>
83893         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
83894         of 2.
83895         * tests/test-truncf2.c: New file.
83896         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
83898         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
83899         * modules/truncf-tests: Update.
83901 2007-10-11  Eric Blake  <ebb9@byu.net>
83903         Don't claim strerror is broken on Interix.
83904         * doc/functions/strerror.texi (strerror): Known broken systems are
83905         now Solaris 8, and not Interix.
83906         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
83907         Interix on cross-compile.
83908         Reported by Martin Koeppe in
83909         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
83911 2007-10-11  Bruno Haible  <bruno@clisp.org>
83913         * modules/i-ring-tests: New file.
83914         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
83915         instead of assert.
83917 2007-10-11  Bruno Haible  <bruno@clisp.org>
83919         * modules/filenamecat-tests: New file.
83920         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
83921         * lib/filenamecat.c: Remove test code.
83923 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
83925         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
83927         * lib/strerror.c: Include <string.h> always, to test interface,
83928         and to remove the need for the dummy.
83929         Include intprops.h to compute width instead of doing it ourselves
83930         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
83931         (strerror): Define it to return NULL if there's no system strerror.
83932         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
83933         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
83934         ancient pre-strerror Unix systems well any more.  Saying "unknown
83935         system error" is enough.
83936         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
83937         simpler strerror.c implementation.
83938         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
83939         Simplify the tests to reflect the simpler strerror implementation.
83940         * modules/strerror (Depends-on): Add intprops.
83942 2007-10-09  Eric Blake  <ebb9@byu.net>
83944         Silence test-fpending.
83945         * modules/fpending-tests (Files): Add wrapper script.
83946         * tests/test-fpending.sh: New file.
83948 2007-10-09  Bruno Haible  <bruno@clisp.org>
83950         * MODULES.html.sh (func_module): Don't create a hyperlink for
83951         function names like 'printf_frexp'.
83952         (Misc): Add crc, memxor.
83953         (Characteristics of floating types): New section.
83954         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
83955         isnanf-nolibm, signbit, trunc, truncf, truncl.
83956         (Enhancements for ISO C 99 functions): New subsection Input/output.
83957         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
83958         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
83959         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
83960         (Compatibility checks for POSIX:2001 functions): Add clock-time.
83961         (Enhancements for POSIX:2001 functions): Add chdir-long.
83962         (File system functions): Add areadlink, chdir-safer, read-file.
83963         Remove cycle-check.
83964         (File system as inode set): New section.
83965         (Date and time): Add gethrxtime.
83966         (Multithreading): Add openmp.
83967         (Internationalization functions): Add localename.
83968         (Unicode string functions): Add unistr/u*-mbsnlen.
83969         (Support for maintaining and releasing projects): Add git-version-gen.
83970         (Lone files): Remove directories.
83972 2007-10-08  Ben Pfaff  <blp@gnu.org>
83974         * lib/xmalloca.h: Fix typo in comment.
83976 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
83978         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
83979         when avoiding problems with integer overflow.  Use a portable test
83980         instead.
83982 2007-10-08  Simon Josefsson  <simon@josefsson.org>
83984         * modules/dummy (License): Change to LGPLv2+.
83985         * modules/float (License): Likewise
83986         * modules/realloc (License): Likewise
83987         * modules/stdlib (License): Likewise
83989 2007-10-07  Bruno Haible  <bruno@clisp.org>
83991         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
83992         * floor.c (TWO_MANT_DIG): Likewise.
83993         * ceil.c (TWO_MANT_DIG): Likewise.
83994         Reported by Ben Pfaff.
83996 2007-10-07  Bruno Haible  <bruno@clisp.org>
83998         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
83999         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
84000         * lib/frexp.c (FUNC): Likewise.
84001         * lib/printf-frexp.h (printf_frexp): Likewise.
84002         * lib/printf-frexpl.h (printf_frexpl): Likewise.
84003         * lib/printf-frexp.c (FUNC): Likewise.
84004         Suggested by Jim Meyering.
84006 2007-10-07  Jim Meyering  <meyering@redhat.com>
84008         Make xnanosleep's integer overflow test more robust.
84009         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
84010         so that gcc-4.3.0 doesn't optimize away this test for overflow.
84012 2007-10-07  Bruno Haible  <bruno@clisp.org>
84014         * NEWS: Mention the license change.
84016         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
84017         abbreviations in the modules files.
84019         Change copyright notice from GPLv2+ to GPLv3+.
84020         * README: Change copyright notice.
84021         * MODULES.html.sh: Likewise.
84022         * build-aux/bootstrap.conf: Likewise.
84023         * build-aux/config.libpath: Likewise.
84024         * build-aux/csharpcomp.sh.in: Likewise.
84025         * build-aux/csharpexec.sh.in: Likewise.
84026         * build-aux/install-reloc: Likewise.
84027         * build-aux/javacomp.sh.in: Likewise.
84028         * build-aux/javaexec.sh.in: Likewise.
84029         * build-aux/ldd.sh.in: Likewise.
84030         * build-aux/reloc-ldflags: Likewise.
84031         * build-aux/relocatable.sh.in: Likewise.
84032         * build-aux/x-to-1.in: Likewise.
84033         * check-module: Likewise.
84034         * config/srclistvars.sh: Likewise.
84035         * gnulib-tool: Likewise.
84036         * lib/acl-internal.h: Likewise.
84037         * lib/acl.c: Likewise.
84038         * lib/acl.h: Likewise.
84039         * lib/acl_entries.c: Likewise.
84040         * lib/areadlink-with-size.c: Likewise.
84041         * lib/areadlink.c: Likewise.
84042         * lib/areadlink.h: Likewise.
84043         * lib/argmatch.c: Likewise.
84044         * lib/argmatch.h: Likewise.
84045         * lib/argp-ba.c: Likewise.
84046         * lib/argp-eexst.c: Likewise.
84047         * lib/argp-fmtstream.c: Likewise.
84048         * lib/argp-fmtstream.h: Likewise.
84049         * lib/argp-fs-xinl.c: Likewise.
84050         * lib/argp-help.c: Likewise.
84051         * lib/argp-namefrob.h: Likewise.
84052         * lib/argp-parse.c: Likewise.
84053         * lib/argp-pin.c: Likewise.
84054         * lib/argp-pv.c: Likewise.
84055         * lib/argp-pvh.c: Likewise.
84056         * lib/argp-xinl.c: Likewise.
84057         * lib/argp.h: Likewise.
84058         * lib/at-func.c: Likewise.
84059         * lib/atanl.c: Likewise.
84060         * lib/backupfile.c: Likewise.
84061         * lib/backupfile.h: Likewise.
84062         * lib/basename.c: Likewise.
84063         * lib/binary-io.h: Likewise.
84064         * lib/byteswap.in.h: Likewise.
84065         * lib/c-stack.c: Likewise.
84066         * lib/c-stack.h: Likewise.
84067         * lib/c-strcasestr.c: Likewise.
84068         * lib/c-strcasestr.h: Likewise.
84069         * lib/c-strstr.c: Likewise.
84070         * lib/c-strstr.h: Likewise.
84071         * lib/c-strtod.c: Likewise.
84072         * lib/calloc.c: Likewise.
84073         * lib/canon-host.c: Likewise.
84074         * lib/canon-host.h: Likewise.
84075         * lib/canonicalize-lgpl.c: Likewise.
84076         * lib/canonicalize.c: Likewise.
84077         * lib/canonicalize.h: Likewise.
84078         * lib/ceil.c: Likewise.
84079         * lib/ceilf.c: Likewise.
84080         * lib/ceill.c: Likewise.
84081         * lib/chdir-long.c: Likewise.
84082         * lib/chdir-long.h: Likewise.
84083         * lib/chdir-safer.c: Likewise.
84084         * lib/chdir-safer.h: Likewise.
84085         * lib/chown.c: Likewise.
84086         * lib/classpath.c: Likewise.
84087         * lib/classpath.h: Likewise.
84088         * lib/clean-temp.c: Likewise.
84089         * lib/clean-temp.h: Likewise.
84090         * lib/cloexec.c: Likewise.
84091         * lib/close-stream.c: Likewise.
84092         * lib/closein.c: Likewise.
84093         * lib/closein.h: Likewise.
84094         * lib/closeout.c: Likewise.
84095         * lib/closeout.h: Likewise.
84096         * lib/concat-filename.c: Likewise.
84097         * lib/copy-file.c: Likewise.
84098         * lib/copy-file.h: Likewise.
84099         * lib/count-one-bits.h: Likewise.
84100         * lib/crc.c: Likewise.
84101         * lib/crc.h: Likewise.
84102         * lib/creat-safer.c: Likewise.
84103         * lib/csharpcomp.c: Likewise.
84104         * lib/csharpcomp.h: Likewise.
84105         * lib/csharpexec.c: Likewise.
84106         * lib/csharpexec.h: Likewise.
84107         * lib/cycle-check.c: Likewise.
84108         * lib/cycle-check.h: Likewise.
84109         * lib/diacrit.c: Likewise.
84110         * lib/diacrit.h: Likewise.
84111         * lib/diffseq.h: Likewise.
84112         * lib/dirchownmod.c: Likewise.
84113         * lib/dirent.in.h: Likewise.
84114         * lib/dirfd.c: Likewise.
84115         * lib/dirfd.h: Likewise.
84116         * lib/dirname.c: Likewise.
84117         * lib/dirname.h: Likewise.
84118         * lib/dummy.c: Likewise.
84119         * lib/dup-safer.c: Likewise.
84120         * lib/dup2.c: Likewise.
84121         * lib/eealloc.h: Likewise.
84122         * lib/error.c: Likewise.
84123         * lib/error.h: Likewise.
84124         * lib/euidaccess.c: Likewise.
84125         * lib/exclude.c: Likewise.
84126         * lib/exclude.h: Likewise.
84127         * lib/execute.c: Likewise.
84128         * lib/execute.h: Likewise.
84129         * lib/exitfail.c: Likewise.
84130         * lib/exitfail.h: Likewise.
84131         * lib/expl.c: Likewise.
84132         * lib/fatal-signal.c: Likewise.
84133         * lib/fatal-signal.h: Likewise.
84134         * lib/fbufmode.c: Likewise.
84135         * lib/fbufmode.h: Likewise.
84136         * lib/fchdir.c: Likewise.
84137         * lib/fchmodat.c: Likewise.
84138         * lib/fchownat.c: Likewise.
84139         * lib/fcntl--.h: Likewise.
84140         * lib/fcntl-safer.h: Likewise.
84141         * lib/fcntl.in.h: Likewise.
84142         * lib/fd-safer.c: Likewise.
84143         * lib/fflush.c: Likewise.
84144         * lib/file-has-acl.c: Likewise.
84145         * lib/file-set.c: Likewise.
84146         * lib/file-type.c: Likewise.
84147         * lib/file-type.h: Likewise.
84148         * lib/fileblocks.c: Likewise.
84149         * lib/filemode.c: Likewise.
84150         * lib/filemode.h: Likewise.
84151         * lib/filename.h: Likewise.
84152         * lib/filenamecat.c: Likewise.
84153         * lib/filenamecat.h: Likewise.
84154         * lib/findprog.c: Likewise.
84155         * lib/findprog.h: Likewise.
84156         * lib/float.in.h: Likewise.
84157         * lib/floor.c: Likewise.
84158         * lib/floorf.c: Likewise.
84159         * lib/floorl.c: Likewise.
84160         * lib/fopen-safer.c: Likewise.
84161         * lib/fopen.c: Likewise.
84162         * lib/fpending.c: Likewise.
84163         * lib/fpending.h: Likewise.
84164         * lib/fprintf.c: Likewise.
84165         * lib/fprintftime.h: Likewise.
84166         * lib/fpucw.h: Likewise.
84167         * lib/fpurge.c: Likewise.
84168         * lib/fpurge.h: Likewise.
84169         * lib/freadable.c: Likewise.
84170         * lib/freadable.h: Likewise.
84171         * lib/freadahead.c: Likewise.
84172         * lib/freadahead.h: Likewise.
84173         * lib/freading.c: Likewise.
84174         * lib/freading.h: Likewise.
84175         * lib/free.c: Likewise.
84176         * lib/freopen.c: Likewise.
84177         * lib/frexp.c: Likewise.
84178         * lib/frexpl.c: Likewise.
84179         * lib/fseek.c: Likewise.
84180         * lib/fseterr.c: Likewise.
84181         * lib/fseterr.h: Likewise.
84182         * lib/fstatat.c: Likewise.
84183         * lib/fstrcmp.c: Likewise.
84184         * lib/fstrcmp.h: Likewise.
84185         * lib/fsusage.c: Likewise.
84186         * lib/fsusage.h: Likewise.
84187         * lib/ftell.c: Likewise.
84188         * lib/ftello.c: Likewise.
84189         * lib/fts-cycle.c: Likewise.
84190         * lib/fts.c: Likewise.
84191         * lib/fts_.h: Likewise.
84192         * lib/full-read.c: Likewise.
84193         * lib/full-read.h: Likewise.
84194         * lib/full-write.c: Likewise.
84195         * lib/full-write.h: Likewise.
84196         * lib/fwritable.c: Likewise.
84197         * lib/fwritable.h: Likewise.
84198         * lib/fwriteerror.c: Likewise.
84199         * lib/fwriteerror.h: Likewise.
84200         * lib/fwriting.c: Likewise.
84201         * lib/fwriting.h: Likewise.
84202         * lib/gcd.c: Likewise.
84203         * lib/gcd.h: Likewise.
84204         * lib/getcwd.c: Likewise.
84205         * lib/getdate.h: Likewise.
84206         * lib/getdate.y: Likewise.
84207         * lib/getdomainname.c: Likewise.
84208         * lib/getdomainname.h: Likewise.
84209         * lib/getgroups.c: Likewise.
84210         * lib/gethostname.c: Likewise.
84211         * lib/gethrxtime.c: Likewise.
84212         * lib/gethrxtime.h: Likewise.
84213         * lib/getloadavg.c: Likewise.
84214         * lib/getndelim2.c: Likewise.
84215         * lib/getndelim2.h: Likewise.
84216         * lib/getnline.c: Likewise.
84217         * lib/getnline.h: Likewise.
84218         * lib/getopt.c: Likewise.
84219         * lib/getopt.in.h: Likewise.
84220         * lib/getopt1.c: Likewise.
84221         * lib/getopt_int.h: Likewise.
84222         * lib/getpagesize.h: Likewise.
84223         * lib/getsubopt.c: Likewise.
84224         * lib/gettime.c: Likewise.
84225         * lib/getugroups.c: Likewise.
84226         * lib/getugroups.h: Likewise.
84227         * lib/getusershell.c: Likewise.
84228         * lib/gl_anyavltree_list1.h: Likewise.
84229         * lib/gl_anyavltree_list2.h: Likewise.
84230         * lib/gl_anyhash_list1.h: Likewise.
84231         * lib/gl_anyhash_list2.h: Likewise.
84232         * lib/gl_anylinked_list1.h: Likewise.
84233         * lib/gl_anylinked_list2.h: Likewise.
84234         * lib/gl_anyrbtree_list1.h: Likewise.
84235         * lib/gl_anyrbtree_list2.h: Likewise.
84236         * lib/gl_anytree_list1.h: Likewise.
84237         * lib/gl_anytree_list2.h: Likewise.
84238         * lib/gl_anytree_oset.h: Likewise.
84239         * lib/gl_anytreehash_list1.h: Likewise.
84240         * lib/gl_anytreehash_list2.h: Likewise.
84241         * lib/gl_array_list.c: Likewise.
84242         * lib/gl_array_list.h: Likewise.
84243         * lib/gl_array_oset.c: Likewise.
84244         * lib/gl_array_oset.h: Likewise.
84245         * lib/gl_avltree_list.c: Likewise.
84246         * lib/gl_avltree_list.h: Likewise.
84247         * lib/gl_avltree_oset.c: Likewise.
84248         * lib/gl_avltree_oset.h: Likewise.
84249         * lib/gl_avltreehash_list.c: Likewise.
84250         * lib/gl_avltreehash_list.h: Likewise.
84251         * lib/gl_carray_list.c: Likewise.
84252         * lib/gl_carray_list.h: Likewise.
84253         * lib/gl_linked_list.c: Likewise.
84254         * lib/gl_linked_list.h: Likewise.
84255         * lib/gl_linkedhash_list.c: Likewise.
84256         * lib/gl_linkedhash_list.h: Likewise.
84257         * lib/gl_list.c: Likewise.
84258         * lib/gl_list.h: Likewise.
84259         * lib/gl_oset.c: Likewise.
84260         * lib/gl_oset.h: Likewise.
84261         * lib/gl_rbtree_list.c: Likewise.
84262         * lib/gl_rbtree_list.h: Likewise.
84263         * lib/gl_rbtree_oset.c: Likewise.
84264         * lib/gl_rbtree_oset.h: Likewise.
84265         * lib/gl_rbtreehash_list.c: Likewise.
84266         * lib/gl_rbtreehash_list.h: Likewise.
84267         * lib/gl_sublist.c: Likewise.
84268         * lib/gl_sublist.h: Likewise.
84269         * lib/group-member.c: Likewise.
84270         * lib/group-member.h: Likewise.
84271         * lib/hard-locale.c: Likewise.
84272         * lib/hard-locale.h: Likewise.
84273         * lib/hash-pjw.c: Likewise.
84274         * lib/hash-pjw.h: Likewise.
84275         * lib/hash-triple.c: Likewise.
84276         * lib/hash.c: Likewise.
84277         * lib/hash.h: Likewise.
84278         * lib/human.c: Likewise.
84279         * lib/human.h: Likewise.
84280         * lib/i-ring.c: Likewise.
84281         * lib/i-ring.h: Likewise.
84282         * lib/idcache.c: Likewise.
84283         * lib/imaxabs.c: Likewise.
84284         * lib/imaxdiv.c: Likewise.
84285         * lib/inet_pton.c: Likewise.
84286         * lib/inet_pton.h: Likewise.
84287         * lib/intprops.h: Likewise.
84288         * lib/inttostr.c: Likewise.
84289         * lib/inttostr.h: Likewise.
84290         * lib/inttypes.in.h: Likewise.
84291         * lib/isapipe.c: Likewise.
84292         * lib/isdir.c: Likewise.
84293         * lib/isnan.c: Likewise.
84294         * lib/isnan.h: Likewise.
84295         * lib/isnanf.c: Likewise.
84296         * lib/isnanf.h: Likewise.
84297         * lib/isnanl-nolibm.h: Likewise.
84298         * lib/isnanl.c: Likewise.
84299         * lib/isnanl.h: Likewise.
84300         * lib/javacomp.c: Likewise.
84301         * lib/javacomp.h: Likewise.
84302         * lib/javaexec.c: Likewise.
84303         * lib/javaexec.h: Likewise.
84304         * lib/javaversion.c: Likewise.
84305         * lib/javaversion.h: Likewise.
84306         * lib/javaversion.java: Likewise.
84307         * lib/lbrkprop.h: Likewise.
84308         * lib/lchmod.h: Likewise.
84309         * lib/lchown.c: Likewise.
84310         * lib/ldexpl.c: Likewise.
84311         * lib/linebreak.c: Likewise.
84312         * lib/linebreak.h: Likewise.
84313         * lib/linebuffer.c: Likewise.
84314         * lib/linebuffer.h: Likewise.
84315         * lib/locale.in.h: Likewise.
84316         * lib/logl.c: Likewise.
84317         * lib/long-options.c: Likewise.
84318         * lib/long-options.h: Likewise.
84319         * lib/lstat.c: Likewise.
84320         * lib/lstat.h: Likewise.
84321         * lib/math.in.h: Likewise.
84322         * lib/mbchar.c: Likewise.
84323         * lib/mbchar.h: Likewise.
84324         * lib/mbfile.h: Likewise.
84325         * lib/mbiter.h: Likewise.
84326         * lib/mbscasecmp.c: Likewise.
84327         * lib/mbscasestr.c: Likewise.
84328         * lib/mbschr.c: Likewise.
84329         * lib/mbscspn.c: Likewise.
84330         * lib/mbslen.c: Likewise.
84331         * lib/mbsncasecmp.c: Likewise.
84332         * lib/mbsnlen.c: Likewise.
84333         * lib/mbspbrk.c: Likewise.
84334         * lib/mbspcasecmp.c: Likewise.
84335         * lib/mbsrchr.c: Likewise.
84336         * lib/mbssep.c: Likewise.
84337         * lib/mbsspn.c: Likewise.
84338         * lib/mbsstr.c: Likewise.
84339         * lib/mbstok_r.c: Likewise.
84340         * lib/mbswidth.c: Likewise.
84341         * lib/mbswidth.h: Likewise.
84342         * lib/mbuiter.h: Likewise.
84343         * lib/memcasecmp.c: Likewise.
84344         * lib/memcasecmp.h: Likewise.
84345         * lib/memchr.c: Likewise.
84346         * lib/memcmp.c: Likewise.
84347         * lib/memcoll.c: Likewise.
84348         * lib/memcoll.h: Likewise.
84349         * lib/memcpy.c: Likewise.
84350         * lib/memrchr.c: Likewise.
84351         * lib/mkancesdirs.c: Likewise.
84352         * lib/mkdir-p.c: Likewise.
84353         * lib/mkdir-p.h: Likewise.
84354         * lib/mkdir.c: Likewise.
84355         * lib/mkdirat.c: Likewise.
84356         * lib/mkdtemp.c: Likewise.
84357         * lib/mkstemp-safer.c: Likewise.
84358         * lib/mkstemp.c: Likewise.
84359         * lib/modechange.c: Likewise.
84360         * lib/modechange.h: Likewise.
84361         * lib/mountlist.c: Likewise.
84362         * lib/mountlist.h: Likewise.
84363         * lib/mpsort.c: Likewise.
84364         * lib/nanosleep.c: Likewise.
84365         * lib/obstack.c: Likewise.
84366         * lib/obstack.h: Likewise.
84367         * lib/open-safer.c: Likewise.
84368         * lib/open.c: Likewise.
84369         * lib/openat-die.c: Likewise.
84370         * lib/openat-priv.h: Likewise.
84371         * lib/openat-proc.c: Likewise.
84372         * lib/openat.c: Likewise.
84373         * lib/openat.h: Likewise.
84374         * lib/pagealign_alloc.c: Likewise.
84375         * lib/pagealign_alloc.h: Likewise.
84376         * lib/physmem.c: Likewise.
84377         * lib/physmem.h: Likewise.
84378         * lib/pipe-safer.c: Likewise.
84379         * lib/pipe.c: Likewise.
84380         * lib/pipe.h: Likewise.
84381         * lib/posixtm.c: Likewise.
84382         * lib/posixtm.h: Likewise.
84383         * lib/posixver.c: Likewise.
84384         * lib/printf-frexp.c: Likewise.
84385         * lib/printf-frexp.h: Likewise.
84386         * lib/printf-frexpl.c: Likewise.
84387         * lib/printf-frexpl.h: Likewise.
84388         * lib/printf.c: Likewise.
84389         * lib/progname.c: Likewise.
84390         * lib/progname.h: Likewise.
84391         * lib/progreloc.c: Likewise.
84392         * lib/putenv.c: Likewise.
84393         * lib/quote.c: Likewise.
84394         * lib/quote.h: Likewise.
84395         * lib/quotearg.c: Likewise.
84396         * lib/quotearg.h: Likewise.
84397         * lib/raise.c: Likewise.
84398         * lib/readline.c: Likewise.
84399         * lib/readline.h: Likewise.
84400         * lib/readlink.c: Likewise.
84401         * lib/readtokens.c: Likewise.
84402         * lib/readtokens.h: Likewise.
84403         * lib/readtokens0.c: Likewise.
84404         * lib/readtokens0.h: Likewise.
84405         * lib/readutmp.c: Likewise.
84406         * lib/readutmp.h: Likewise.
84407         * lib/realloc.c: Likewise.
84408         * lib/relocwrapper.c: Likewise.
84409         * lib/rename-dest-slash.c: Likewise.
84410         * lib/rename.c: Likewise.
84411         * lib/rmdir.c: Likewise.
84412         * lib/rpmatch.c: Likewise.
84413         * lib/safe-read.c: Likewise.
84414         * lib/safe-read.h: Likewise.
84415         * lib/safe-write.c: Likewise.
84416         * lib/safe-write.h: Likewise.
84417         * lib/same-inode.h: Likewise.
84418         * lib/same.c: Likewise.
84419         * lib/same.h: Likewise.
84420         * lib/save-cwd.c: Likewise.
84421         * lib/save-cwd.h: Likewise.
84422         * lib/savedir.c: Likewise.
84423         * lib/savedir.h: Likewise.
84424         * lib/savewd.c: Likewise.
84425         * lib/savewd.h: Likewise.
84426         * lib/search.in.h: Likewise.
84427         * lib/setenv.c: Likewise.
84428         * lib/setenv.h: Likewise.
84429         * lib/settime.c: Likewise.
84430         * lib/sh-quote.c: Likewise.
84431         * lib/sh-quote.h: Likewise.
84432         * lib/sig2str.c: Likewise.
84433         * lib/sig2str.h: Likewise.
84434         * lib/signal.in.h: Likewise.
84435         * lib/signbitd.c: Likewise.
84436         * lib/signbitf.c: Likewise.
84437         * lib/signbitl.c: Likewise.
84438         * lib/sigprocmask.c: Likewise.
84439         * lib/sincosl.c: Likewise.
84440         * lib/sleep.c: Likewise.
84441         * lib/sprintf.c: Likewise.
84442         * lib/sqrtl.c: Likewise.
84443         * lib/stat-time.h: Likewise.
84444         * lib/stdio--.h: Likewise.
84445         * lib/stdio-safer.h: Likewise.
84446         * lib/stdlib--.h: Likewise.
84447         * lib/stdlib-safer.h: Likewise.
84448         * lib/stdlib.in.h: Likewise.
84449         * lib/stpcpy.c: Likewise.
84450         * lib/stpncpy.c: Likewise.
84451         * lib/strchrnul.c: Likewise.
84452         * lib/strcspn.c: Likewise.
84453         * lib/strerror.c: Likewise.
84454         * lib/strftime.c: Likewise.
84455         * lib/strftime.h: Likewise.
84456         * lib/striconveh.c: Likewise.
84457         * lib/striconveh.h: Likewise.
84458         * lib/striconveha.c: Likewise.
84459         * lib/striconveha.h: Likewise.
84460         * lib/stripslash.c: Likewise.
84461         * lib/strnlen1.c: Likewise.
84462         * lib/strnlen1.h: Likewise.
84463         * lib/strtod.c: Likewise.
84464         * lib/strtoimax.c: Likewise.
84465         * lib/strtok_r.c: Likewise.
84466         * lib/strtol.c: Likewise.
84467         * lib/strtoll.c: Likewise.
84468         * lib/strtoul.c: Likewise.
84469         * lib/strtoull.c: Likewise.
84470         * lib/sysexits.in.h: Likewise.
84471         * lib/tempname.c: Likewise.
84472         * lib/tempname.h: Likewise.
84473         * lib/timespec.h: Likewise.
84474         * lib/tls.c: Likewise.
84475         * lib/tls.h: Likewise.
84476         * lib/tmpdir.c: Likewise.
84477         * lib/tmpdir.h: Likewise.
84478         * lib/tmpfile-safer.c: Likewise.
84479         * lib/tmpfile.c: Likewise.
84480         * lib/trigl.c: Likewise.
84481         * lib/trigl.h: Likewise.
84482         * lib/trim.c: Likewise.
84483         * lib/trim.h: Likewise.
84484         * lib/trunc.c: Likewise.
84485         * lib/truncf.c: Likewise.
84486         * lib/truncl.c: Likewise.
84487         * lib/tsearch.c: Likewise.
84488         * lib/unicodeio.c: Likewise.
84489         * lib/unicodeio.h: Likewise.
84490         * lib/unistd--.h: Likewise.
84491         * lib/unistd-safer.h: Likewise.
84492         * lib/unistdio/ulc-fprintf.c: Likewise.
84493         * lib/unistdio/ulc-vfprintf.c: Likewise.
84494         * lib/unlinkdir.c: Likewise.
84495         * lib/unlinkdir.h: Likewise.
84496         * lib/unlocked-io.h: Likewise.
84497         * lib/unsetenv.c: Likewise.
84498         * lib/userspec.c: Likewise.
84499         * lib/utime.c: Likewise.
84500         * lib/utimecmp.c: Likewise.
84501         * lib/utimecmp.h: Likewise.
84502         * lib/utimens.c: Likewise.
84503         * lib/verify.h: Likewise.
84504         * lib/verror.c: Likewise.
84505         * lib/verror.h: Likewise.
84506         * lib/version-etc-fsf.c: Likewise.
84507         * lib/version-etc.c: Likewise.
84508         * lib/version-etc.h: Likewise.
84509         * lib/vfprintf.c: Likewise.
84510         * lib/vprintf.c: Likewise.
84511         * lib/vsprintf.c: Likewise.
84512         * lib/w32spawn.h: Likewise.
84513         * lib/wait-process.c: Likewise.
84514         * lib/wait-process.h: Likewise.
84515         * lib/wcwidth.c: Likewise.
84516         * lib/write-any-file.c: Likewise.
84517         * lib/xalloc-die.c: Likewise.
84518         * lib/xalloc.h: Likewise.
84519         * lib/xasprintf.c: Likewise.
84520         * lib/xgetcwd.c: Likewise.
84521         * lib/xgetcwd.h: Likewise.
84522         * lib/xgetdomainname.c: Likewise.
84523         * lib/xgetdomainname.h: Likewise.
84524         * lib/xgethostname.c: Likewise.
84525         * lib/xmalloc.c: Likewise.
84526         * lib/xmalloca.c: Likewise.
84527         * lib/xmalloca.h: Likewise.
84528         * lib/xmemcoll.c: Likewise.
84529         * lib/xnanosleep.c: Likewise.
84530         * lib/xreadlink.c: Likewise.
84531         * lib/xreadlink.h: Likewise.
84532         * lib/xsetenv.c: Likewise.
84533         * lib/xsetenv.h: Likewise.
84534         * lib/xstriconv.c: Likewise.
84535         * lib/xstriconv.h: Likewise.
84536         * lib/xstrndup.c: Likewise.
84537         * lib/xstrndup.h: Likewise.
84538         * lib/xstrtod.c: Likewise.
84539         * lib/xstrtod.h: Likewise.
84540         * lib/xstrtol-error.c: Likewise.
84541         * lib/xstrtol.c: Likewise.
84542         * lib/xstrtol.h: Likewise.
84543         * lib/xtime.h: Likewise.
84544         * lib/xvasprintf.c: Likewise.
84545         * lib/xvasprintf.h: Likewise.
84546         * lib/yesno.c: Likewise.
84547         * lib/yesno.h: Likewise.
84548         * posix-modules: Likewise.
84549         * tests/test-alloca-opt.c: Likewise.
84550         * tests/test-arcfour.c: Likewise.
84551         * tests/test-arctwo.c: Likewise.
84552         * tests/test-argmatch.c: Likewise.
84553         * tests/test-argp-2.sh: Likewise.
84554         * tests/test-argp.c: Likewise.
84555         * tests/test-arpa_inet.c: Likewise.
84556         * tests/test-array_list.c: Likewise.
84557         * tests/test-array_oset.c: Likewise.
84558         * tests/test-atexit.c: Likewise.
84559         * tests/test-avltree_list.c: Likewise.
84560         * tests/test-avltree_oset.c: Likewise.
84561         * tests/test-avltreehash_list.c: Likewise.
84562         * tests/test-base64.c: Likewise.
84563         * tests/test-binary-io.c: Likewise.
84564         * tests/test-byteswap.c: Likewise.
84565         * tests/test-c-ctype.c: Likewise.
84566         * tests/test-c-strcasecmp.c: Likewise.
84567         * tests/test-c-strcasestr.c: Likewise.
84568         * tests/test-c-strncasecmp.c: Likewise.
84569         * tests/test-c-strstr.c: Likewise.
84570         * tests/test-canonicalize-lgpl.c: Likewise.
84571         * tests/test-canonicalize.c: Likewise.
84572         * tests/test-carray_list.c: Likewise.
84573         * tests/test-ceilf.c: Likewise.
84574         * tests/test-ceill.c: Likewise.
84575         * tests/test-count-one-bits.c: Likewise.
84576         * tests/test-crc.c: Likewise.
84577         * tests/test-dirname.c: Likewise.
84578         * tests/test-fbufmode.c: Likewise.
84579         * tests/test-fcntl.c: Likewise.
84580         * tests/test-fflush.c: Likewise.
84581         * tests/test-floorf.c: Likewise.
84582         * tests/test-floorl.c: Likewise.
84583         * tests/test-fopen.c: Likewise.
84584         * tests/test-fprintf-posix.c: Likewise.
84585         * tests/test-fprintf-posix.h: Likewise.
84586         * tests/test-fpurge.c: Likewise.
84587         * tests/test-freadable.c: Likewise.
84588         * tests/test-freadahead.c: Likewise.
84589         * tests/test-freading.c: Likewise.
84590         * tests/test-freopen.c: Likewise.
84591         * tests/test-frexp.c: Likewise.
84592         * tests/test-frexpl.c: Likewise.
84593         * tests/test-fseek.c: Likewise.
84594         * tests/test-fseeko.c: Likewise.
84595         * tests/test-fseterr.c: Likewise.
84596         * tests/test-fstrcmp.c: Likewise.
84597         * tests/test-ftell.c: Likewise.
84598         * tests/test-ftello.c: Likewise.
84599         * tests/test-fwritable.c: Likewise.
84600         * tests/test-fwriting.c: Likewise.
84601         * tests/test-getaddrinfo.c: Likewise.
84602         * tests/test-getpass.c: Likewise.
84603         * tests/test-gettimeofday.c: Likewise.
84604         * tests/test-hmac-md5.c: Likewise.
84605         * tests/test-hmac-sha1.c: Likewise.
84606         * tests/test-iconv.c: Likewise.
84607         * tests/test-iconvme.c: Likewise.
84608         * tests/test-inttypes.c: Likewise.
84609         * tests/test-isnan.c: Likewise.
84610         * tests/test-isnanf.c: Likewise.
84611         * tests/test-isnanl-nolibm.c: Likewise.
84612         * tests/test-isnanl.c: Likewise.
84613         * tests/test-isnanl.h: Likewise.
84614         * tests/test-ldexpl.c: Likewise.
84615         * tests/test-linked_list.c: Likewise.
84616         * tests/test-linkedhash_list.c: Likewise.
84617         * tests/test-locale.c: Likewise.
84618         * tests/test-localename.c: Likewise.
84619         * tests/test-lock.c: Likewise.
84620         * tests/test-lseek.c: Likewise.
84621         * tests/test-malloca.c: Likewise.
84622         * tests/test-math.c: Likewise.
84623         * tests/test-mbscasecmp.c: Likewise.
84624         * tests/test-mbscasestr1.c: Likewise.
84625         * tests/test-mbscasestr2.c: Likewise.
84626         * tests/test-mbscasestr3.c: Likewise.
84627         * tests/test-mbscasestr4.c: Likewise.
84628         * tests/test-mbschr.c: Likewise.
84629         * tests/test-mbscspn.c: Likewise.
84630         * tests/test-mbsncasecmp.c: Likewise.
84631         * tests/test-mbspbrk.c: Likewise.
84632         * tests/test-mbspcasecmp.c: Likewise.
84633         * tests/test-mbsrchr.c: Likewise.
84634         * tests/test-mbsspn.c: Likewise.
84635         * tests/test-mbsstr1.c: Likewise.
84636         * tests/test-mbsstr2.c: Likewise.
84637         * tests/test-mbsstr3.c: Likewise.
84638         * tests/test-md5.c: Likewise.
84639         * tests/test-memmem.c: Likewise.
84640         * tests/test-netinet_in.c: Likewise.
84641         * tests/test-open.c: Likewise.
84642         * tests/test-printf-frexp.c: Likewise.
84643         * tests/test-printf-frexpl.c: Likewise.
84644         * tests/test-printf-posix.c: Likewise.
84645         * tests/test-printf-posix.h: Likewise.
84646         * tests/test-rbtree_list.c: Likewise.
84647         * tests/test-rbtree_oset.c: Likewise.
84648         * tests/test-rbtreehash_list.c: Likewise.
84649         * tests/test-read-file.c: Likewise.
84650         * tests/test-rijndael.c: Likewise.
84651         * tests/test-search.c: Likewise.
84652         * tests/test-signbit.c: Likewise.
84653         * tests/test-sleep.c: Likewise.
84654         * tests/test-snprintf-posix.c: Likewise.
84655         * tests/test-snprintf-posix.h: Likewise.
84656         * tests/test-snprintf.c: Likewise.
84657         * tests/test-sprintf-posix.c: Likewise.
84658         * tests/test-sprintf-posix.h: Likewise.
84659         * tests/test-stat-time.c: Likewise.
84660         * tests/test-stdbool.c: Likewise.
84661         * tests/test-stdint.c: Likewise.
84662         * tests/test-stdio.c: Likewise.
84663         * tests/test-stdlib.c: Likewise.
84664         * tests/test-stpncpy.c: Likewise.
84665         * tests/test-strcasestr.c: Likewise.
84666         * tests/test-striconv.c: Likewise.
84667         * tests/test-striconveh.c: Likewise.
84668         * tests/test-striconveha.c: Likewise.
84669         * tests/test-string.c: Likewise.
84670         * tests/test-sys_select.c: Likewise.
84671         * tests/test-sys_socket.c: Likewise.
84672         * tests/test-sys_stat.c: Likewise.
84673         * tests/test-sys_time.c: Likewise.
84674         * tests/test-sysexits.c: Likewise.
84675         * tests/test-time.c: Likewise.
84676         * tests/test-tls.c: Likewise.
84677         * tests/test-trunc.c: Likewise.
84678         * tests/test-truncf.c: Likewise.
84679         * tests/test-truncl.c: Likewise.
84680         * tests/test-unistd.c: Likewise.
84681         * tests/test-vasnprintf-posix.c: Likewise.
84682         * tests/test-vasnprintf-posix2.c: Likewise.
84683         * tests/test-vasnprintf.c: Likewise.
84684         * tests/test-vasprintf-posix.c: Likewise.
84685         * tests/test-vasprintf.c: Likewise.
84686         * tests/test-verify.c: Likewise.
84687         * tests/test-vfprintf-posix.c: Likewise.
84688         * tests/test-vprintf-posix.c: Likewise.
84689         * tests/test-vsnprintf-posix.c: Likewise.
84690         * tests/test-vsnprintf.c: Likewise.
84691         * tests/test-vsprintf-posix.c: Likewise.
84692         * tests/test-wchar.c: Likewise.
84693         * tests/test-wctype.c: Likewise.
84694         * tests/test-wcwidth.c: Likewise.
84695         * tests/test-xstrtol.c: Likewise.
84696         * tests/test-xvasprintf.c: Likewise.
84697         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
84698         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
84699         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
84700         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
84701         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
84702         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
84703         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
84704         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
84705         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
84706         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
84707         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
84708         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
84709         * tests/uniname/test-uninames.c: Likewise.
84710         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
84711         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
84712         * tests/unistdio/test-u16-printf1.h: Likewise.
84713         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
84714         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
84715         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
84716         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
84717         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
84718         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
84719         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
84720         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
84721         * tests/unistdio/test-u32-printf1.h: Likewise.
84722         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
84723         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
84724         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
84725         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
84726         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
84727         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
84728         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
84729         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
84730         * tests/unistdio/test-u8-printf1.h: Likewise.
84731         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
84732         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
84733         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
84734         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
84735         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
84736         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
84737         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
84738         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
84739         * tests/unistdio/test-ulc-printf1.h: Likewise.
84740         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
84741         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
84742         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
84743         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
84744         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
84745         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
84746         * tests/uniwidth/test-u16-strwidth.c: Likewise.
84747         * tests/uniwidth/test-u16-width.c: Likewise.
84748         * tests/uniwidth/test-u32-strwidth.c: Likewise.
84749         * tests/uniwidth/test-u32-width.c: Likewise.
84750         * tests/uniwidth/test-u8-strwidth.c: Likewise.
84751         * tests/uniwidth/test-u8-width.c: Likewise.
84752         * tests/uniwidth/test-uc_width.c: Likewise.
84753         * config/srclist-update: Likewise.
84754         (fixlicense): Update to GPLv3+.
84756         Change copyright notice from LGPLv2.1+ to LGPLv3+.
84757         * tests/test-tsearch.c: Change copyright notice.
84759         Change copyright notice from LGPLv2.0+ to LGPLv3+.
84760         * lib/c-strcaseeq.h: Change copyright notice.
84761         * lib/streq.h: Likewise.
84762         * lib/uniconv.h: Likewise.
84763         * lib/uniconv/u-conv-from-enc.h: Likewise.
84764         * lib/uniconv/u-conv-to-enc.h: Likewise.
84765         * lib/uniconv/u-strconv-from-enc.h: Likewise.
84766         * lib/uniconv/u-strconv-to-enc.h: Likewise.
84767         * lib/uniconv/u16-conv-from-enc.c: Likewise.
84768         * lib/uniconv/u16-conv-to-enc.c: Likewise.
84769         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
84770         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
84771         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
84772         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
84773         * lib/uniconv/u32-conv-from-enc.c: Likewise.
84774         * lib/uniconv/u32-conv-to-enc.c: Likewise.
84775         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
84776         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
84777         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
84778         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
84779         * lib/uniconv/u8-conv-from-enc.c: Likewise.
84780         * lib/uniconv/u8-conv-to-enc.c: Likewise.
84781         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
84782         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
84783         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
84784         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
84785         * lib/uniname.h: Likewise.
84786         * lib/uniname/uniname.c: Likewise.
84787         * lib/unistdio.h: Likewise.
84788         * lib/unistdio/u-asnprintf.h: Likewise.
84789         * lib/unistdio/u-asprintf.h: Likewise.
84790         * lib/unistdio/u-printf-args.c: Likewise.
84791         * lib/unistdio/u-printf-args.h: Likewise.
84792         * lib/unistdio/u-printf-parse.h: Likewise.
84793         * lib/unistdio/u-snprintf.h: Likewise.
84794         * lib/unistdio/u-sprintf.h: Likewise.
84795         * lib/unistdio/u-vasprintf.h: Likewise.
84796         * lib/unistdio/u-vsnprintf.h: Likewise.
84797         * lib/unistdio/u-vsprintf.h: Likewise.
84798         * lib/unistdio/u16-asnprintf.c: Likewise.
84799         * lib/unistdio/u16-asprintf.c: Likewise.
84800         * lib/unistdio/u16-printf-parse.c: Likewise.
84801         * lib/unistdio/u16-snprintf.c: Likewise.
84802         * lib/unistdio/u16-sprintf.c: Likewise.
84803         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
84804         * lib/unistdio/u16-u16-asprintf.c: Likewise.
84805         * lib/unistdio/u16-u16-snprintf.c: Likewise.
84806         * lib/unistdio/u16-u16-sprintf.c: Likewise.
84807         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
84808         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
84809         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
84810         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
84811         * lib/unistdio/u16-vasnprintf.c: Likewise.
84812         * lib/unistdio/u16-vasprintf.c: Likewise.
84813         * lib/unistdio/u16-vsnprintf.c: Likewise.
84814         * lib/unistdio/u16-vsprintf.c: Likewise.
84815         * lib/unistdio/u32-asnprintf.c: Likewise.
84816         * lib/unistdio/u32-asprintf.c: Likewise.
84817         * lib/unistdio/u32-printf-parse.c: Likewise.
84818         * lib/unistdio/u32-snprintf.c: Likewise.
84819         * lib/unistdio/u32-sprintf.c: Likewise.
84820         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
84821         * lib/unistdio/u32-u32-asprintf.c: Likewise.
84822         * lib/unistdio/u32-u32-snprintf.c: Likewise.
84823         * lib/unistdio/u32-u32-sprintf.c: Likewise.
84824         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
84825         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
84826         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
84827         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
84828         * lib/unistdio/u32-vasnprintf.c: Likewise.
84829         * lib/unistdio/u32-vasprintf.c: Likewise.
84830         * lib/unistdio/u32-vsnprintf.c: Likewise.
84831         * lib/unistdio/u32-vsprintf.c: Likewise.
84832         * lib/unistdio/u8-asnprintf.c: Likewise.
84833         * lib/unistdio/u8-asprintf.c: Likewise.
84834         * lib/unistdio/u8-printf-parse.c: Likewise.
84835         * lib/unistdio/u8-snprintf.c: Likewise.
84836         * lib/unistdio/u8-sprintf.c: Likewise.
84837         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
84838         * lib/unistdio/u8-u8-asprintf.c: Likewise.
84839         * lib/unistdio/u8-u8-snprintf.c: Likewise.
84840         * lib/unistdio/u8-u8-sprintf.c: Likewise.
84841         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
84842         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
84843         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
84844         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
84845         * lib/unistdio/u8-vasnprintf.c: Likewise.
84846         * lib/unistdio/u8-vasprintf.c: Likewise.
84847         * lib/unistdio/u8-vsnprintf.c: Likewise.
84848         * lib/unistdio/u8-vsprintf.c: Likewise.
84849         * lib/unistdio/ulc-asnprintf.c: Likewise.
84850         * lib/unistdio/ulc-asprintf.c: Likewise.
84851         * lib/unistdio/ulc-printf-parse.c: Likewise.
84852         * lib/unistdio/ulc-snprintf.c: Likewise.
84853         * lib/unistdio/ulc-sprintf.c: Likewise.
84854         * lib/unistdio/ulc-vasnprintf.c: Likewise.
84855         * lib/unistdio/ulc-vasprintf.c: Likewise.
84856         * lib/unistdio/ulc-vsnprintf.c: Likewise.
84857         * lib/unistdio/ulc-vsprintf.c: Likewise.
84858         * lib/unistr.h: Likewise.
84859         * lib/unistr/u-cpy-alloc.h: Likewise.
84860         * lib/unistr/u-cpy.h: Likewise.
84861         * lib/unistr/u-endswith.h: Likewise.
84862         * lib/unistr/u-move.h: Likewise.
84863         * lib/unistr/u-set.h: Likewise.
84864         * lib/unistr/u-startswith.h: Likewise.
84865         * lib/unistr/u-stpcpy.h: Likewise.
84866         * lib/unistr/u-stpncpy.h: Likewise.
84867         * lib/unistr/u-strcat.h: Likewise.
84868         * lib/unistr/u-strcpy.h: Likewise.
84869         * lib/unistr/u-strcspn.h: Likewise.
84870         * lib/unistr/u-strdup.h: Likewise.
84871         * lib/unistr/u-strlen.h: Likewise.
84872         * lib/unistr/u-strncat.h: Likewise.
84873         * lib/unistr/u-strncpy.h: Likewise.
84874         * lib/unistr/u-strnlen.h: Likewise.
84875         * lib/unistr/u-strpbrk.h: Likewise.
84876         * lib/unistr/u-strspn.h: Likewise.
84877         * lib/unistr/u-strstr.h: Likewise.
84878         * lib/unistr/u-strtok.h: Likewise.
84879         * lib/unistr/u16-check.c: Likewise.
84880         * lib/unistr/u16-chr.c: Likewise.
84881         * lib/unistr/u16-cmp.c: Likewise.
84882         * lib/unistr/u16-cpy-alloc.c: Likewise.
84883         * lib/unistr/u16-cpy.c: Likewise.
84884         * lib/unistr/u16-endswith.c: Likewise.
84885         * lib/unistr/u16-mblen.c: Likewise.
84886         * lib/unistr/u16-mbsnlen.c: Likewise.
84887         * lib/unistr/u16-mbtouc-aux.c: Likewise.
84888         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
84889         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
84890         * lib/unistr/u16-mbtouc.c: Likewise.
84891         * lib/unistr/u16-mbtoucr.c: Likewise.
84892         * lib/unistr/u16-move.c: Likewise.
84893         * lib/unistr/u16-next.c: Likewise.
84894         * lib/unistr/u16-prev.c: Likewise.
84895         * lib/unistr/u16-set.c: Likewise.
84896         * lib/unistr/u16-startswith.c: Likewise.
84897         * lib/unistr/u16-stpcpy.c: Likewise.
84898         * lib/unistr/u16-stpncpy.c: Likewise.
84899         * lib/unistr/u16-strcat.c: Likewise.
84900         * lib/unistr/u16-strchr.c: Likewise.
84901         * lib/unistr/u16-strcmp.c: Likewise.
84902         * lib/unistr/u16-strcpy.c: Likewise.
84903         * lib/unistr/u16-strcspn.c: Likewise.
84904         * lib/unistr/u16-strdup.c: Likewise.
84905         * lib/unistr/u16-strlen.c: Likewise.
84906         * lib/unistr/u16-strmblen.c: Likewise.
84907         * lib/unistr/u16-strmbtouc.c: Likewise.
84908         * lib/unistr/u16-strncat.c: Likewise.
84909         * lib/unistr/u16-strncmp.c: Likewise.
84910         * lib/unistr/u16-strncpy.c: Likewise.
84911         * lib/unistr/u16-strnlen.c: Likewise.
84912         * lib/unistr/u16-strpbrk.c: Likewise.
84913         * lib/unistr/u16-strrchr.c: Likewise.
84914         * lib/unistr/u16-strspn.c: Likewise.
84915         * lib/unistr/u16-strstr.c: Likewise.
84916         * lib/unistr/u16-strtok.c: Likewise.
84917         * lib/unistr/u16-to-u32.c: Likewise.
84918         * lib/unistr/u16-to-u8.c: Likewise.
84919         * lib/unistr/u16-uctomb-aux.c: Likewise.
84920         * lib/unistr/u16-uctomb.c: Likewise.
84921         * lib/unistr/u32-check.c: Likewise.
84922         * lib/unistr/u32-chr.c: Likewise.
84923         * lib/unistr/u32-cmp.c: Likewise.
84924         * lib/unistr/u32-cpy-alloc.c: Likewise.
84925         * lib/unistr/u32-cpy.c: Likewise.
84926         * lib/unistr/u32-endswith.c: Likewise.
84927         * lib/unistr/u32-mblen.c: Likewise.
84928         * lib/unistr/u32-mbsnlen.c: Likewise.
84929         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
84930         * lib/unistr/u32-mbtouc.c: Likewise.
84931         * lib/unistr/u32-mbtoucr.c: Likewise.
84932         * lib/unistr/u32-move.c: Likewise.
84933         * lib/unistr/u32-next.c: Likewise.
84934         * lib/unistr/u32-prev.c: Likewise.
84935         * lib/unistr/u32-set.c: Likewise.
84936         * lib/unistr/u32-startswith.c: Likewise.
84937         * lib/unistr/u32-stpcpy.c: Likewise.
84938         * lib/unistr/u32-stpncpy.c: Likewise.
84939         * lib/unistr/u32-strcat.c: Likewise.
84940         * lib/unistr/u32-strchr.c: Likewise.
84941         * lib/unistr/u32-strcmp.c: Likewise.
84942         * lib/unistr/u32-strcpy.c: Likewise.
84943         * lib/unistr/u32-strcspn.c: Likewise.
84944         * lib/unistr/u32-strdup.c: Likewise.
84945         * lib/unistr/u32-strlen.c: Likewise.
84946         * lib/unistr/u32-strmblen.c: Likewise.
84947         * lib/unistr/u32-strmbtouc.c: Likewise.
84948         * lib/unistr/u32-strncat.c: Likewise.
84949         * lib/unistr/u32-strncmp.c: Likewise.
84950         * lib/unistr/u32-strncpy.c: Likewise.
84951         * lib/unistr/u32-strnlen.c: Likewise.
84952         * lib/unistr/u32-strpbrk.c: Likewise.
84953         * lib/unistr/u32-strrchr.c: Likewise.
84954         * lib/unistr/u32-strspn.c: Likewise.
84955         * lib/unistr/u32-strstr.c: Likewise.
84956         * lib/unistr/u32-strtok.c: Likewise.
84957         * lib/unistr/u32-to-u16.c: Likewise.
84958         * lib/unistr/u32-to-u8.c: Likewise.
84959         * lib/unistr/u32-uctomb.c: Likewise.
84960         * lib/unistr/u8-check.c: Likewise.
84961         * lib/unistr/u8-chr.c: Likewise.
84962         * lib/unistr/u8-cmp.c: Likewise.
84963         * lib/unistr/u8-cpy-alloc.c: Likewise.
84964         * lib/unistr/u8-cpy.c: Likewise.
84965         * lib/unistr/u8-endswith.c: Likewise.
84966         * lib/unistr/u8-mblen.c: Likewise.
84967         * lib/unistr/u8-mbsnlen.c: Likewise.
84968         * lib/unistr/u8-mbtouc-aux.c: Likewise.
84969         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
84970         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
84971         * lib/unistr/u8-mbtouc.c: Likewise.
84972         * lib/unistr/u8-mbtoucr.c: Likewise.
84973         * lib/unistr/u8-move.c: Likewise.
84974         * lib/unistr/u8-next.c: Likewise.
84975         * lib/unistr/u8-prev.c: Likewise.
84976         * lib/unistr/u8-set.c: Likewise.
84977         * lib/unistr/u8-startswith.c: Likewise.
84978         * lib/unistr/u8-stpcpy.c: Likewise.
84979         * lib/unistr/u8-stpncpy.c: Likewise.
84980         * lib/unistr/u8-strcat.c: Likewise.
84981         * lib/unistr/u8-strchr.c: Likewise.
84982         * lib/unistr/u8-strcmp.c: Likewise.
84983         * lib/unistr/u8-strcpy.c: Likewise.
84984         * lib/unistr/u8-strcspn.c: Likewise.
84985         * lib/unistr/u8-strdup.c: Likewise.
84986         * lib/unistr/u8-strlen.c: Likewise.
84987         * lib/unistr/u8-strmblen.c: Likewise.
84988         * lib/unistr/u8-strmbtouc.c: Likewise.
84989         * lib/unistr/u8-strncat.c: Likewise.
84990         * lib/unistr/u8-strncmp.c: Likewise.
84991         * lib/unistr/u8-strncpy.c: Likewise.
84992         * lib/unistr/u8-strnlen.c: Likewise.
84993         * lib/unistr/u8-strpbrk.c: Likewise.
84994         * lib/unistr/u8-strrchr.c: Likewise.
84995         * lib/unistr/u8-strspn.c: Likewise.
84996         * lib/unistr/u8-strstr.c: Likewise.
84997         * lib/unistr/u8-strtok.c: Likewise.
84998         * lib/unistr/u8-to-u16.c: Likewise.
84999         * lib/unistr/u8-to-u32.c: Likewise.
85000         * lib/unistr/u8-uctomb-aux.c: Likewise.
85001         * lib/unistr/u8-uctomb.c: Likewise.
85002         * lib/unitypes.h: Likewise.
85003         * lib/uniwidth.h: Likewise.
85004         * lib/uniwidth/cjk.h: Likewise.
85005         * lib/uniwidth/u16-strwidth.c: Likewise.
85006         * lib/uniwidth/u16-width.c: Likewise.
85007         * lib/uniwidth/u32-strwidth.c: Likewise.
85008         * lib/uniwidth/u32-width.c: Likewise.
85009         * lib/uniwidth/u8-strwidth.c: Likewise.
85010         * lib/uniwidth/u8-width.c: Likewise.
85011         * lib/uniwidth/width.c: Likewise.
85013 2007-10-07  Bruno Haible  <bruno@clisp.org>
85015         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
85016         The file is still under LGPL (see modules/inttypes).
85018 2007-10-06  Bruno Haible  <bruno@clisp.org>
85020         * modules/trunc (Dependencies): Add 'extensions'.
85021         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
85022         Reported by Ben Pfaff <blp@gnu.org>.
85024 2007-10-06  Bruno Haible  <bruno@clisp.org>
85026         * modules/freopen-tests: New file.
85027         * tests/test-freopen.c: New file.
85029         * modules/fopen-tests: New file.
85030         * tests/test-fopen.c: New file.
85032         * modules/fopen: New file.
85033         * lib/fopen.c: New file.
85034         * m4/fopen.m4: New file.
85035         * modules/freopen: New file.
85036         * lib/freopen.c: New file.
85037         * m4/freopen.m4: New file.
85038         * lib/stdio.in.h (fopen, freopen): New declarations.
85039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
85040         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85041         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
85042         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85043         * doc/functions/fopen.texi: Mention the 'fopen' module.
85044         * doc/functions/freopen.texi: Mention the 'freopen' module.
85046 2007-10-06  Bruno Haible  <bruno@clisp.org>
85048         * modules/open-tests: New file.
85049         * tests/test-open.c: New file.
85051         * modules/open: New file.
85052         * lib/open.c: New file.
85053         * m4/open.m4: New file.
85054         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
85055         lib/open.c does.
85056         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
85057         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
85058         macros.
85059         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
85060         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
85061         REPLACE_OPEN.
85062         * doc/functions/open.texi: Mention the 'open' module.
85064 2007-10-04  Bruno Haible  <bruno@clisp.org>
85066         * modules/ceill-tests: New file.
85067         * tests/test-ceill.c: New file.
85069         * modules/ceill: New file.
85070         * lib/ceill.c: Replace entire file.
85071         * m4/ceill.m4: New file.
85072         * lib/math.in.h (ceill): Replace declaration.
85073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
85074         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
85075         * doc/functions/ceill.texi: Mention the 'ceill' module.
85076         * modules/mathl (Files): Remove lib/ceill.c.
85077         (Depends-on): Add ceill.
85079 2007-10-04  Bruno Haible  <bruno@clisp.org>
85081         * modules/ceilf-tests: New file.
85082         * tests/test-ceilf.c: New file.
85084         * modules/ceilf: New file.
85085         * lib/ceil.c: New file.
85086         * lib/ceilf.c: New file.
85087         * m4/ceilf.m4: New file.
85088         * lib/math.in.h (ceilf): New declaration.
85089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
85090         HAVE_DECL_CEILF.
85091         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
85092         HAVE_DECL_CEILF.
85093         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
85095 2007-10-04  Bruno Haible  <bruno@clisp.org>
85097         * modules/floorl-tests: New file.
85098         * tests/test-floorl.c: New file.
85100         * modules/floorl: New file.
85101         * lib/floorl.c: Replace entire file.
85102         * m4/floorl.m4: New file.
85103         * lib/math.in.h (floorl): Replace declaration.
85104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
85105         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
85106         * doc/functions/floorl.texi: Mention the 'floorl' module.
85107         * modules/mathl (Files): Remove lib/floorl.c.
85108         (Depends-on): Add floorl.
85110 2007-10-04  Bruno Haible  <bruno@clisp.org>
85112         * modules/floorf-tests: New file.
85113         * tests/test-floorf.c: New file.
85115         * modules/floorf: New file.
85116         * lib/floor.c: New file.
85117         * lib/floorf.c: New file.
85118         * m4/floorf.m4: New file.
85119         * lib/math.in.h (floorf): New declaration.
85120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
85121         HAVE_DECL_FLOORF.
85122         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
85123         HAVE_DECL_FLOORF.
85124         * doc/functions/floorf.texi: Mention the 'floorf' module.
85126 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
85127             Bruno Haible  <bruno@clisp.org>
85129         Advertise for the Git server instead of the CVS server.
85130         * doc/gnulib-intro.texi (Steady Development): Mention the Git
85131         repository instead of the CVS one.
85132         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
85133         about all VCS systems generically.
85134         * doc/gnulib.texi (Introduction): Capitalize `Git'.
85136 2007-10-04  Bruno Haible  <bruno@clisp.org>
85138         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
85139         means.
85140         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
85142 2007-10-04  Bruno Haible  <bruno@clisp.org>
85144         * modules/truncl-tests: New file.
85145         * tests/test-truncl.c: New file.
85147         * modules/truncl: New file.
85148         * lib/truncl.c: New file.
85149         * m4/truncl.m4: New file.
85150         * lib/math.in.h (truncl): New declaration.
85151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
85152         HAVE_DECL_TRUNCL.
85153         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
85154         HAVE_DECL_TRUNCL.
85155         * doc/functions/truncl.texi: Mention the 'truncl' module.
85157 2007-10-04  Bruno Haible  <bruno@clisp.org>
85159         * modules/truncf-tests: New file.
85160         * tests/test-truncf.c: New file.
85162         * modules/truncf: New file.
85163         * lib/trunc.c: Make paramerizable through USE_* macros.
85164         * lib/truncf.c: New file.
85165         * m4/truncf.m4: New file.
85166         * lib/math.in.h (truncf): New declaration.
85167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
85168         HAVE_DECL_TRUNCF.
85169         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
85170         HAVE_DECL_TRUNCF.
85171         * doc/functions/truncf.texi: Mention the 'truncf' module.
85173 2007-10-03  Bruno Haible  <bruno@clisp.org>
85175         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
85176         augmentation also for tests modules.
85177         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
85178         * modules/atexit-tests (Makefile.am): Likewise.
85179         * modules/binary-io-tests (Makefile.am): Likewise.
85180         * modules/c-strcase-tests (Makefile.am): Likewise.
85181         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
85182         * modules/canonicalize-tests (Makefile.am): Likewise.
85183         * modules/closein-tests (Makefile.am): Likewise.
85184         * modules/fprintf-posix-tests (Makefile.am): Likewise.
85185         * modules/freadahead-tests (Makefile.am): Likewise.
85186         * modules/fseek-tests (Makefile.am): Likewise.
85187         * modules/fseeko-tests (Makefile.am): Likewise.
85188         * modules/ftell-tests (Makefile.am): Likewise.
85189         * modules/ftello-tests (Makefile.am): Likewise.
85190         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
85191         * modules/isnanl-tests (Makefile.am): Likewise.
85192         * modules/lseek-tests (Makefile.am): Likewise.
85193         * modules/mbscasecmp-tests (Makefile.am): Likewise.
85194         * modules/mbscasestr-tests (Makefile.am): Likewise.
85195         * modules/mbschr-tests (Makefile.am): Likewise.
85196         * modules/mbscspn-tests (Makefile.am): Likewise.
85197         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
85198         * modules/mbspbrk-tests (Makefile.am): Likewise.
85199         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
85200         * modules/mbsrchr-tests (Makefile.am): Likewise.
85201         * modules/mbsspn-tests (Makefile.am): Likewise.
85202         * modules/mbsstr-tests (Makefile.am): Likewise.
85203         * modules/printf-posix-tests (Makefile.am): Likewise.
85204         * modules/snprintf-posix-tests (Makefile.am): Likewise.
85205         * modules/sprintf-posix-tests (Makefile.am): Likewise.
85206         * modules/tsearch-tests (Makefile.am): Likewise.
85207         * modules/uniname/uniname-tests (Makefile.am): Likewise.
85208         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
85209         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
85210         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
85211         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
85212         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
85213         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
85214         * modules/vprintf-posix-tests (Makefile.am): Likewise.
85215         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
85216         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
85217         * modules/xstrtoimax-tests (Makefile.am): Likewise.
85218         * modules/xstrtol-tests (Makefile.am): Likewise.
85219         * modules/xstrtoumax-tests (Makefile.am): Likewise.
85220         * modules/yesno-tests (Makefile.am): Likewise.
85222 2007-10-03  Bruno Haible  <bruno@clisp.org>
85224         * modules/trunc-tests: New file.
85225         * tests/test-trunc.c: New file.
85227         * modules/trunc: New file.
85228         * lib/trunc.c: New file.
85229         * m4/trunc.m4: New file.
85230         * lib/math.in.h (trunc): New declaration.
85231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
85232         HAVE_DECL_TRUNC.
85233         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
85234         HAVE_DECL_TRUNC.
85235         * doc/functions/trunc.texi: Mention the 'trunc' module.
85237 2007-10-03  Bruno Haible  <bruno@clisp.org>
85239         * tests/test-fpending.c: New file, mostly copied
85240         from coreutils/lib/t-fpending.c.
85241         * modules/fpending-tests: New file.
85243 2007-10-03  Bruno Haible  <bruno@clisp.org>
85245         Port the stdio extensions to QNX (untested).
85246         * lib/fseterr.c (fseterr): Add support for QNX.
85247         * lib/fbufmode.c (fbufmode): Likewise.
85248         * lib/freadable.c (freadable): Likewise.
85249         * lib/fwritable.c (fwritable): Likewise.
85250         * lib/freading.c (freading): Likewise.
85251         * lib/fwriting.c (fwriting): Likewise.
85252         * lib/freadahead.c (freadahed): Likewise.
85253         * lib/fpurge.c (fpurge): Likewise.
85254         * lib/fseeko.c (rpl_fseeko): Likewise.
85256 2007-10-03  Bruno Haible  <bruno@clisp.org>
85257             Jim Meyering  <jim@meyering.net>
85258             Eric Blake  <ebb9@byu.net>
85260         * doc/relocatable.texi: Use @command instead of @program.
85262 2007-10-02  Jim Meyering  <jim@meyering.net>
85264         Perform one more "_.h" -> ".in.h" substitution.
85265         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
85266         instead of unistd_.h here, too.
85268 2007-10-01  Bruno Haible  <bruno@clisp.org>
85270         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
85271         Needed for the alloca-opt module.
85273 2007-09-30  Bruno Haible  <bruno@clisp.org>
85275         * lib/alloca.in.h: Renamed from lib/alloca_.h.
85276         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
85277         alloca_.h.
85278         * lib/argz.in.h: Renamed from lib/argz_.h.
85279         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
85280         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
85281         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
85282         byteswap_.h.
85283         * lib/dirent.in.h: Renamed from lib/dirent_.h.
85284         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
85285         dirent_.h.
85286         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
85287         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
85288         fcntl_.h.
85289         * lib/float.in.h: Renamed from lib/float_.h.
85290         * modules/float (Files, Makefile.am): Use float.in.h instead of
85291         float_.h.
85292         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
85293         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
85294         fnmatch_.h.
85295         * lib/getopt.in.h: Renamed from lib/getopt_.h.
85296         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
85297         getopt_.h.
85298         * lib/glob.in.h: Renamed from lib/glob_.h.
85299         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
85300         * lib/iconv.in.h: Renamed from lib/iconv_.h.
85301         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
85302         iconv_.h.
85303         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
85304         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
85305         inttypes_.h.
85306         * lib/locale.in.h: Renamed from lib/locale_.h.
85307         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
85308         locale_.h.
85309         * lib/math.in.h: Renamed from lib/math_.h.
85310         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
85311         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
85312         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
85313         of netinet_in_.h. Add dependency.
85314         * lib/poll.in.h: Renamed from lib/poll_.h.
85315         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
85316         * lib/search.in.h: Renamed from lib/search_.h.
85317         * modules/search (Files, Makefile.am): Use search.in.h instead of
85318         search_.h.
85319         * lib/signal.in.h: Renamed from lib/signal_.h.
85320         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
85321         _signal.h.
85322         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
85323         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
85324         stdbool_.h.
85325         * lib/stdint.in.h: Renamed from lib/stdint_.h.
85326         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
85327         stdint_.h.
85328         * lib/stdio.in.h: Renamed from lib/stdio_.h.
85329         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
85330         stdio_.h.
85331         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
85332         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
85333         stdlib_.h.
85334         * lib/string.in.h: Renamed from lib/string_.h.
85335         * modules/string (Files, Makefile.am): Use string.in.h instead of
85336         string_.h.
85337         * doc/gnulib-tool.texi (Initial import): Update.
85338         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
85339         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
85340         of sys_select_.h. Add dependency.
85341         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
85342         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
85343         of sys_socket_.h.
85344         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
85345         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
85346         sys_stat_.h.
85347         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
85348         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
85349         sys_time_.h.
85350         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
85351         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
85352         sysexits_.h.
85353         * lib/time.in.h: Renamed from lib/time_.h.
85354         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
85355         * lib/unistd.in.h: Renamed from lib/unistd_.h.
85356         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
85357         unistd_.h.
85358         * lib/wchar.in.h: Renamed from lib/wchar_.h.
85359         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
85360         wchar_.h.
85361         * lib/wctype.in.h: Renamed from lib/wctype_.h.
85362         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
85363         wctype_.h.
85364         * build-aux/bootstrap (slurp): Update.
85365         * lib/.cppi-disable: Update.
85367 2007-09-30  Bruno Haible  <bruno@clisp.org>
85369         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
85370         Needed on BeOS.
85372 2007-09-30  Bruno Haible  <bruno@clisp.org>
85374         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
85376 2007-09-29  Bruno Haible  <bruno@clisp.org>
85378         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
85380 2007-09-29  Bruno Haible  <bruno@clisp.org>
85382         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
85383         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
85384         * build-aux/install-reloc: Compile also areadlink.c.
85385         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
85387 2007-09-29  Bruno Haible  <bruno@clisp.org>
85389         * gnulib-tool (func_emit_initmacro_done): Indentation.
85391 2007-09-29  Bruno Haible  <bruno@clisp.org>
85393         * README: Add CVS checkout update instructions.
85394         Info from Bob Proulx <bob@proulx.com>.
85396 2007-09-28  Eric Blake  <ebb9@byu.net>
85398         Provide move-if-change.
85399         * build-aux/move-if-change: New file, based on best practice
85400         rather than any canonical upstream location.
85402 2007-09-28  Jim Meyering  <jim@meyering.net>
85404         Fix canonicalize loop-detection corner case.
85405         Do not attempt to stat the symlink values stored via seen_triple.
85406         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
85407         on linux-2.6.18, (but not 2.6.22).
85408         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
85409         triple_compare.  The former compares dev,ino,filename, while the latter
85410         would actually stat dirname(filename) when dev and ino were equal.
85411         * lib/hash-triple.c: Install <string.h>.
85412         (STREQ): Define.
85413         (triple_compare_ino_str): New function.
85414         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
85416 2007-09-28  Eric Blake  <ebb9@byu.net>
85418         Enforce that AC_REPLACE_FUNCS files exist.
85419         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
85420         override check for typos.
85422         Fix test-closein on Solaris 10.
85423         * tests/test-closein.c (main): Don't assume stdin can be inherited
85424         closed on all systems.
85425         * tests/test-closein.sh: Likewise.
85426         Reported by Piotr Tarnowski.
85428 2007-09-28  Jim Meyering  <jim@meyering.net>
85430         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
85432 2007-09-27  Jim Meyering  <jim@meyering.net>
85434         canonicalize: Avoid a false-positive cycle failure.
85435         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
85436         Sort.  Remove cycle-check.
85437         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
85438         not cycle-check.h.
85439         (seen_triple): New function.
85440         (canonicalize_filename_mode): Use it instead of cycle-check.
85441         * tests/test-canonicalize.c: Add a test for this bug.
85442         * tests/test-canonicalize.sh: Set up and run the test.
85444         New module, file-set, from coreutils.
85445         * modules/file-set: Define it.
85446         * lib/file-set.c, lib/file-set.h: Implement.
85448         New module, hash-triple, from coreutils.
85449         * modules/hash-triple: Define it.
85450         * lib/hash-triple.c, lib/hash-triple.h: Implement.
85452 2007-09-25  Eric Blake  <ebb9@byu.net>
85454         Fix strerror on Interix.
85455         * lib/string_.h (strerror): Declare replacement.
85456         * doc/functions/strerror.texi (strerror): Document the Interix
85457         shortcoming.
85458         * modules/string (Makefile.am): Support new hooks.
85459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
85460         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
85461         gl_FUNC_STRERROR_SEPARATE.
85462         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
85463         * lib/strerror.c (rpl_strerror): Provide replacement.
85464         * modules/strerror (Depends-on): Add string.
85465         (configure.ac): Detect use of module.
85466         * tests/test-strerror.c: New file.
85467         * modules/strerror-tests: New test module.
85468         * modules/argp (Depends-on): Add strerror.
85469         * modules/error (Depends-on): Likewise.
85470         Reported by Martin Koeppe.
85472 2007-09-24  Bruno Haible  <bruno@clisp.org>
85474         * README: Update git instructions.
85476 2007-09-24  Eric Blake  <ebb9@byu.net>
85478         Revert fpending breakage from 2007-09-08.
85479         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
85480         __fpending.c.
85482 2007-09-24  Jim Meyering  <jim@meyering.net>
85484         filenamecat.c: Add a test.
85485         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
85486         showing how the function works when DIR is the empty string.
85488 2007-09-21  Simon Josefsson  <simon@josefsson.org>
85490         * tests/test-canonicalize.sh: Turn on executable bit.
85492 2007-09-19  Eric Blake  <ebb9@byu.net>
85494         * README: Update CVS instructions.
85496 2007-09-18  Bruno Haible  <bruno@clisp.org>
85498         * modules/areadlink: New file.
85499         * lib/areadlink.h (areadlink): New declaration.
85500         * lib/areadlink.c: New file, based on lib/xreadlink.c.
85502 2007-09-17  Jim Meyering  <jim@meyering.net>
85504         * lib/savewd.c (ESTALE) [!defined]: Define.
85505         Reported to be required on Interix by Martin Koeppe.
85507 2007-09-17  Bruno Haible  <bruno@clisp.org>
85509         * gnulib-tool (func_version): Use $version.
85511 2007-09-16  Bruno Haible  <bruno@clisp.org>
85513         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
85514         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
85515         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
85516         Reported by Greg Schafer <gschafer@zip.com.au>.
85518 2007-09-15  Bruno Haible  <bruno@clisp.org>
85520         * gnulib-tool (sed): Try a little harder to make bash understand the
85521         alias.
85522         Reported by Bruce Korb <bruce.korb@gmail.com>.
85524 2007-09-13  Eric Blake  <ebb9@byu.net>
85526         * ChangeLog: Remove conflict markers.
85528 2007-09-13  Simon Josefsson  <simon@josefsson.org>
85530         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
85531         Reported by Bruno Haible <bruno@clisp.org>.
85533 2007-09-12  Bruno Haible  <bruno@clisp.org>
85535         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
85536         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
85537         is not defined.
85539 2007-09-12  Eric Blake  <ebb9@byu.net>
85541         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
85542         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
85543         Autoconf definition.
85544         * modules/euidaccess (Depends-on): Add extensions, for
85545         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
85546         * modules/fnmatch (Depends-on): Likewise.
85547         * modules/getaddrinfo (Depends-on): Likewise.
85548         * modules/getdelim (Depends-on): Likewise.
85549         * modules/getline (Depends-on): Likewise.
85550         * modules/getsubopt (Depends-on): Likewise.
85551         * modules/gettext (Depends-on): Likewise.
85552         * modules/group-member (Depends-on): Likewise.
85553         * modules/mbchar (Depends-on): Likewise.
85554         * modules/memmem (Depends-on): Likewise.
85555         * modules/mempcpy (Depends-on): Likewise.
85556         * modules/memrchr (Depends-on): Likewise.
85557         * modules/pagealign_alloc (Depends-on): Likewise.
85558         * modules/readutmp (Depends-on): Likewise.
85559         * modules/stpcpy (Depends-on): Likewise.
85560         * modules/stpncpy (Depends-on): Likewise.
85561         * modules/strchrnul (Depends-on): Likewise.
85562         * modules/strndup (Depends-on): Likewise.
85563         * modules/strsep (Depends-on): Likewise.
85564         * modules/strverscmp (Depends-on): Likewise.
85565         * modules/vasprintf (Depends-on): Likewise.
85566         * modules/wcwidth (Depends-on): Likewise.
85567         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
85568         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
85569         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
85570         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
85571         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
85572         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
85573         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
85574         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
85575         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
85576         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
85577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
85578         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
85579         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
85580         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
85581         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
85582         * m4/readutmp.m4 (gl_READUTMP): Likewise.
85583         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85584         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
85585         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
85586         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
85587         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
85588         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
85589         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
85590         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
85591         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
85592         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
85593         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
85594         so that lock.m4 can be used in gettext without extensions module.
85596 2007-09-11  Bruno Haible  <bruno@clisp.org>
85598         * m4/isc-posix.m4: Remove file.
85599         Suggested by Eric Blake.
85601 2007-09-11  Eric Blake  <ebb9@byu.net>
85603         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
85605 2007-09-10  Bruno Haible  <bruno@clisp.org>
85607         * posix-modules: Fix typo in error message.
85608         Reported by Matt <mkraai@beckman.com>.
85610 2007-09-09  Bruno Haible  <bruno@clisp.org>
85612         * doc/functions/getdelim.texi: Update list of platforms lacking the
85613         function.
85614         * doc/functions/getline.texi: Likewise.
85616 2007-09-09  Jim Meyering  <jim@meyering.net>
85618         * lib/hash.c (hash_initialize): Detect calloc failure.
85619         Reported by Bruno Haible.
85621 2007-09-09  Bruno Haible  <bruno@clisp.org>
85623         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
85624         malloc or realloc fails.
85626 2007-09-09  Bruno Haible  <bruno@clisp.org>
85628         * modules/getcwd (Depends-on): Add malloc-posix.
85629         * modules/glob (Depends-on): Likewise.
85630         * modules/putenv (Depends-on): Likewise.
85631         * modules/strdup (Depends-on): Likewise.
85632         * modules/getdelim (Depends-on): Add realloc-posix.
85633         * modules/read-file (Depends-on): Likewise.
85635 2007-09-09  Bruno Haible  <bruno@clisp.org>
85637         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
85638         (gl_FUNC_MALLOC_POSIX): Require it.
85639         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
85640         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
85641         * modules/realloc (Files): Add m4/malloc.m4.
85642         * modules/calloc (Files): Likewise.
85644 2007-09-09  Bruno Haible  <bruno@clisp.org>
85646         * modules/malloc-posix: New file.
85647         * modules/malloc (Depends-on): Add malloc-posix.
85648         * lib/malloc.c: Include errno.h.
85649         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
85650         and a POSIX-compatible malloc into a single function. Set ENOMEM
85651         when returning NULL.
85652         * m4/malloc.m4: New file.
85653         * doc/functions/malloc.texi: Mention the malloc-posix module.
85654         * lib/stdlib_.h (malloc): New declaration.
85655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85656         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
85657         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
85658         and HAVE_MALLOC_POSIX.
85660 2007-09-09  Bruno Haible  <bruno@clisp.org>
85662         * modules/realloc-posix: New file.
85663         * modules/realloc (Depends-on): Add realloc-posix.
85664         * lib/realloc.c: Include errno.h.
85665         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
85666         and a POSIX-compatible realloc into a single function. Set ENOMEM
85667         when returning NULL.
85668         * m4/realloc.m4: New file.
85669         * doc/functions/realloc.texi: Mention the realloc-posix module.
85670         * lib/stdlib_.h (realloc): New declaration.
85671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85672         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
85673         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
85674         and HAVE_REALLOC_POSIX.
85676 2007-09-09  Bruno Haible  <bruno@clisp.org>
85678         * modules/calloc-posix: New file.
85679         * modules/calloc (Depends-on): Add calloc-posix.
85680         * lib/calloc.c: Include errno.h.
85681         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
85682         and a POSIX-compatible calloc into a single function. Set ENOMEM
85683         when returning NULL.
85684         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
85685         * doc/functions/calloc.texi: Mention the calloc-posix module.
85686         * lib/stdlib_.h (calloc): New declaration.
85687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
85688         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
85689         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
85690         and HAVE_CALLOC_POSIX.
85692 2007-09-09  Bruno Haible  <bruno@clisp.org>
85694         Allow for modules to show an arbitrary notice.
85695         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
85696         * gnulib-tool: New option --extract-notice.
85697         (func_usage): Document it.
85698         (sed_extract_prog): Update.
85699         (func_get_notice): New function.
85700         (func_modules_notice): New function.
85701         (func_import, func_create_testdir): Invoke it.
85702         Suggested by Jim Meyering.
85704 2007-09-09  Bruno Haible  <bruno@clisp.org>
85706         * gnulib-tool: New options --verbose, --quiet.
85707         (func_usage): Document them.
85708         (verbose): New variable.
85709         (func_execute_command): New function.
85710         (func_import): Don't show the module list and the file list if
85711         $verbose < 0.
85712         (func_create_testdir): Likewise. Use func_execute_command.
85713         (func_create_megatestdir): Use func_execute_command.
85715 2007-09-08  Bruno Haible  <bruno@clisp.org>
85717         * gnulib-tool (func_import): Prefer rsync over wget when available,
85718         for fetching the PO files.
85720 2007-09-08  Bruno Haible  <bruno@clisp.org>
85722         * posix-modules: New file. Portions copied from gnulib-tool.
85723         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
85725 2007-09-08  Jim Meyering  <jim@meyering.net>
85727         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
85728         * lib/fpending.h: Rename from __fpending.h.
85729         * lib/fpending.c: Rename from __fpending.c.
85730         Include "fpending.h", not "__fpending.h".
85731         * lib/__fpending.h, lib/__fpending.c: Remove files.
85732         * modules/fpending (Files): Reflect new file names.
85733         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
85735 2007-09-08  Bruno Haible  <bruno@clisp.org>
85737         * m4/inttypes-h.m4: Remove stub file.
85739 2007-09-07  Simon Josefsson  <simon@josefsson.org>
85741         * doc/headers/stdint.texi: Discuss #include_next issue.
85743 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85745         * build-aux/bootstrap: Remove obsolete comment about wget --help.
85747 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85749         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
85750         in variable name.
85752 2007-09-03  Jim Meyering  <jim@meyering.net>
85754         New module: git-version-gen.
85755         * modules/git-version-gen: New file.
85757         Import changes from coreutils for bootstrap script.
85759         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
85761         bootstrap: uses rsync to download the .po files
85762         * build-aux/bootstrap (po_download_command_format): New global.
85763         (download_po_files): Use rsync.
85764         (update_po_files): Don't remove .po files after download,
85765         so future rsync runs can take advantage of the copies.
85767         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
85769         Solve the unnecessary-.po-file-regeneration problem once and for all.
85770         * build-aux/bootstrap (download_po_files): New function, renamed from
85771         get_translations.  Now, downloads, but doesn't update LINGUAS.
85772         (update_po_files): New function.
85774         bootstrap: Ignore more.
85775         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
85776         uniwidth to e.g., lib/.gitignore.
85777         (slurp): Handle the sys_stat_.h -> sys mapping, too.
85779         * build-aux/bootstrap: New setting: vc_ignore.
85780         (insert_sorted_if_absent): Create $file if absent.
85781         Adapt to new, possibly empty, list: $vc_ignore.
85783         bootstrap: generate more ignorable names
85784         * build-aux/bootstrap (slurp): When generating ignorable names,
85785         also map .sin to .sed, .gperf to .c, and .y to .c.
85787 2007-09-03  Jim Meyering  <jim@meyering.net>
85789         * build-aux/git-version-gen: New file, from coreutils.  For details, see
85790         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
85792 2007-09-02  Bruno Haible  <bruno@clisp.org>
85794         Fix mis-recognition of 'mcs' on QNX 6.
85795         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
85796         output contains the string "Mono".
85797         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
85798         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
85800 2007-09-01  Bruno Haible  <bruno@clisp.org>
85802         Fix collision between uniwidth/* and linebreak modules.
85803         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
85804         u32_width): Remove declarations.
85805         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
85806         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
85807         streq3, streq2, streq1, streq0): Remove functions.
85808         (STREQ): Remove macro.
85809         (is_cjk_encoding): Remove function.
85810         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
85811         (uc_width, u8_width, u16_width, u32_width): Remove functions.
85812         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
85813         * NEWS: Document the change.
85815 2007-09-01  Bruno Haible  <bruno@clisp.org>
85817         * lib/streq.h: Add double-inclusion guard.
85819 2007-09-01  Karl Berry  <karl@gnu.org>
85821         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
85823 2007-08-28  Jim Meyering  <jim@meyering.net>
85825         Rename mreadlink_with_size to areadlink_with_size.
85826         * NEWS: Document the change.
85827         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
85828         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
85829         * lib/mreadlink.h: Rename this to...
85830         * lib/areadlink.h: ...this.
85831         * modules/mreadlink-with-size: Rename this to...
85832         * modules/areadlink-with-size: ...this.
85833         * lib/canonicalize.c: Reflect the renaming.
85834         * modules/canonicalize: Likewise.
85836 2007-08-26  Bruno Haible  <bruno@clisp.org>
85838         * gnulib-tool (func_import): When deciding which files to remove,
85839         consider also dangling symbolic links.
85840         Reported by Eric Blake.
85842 2007-08-26  Bruno Haible  <bruno@clisp.org>
85844         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
85846 2007-08-23  Simon Josefsson  <simon@josefsson.org>
85848         * lib/readline.c: Don't include getline.h, the prototype is now
85849         found in stdio.h.
85851 2007-08-23  Jim Meyering  <jim@meyering.net>
85853         Getdelim touchup.
85854         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
85855         around the funlockfile call, since funlockfile never sets errno.
85856         Don't set errno upon failed realloc.
85858 2007-08-22  Eric Blake  <ebb9@byu.net>
85860         Getline touchups.
85861         * lib/getdelim.c (getdelim): Revert regression that required *n to
85862         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
85863         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
85864         getdelim, rather than whether implementation is missing.
85865         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
85866         * lib/stdio_.h (getline): Also declare if replacement is
85867         required.
85868         * doc/functions/getdelim.texi: New file.
85869         * doc/functions/getline.texi: Likewise.
85870         * doc/gnulib.texi (Function Substitutes): Add new files.
85871         Reported by Bruno Haible.
85873 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
85875         * users.txt: Add Guile.
85877 2007-08-22  Eric Blake  <ebb9@byu.net>
85879         * tests/test-getdelim.c (main): Use remove, not unlink.
85880         * tests/test-getline.c (main): Likewise.
85882         Move getline and getdelim into stdio.h, per POSIX 200x.
85883         * modules/getline (Files): Remove getline.h.
85884         (Depends-on): Add stdio.
85885         (configure.ac): Add module indicator.
85886         * modules/getdelim (Files): Remove getdelim.h.
85887         (Depends-on): Add stdio.
85888         (configure.ac): Add module indicator.
85889         * modules/stdio (Makefile.am): Work with new indicators.
85890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
85891         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
85892         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
85893         * lib/getdelim.h: Delete.
85894         * lib/getline.h: Delete.
85895         * lib/stdio_.h (getdelim, getline): Declare.
85896         * modules/getdelim-tests: New module.
85897         * modules/getline-tests: Likewise.
85898         * tests/test-getdelim.c: New file.
85899         * tests/test-getline.c: Likewise.
85900         * NEWS: Document the change.
85901         * lib/getline.c: Update choice of header.
85902         * lib/csharpcomp.c: Likewise.
85903         * lib/getpass.c: Likewise.
85904         * lib/javacomp.c: Likewise.
85905         * lib/javaversion.c: Likewise.
85906         * lib/yesno.c: Likewise.
85907         * lib/getdelim.c: Likewise.
85908         (getdelim): Set errno on failure, and avoid memory leak.
85910 2007-08-19  Bruno Haible  <bruno@clisp.org>
85912         * modules/closein (Depends-on): Add freadahead.
85913         * lib/closein.c: Include freadahead.h.
85914         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
85915         is zero.
85917 2007-08-19  Bruno Haible  <bruno@clisp.org>
85919         * modules/freadahead-tests: New file.
85920         * tests/test-freadahead.sh: New file.
85921         * tests/test-freadahead.c: New file.
85923         * modules/freadahead: New file.
85924         * lib/freadahead.h: New file.
85925         * lib/freadahead.c: New file.
85926         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
85927         fbufmode, fpurge, freadable, fwritable.
85929 2007-08-19  Eric Blake  <ebb9@byu.net>
85931         Test yesno in combination with closein.
85932         * lib/yesno.c (yesno): Document use of stdin.
85933         * modules/yesno-tests (Files): New module.
85934         * tests/test-yesno.c (main): New file.
85935         * tests/test-yesno.sh: Likewise.
85937 2007-08-19  Bruno Haible  <bruno@clisp.org>
85939         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
85940         * lib/fseeko.c (rpl_fseeko): Likewise.
85941         * lib/fseterr.c (fseterr): Likewise.
85943 2007-08-19  Bruno Haible  <bruno@clisp.org>
85945         * tests/test-lseek.c (main): Disable a test for BeOS.
85946         * doc/functions/lseek.texi: Document the BeOS bug.
85948 2007-08-19  Bruno Haible  <bruno@clisp.org>
85949             Eric Blake  <ebb9@byu.net>
85951         * lib/lseek.c: Include <sys/stat.h>.
85952         (rpl_lseek): Add workaround code also for Unix platforms.
85953         Needed for BeOS.
85954         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
85955         * doc/functions/lseek.texi: Document BeOS definiency.
85957 2007-08-18  Bruno Haible  <bruno@clisp.org>
85959         * modules/fstrcmp-tests: New file.
85960         * tests/test-fstrcmp.c: New file.
85962 2007-08-18  Bruno Haible  <bruno@clisp.org>
85964         * modules/fstrcmp: New file, from GNU gettext with modifications.
85965         * lib/fstrcmp.h: New file, from GNU gettext.
85966         * lib/fstrcmp.c: New file, from GNU gettext.
85967         * MODULES.html.sh (String handling): Add fstrcmp.
85969 2007-08-18  Bruno Haible  <bruno@clisp.org>
85971         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
85972         'bool'.
85973         (diag, compareseq): Remove const from the ctxt argument.
85974         (USE_HEURISTIC): Undefine at the end.
85976 2007-08-18  Jim Meyering  <jim@meyering.net>
85978         New file: lib/idcache.h
85979         * NEWS: Mention the addition.
85980         * modules/idcache (Files): Add lib/idcache.h
85981         * lib/idcache.c: Include "idcache.h".
85982         Don't include <sys/types.h>.
85983         Add a FIXME comment.
85984         Move file-scoped "static" declarations to the top.
85985         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
85987 2007-08-17  Bruno Haible  <bruno@clisp.org>
85988         and Paul Eggert  <eggert@cs.ucla.edu>
85990         * MODULES.html.sh: Add diffseq.
85991         * modules/diffseq: New file.
85992         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
85993         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
85995 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85997         Import changes from coreutils for bootstrap script.
85999         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
86001         * build-aux/bootstrap (slurp): Work even in environments where
86002         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
86003         current code does not slurp files whose names start with ".", and
86004         this looks like it might be a troublesome area.
86006         2007-07-11  Jim Meyering  <jim@meyering.net>
86008         If there's a GPL vN copyright comment, require that N == 3.
86010         2007-07-08  Jim Meyering  <jim@meyering.net>
86012         Run the coreutils-specific code only if tests/Makefile.am.in exists.
86013         * build-aux/bootstrap (mam_template): Move definition out of loop.
86015         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
86017         * build-aux/bootstrap (symlink_to_dir): Rename function from
86018         symlink_to_gnulib.  Add a directory parameter.  Update all
86019         callers.
86020         (cp_mark_as_generated): Also check for -- and link to -- files in
86021         gl/.
86023         2007-07-08  Jim Meyering  <jim@meyering.net>
86025         Adapt to deeper hierarchy in gnulib.
86026         * build-aux/bootstrap (symlink_to_dir): If the destination
86027         directory doesn't exist, create it. This is required at least for
86028         "lib/uniwidth/cjk.h".
86030         2007-05-15  Jim Meyering  <jim@meyering.net>
86032         * build-aux/bootstrap: Now that generated Makefile.am files
86033         are no longer under version control, they must be created at
86034         bootstrap time.
86036 2007-08-14  Ben Pfaff  <blp@gnu.org>
86038         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
86040 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
86042         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
86043         given the changes below.
86044         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
86045         even on hosts that have padding bits beyond the supported 64.
86047 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
86049         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
86050         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
86051         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
86052         depends on it.
86053         (xstrtol_error): Remove.
86054         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
86055         but with a different signature.
86056         (ATTRIBUTE_NORETURN, __attribute__): New macros.
86057         * lib/xstrtol-error.c: Include exitfail.h.
86058         (xstrtol_fatal): New function, with a different signature from the
86059         old xstrtol_error, so that the caller need not worry about passing
86060         in an exit status, or about storage management of the option argument.
86061         (xstrtol_error): Now a static function.  Redo signature to
86062         implement xstrtol_fatal.  Output the correct number of hyphens in
86063         front of the option so that the caller need not worry about
86064         storage management.
86065         (N_): New macro.
86066         (_): Remove; not used now.
86067         * modules/xstrtol: Depend on getopt.
86068         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
86069         of old STRTOL_FATAL_ERROR macro.
86070         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
86071         of test program.
86072         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
86073         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
86075 2007-08-08  Eric Blake  <ebb9@byu.net>
86077         * lib/xstrtol-error.c: Add missing include.
86079         Move xstrtol messages into gnulib domain, when --pobase is used.
86080         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
86081         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
86082         * modules/xstrtol (Files): Distribute new file.
86083         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
86084         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
86085         * tests/test-xstrtol.c: ...into new file.
86086         * tests/test-xstrtoul.c: Also test xstrtoul.
86087         * tests/test-xstrtoimax.c: Also test xstrtoimax.
86088         * tests/test-xstrtoumax.c: Also test xstrtoumax.
86089         * tests/test-xstrtol.sh: Drive the tests.
86090         * tests/test-xstrtoimax.sh: Likewise.
86091         * tests/test-xstrtoumax.sh: Likewise.
86092         * modules/xstrtol-tests: New module.
86093         * modules/xstrtoimax-tests: Likewise.
86094         * modules/xstrtoumax-tests: Likewise.
86096 2007-08-08  Jim Meyering  <jim@meyering.net>
86098         New function: mfile_name_concat.
86099         * lib/filenamecat.c (mfile_name_concat): New function, just like
86100         file_name_concat, but return NULL upon failure rather than exiting
86101         with a diagnostic.
86102         * lib/filenamecat.h: Declare it.
86104 2007-08-07  Bruno Haible  <bruno@clisp.org>
86106         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
86107         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
86108         warning from gcc.
86109         Reported by Eric Blake.
86111 2007-08-07  Simon Josefsson  <simon@josefsson.org>
86113         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
86114         * modules/crypto/arcfour (License): Likewise.
86115         * modules/crypto/des-tests (License): Likewise.
86116         * modules/crypto/gc-arctwo-tests (License): Likewise.
86117         * modules/crypto/gc-des-tests (License): Likewise.
86118         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
86119         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
86120         * modules/crypto/gc-md2-tests (License): Likewise.
86121         * modules/crypto/gc-md4-tests (License): Likewise.
86122         * modules/crypto/gc-md5-tests (License): Likewise.
86123         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
86124         * modules/crypto/gc-rijndael-tests (License): Likewise.
86125         * modules/crypto/gc-sha1-tests (License): Likewise.
86126         * modules/crypto/gc-tests (License): Likewise.
86127         * modules/crypto/hmac-md5 (License): Likewise.
86128         * modules/crypto/hmac-sha1 (License): Likewise.
86129         * modules/crypto/md2-tests (License): Likewise.
86130         * modules/crypto/md4-tests (License): Likewise.
86131         * modules/crypto/md5 (License): Likewise.
86132         * modules/crypto/rijndael (License): Likewise.
86133         * modules/crypto/sha1 (License): Likewise.
86134         * modules/memxor (License): Likewise.
86136 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86137         and Bruno Haible  <bruno@clisp.org>
86139         * NEWS: Describe interface changes to human, xstrtol.
86140         * lib/human.h: Include <xstrtol.h>.
86141         (human_options): Return enum strtol_error, not int.  Remove
86142         bool arg; take int * instead.
86143         * lib/human.c: Don't include "gettext.h".
86144         (_): Remove; no longer used.
86145         Don't include <xstrtol.h>, since human.h does it.
86146         (human_options): Adjust to abovementioned interface changes.
86147         Do not report error to stderr; that's now the caller's
86148         responsibility.
86149         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
86150         interface change.
86151         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
86152         Str, Argument_type_string.  All uses changed.  Put " argument"
86153         in diagnostics to make them clearer.  Change wording of suffix
86154         message for clarity.
86155         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
86156         Argument_type_string.
86157         (STRTOL_FATAL_WARN): Remove; no longer used.
86158         * modules/human (Depends-on): Remove gettext-h.
86160 2007-08-06  Simon Josefsson  <simon@josefsson.org>
86162         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
86164 2007-07-31  Bruno Haible  <bruno@clisp.org>
86166         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
86167         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
86168         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
86170 2007-07-31  Bruno Haible  <bruno@clisp.org>
86172         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
86173         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
86175 2007-07-30  Bruno Haible  <bruno@clisp.org>
86177         * modules/base64 (License): Use the synonymous term "LGPLv2+".
86178         * modules/c-ctype (License): Likewise.
86179         * modules/c-strcase (License): Likewise.
86180         * modules/check-version (License): Likewise.
86181         * modules/iconv (License): Likewise.
86182         * modules/iconv_open (License): Likewise.
86183         * modules/read-file (License): Likewise.
86184         * modules/striconv (License): Likewise.
86185         * modules/strverscmp (License): Likewise.
86186         * modules/vasprintf (License): Likewise.
86187         * modules/crypto/des (License): Likewise.
86188         * modules/crypto/gc (License): Likewise.
86189         * modules/crypto/gc-arcfour (License): Likewise.
86190         * modules/crypto/gc-arctwo (License): Likewise.
86191         * modules/crypto/gc-des (License): Likewise.
86192         * modules/crypto/gc-hmac-md5 (License): Likewise.
86193         * modules/crypto/gc-hmac-sha1 (License): Likewise.
86194         * modules/crypto/gc-md2 (License): Likewise.
86195         * modules/crypto/gc-md4 (License): Likewise.
86196         * modules/crypto/gc-md5 (License): Likewise.
86197         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
86198         * modules/crypto/gc-random (License): Likewise.
86199         * modules/crypto/gc-rijndael (License): Likewise.
86200         * modules/crypto/gc-sha1 (License): Likewise.
86201         * modules/crypto/md2 (License): Likewise.
86202         * modules/crypto/md4 (License): Likewise.
86204 2007-07-30  Jim Meyering  <jim@meyering.net>
86206         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
86207         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
86208         it has valid stat data.  This bug would cause du not to count the
86209         sizes of inaccessible directories.
86210         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
86211         in <http://bugzilla.redhat.com/250077>.
86213 2007-07-25  Peter O'Gorman  <peter@pogma.com>
86214             Bruno Haible  <bruno@clisp.org>
86216         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
86217         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
86218         #include_next, gives a diagnostic about it, but reports no error in
86219         the exit code.
86220         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86222 2007-07-24  Ben Pfaff  <blp@gnu.org>
86224         Improve name: "count-one-bits" is better than "popcount".
86225         * MODULES.html.sh: Update name.
86226         * lib/popcount.h: Renamed lib/count-one-bits.h.
86227         (popcount): Renamed count_one_bits.
86228         (popcountl): Renamed count_one_bits_l.
86229         (popcountll): Renamed count_one_bits_ll.
86230         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
86231         * modules/popcount: Renamed module/count-one-bits.
86232         * modules/popcount-tests: Renamed module/count-one-bits-tests.
86233         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
86235 2007-07-23  Ben Pfaff  <blp@gnu.org>
86237         * lib/popcount.h (popcount32): Reduce size of constants, to allow
86238         better code generation, and add U to large constants to avoid
86239         warnings, in non-GCC case.
86240         Suggested by Bruno Haible.
86242 2007-07-23  Ben Pfaff  <blp@gnu.org>
86244         * lib/popcount.h: Use verify_true instead of if...abort.
86245         * modules/popcount: Depend on verify module.
86246         Suggested by Jim Meyering.
86248 2007-07-23  Bruno Haible  <bruno@clisp.org>
86250         * gnulib-tool (func_import): Create a .cvsignore file also when the
86251         directory is not yet in CVS but the toplevel directory is. When
86252         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
86253         Reported by Karl Berry.
86255 2007-07-22  Ben Pfaff  <blp@gnu.org>
86257         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
86258         case.
86259         Suggested by Eric Blake.
86261 2007-07-22  Ben Pfaff  <blp@gnu.org>
86263         New module: popcount.
86264         * MODULES.html.sh: Add popcount.
86265         * modules/popcount: New file.
86266         * modules/popcount-tests: New file.
86267         * tests/test-popcount.c: New file.
86268         * lib/popcount.h: New file.
86269         * m4/popcount.m4: New file.
86271 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
86273         * build-aux/announce-gen: Update to GPLv3.
86275         * build-aux/config.guess: Update from config.
86277 2007-07-21  Bruno Haible  <bruno@clisp.org>
86279         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
86280         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
86282 2007-07-20  Jim Meyering  <jim@meyering.net>
86284         * check-module: Diagnose a self-dependency.
86286 2007-07-19  Bruno Haible  <bruno@clisp.org>
86288         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
86289         empty.
86290         Reported by Eric Blake.
86292 2007-07-18  Bruno Haible  <bruno@clisp.org>
86294         * gnulib-tool: New options --po-base, --po-domain.
86295         (func_usage): Document them.
86296         (pobase, po_domain): New variables.
86297         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
86298         DEFAULT_TEXT_DOMAIN.
86299         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
86300         (func_import): Consider pobase and po_domain. Create a po/ directory.
86301         (func_create_testdir): Set pobase and po_domain to empty.
86302         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
86303         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
86305 2007-07-18  Bruno Haible  <bruno@clisp.org>
86307         * gnulib-tool (func_get_automake_snippet): Synthesize also an
86308         EXTRA_DIST augmentation for files in build-aux/.
86310 2007-07-16  Bruno Haible  <bruno@clisp.org>
86312         * modules/lseek (License): Use the synonymous term "LGPLv2+".
86313         * modules/getdelim (License): Likewise.
86315 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86317         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
86318         * modules/d-type (License): Likewise.
86319         * modules/extensions (License): Likewise.
86320         * modules/fnmatch (License): Likewise.
86321         * modules/fseeko (License): Likewise.
86322         * modules/getaddrinfo (License): Likewise.
86323         * modules/getline (License): Likewise.
86324         * modules/getlogin_r (License): Likewise.
86325         * modules/getpass (License): Likewise.
86326         * modules/gettimeofday (License): Likewise.
86327         * modules/glob (License): Likewise.
86328         * modules/inet_ntop (License): Likewise.
86329         * modules/malloc (License): Likewise.
86330         * modules/malloca (License): Likewise.
86331         * modules/memmem (License): Likewise.
86332         * modules/mempcpy (License): Likewise.
86333         * modules/memset (License): Likewise.
86334         * modules/minmax (License): Likewise.
86335         * modules/mktime (License): Likewise.
86336         * modules/netinet_in (License): Likewise.
86337         * modules/pathmax (License): Likewise.
86338         * modules/poll (License): Likewise.
86339         * modules/regex (License): Likewise.
86340         * modules/snprintf (License): Likewise.
86341         * modules/stdbool (License): Likewise.
86342         * modules/stdint (License): Likewise.
86343         * modules/stdio (License): Likewise.
86344         * modules/strcase (License): Likewise.
86345         * modules/strcasestr (License): Likewise.
86346         * modules/strdup (License): Likewise.
86347         * modules/string (License): Likewise.
86348         * modules/strndup (License): Likewise.
86349         * modules/strnlen (License): Likewise.
86350         * modules/strpbrk (License): Likewise.
86351         * modules/strptime (License): Likewise.
86352         * modules/strsep (License): Likewise.
86353         * modules/sys_select (License): Likewise.
86354         * modules/sys_socket (License): Likewise.
86355         * modules/sys_stat (License): Likewise.
86356         * modules/sys_time (License): Likewise.
86357         * modules/time (License): Likewise.
86358         * modules/time_r (License): Likewise.
86359         * modules/timegm (License): Likewise.
86360         * modules/unistd (License): Likewise.
86361         * modules/vsnprintf (License): Likewise.
86362         * modules/wctype (License): Likewise.
86364 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86366         * modules/argz (License): LGPLv2+.
86368 2007-07-15  Karl Berry  <karl@gnu.org>
86370         * doc/gnulib.texi: revise node structure per new fdl.texi.
86372 2007-07-14  Bruno Haible  <bruno@clisp.org>
86374         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
86375         the output file.
86376         * lib/uniname/uninames.h: Regenerated.
86378 2007-07-14  Karl Berry  <karl@gnu.org>
86380         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
86381         omitting sectioning and index commands.
86383 2007-07-13  Bruno Haible  <bruno@clisp.org>
86385         New gnulib-tool option --more-symlinks.
86386         * gnulib-tool (func_usage): Document --more-symlinks.
86387         (do_copyrights): New variable.
86388         Recognize option --more-symlinks.
86389         (func_import): Don't add a copyright notice transform to
86390         sed_transform_lib_file if do_copyrights is empty.
86392 2007-07-13  Bruno Haible  <bruno@clisp.org>
86394         * lib/vasnprintf.c (decimal_point_char): Define also if
86395         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
86396         && !NEED_PRINTF_DIRECTIVE_A.
86397         Reported by Clemens Koller <clemens.koller@anagramm.de> via
86398         Gary V. Vaughan <gary@gnu.org>.
86400 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
86402         * lib/inttypes_.h: Undo previous change, since it was fixed
86403         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
86405 2007-07-13  Bruno Haible  <bruno@clisp.org>
86407         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
86408         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
86410 2007-07-13  Jim Meyering  <jim@meyering.net>
86412         df: Don't fail for Tru64's "file-on-file mount".
86413         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
86414         so we fall through and use statfs instead.  Details here:
86415         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
86416         Reported by Albert Chin.
86418 2007-07-13  Bruno Haible  <bruno@clisp.org>
86420         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
86421         * modules/configmake (License): Likewise.
86422         * modules/gettext (License): Likewise.
86423         * modules/gettext-h (License): Likewise.
86424         * modules/include_next (License): Likewise.
86425         * modules/link-warning (License): Likewise.
86426         * modules/localcharset (License): Likewise.
86427         * modules/localename (License): Likewise.
86428         * modules/lock (License): Likewise.
86429         * modules/relocatable-lib-lgpl (License): Likewise.
86430         * modules/size_max (License): Likewise.
86431         * modules/vasnprintf (License): Likewise.
86432         * modules/wchar (License): Likewise.
86433         * modules/xsize (License): Likewise.
86435 2007-07-13  Bruno Haible  <bruno@clisp.org>
86437         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
86438         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
86440 2007-07-12  Bruno Haible  <bruno@clisp.org>
86442         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
86443         in the modules files.
86445 2007-07-11  Karl Berry  <karl@gnu.org>
86447         * MODULES.html.sh (func_module): use
86448          sed -e '\|^'"${includefile}"'$|d'
86449          instead of /.../d, to avoid errors on $includefile's containing /.
86451 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
86453         * gnulib-tool (func_import): Avoid duplication of --avoid
86454         statements
86455         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
86456         names to `_' in variable names.
86458 2007-07-10  Eric Blake  <ebb9@byu.net>
86460         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
86461         * NEWS: Document this change.
86463 2007-07-08  Bruno Haible  <bruno@clisp.org>
86465         Update to Unicode 5.0.
86466         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
86467         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
86468         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
86469         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
86470         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
86471         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
86472         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
86473         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
86474         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
86475         U+10A3F, U+1D242..U+1D244.
86476         (nonspacing_table_ind): Update.
86477         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
86478         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
86480 2007-07-08  Bruno Haible  <bruno@clisp.org>
86482         Update to Unicode 5.0.
86483         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
86484         code transform. Extend the name index field of unicode_name_to_code and
86485         unicode_code_to_name from 16 to 24 bits.
86486         * lib/uniname/uniname.c (unicode_character_name,
86487         unicode_name_character): Add the range 0x12xxx to the code transform.
86488         * lib/uniname/uninames.h: Regenerated.
86489         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
86491 2007-07-07  Bruno Haible  <bruno@clisp.org>
86493         * modules/wcwidth-tests: New file.
86494         * tests/test-wcwidth.c: New file.
86496         Work around MacOS X wcwidth() bug.
86497         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
86498         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
86499         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
86500         original wcwidth in non-UTF-8 locales.
86501         * modules/wcwidth (Depends-on): Add localcharset, streq,
86502         uniwidth/width.
86503         * doc/functions/wcwidth.texi: Update.
86505 2007-07-07  Bruno Haible  <bruno@clisp.org>
86507         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
86508         (wcwidth): New declaration.
86509         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
86510         macros.
86511         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
86512         here. Prepare for creating <wchar.h> unconditionally.
86513         * modules/wchar (Depends-on): Add link-warning.
86514         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
86515         REPLACE_WCWIDTH, and GL_LINK_WARNING.
86516         * lib/wcwidth.h: Remove file.
86517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
86518         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
86519         * modules/wcwidth (Files): Remove lib/wcwidth.h.
86520         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
86521         (Include): Replace wcwidth.h with <wchar.h>.
86522         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
86523         * lib/mbchar.h: Don't include wcwidth.h.
86524         * lib/mbswidth.c: Likewise.
86525         * NEWS: Mention the change.
86527 2007-07-07  Bruno Haible  <bruno@clisp.org>
86529         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
86530         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
86531         definition with an external declaration.
86532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
86533         defined as a function. Remove AC_C_INLINE requirement.
86534         * modules/wcwidth (Files): Add lib/wcwidth.c.
86535         (Makefile.am): Remove redundant statement.
86537 2007-07-07  Bruno Haible  <bruno@clisp.org>
86539         * MODULES.html.sh (Unicode string functions): Add the new modules.
86541         * tests/uniwidth/test-u32-strwidth.c: New file.
86542         * modules/uniwidth/u32-strwidth-tests: New file.
86544         * lib/uniwidth/u32-strwidth.c: New file.
86545         * modules/uniwidth/u32-strwidth: New file.
86547         * tests/uniwidth/test-u16-strwidth.c: New file.
86548         * modules/uniwidth/u16-strwidth-tests: New file.
86550         * lib/uniwidth/u16-strwidth.c: New file.
86551         * modules/uniwidth/u16-strwidth: New file.
86553         * tests/uniwidth/test-u8-strwidth.c: New file.
86554         * modules/uniwidth/u8-strwidth-tests: New file.
86556         * lib/uniwidth/u8-strwidth.c: New file.
86557         * modules/uniwidth/u8-strwidth: New file.
86559         * tests/uniwidth/test-u32-width.c: New file.
86560         * modules/uniwidth/u32-width-tests: New file.
86562         * lib/uniwidth/u32-width.c: New file.
86563         * modules/uniwidth/u32-width: New file.
86565         * tests/uniwidth/test-u16-width.c: New file.
86566         * modules/uniwidth/u16-width-tests: New file.
86568         * lib/uniwidth/u16-width.c: New file.
86569         * modules/uniwidth/u16-width: New file.
86571         * tests/uniwidth/test-u8-width.c: New file.
86572         * modules/uniwidth/u8-width-tests: New file.
86574         * lib/uniwidth/u8-width.c: New file.
86575         * modules/uniwidth/u8-width: New file.
86577         * tests/uniwidth/test-uc_width.c: New file.
86578         * modules/uniwidth/width-tests: New file.
86580         * lib/uniwidth/width.c: New file, from GNU libiconv.
86581         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
86582         * modules/uniwidth/width: New file.
86584         * lib/uniwidth.h: New file, from GNU libiconv.
86585         * modules/uniwidth/base: New file.
86587 2007-07-07  Bruno Haible  <bruno@clisp.org>
86589         * lib/uniname.h: New file, from GNU gettext.
86590         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
86591         * lib/uniname/uninames.h: New file, from GNU gettext.
86592         * lib/uniname/uniname.c: New file, from GNU gettext.
86593         * tests/uniname/test-uninames.sh: New file.
86594         * tests/uniname/test-uninames.c: New file, from GNU gettext.
86595         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
86596         * modules/uniname/base: New file.
86597         * modules/uniname/uniname: New file.
86598         * modules/uniname/uniname-tests: New file.
86599         * MODULES.html.sh (Unicode string functions): Add the new modules.
86601 2007-07-06  Bruno Haible  <bruno@clisp.org>
86603         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
86605 2007-07-06  Bruno Haible  <bruno@clisp.org>
86607         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
86608         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
86609         includes <cygwin/sys_time.h> which includes <sys/select.h> which
86610         include <sys/time.h>.
86611         Reported by Eric Blake.
86613 2007-07-06  Eric Blake  <ebb9@byu.net>
86615         Fix testing canonicalize on cygwin.
86616         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
86617         Revert patch from 2007-06-19.
86618         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
86619         canonicalize module is also in use.
86620         * tests/test-canonicalize.c: New file.
86621         * tests/test-canonicalize.sh: Likewise.
86622         * modules/canonicalize-tests: Likewise.
86624 2007-07-06  Jim Meyering  <jim@meyering.net>
86626         * lib/getugroups.c (getugroups): Detect getgrent failure.
86627         Adjust comment to reflect reality: this function may return -1.
86629 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
86631         * build-aux/bootstrap (TP_URL,get_translations): Update to use
86632         the new TP address.
86633         (usage): Fix typo
86634         (gnulib_mk): New variable.
86636 2007-07-05  Jim Meyering  <jim@meyering.net>
86638         Don't let endgrent clobber errno, no matter how improbable.
86639         * lib/getugroups.c (getugroups): Save and restore errno around
86640         endgrent call.
86642         Close the group DB even when failing with 2^31 or more members.
86643         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
86645 2007-07-04  Jim Meyering  <jim@meyering.net>
86647         * lib/getugroups.h: New file.
86648         * lib/getugroups.c: Include "getugroups.h".
86649         Remove uses of "register" keyword.
86650         Move local variable, "cp", down into scope where used.
86651         Give "username" parameter the "const" attribute.
86652         * modules/getugroups (Files): Add lib/getugroups.h
86654 2007-07-04  Karl Berry  <karl@gnu.org>
86656         * MODULES.html.sh (func_all_modules): Complete rename of
86657         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
86659 2007-07-02  Bruno Haible  <bruno@clisp.org>
86661         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
86662         mode, when inttypes.h comes from gnulib.
86663         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
86665 2007-07-02  Simon Josefsson  <simon@josefsson.org>
86667         * NEWS: Mention lgpl module name change.
86669         * modules/lgpl-2.1: Renamed from lgpl.
86671         * NEWS: Mention gpl module name change.
86673         * modules/gpl-3.0: New file, based on gpl-2.0.
86675         * modules/gpl-2.0: Renamed from gpl.
86677         * modules/gpl: Fix filename, doc/gpl.texi is now found at
86678         doc/gpl-2.0.texi.
86680 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
86682         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
86683         #define __STDC_LIMIT_MACROS temporarily while including
86684         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
86685         Problem reported by Joel E. Denny in
86686         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
86688 2007-07-01  Bruno Haible  <bruno@clisp.org>
86690         * lib/unistdio.h: New file.
86691         * lib/unistdio/u-asnprintf.h: New file.
86692         * lib/unistdio/u-asprintf.h: New file.
86693         * lib/unistdio/u-printf-args.c: New file.
86694         * lib/unistdio/u-printf-args.h: New file.
86695         * lib/unistdio/u-printf-parse.h: New file.
86696         * lib/unistdio/u-snprintf.h: New file.
86697         * lib/unistdio/u-sprintf.h: New file.
86698         * lib/unistdio/u-vasprintf.h: New file.
86699         * lib/unistdio/u-vsnprintf.h: New file.
86700         * lib/unistdio/u-vsprintf.h: New file.
86701         * lib/unistdio/ulc-asnprintf.c: New file.
86702         * lib/unistdio/ulc-asprintf.c: New file.
86703         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
86704         * lib/unistdio/ulc-printf-parse.c: New file.
86705         * lib/unistdio/ulc-snprintf.c: New file.
86706         * lib/unistdio/ulc-sprintf.c: New file.
86707         * lib/unistdio/ulc-vasnprintf.c: New file.
86708         * lib/unistdio/ulc-vasprintf.c: New file.
86709         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
86710         * lib/unistdio/ulc-vsnprintf.c: New file.
86711         * lib/unistdio/ulc-vsprintf.c: New file.
86712         * lib/unistdio/u8-asnprintf.c: New file.
86713         * lib/unistdio/u8-asprintf.c: New file.
86714         * lib/unistdio/u8-printf-parse.c: New file.
86715         * lib/unistdio/u8-snprintf.c: New file.
86716         * lib/unistdio/u8-sprintf.c: New file.
86717         * lib/unistdio/u8-vasnprintf.c: New file.
86718         * lib/unistdio/u8-vasprintf.c: New file.
86719         * lib/unistdio/u8-vsnprintf.c: New file.
86720         * lib/unistdio/u8-vsprintf.c: New file.
86721         * lib/unistdio/u8-u8-asnprintf.c: New file.
86722         * lib/unistdio/u8-u8-asprintf.c: New file.
86723         * lib/unistdio/u8-u8-snprintf.c: New file.
86724         * lib/unistdio/u8-u8-sprintf.c: New file.
86725         * lib/unistdio/u8-u8-vasnprintf.c: New file.
86726         * lib/unistdio/u8-u8-vasprintf.c: New file.
86727         * lib/unistdio/u8-u8-vsnprintf.c: New file.
86728         * lib/unistdio/u8-u8-vsprintf.c: New file.
86729         * lib/unistdio/u16-asnprintf.c: New file.
86730         * lib/unistdio/u16-asprintf.c: New file.
86731         * lib/unistdio/u16-printf-parse.c: New file.
86732         * lib/unistdio/u16-snprintf.c: New file.
86733         * lib/unistdio/u16-sprintf.c: New file.
86734         * lib/unistdio/u16-vasnprintf.c: New file.
86735         * lib/unistdio/u16-vasprintf.c: New file.
86736         * lib/unistdio/u16-vsnprintf.c: New file.
86737         * lib/unistdio/u16-vsprintf.c: New file.
86738         * lib/unistdio/u16-u16-asnprintf.c: New file.
86739         * lib/unistdio/u16-u16-asprintf.c: New file.
86740         * lib/unistdio/u16-u16-snprintf.c: New file.
86741         * lib/unistdio/u16-u16-sprintf.c: New file.
86742         * lib/unistdio/u16-u16-vasnprintf.c: New file.
86743         * lib/unistdio/u16-u16-vasprintf.c: New file.
86744         * lib/unistdio/u16-u16-vsnprintf.c: New file.
86745         * lib/unistdio/u16-u16-vsprintf.c: New file.
86746         * lib/unistdio/u32-asnprintf.c: New file.
86747         * lib/unistdio/u32-asprintf.c: New file.
86748         * lib/unistdio/u32-printf-parse.c: New file.
86749         * lib/unistdio/u32-snprintf.c: New file.
86750         * lib/unistdio/u32-sprintf.c: New file.
86751         * lib/unistdio/u32-vasnprintf.c: New file.
86752         * lib/unistdio/u32-vasprintf.c: New file.
86753         * lib/unistdio/u32-vsnprintf.c: New file.
86754         * lib/unistdio/u32-vsprintf.c: New file.
86755         * lib/unistdio/u32-u32-asnprintf.c: New file.
86756         * lib/unistdio/u32-u32-asprintf.c: New file.
86757         * lib/unistdio/u32-u32-snprintf.c: New file.
86758         * lib/unistdio/u32-u32-sprintf.c: New file.
86759         * lib/unistdio/u32-u32-vasnprintf.c: New file.
86760         * lib/unistdio/u32-u32-vasprintf.c: New file.
86761         * lib/unistdio/u32-u32-vsnprintf.c: New file.
86762         * lib/unistdio/u32-u32-vsprintf.c: New file.
86763         * tests/unistdio/test-ulc-asnprintf1.c: New file.
86764         * tests/unistdio/test-ulc-asnprintf1.h: New file.
86765         * tests/unistdio/test-ulc-printf1.h: New file.
86766         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
86767         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
86768         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
86769         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
86770         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
86771         * tests/unistdio/test-ulc-vasprintf1.c: New file.
86772         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
86773         * tests/unistdio/test-ulc-vsprintf1.c: New file.
86774         * tests/unistdio/test-u8-asnprintf1.c: New file.
86775         * tests/unistdio/test-u8-asnprintf1.h: New file.
86776         * tests/unistdio/test-u8-printf1.h: New file.
86777         * tests/unistdio/test-u8-vasnprintf1.c: New file.
86778         * tests/unistdio/test-u8-vasnprintf2.c: New file.
86779         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
86780         * tests/unistdio/test-u8-vasnprintf3.c: New file.
86781         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
86782         * tests/unistdio/test-u8-vasprintf1.c: New file.
86783         * tests/unistdio/test-u8-vsnprintf1.c: New file.
86784         * tests/unistdio/test-u8-vsprintf1.c: New file.
86785         * tests/unistdio/test-u16-asnprintf1.c: New file.
86786         * tests/unistdio/test-u16-asnprintf1.h: New file.
86787         * tests/unistdio/test-u16-printf1.h: New file.
86788         * tests/unistdio/test-u16-vasnprintf1.c: New file.
86789         * tests/unistdio/test-u16-vasnprintf2.c: New file.
86790         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
86791         * tests/unistdio/test-u16-vasnprintf3.c: New file.
86792         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
86793         * tests/unistdio/test-u16-vasprintf1.c: New file.
86794         * tests/unistdio/test-u16-vsnprintf1.c: New file.
86795         * tests/unistdio/test-u16-vsprintf1.c: New file.
86796         * tests/unistdio/test-u32-asnprintf1.c: New file.
86797         * tests/unistdio/test-u32-asnprintf1.h: New file.
86798         * tests/unistdio/test-u32-printf1.h: New file.
86799         * tests/unistdio/test-u32-vasnprintf1.c: New file.
86800         * tests/unistdio/test-u32-vasnprintf2.c: New file.
86801         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
86802         * tests/unistdio/test-u32-vasnprintf3.c: New file.
86803         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
86804         * tests/unistdio/test-u32-vasprintf1.c: New file.
86805         * tests/unistdio/test-u32-vsnprintf1.c: New file.
86806         * tests/unistdio/test-u32-vsprintf1.c: New file.
86807         * modules/unistdio/base: New file.
86808         * modules/unistdio/u-printf-args: New file.
86809         * modules/unistdio/ulc-asnprintf: New file.
86810         * modules/unistdio/ulc-asprintf: New file.
86811         * modules/unistdio/ulc-fprintf: New file.
86812         * modules/unistdio/ulc-printf-parse: New file.
86813         * modules/unistdio/ulc-snprintf: New file.
86814         * modules/unistdio/ulc-sprintf: New file.
86815         * modules/unistdio/ulc-vasnprintf: New file.
86816         * modules/unistdio/ulc-vasprintf: New file.
86817         * modules/unistdio/ulc-vfprintf: New file.
86818         * modules/unistdio/ulc-vsnprintf: New file.
86819         * modules/unistdio/ulc-vsprintf: New file.
86820         * modules/unistdio/u8-asnprintf: New file.
86821         * modules/unistdio/u8-asprintf: New file.
86822         * modules/unistdio/u8-printf-parse: New file.
86823         * modules/unistdio/u8-snprintf: New file.
86824         * modules/unistdio/u8-sprintf: New file.
86825         * modules/unistdio/u8-vasnprintf: New file.
86826         * modules/unistdio/u8-vasprintf: New file.
86827         * modules/unistdio/u8-vsnprintf: New file.
86828         * modules/unistdio/u8-vsprintf: New file.
86829         * modules/unistdio/u8-u8-asnprintf: New file.
86830         * modules/unistdio/u8-u8-asprintf: New file.
86831         * modules/unistdio/u8-u8-snprintf: New file.
86832         * modules/unistdio/u8-u8-sprintf: New file.
86833         * modules/unistdio/u8-u8-vasnprintf: New file.
86834         * modules/unistdio/u8-u8-vasprintf: New file.
86835         * modules/unistdio/u8-u8-vsnprintf: New file.
86836         * modules/unistdio/u8-u8-vsprintf: New file.
86837         * modules/unistdio/u16-asnprintf: New file.
86838         * modules/unistdio/u16-asprintf: New file.
86839         * modules/unistdio/u16-printf-parse: New file.
86840         * modules/unistdio/u16-snprintf: New file.
86841         * modules/unistdio/u16-sprintf: New file.
86842         * modules/unistdio/u16-vasnprintf: New file.
86843         * modules/unistdio/u16-vasprintf: New file.
86844         * modules/unistdio/u16-vsnprintf: New file.
86845         * modules/unistdio/u16-vsprintf: New file.
86846         * modules/unistdio/u16-u16-asnprintf: New file.
86847         * modules/unistdio/u16-u16-asprintf: New file.
86848         * modules/unistdio/u16-u16-snprintf: New file.
86849         * modules/unistdio/u16-u16-sprintf: New file.
86850         * modules/unistdio/u16-u16-vasnprintf: New file.
86851         * modules/unistdio/u16-u16-vasprintf: New file.
86852         * modules/unistdio/u16-u16-vsnprintf: New file.
86853         * modules/unistdio/u16-u16-vsprintf: New file.
86854         * modules/unistdio/u32-asnprintf: New file.
86855         * modules/unistdio/u32-asprintf: New file.
86856         * modules/unistdio/u32-printf-parse: New file.
86857         * modules/unistdio/u32-snprintf: New file.
86858         * modules/unistdio/u32-sprintf: New file.
86859         * modules/unistdio/u32-vasnprintf: New file.
86860         * modules/unistdio/u32-vasprintf: New file.
86861         * modules/unistdio/u32-vsnprintf: New file.
86862         * modules/unistdio/u32-vsprintf: New file.
86863         * modules/unistdio/u32-u32-asnprintf: New file.
86864         * modules/unistdio/u32-u32-asprintf: New file.
86865         * modules/unistdio/u32-u32-snprintf: New file.
86866         * modules/unistdio/u32-u32-sprintf: New file.
86867         * modules/unistdio/u32-u32-vasnprintf: New file.
86868         * modules/unistdio/u32-u32-vasprintf: New file.
86869         * modules/unistdio/u32-u32-vsnprintf: New file.
86870         * modules/unistdio/u32-u32-vsprintf: New file.
86871         * modules/unistdio/ulc-asnprintf-tests: New file.
86872         * modules/unistdio/ulc-vasnprintf-tests: New file.
86873         * modules/unistdio/ulc-vasprintf-tests: New file.
86874         * modules/unistdio/ulc-vsnprintf-tests: New file.
86875         * modules/unistdio/ulc-vsprintf-tests: New file.
86876         * modules/unistdio/u8-asnprintf-tests: New file.
86877         * modules/unistdio/u8-vasnprintf-tests: New file.
86878         * modules/unistdio/u8-vasprintf-tests: New file.
86879         * modules/unistdio/u8-vsnprintf-tests: New file.
86880         * modules/unistdio/u8-vsprintf-tests: New file.
86881         * modules/unistdio/u16-asnprintf-tests: New file.
86882         * modules/unistdio/u16-vasnprintf-tests: New file.
86883         * modules/unistdio/u16-vasprintf-tests: New file.
86884         * modules/unistdio/u16-vsnprintf-tests: New file.
86885         * modules/unistdio/u16-vsprintf-tests: New file.
86886         * modules/unistdio/u32-asnprintf-tests: New file.
86887         * modules/unistdio/u32-vasnprintf-tests: New file.
86888         * modules/unistdio/u32-vasprintf-tests: New file.
86889         * modules/unistdio/u32-vsnprintf-tests: New file.
86890         * modules/unistdio/u32-vsprintf-tests: New file.
86891         * MODULES.html.sh (Unicode string functions): Add the new modules.
86893 2007-07-01  Bruno Haible  <bruno@clisp.org>
86895         * lib/sprintf.c (sprintf): Limit the available length estimation,
86896         to avoid address wraparound.
86897         * lib/vsprintf.c (vsprintf): Likewise.
86898         * modules/sprintf-posix (Dependencies): Add stdint.
86899         * modules/vsprintf-posix (Dependencies): Likewise.
86901 2007-07-01  Bruno Haible  <bruno@clisp.org>
86903         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
86904         Windows PATH as well. Conservative double-quoting. Comments.
86906 2007-07-01  Bruno Haible  <bruno@clisp.org>
86907             Eric Blake  <ebb9@byu.net>
86908             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86910         * gnulib-tool (self_abspathname): Fix algorithm to cope with
86911         empty components in $PATH, denoting '.'.
86913 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86915         * gnulib-tool: Fix indentation.
86916         (func_create_megatestdir): Likewise.
86917         Report by Bruno Haible.
86919 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86921         Sync from Automake.
86922         * build-aux/gnupload: Fix shell portability issues with for loops.
86923         Report by Karl Berry.
86925 2007-06-29  Simon Josefsson  <simon@josefsson.org>
86927         * build-aux/maint.mk (POURL): Use translationproject.org.
86929 2007-06-27  Simon Josefsson  <simon@josefsson.org>
86930             Bruno Haible  <bruno@clisp.org>
86932         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
86933         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
86934         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
86935         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
86936         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
86938 2007-06-27  Bruno Haible  <bruno@clisp.org>
86940         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
86941         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
86943 2007-06-26  Karl Berry  <karl@gnu.org>
86945         * MODULES.html.sh: remove xreadlink-with-size.
86947 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86949         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
86950         method that I hope also handles the double-include problem noted
86951         by Bruno Haible in
86952         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
86954 2007-06-23  Bruno Haible  <bruno@clisp.org>
86956         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
86957         Don't let the 'mostlyclean' target fail if the last subdirectory could
86958         not be removed.
86959         Reported by Karl Berry.
86961 2007-06-23  Bruno Haible  <bruno@clisp.org>
86963         * gnulib-tool (echo): Add a speedier workaround for ksh.
86964         * tests/test-echo.sh: Likewise.
86966 2007-06-23  Bruno Haible  <bruno@clisp.org>
86968         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
86969         * tests/test-echo.sh: Likewise.
86971 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86973         * gnulib-tool (IFS): Initialize early, so we don't set it to
86974         empty later.
86975         (self_abspathname): Rewrite algorithm to set it, reindent.
86976         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
86977         (func_create_megatestdir): Merge some sed scripts.
86979 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86981         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
86982         exposed by Sun Studio 11 cc on Solaris 8.
86984 2007-06-22  Bruno Haible  <bruno@clisp.org>
86986         * gnulib-tool (echo): Ensure the echo primitive does not interpret
86987         backslashes.
86988         * tests/test-echo.sh: New file.
86990 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86992         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
86993         simplify `sed_replace_build_aux' scripts, they are portable but
86994         echoing them with `echo' is not.
86995         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
86997 2007-06-21  Karl Berry  <karl@gnu.org>
86999         * config/srclist.txt: guess we can't handle the licenses via
87000         srclist at the moment.
87002 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
87004         * MODULES.html.sh: Add include_next.
87005         * modules/include_next: New file.
87007 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
87009         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
87010         INCLUDE_NEXT.
87011         (gl_CHECK_NEXT_HEADERS): New macro.
87012         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
87013         the obsolescent gl_ABSOLUTE_HEADER.
87014         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
87015         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
87016         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
87017         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
87018         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
87019         * m4/math_h.m4 (gl_MATH_H): Likewise.
87020         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
87021         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
87022         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
87023         * m4/stdint.m4 (gl_STDINT_H): Likewise.
87024         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
87025         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
87026         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
87027         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87028         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
87029         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
87030         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
87031         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
87032         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
87033         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
87034         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
87035         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
87036         * m4/inttypes.m4 (gl_INTTYPES_H): Define
87037         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
87038         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
87039         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
87040         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
87041         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
87042         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
87043         * lib/float_.h: Likewise.
87044         * lib/inttypes_.h: Likewise.
87045         * lib/math_.h: Likewise.
87046         * lib/search_.h: Likewise.
87047         * lib/signal_.h: Likewise.
87048         * lib/stdint_.h: Likewise.
87049         * lib/stdio_.h: Likewise.
87050         * lib/stdlib_.h: Likewise.
87051         * lib/string_.h: Likewise.
87052         * lib/sys_stat_.h: Likewise.
87053         * lib/sys_time_.h: Likewise.
87054         * lib/time_.h: Likewise.
87055         * lib/unistd_.h: Likewise.
87056         * lib/wchar_.h: Likewise.
87057         * lib/wctype_.h: Likewise.
87058         * lib/dirent_.h: Likewise.
87059         * lib/iconv_.h: Likewise.
87060         * lib/locale_.h: Likewise.
87061         * lib/netinet_in_.h: Likewise.
87062         * lib/sys_select_.h: Likewise.
87063         * lib/sys_socket_.h: Likewise.
87064         * lib/sysexits_.h: Likewise.
87065         * modules/fcntl (Depends-on): Depend on include_next, not
87066         absolute_header.
87067         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
87068         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
87069         * modules/fchdir: Likewise.
87070         * modules/float: Likewise.
87071         * modules/iconv_open: Likewise.
87072         * modules/inttypes: Likewise.
87073         * modules/locale: Likewise.
87074         * modules/math: Likewise.
87075         * modules/netinet_in: Likewise.
87076         * modules/search: Likewise.
87077         * modules/signal: Likewise.
87078         * modules/stdint: Likewise.
87079         * modules/stdio: Likewise.
87080         * modules/stdlib: Likewise.
87081         * modules/string: Likewise.
87082         * modules/sys_select: Likewise.
87083         * modules/sys_socket: Likewise.
87084         * modules/sys_stat: Likewise.
87085         * modules/sys_time: Likewise.
87086         * modules/sysexits: Likewise.
87087         * modules/time: Likewise.
87088         * modules/unistd: Likewise.
87089         * modules/wchar: Likewise.
87090         * modules/wctype: Likewise.
87091         * modules/sys_stat: Change maintainer to "all".
87092         * modules/unistd: Likewise.
87094 2007-06-20  Karl Berry  <karl@gnu.org>
87096         * config/srclist.txt: track www changes in license files.
87098 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
87100         * build-aux/bootstrap: Remove stray dot.
87101         Make sure build_aux settings are honored when linking
87102         gnulib_extra_files.
87104 2007-06-19  Eric Blake  <ebb9@byu.net>
87106         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87107         Allow compilation on cygwin.
87109 2007-06-19  Jim Meyering  <jim@meyering.net>
87111         xreadlink-with-size: Remove module.  No longer used.
87112         Ex-callers now use xreadlink or mreadlink-with-size.
87113         * modules/xreadlink-with-size: Remove module.
87114         * lib/xreadlink-with-size.c: Remove file.
87115         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
87116         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
87117         just before the function definition *is* accurate.
87119         Eliminate one way canonicalize_filename_mode could exit.
87120         * lib/canonicalize.c (canonicalize_filename_mode):
87121         Use mreadlink_with_size, not xreadlink_with_size.
87123 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
87125         Detect porting problems to FreeBSD/arm, which has time_t wider than
87126         long int.  Original problem reported for GNU diff by Xin Li in
87127         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
87128         * modules/getdate (Depends-on): Add intprops, verify.
87129         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
87130         is an integer type no wider than long int.
87132 2007-06-18  Jim Meyering  <jim@meyering.net>
87134         New module: mreadlink-with-size.
87135         * MODULES.html.sh: Add mreadlink-with-size.
87136         * modules/mreadlink-with-size: New module
87137         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
87138         not xreadlink-with-size.
87139         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
87141 2007-06-16  Bruno Haible  <bruno@clisp.org>
87143         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
87144         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
87145         Reported by Gary V. Vaughan <gary@gnu.org>.
87147 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
87149         Revamp lchown so that it lives in unistd.h where it belongs.
87150         * lib/lchown.h: Remove.
87151         * lib/dirchownmod.c: Don't include lib/lchown.h.
87152         * lib/fchownat.c: Likewise.
87153         * lib/openat.c: Likewise.
87154         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
87155         does not follow symlinks.
87156         (EOPNOTSUPP): Define if not defined.
87157         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
87158         is defined to 0.
87159         (lchown): New decl.
87160         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
87161         Do not check for lchown decl.
87162         Set REPLACE_LCHOWN.
87163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
87164         REPLACE_LCHOWN.
87165         * modules/chown: Make it clear it follows symlinks.
87166         * modules/lchown: Make it clear it doesn't follow symlinks.
87167         (Files): Remove lib/lchown.h
87168         (Depends-on): Add unistd.
87169         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
87170         (Include): Include <unistd.h>, not "lchown.h".
87171         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
87172         REPLACE_LCHOWN.
87174 2007-06-15  Jim Meyering  <jim@meyering.net>
87176         Change license (GPL to LGPL) of fsusage and dependents.
87177         * modules/fsusage (License): Change to LGPL.
87178         * modules/full-read (License): Likewise.
87179         * modules/full-write (License): Likewise.
87180         * modules/safe-read (License): Likewise.
87181         * modules/safe-write (License): Likewise.
87183 2007-06-14  Ben Pfaff  <blp@gnu.org>
87185         Missing part of allocsa -> malloca transition.
87186         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
87187         gl_MALLOCA.
87189 2007-06-12  Bruno Haible  <bruno@clisp.org>
87191         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
87192         to ia64, x86_64, i386.
87193         Reported by Eric Blake.
87195 2007-06-12  Bruno Haible  <bruno@clisp.org>
87197         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
87198         cross-compiling to x86_64.
87200 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
87202         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
87203         glitch reported by Ralf Wildenhues in
87204         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
87206         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
87207         Vin Shelton.
87209 2007-06-11  Bruno Haible  <bruno@clisp.org>
87211         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
87212         replacement string.
87213         Reported by Eric Blake.
87215 2007-06-10  Bruno Haible  <bruno@clisp.org>
87217         Prepare vasnprintf code for use with Unicode strings.
87218         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
87219         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
87220         TYPE_U32_STRING.
87221         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
87222         a_u32_string variants.
87223         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87224         * lib/printf-args.c: Don't include config.h and the specification
87225         header if PRINTF_FETCHARGS is already defined.
87226         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87227         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
87228         TYPE_U16_STRING, TYPE_U32_STRING.
87229         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
87230         u16_directive, u16_directives, u32_directive, u32_directives): New
87231         types.
87232         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
87233         New declarations.
87234         * lib/printf-parse.c: Don't include config.h and the specification
87235         header if PRINTF_PARSE is already defined. Eliminate the set of
87236         parameters for WIDE_CHAR_VERSION; the user of this file must provide
87237         them now. Include c-ctype.h.
87238         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
87239         directive and CHAR_T_ONLY_ASCII.
87240         * lib/vasnprintf.c: Don't include config.h and the specification header
87241         if VASNPRINTF is already defined.
87242         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
87243         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
87244         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
87245         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
87246         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
87247         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
87248         code accordingly.
87249         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
87250         pad_ourselves also in this case, with the 'c' and 's' directives, and
87251         with a different notion of "width".
87252         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
87254 2007-06-10  Bruno Haible  <bruno@clisp.org>
87256         * modules/unistr/u32-mbsnlen: New file.
87257         * lib/unistr/u32-mbsnlen.c: New file.
87259         * modules/unistr/u16-mbsnlen: New file.
87260         * lib/unistr/u16-mbsnlen.c: New file.
87262         * modules/unistr/u8-mbsnlen: New file.
87263         * lib/unistr/u8-mbsnlen.c: New file.
87265         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
87266         declarations.
87268 2007-06-10  Bruno Haible  <bruno@clisp.org>
87270         * lib/string_.h (mbsnlen): New declaration.
87271         * lib/mbsnlen.c: New file.
87272         * m4/mbsnlen.m4: New file.
87273         * modules/mbsnlen: New file.
87274         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
87275         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
87276         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
87278 2007-06-10  Bruno Haible  <bruno@clisp.org>
87280         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
87282 2007-06-10  Bruno Haible  <bruno@clisp.org>
87284         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
87285         * lib/mbuiter.h: Likewise.
87287 2007-06-10  Bruno Haible  <bruno@clisp.org>
87289         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
87290         declaration.
87292 2007-06-10  Karl Berry  <karl@gnu.org>
87294         * config/srclist.txt: remove gettext entries, Bruno prefers
87295         to update individually.
87297 2007-06-10  Bruno Haible  <bruno@clisp.org>
87299         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
87300         'maxlen'. Ensure only length + width bytes are allocated, not
87301         length + 1 + width.
87303 2007-06-09  Bruno Haible  <bruno@clisp.org>
87305         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
87306         (CHAR_T): Remove macro.
87307         (VASNPRINTF): Update.
87309 2007-06-09  Bruno Haible  <bruno@clisp.org>
87311         * MODULES.html.sh (Unicode string functions): Add the new modules.
87313         * modules/uniconv/u32-conv-to-enc: New file.
87314         * lib/uniconv/u32-conv-to-enc.c: New file.
87315         * modules/uniconv/u32-conv-to-enc-tests: New file.
87316         * tests/uniconv/test-u32-conv-to-enc.c: New file.
87318         * modules/uniconv/u16-conv-to-enc: New file.
87319         * lib/uniconv/u16-conv-to-enc.c: New file.
87320         * lib/uniconv/u-conv-to-enc.h: New file.
87321         * modules/uniconv/u16-conv-to-enc-tests: New file.
87322         * tests/uniconv/test-u16-conv-to-enc.c: New file.
87324         * modules/uniconv/u8-conv-to-enc: New file.
87325         * lib/uniconv/u8-conv-to-enc.c: New file.
87326         * modules/uniconv/u8-conv-to-enc-tests: New file.
87327         * tests/uniconv/test-u8-conv-to-enc.c: New file.
87329         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
87330         u32_conv_to_encoding): New declarations.
87332 2007-06-09  Bruno Haible  <bruno@clisp.org>
87334         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
87336 2007-06-09  Bruno Haible  <bruno@clisp.org>
87338         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
87339         * modules/malloca: Renamed from modules/allocsa, updated.
87340         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
87341         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
87342         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
87343         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
87344         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
87345         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
87346         * modules/xmalloca: Renamed from modules/xallocsa, updated.
87347         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
87348         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
87349         * modules/c-strcasestr (Depends-on): Update.
87350         * lib/c-strcasestr.c: Update.
87351         * modules/c-strstr (Depends-on): Update.
87352         * lib/c-strstr.c: Update.
87353         * modules/canonicalize-lgpl (Depends-on): Update.
87354         * lib/canonicalize-lgpl.c: Update.
87355         * modules/clean-temp (Depends-on): Update.
87356         * lib/clean-temp.c: Update.
87357         * modules/csharpcomp (Depends-on): Update.
87358         * lib/csharpcomp.c: Update.
87359         * modules/csharpexec (Depends-on): Update.
87360         * lib/csharpexec.c: Update.
87361         * modules/javacomp (Depends-on): Update.
87362         * lib/javacomp.c: Update.
87363         * modules/javaexec (Depends-on): Update.
87364         * lib/javaexec.c: Update.
87365         * modules/mbscasestr (Depends-on): Update.
87366         * lib/mbscasestr.c: Update.
87367         * modules/mbsstr (Depends-on): Update.
87368         * lib/mbsstr.c: Update.
87369         * modules/setenv (Depends-on): Update.
87370         * lib/setenv.c: Update.
87371         * modules/strcasestr (Depends-on): Update.
87372         * lib/strcasestr.c: Update.
87373         * modules/striconveha (Depends-on): Update.
87374         * lib/striconveha.c: Update.
87375         * modules/relocatable-prog-wrapper (Files): Update.
87376         * lib/relocwrapper.c: Update.
87377         * build-aux/install-reloc: Update.
87378         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
87380 2007-06-08  Bruno Haible  <bruno@clisp.org>
87382         Port to uClibc.
87383         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
87384         * lib/fpurge.c (fpurge): Likewise.
87385         * lib/freading.c (freading): Likewise.
87386         * lib/fseeko.c (rpl_fseeko): Likewise.
87387         * lib/fseterr.c (fseterr): Likewise.
87388         * lib/fwriting.c (fwriting): Likewise.
87389         * tests/test-fflush.c (main): Avoid a failure on uClibc.
87391 2007-06-08  Bruno Haible  <bruno@clisp.org>
87393         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
87394         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
87395         * modules/gettext (Files): Add m4/intlmacosx.m4.
87397 2007-06-07  Bruno Haible  <bruno@clisp.org>
87399         * modules/localename-tests: New file.
87400         * tests/test-localename.c: New file.
87402         New module 'localename'.
87403         * lib/localename.h: New file.
87404         * lib/localename.c: New file, from GNU gettext.
87405         * m4/localename.m4: New file.
87406         * modules/localename: New file.
87408 2007-06-07  Bruno Haible  <bruno@clisp.org>
87410         Work around the lack of <wchar.h> on some builds of uClibc.
87411         * doc/headers/wchar.texi: Update.
87412         * lib/wchar_.h: Include <wchar.h> only if it exists.
87413         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
87414         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
87415         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
87416         doesn't exist.
87417         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
87418         * modules/mbfile (Depends-on): Add wchar.
87419         * modules/mbiter (Depends-on): Likewise.
87420         * modules/mbuiter (Depends-on): Likewise.
87421         Reported by Simon Josefsson.
87423 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87425         Work around problem reported by Steven M. Schweda in
87426         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
87427         Tru64 5.1B with the Compaq compiler environment installed declares
87428         an 'isblank' function but does not define it in the C library.
87429         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
87430         * lib/regex_internal.h (isblank): Likewise.
87431         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
87432         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
87434 2007-06-05  Bruno Haible  <bruno@clisp.org>
87436         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
87437         ia64.
87438         * modules/printf-safe: New file.
87439         * modules/fprintf-posix (Depends-on): Add printf-safe.
87440         * modules/printf-posix (Depends-on): Likewise.
87441         * modules/snprintf-posix (Depends-on): Likewise.
87442         * modules/sprintf-posix (Depends-on): Likewise.
87443         * modules/vasnprintf-posix (Depends-on): Likewise.
87444         * modules/vasprintf-posix (Depends-on): Likewise.
87445         * modules/vfprintf-posix (Depends-on): Likewise.
87446         * modules/vprintf-posix (Depends-on): Likewise.
87447         * modules/vsnprintf-posix (Depends-on): Likewise.
87448         * modules/vsprintf-posix (Depends-on): Likewise.
87449         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
87450         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
87451         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
87452         "no" on i386, x86_64, ia64.
87453         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
87454         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87455         on i386, x86_64, ia64.
87456         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
87457         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87458         on i386, x86_64, ia64.
87459         * tests/test-vasnprintf-posix.c: Include float.h.
87460         (LDBL80_WORDS): New macro.
87461         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87462         on i386, x86_64, ia64.
87463         * tests/test-vasprintf-posix.c: Include float.h.
87464         (LDBL80_WORDS): New macro.
87465         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
87466         on i386, x86_64, ia64.
87467         * tests/test-snprintf-posix.c: Include float.h.
87468         * tests/test-sprintf-posix.c: Likewise.
87469         * tests/test-vsnprintf-posix.c: Likewise.
87470         * tests/test-vsprintf-posix.c: Likewise.
87472 2007-06-05  Bruno Haible  <bruno@clisp.org>
87474         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
87475         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
87476         non-IEEE numbers on i386, x86_64, ia64.
87477         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
87478         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
87479         * tests/test-isnanl.h: Include float.h.
87480         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
87482 2007-06-05  Bruno Haible  <bruno@clisp.org>
87484         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
87485         also the %a / %A. Handle the %a / %A code before this extra handling.
87487 2007-06-05  Bruno Haible  <bruno@clisp.org>
87489         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
87490         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
87492 2007-06-05  Bruno Haible  <bruno@clisp.org>
87494         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
87495         typo in variable name.
87497 2007-06-05  Eric Blake  <ebb9@byu.net>
87499         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
87500         Reported by Simon Josefsson.
87502 2007-06-04  Bruno Haible  <bruno@clisp.org>
87504         Avoid test failures on some PowerPC platforms.
87505         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
87506         Define differently for PowerPC.
87507         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
87508         Reported by Gary V. Vaughan <gary@gnu.org>.
87510 2007-06-02  Bruno Haible  <bruno@clisp.org>
87512         Fix test-stdint failure on FreeBSD/ia64.
87513         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
87514         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
87515         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
87516         * doc/headers/stdint.texi: Update.
87518 2007-06-01  Bruno Haible  <bruno@clisp.org>
87520         * tests/test-binary-io.c (main): Pass a third argument to open().
87521         Reported by Gary V. Vaughan <gary@gnu.org>.
87523 2007-06-01  Bruno Haible  <bruno@clisp.org>
87525         * doc/functions/frexpl.texi: Update for mingw.
87527 2007-06-01  Bruno Haible  <bruno@clisp.org>
87529         * tests/test-lseek.c (main): Disable test of errno for invalid third
87530         argument.
87531         * doc/functions/lseek.texi: Update.
87532         Reported by Gary V. Vaughan <gary@gnu.org>.
87534 2007-05-28  Bruno Haible  <bruno@clisp.org>
87536         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
87538 2007-05-31  Eric Blake  <ebb9@byu.net>
87540         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
87541         cross compiling.
87543 2007-05-30  Eric Blake  <ebb9@byu.net>
87544         and Bruno Haible  <bruno@clisp.org>
87546         Work around mingw test failures exposed by m4-1.4.9b.
87547         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
87548         * tests/test-unistd.c: Disable uid_t and git_t tests for the
87549         moment.
87551 2007-05-30  Bruno Haible  <bruno@clisp.org>
87553         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
87554         assuming that they are closed. Needed on HP-UX 11.
87556 2007-05-29  Bruno Haible  <bruno@clisp.org>
87558         Fix a problem with #include_next.
87559         * lib/dirent_.h: Split the double-inclusion guard.
87560         * lib/fcntl_.h: Likewise.
87561         * lib/float_.h: Likewise.
87562         * lib/iconv_.h: Likewise.
87563         * lib/inttypes_.h: Likewise.
87564         * lib/locale_.h: Likewise.
87565         * lib/math_.h: Likewise.
87566         * lib/netinet_in_.h: Likewise.
87567         * lib/search_.h: Likewise.
87568         * lib/signal_.h: Likewise.
87569         * lib/stdint_.h: Likewise.
87570         * lib/stdio_.h: Likewise.
87571         * lib/stdlib_.h: Likewise.
87572         * lib/string_.h: Likewise.
87573         * lib/sys_select_.h: Likewise.
87574         * lib/sys_socket_.h: Likewise.
87575         * lib/sys_stat_.h: Likewise.
87576         * lib/sys_time_.h: Likewise.
87577         * lib/sysexits_.h: Likewise.
87578         * lib/time_.h: Likewise.
87579         * lib/unistd_.h: Likewise.
87580         * lib/wchar_.h: Likewise.
87581         * lib/wctype_.h: Likewise.
87583 2007-05-29  Bruno Haible  <bruno@clisp.org>
87585         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
87586         for the moment.
87588 2007-05-29  Bruno Haible  <bruno@clisp.org>
87590         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
87591         invocation.
87592         Reported by Eric Blake.
87594 2007-05-29  Bruno Haible  <bruno@clisp.org>
87596         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
87597         compiling case.
87599 2007-05-29  Eric Blake  <ebb9@byu.net>
87600             Bruno Haible  <bruno@clisp.org>
87602         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
87603         cross compiles.
87605 2007-05-28  Eric Blake  <ebb9@byu.net>
87607         * modules/closein-tests (test_closein_LDADD): Support test on
87608         cygwin with libtool.
87610 2007-05-28  Bruno Haible  <bruno@clisp.org>
87612         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
87613         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
87614         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
87615         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
87616         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
87617         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
87618         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
87619         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
87620         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
87622 2007-05-28  Eric Blake  <ebb9@byu.net>
87624         Unconditionally include <config.h> in unit tests.
87625         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
87626         * tests/test-allocsa.c, tests/test-arcfour.c,
87627         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
87628         tests/test-array_list.c, tests/test-array_oset.c,
87629         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
87630         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
87631         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
87632         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
87633         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
87634         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
87635         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
87636         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
87637         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
87638         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
87639         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
87640         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
87641         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
87642         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
87643         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
87644         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
87645         test-md5.c, test-memmem.c, test-printf-posix.c,
87646         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
87647         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
87648         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
87649         test-strcasestr.c, test-striconv.c, test-striconveh.c,
87650         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
87651         test-vasnprintf-posix2.c, test-vasnprintf.c,
87652         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
87653         test-vfprintf-posix.c, test-vprintf-posix.c,
87654         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
87655         test-xvasprintf.c: Likewise.
87657 2007-05-28  Bruno Haible  <bruno@clisp.org>
87659         * gnulib-tool (func_import): Remember the --with-tests command-line
87660         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
87661         Reported by Eric Blake.
87663 2007-05-28  Bruno Haible  <bruno@clisp.org>
87665         * modules/ftell-tests: New file.
87666         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
87667         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
87669         * lib/ftell.c: New file.
87670         * modules/ftell: New file.
87671         * m4/ftell.m4: New file.
87672         * doc/functions/ftell.texi: Update.
87673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
87674         REPLACE_FTELL.
87675         * lib/stdio_.h (rpl_ftell): New declaration.
87676         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
87677         REPLACE_FTELL.
87679 2007-05-28  Eric Blake  <ebb9@byu.net>
87681         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
87683 2007-05-28  Bruno Haible  <bruno@clisp.org>
87685         * modules/fseek-tests: New file.
87686         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
87687         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
87689         * lib/fseek.c: New file.
87690         * modules/fseek: New file.
87691         * m4/fseek.m4: New file.
87692         * doc/functions/fseek.texi: Update.
87693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
87694         REPLACE_FSEEK.
87695         * lib/stdio_.h (rpl_fseek): New declaration.
87696         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
87697         REPLACE_FSEEK.
87699 2007-05-28  Bruno Haible  <bruno@clisp.org>
87701         * lib/stdio_.h (fflush): More comments.
87703 2007-05-28  Bruno Haible  <bruno@clisp.org>
87705         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
87706         runtime test.
87708 2007-05-28  Eric Blake  <ebb9@byu.net>
87710         Improve lseek module.
87711         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
87712         * lib/unistd_.h (lseek): Scale back link warning message.
87713         * tests/test-lseek.c: Beef up test.
87714         * tests/test-lseek.sh: Exercise more facets of lseek.
87715         Reported by Bruno Haible.
87717 2007-05-28  Bruno Haible  <bruno@clisp.org>
87719         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
87720         to define.
87722 2007-05-27  Bruno Haible  <bruno@clisp.org>
87724         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
87726 2007-05-27  Bruno Haible  <bruno@clisp.org>
87728         * modules/openmp: New file.
87729         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
87730         Noah Misch.
87732 2007-05-26  Bruno Haible  <bruno@clisp.org>
87734         * modules/chdir-long (Depends-on): Add fchdir.
87735         * modules/chdir-safer (Depends-on): Likewise.
87736         * modules/fts (Depends-on): Likewise.
87737         * modules/fts-lgpl (Depends-on): Likewise.
87738         * modules/openat (Depends-on): Likewise.
87739         * modules/savewd (Depends-on): Likewise.
87741 2007-05-24  Eric Blake  <ebb9@byu.net>
87743         Fix lseek on mingw.
87744         * modules/lseek: New module.
87745         * m4/lseek.m4: New file.
87746         * lib/lseek.c: New file.
87747         * modules/lseek-tests: New file.
87748         * tests/test-lseek.c: New file.
87749         * tests/test-lseek.sh: New file.
87750         * MODULES.html.sh: Document lseek module.
87751         * modules/fflush (Depends-on): Add lseek, fseeko.
87752         * modules/fseeko (Depends-on): Likewise.
87753         * modules/ftello (Depends-on): Likewise.
87754         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
87755         broken.
87756         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
87757         broken.
87758         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
87759         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
87760         * lib/ftello.c (rpl_ftello): Likewise.
87761         * tests/test-fseeko.c (main): Test this.
87762         * tests/test-fseeko.sh: Likewise.
87763         * tests/test-ftello.c (main): Likewise.
87764         * tests/test-ftello.sh: Likewise.
87765         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
87766         implies replacing fseek.
87767         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
87768         HAVE_FTELLO.
87769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
87770         * modules/unistd (Makefile.am): Likewise.
87771         * lib/unistd_.h (lseek): Declare a replacement.
87772         * doc/functions/lseek.texi (lseek): Document this fix.
87773         * doc/functions/fseek.texi (fseek): Likewise.
87774         * doc/functions/ftell.texi (ftell): Likewise.
87776 2007-05-24  Bruno Haible  <bruno@clisp.org>
87778         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
87779         in the printed representation of a NaN.
87780         * tests/test-vasprintf-posix.c (test_function): Likewise.
87781         * tests/test-snprintf-posix.h (test_function): Likewise.
87782         * tests/test-sprintf-posix.h (test_function): Likewise.
87783         Reported by Eric Blake.
87785 2007-05-23  Eric Blake  <ebb9@byu.net>
87787         Fix fseeko/ftello on cygwin 1.5.24.
87788         * doc/functions/fseeko.texi (fseeko): Document the fix.
87789         * doc/functions/ftello.texi (ftello): Document the fix.
87790         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
87791         * doc/functions/stdout.text (stdout): New file.
87792         * doc/functions/stderr.text (stderr): New file.
87793         * doc/gnulib.texi (Function Substitutes): Use new files.
87794         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
87795         prior to 1.7.0.
87796         * tests/test-ftello.c (main): Likewise for ftello.
87797         * tests/test-fseeko.sh: New file.
87798         * tests/test-ftello.sh: New file.
87799         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
87800         with seekable stdin.
87801         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
87802         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
87803         (gl_REPLACE_FSEEKO): New macro.
87804         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
87805         * modules/fseeko (Files): Distribute fseeko.c.
87806         * modules/ftello (Files): Distribute ftello.c.
87807         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
87808         mode.
87809         * lib/ftello.c (rpl_ftello): New file.
87810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
87811         fseeko, ftello.
87812         (gl_STDIN_LARGE_OFFSET): New macro.
87813         * modules/stdio (Makefile.am): Perform the replacement.
87814         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
87816 2007-05-23  Bruno Haible  <bruno@clisp.org>
87818         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
87819         GNULIB_POSIXCHECK is defined.
87821 2007-05-21  Bruno Haible  <bruno@clisp.org>
87823         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
87824         Check also the output for NaN arguments. When cross-compiling, guess
87825         no on IRIX.
87826         * lib/vasnprintf.c: Update comments.
87827         * tests/test-vasnprintf-posix.c (strisnan): New function.
87828         (test_function): Use it.
87829         * tests/test-vasprintf-posix.c (strisnan): New function.
87830         (test_function): Use it.
87831         * tests/test-snprintf-posix.h (strisnan): New function.
87832         (test_function): Use it.
87833         * tests/test-sprintf-posix.h (strisnan): New function.
87834         (test_function): Use it.
87835         Reported by Eric Blake.
87837 2007-05-20  Bruno Haible  <bruno@clisp.org>
87839         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
87840         numbers that fails on BeOS.
87841         * doc/functions/frexpl.texi: Update.
87843 2007-05-20  Jim Meyering  <jim@meyering.net>
87845         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
87846         forced upon us by glibc-2.6.
87848 2007-05-20  Bruno Haible  <bruno@clisp.org>
87850         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
87851         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
87852         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
87853         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
87854         NEED_PRINTF_INFINITE.
87855         (is_infinitel): New function.
87856         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
87857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
87858         gl_PREREQ_VASNPRINTF_INFINITE.
87859         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
87860         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
87861         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
87862         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
87863         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
87864         gl_PREREQ_VASNPRINTF_INFINITE.
87865         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
87866         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87867         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87868         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87869         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87870         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87871         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87872         * doc/functions/fprintf.texi: Update.
87873         * doc/functions/printf.texi: Update.
87874         * doc/functions/snprintf.texi: Update.
87875         * doc/functions/sprintf.texi: Update.
87876         * doc/functions/vfprintf.texi: Update.
87877         * doc/functions/vprintf.texi: Update.
87878         * doc/functions/vsnprintf.texi: Update.
87879         * doc/functions/vsprintf.texi: Update.
87881 2007-05-20  Bruno Haible  <bruno@clisp.org>
87883         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
87884         was not found in libc.
87885         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
87887 2007-05-20  Bruno Haible  <bruno@clisp.org>
87889         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
87890         printed as "-nan" instead of "nan".
87891         * tests/test-vasprintf-posix.c (test_function): Likewise.
87892         * tests/test-snprintf-posix.h (test_function): Likewise.
87893         * tests/test-sprintf-posix.h (test_function): Likewise.
87894         Needed for HP-UX 11.
87896 2007-05-20  Jim Meyering  <jim@meyering.net>
87898         Fix buggy test for the fchownat-deref bug.
87899         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
87900         symlink required for the run-test.  Without it, this test would
87901         always declare that fchownat doesn't work, and client code would
87902         unnecessarily use the replacement function with fixed libc.
87903         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
87904         Reported by Greg Schafer.
87906 2007-05-19  Bruno Haible  <bruno@clisp.org>
87908         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
87909         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
87910         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
87911         Needed for IRIX 6.5 and Solaris 2.5.1.
87913 2007-05-19  Bruno Haible  <bruno@clisp.org>
87915         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
87916         (test_function): Skip tests involving -0.0 on platforms where
87917         -0.0 = 0.0.
87918         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
87919         (test_function): Skip tests involving -0.0 on platforms where
87920         -0.0 = 0.0.
87921         * tests/test-snprintf-posix.h (have_minus_zero): New function.
87922         (test_function): Skip tests involving -0.0 on platforms where
87923         -0.0 = 0.0.
87924         * tests/test-sprintf-posix.h (have_minus_zero): New function.
87925         (test_function): Skip tests involving -0.0 on platforms where
87926         -0.0 = 0.0.
87927         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
87928         tests.
87929         * tests/test-printf-posix.h (test_function): Likewise.
87930         * tests/test-printf-posix.output: Remove all -0.0 related results.
87931         Needed for IRIX 6.5.
87933 2007-05-19  Bruno Haible  <bruno@clisp.org>
87935         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
87936         printed as "nan0x7fffffff" instead of "nan".
87937         * tests/test-vasprintf-posix.c (test_function): Likewise.
87938         * tests/test-snprintf-posix.h (test_function): Likewise.
87939         * tests/test-sprintf-posix.h (test_function): Likewise.
87940         * tests/test-fprintf-posix.h (NaN): Remove macro.
87941         (test_function): Remove all NaN related tests.
87942         * tests/test-printf-posix.h (NaN): Remove macro.
87943         (test_function): Remove all NaN related tests.
87944         * tests/test-printf-posix.output: Remove all NaN related results.
87945         Needed for IRIX 6.5.
87947 2007-05-19  Bruno Haible  <bruno@clisp.org>
87949         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
87950         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
87952 2007-05-19  Bruno Haible  <bruno@clisp.org>
87954         * lib/float_.h: New file.
87955         * m4/float_h.m4: New file.
87956         * modules/float: New file.
87957         * modules/isnanl (Dependencies): Add float.
87958         * modules/isnanl-nolibm (Dependencies): Likewise.
87959         * modules/mathl (Dependencies): Likewise.
87960         * modules/printf-frexpl (Dependencies): Likewise.
87961         * modules/signbit (Dependencies): Likewise.
87962         * modules/vasnprintf (Dependencies): Likewise.
87963         * doc/headers/float.texi: Update.
87965 2007-05-19  Jim Meyering  <jim@meyering.net>
87967         * lib/utimens.c (gl_futimens): Rename from futimens,
87968         now that glibc-2.6 declares futimens.
87969         * lib/utimens.h: Likewise.
87971 2007-05-19  Bruno Haible  <bruno@clisp.org>
87973         Avoid test failures on mingw.
87974         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
87975         * tests/test-printf-posix.sh: Likewise.
87976         * tests/test-vfprintf-posix.sh: Likewise.
87977         * tests/test-vprintf-posix.sh: Likewise.
87979 2007-05-19  Bruno Haible  <bruno@clisp.org>
87981         Fix *printf result for NaN, Inf, -0.0 on mingw.
87982         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
87983         * lib/vasnprintf.c: Include math.h and isnan.h.
87984         (is_infinite_or_zero): New function.
87985         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
87986         values in the %f, %F, %e, %E, %g, %G directives.
87987         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
87988         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
87989         gl_PRINTF_INFINITE and test its result. Invoke
87990         gl_PREREQ_VASNPRINTF_INFINITE.
87991         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
87992         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87993         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87994         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87995         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87996         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87997         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87998         * doc/functions/fprintf.texi: Update.
87999         * doc/functions/printf.texi: Update.
88000         * doc/functions/snprintf.texi: Update.
88001         * doc/functions/sprintf.texi: Update.
88002         * doc/functions/vfprintf.texi: Update.
88003         * doc/functions/vprintf.texi: Update.
88004         * doc/functions/vsnprintf.texi: Update.
88005         * doc/functions/vsprintf.texi: Update.
88007 2007-05-19  Bruno Haible  <bruno@clisp.org>
88009         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
88010         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
88011         Instead of multiplying with 10^k, set extra_zeroes to k.
88012         (scale10_round_long_double): Remove function.
88014 2007-05-18  Bruno Haible  <bruno@clisp.org>
88016         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
88017         introduced on 2007-05-06.
88019 2007-05-18  Bruno Haible  <bruno@clisp.org>
88021         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
88022         %g directives.
88023         * tests/test-vasprintf-posix.c (test_function): Likewise.
88024         * tests/test-snprintf-posix.h (test_function): Likewise.
88025         * tests/test-sprintf-posix.h (test_function): Likewise.
88027 2007-05-18  Bruno Haible  <bruno@clisp.org>
88029         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
88030         (strmatch): New function.
88031         (test_function): Test the %f directive on numbers of various exponents.
88032         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
88033         (strmatch): New function.
88034         (test_function): Test the %f directive on numbers of various exponents.
88035         * tests/test-snprintf-posix.h (strmatch): New function.
88036         (test_function): Test the %f directive on numbers of various exponents.
88037         * tests/test-sprintf-posix.h (strmatch): New function.
88038         (test_function): Test the %f directive on numbers of various exponents.
88039         * tests/test-snprintf-posix.c (SIZEOF): New macro.
88040         * tests/test-sprintf-posix.c (SIZEOF): New macro.
88041         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
88042         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
88044 2007-05-18  Bruno Haible  <bruno@clisp.org>
88046         Add support for 'long double' number output.
88047         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
88048         * lib/vasnprintf.c: Include math.h and float+.h.
88049         (mp_limb_t): New type.
88050         (GMP_LIMB_BITS): New macro.
88051         (mp_twolimb_t): New type.
88052         (GMP_TWOLIMB_BITS): New macro.
88053         (mpn_t): New type.
88054         (multiply, divide, convert_to_decimal, decode_long_double,
88055         scale10_round_long_double, scale10_round_decimal_long_double,
88056         floorlog10l): New functions.
88057         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
88058         for the %f, %F, %e, %E, %g, %G directives.
88059         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
88060         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88061         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
88062         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
88063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88064         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88065         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88066         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88067         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88068         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88069         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88070         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
88071         * modules/snprintf-posix (Depends-on): Likewise.
88072         * modules/sprintf-posix (Depends-on): Likewise.
88073         * modules/vasnprintf-posix (Depends-on): Likewise.
88074         * modules/vasprintf-posix (Depends-on): Likewise.
88075         * modules/vfprintf-posix (Depends-on): Likewise.
88076         * modules/vsnprintf-posix (Depends-on): Likewise.
88077         * modules/vsprintf-posix (Depends-on): Likewise.
88078         * modules/vasnprintf (Files): Add lib/float+.h.
88079         * doc/functions/fprintf.texi: Update.
88080         * doc/functions/printf.texi: Update.
88081         * doc/functions/snprintf.texi: Update.
88082         * doc/functions/sprintf.texi: Update.
88083         * doc/functions/vfprintf.texi: Update.
88084         * doc/functions/vprintf.texi: Update.
88085         * doc/functions/vsnprintf.texi: Update.
88086         * doc/functions/vsprintf.texi: Update.
88088 2007-05-18  Bruno Haible  <bruno@clisp.org>
88090         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
88092 2007-05-18  Bruno Haible  <bruno@clisp.org>
88094         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
88095         for printing 64-bit integers. Needed for mingw.
88097 2007-05-18  Bruno Haible  <bruno@clisp.org>
88099         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
88100         gl_FUNC_FREXPL_WORKS.
88101         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
88103 2007-05-18  Bruno Haible  <bruno@clisp.org>
88105         * modules/frexpl-nolibm-tests: New file.
88107         * modules/frexpl-nolibm: New file.
88108         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
88110 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88112         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
88113         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88114         GCC 4.2, which otherwise issues a lot of warnings.
88115         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
88116         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
88117         Likewise.
88118         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
88119         * modules/iconv_open (iconv.h): Likewise.
88120         * modules/locale (locale.h): Likewise.
88121         * modules/netinet_in (netinet/in.h): Likewise.
88122         * modules/sys_select (sys_select.h): Likewise.
88123         * modules/sys_socket (sys/socket.h): Likewise.
88124         * modules/sys_stat (sys/stat.h): Likewise.
88125         * modules/sysexits (sysexits.h): Likewise.
88126         * modules/unistd (unistd.h): Likewise.
88128 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88130         * modules/closein-tests (Makefile.am): Distribute
88131         `test-closein.sh'.
88133 2007-05-17  Bruno Haible  <bruno@clisp.org>
88135         * tests/test-printf-posix.output: Renamed from
88136         tests/test-fprintf-posix.out.
88137         * modules/fprintf-posix-tests: Update.
88138         * modules/printf-posix-tests: Update.
88139         * modules/vfprintf-posix-tests: Update.
88140         * modules/vprintf-posix-tests: Update.
88141         * tests/test-fprintf-posix.sh: Update.
88142         * tests/test-printf-posix.sh: Update.
88143         * tests/test-vfprintf-posix.sh: Update.
88144         * tests/test-vprintf-posix.sh: Update.
88145         Reported by Ralf Wildenhues.
88147 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88149         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
88150         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88151         GCC 4.2, which otherwise issues a lot of warnings.
88152         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
88153         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
88154         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
88155         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
88156         it should no longer be needed.
88157         * lib/string_.h: Likewise.
88158         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
88159         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
88160         * modules/inttypes (inttypes.h): Likewise.
88161         * modules/math (math.h): Likewise.
88162         * modules/search (search.h): Likewise.
88163         * modules/signal (signal.h): Likewise.
88164         * modules/stdint (stdint.h): Likewise.
88165         * modules/stdio (stdio.h): Likewise.
88166         * modules/stdlib (stdlib.h): Likewise.
88167         * modules/string (string.h): Likewise.
88168         * modules/sys_time (sys/time.h): Likewise.
88169         * modules/time (time.h): Likewise.
88170         * modules/wchar (wchar.h): Likewise.
88171         * modules/wctype (wtype.h): Likewise.
88173 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
88175         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
88177 2007-05-13  Bruno Haible  <bruno@clisp.org>
88179         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
88180         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
88181         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
88182         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
88183         (gl_PREREQ_STRTOK_R): Don't require it here.
88185 2007-05-13  Bruno Haible  <bruno@clisp.org>
88187         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
88188         when used in C++ mode.
88190 2007-05-12  Bruno Haible  <bruno@clisp.org>
88192         * lib/linebuffer.h: Tweak doc.
88193         * lib/linebuffer.c: Likewise.
88195 2007-05-12  James Youngman  <jay@gnu.org>
88197         * lib/linebuffer.c (readlinebuffer_delim): New function,
88198         like readlinebuffer, but use a caller-specified delimiter.
88199         (readlinebuffer): Just call readlinebuffer_delim with '\n'
88200         as the delimiter.
88201         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
88203 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
88205         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
88206         * modules/openat (Files): Remove openat-die.c.
88207         (Depends-on): Add openat-die.
88208         * modules/openat-die: New module.
88210 2007-05-06  Bruno Haible  <bruno@clisp.org>
88212         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
88213         Update with info about Cygwin.
88214         * doc/functions/fprintf.texi: Update.
88215         * doc/functions/printf.texi: Update.
88216         * doc/functions/snprintf.texi: Update.
88217         * doc/functions/sprintf.texi: Update.
88218         * doc/functions/vfprintf.texi: Update.
88219         * doc/functions/vprintf.texi: Update.
88220         * doc/functions/vsnprintf.texi: Update.
88221         * doc/functions/vsprintf.texi: Update.
88222         Reported by Eric Blake.
88224 2007-05-06  Bruno Haible  <bruno@clisp.org>
88226         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
88227         padding ourselves for the floating-point directives.
88228         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
88229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
88230         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88231         gl_PRINTF_FLAG_ZERO and test its result. Invoke
88232         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
88233         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88234         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88235         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88236         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88237         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88240         * tests/test-snprintf-posix.h (test_function): Also check the width
88241         and some flags in the %f directive.
88242         * tests/test-sprintf-posix.h (test_function): Likewise.
88243         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88244         * tests/test-vasprintf-posix.c (test_function): Likewise.
88245         * doc/functions/fprintf.texi: Update.
88246         * doc/functions/printf.texi: Update.
88247         * doc/functions/snprintf.texi: Update.
88248         * doc/functions/sprintf.texi: Update.
88249         * doc/functions/vfprintf.texi: Update.
88250         * doc/functions/vprintf.texi: Update.
88251         * doc/functions/vsnprintf.texi: Update.
88252         * doc/functions/vsprintf.texi: Update.
88254 2007-05-06  Bruno Haible  <bruno@clisp.org>
88256         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
88257         pass the ' flag character to sprintf or snprintf.
88258         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
88259         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
88260         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88261         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
88262         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
88263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88264         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88265         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88266         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88267         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88269         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88270         * tests/test-snprintf-posix.h (test_function): Also check the grouping
88271         flag.
88272         * tests/test-sprintf-posix.h (test_function): Likewise.
88273         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88274         * tests/test-vasprintf-posix.c (test_function): Likewise.
88275         * doc/functions/fprintf.texi: Update.
88276         * doc/functions/printf.texi: Update.
88277         * doc/functions/snprintf.texi: Update.
88278         * doc/functions/sprintf.texi: Update.
88279         * doc/functions/vfprintf.texi: Update.
88280         * doc/functions/vprintf.texi: Update.
88281         * doc/functions/vsnprintf.texi: Update.
88282         * doc/functions/vsprintf.texi: Update.
88284 2007-05-01  Bruno Haible  <bruno@clisp.org>
88286         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
88288 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
88290         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
88291         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
88293 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
88295         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
88296         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
88297         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
88299 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
88301         * lib/argp-help.c (struct hol_entry): New member `ord'.
88302         (HOL_ENTRY_PTRCMP): Use ord for comparison
88303         (hol_sort): Initialize ord.
88305 2007-05-01  Bruno Haible  <bruno@clisp.org>
88307         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
88308         Reported by Eric Blake.
88309         * doc/gnulib.texi (Function Substitutes): Update.
88311 2007-05-01  Bruno Haible  <bruno@clisp.org>
88313         * doc/functions.texi: Remove file, now redundant through
88314         doc/functions/*.texi.
88316 2007-05-01  Bruno Haible  <bruno@clisp.org>
88318         * modules/argp (Depends-on): Add sleep.
88320 2007-05-01  Bruno Haible  <bruno@clisp.org>
88322         * modules/sleep-tests: New file.
88323         * tests/test-sleep.c: New file.
88325         * modules/sleep: New file.
88326         * lib/sleep.c: New file.
88327         * m4/sleep.m4: New file.
88328         * lib/unistd_.h (sleep): New declaration.
88329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
88330         HAVE_SLEEP.
88331         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
88332         * doc/functions/sleep.texi: Document the sleep module.
88334 2007-05-01  Bruno Haible  <bruno@clisp.org>
88336         * lib/sigprocmask.h: Remove file.
88337         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
88338         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
88339         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
88340         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
88341         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
88342         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
88343         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
88344         HAVE_SIGSET_T as a shell variable.
88345         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
88346         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
88347         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
88348         (Depends-on): Add signal. Remove verify.
88349         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
88350         (Include): Mention <signal.h> instead of sigprocmask.h.
88351         * NEWS: Mention the change.
88352         * lib/fatal-signal.c: Don't include sigprocmask.h.
88354 2007-05-01  Bruno Haible  <bruno@clisp.org>
88356         * modules/signal: New file.
88357         * lib/signal_.h: New file.
88358         * m4/signal_h.m4: New file.
88360 2007-05-01  Bruno Haible  <bruno@clisp.org>
88362         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
88363         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
88364         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
88365         HAVE_WCTYPE_CTMP_BUG into wctype.h.
88367 2007-05-01  Bruno Haible  <bruno@clisp.org>
88369         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
88370         configure time.
88371         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
88372         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
88373         * modules/sys_stat (Makefile.am): Substitute their values into
88374         sys/stat.h.
88376 2007-05-01  Bruno Haible  <bruno@clisp.org>
88378         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
88379         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
88380         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
88382 2007-05-01  Bruno Haible  <bruno@clisp.org>
88384         * doc/header/assert.texi: Undo last change: don't mention the gnulib
88385         'assert' module here.
88387 2007-05-01  Bruno Haible  <bruno@clisp.org>
88389         * doc/functions/*.texi: New files.
88390         * doc/functions/google-ranking.txt: New file.
88391         * doc/gnulib.texi (Function Substitutes): New chapter.
88392         (ctime, inet_ntoa): Remove sections.
88393         * doc/ctime.texi: Remove file.
88394         * doc/inet_ntoa.texi: Remove file.
88395         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
88396         dependencies.
88397         (%.info): New rule, specifying a --reference-limit.
88399 2007-05-01  Bruno Haible  <bruno@clisp.org>
88401         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
88403 2007-05-01  Bruno Haible  <bruno@clisp.org>
88405         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
88406         the portability of 'mkdir' to mingw systems.
88408 2007-05-01  Bruno Haible  <bruno@clisp.org>
88410         * doc/headers/google-ranking.txt: New file.
88412 2007-04-30  Eric Blake  <ebb9@byu.net>
88414         Prefer fseeko to fseek.
88415         * modules/getpass (Depends-on): Add fseeko.
88416         * lib/getpass.c (getpass): Use fseeko, not fseek.
88418 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
88420         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
88421         assumes the sorting is stable, while most qsort implementations
88422         are not.  Use argument addresses to ensure they never compare as
88423         equal.
88425         * tests/test-argp-2.sh (usage-indent test): Fix output
88426         (func_compare): Restore diff options
88427         * tests/test-argp.c: Restore #include "progname.h"
88429 2007-04-29  Bruno Haible  <bruno@clisp.org>
88431         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
88432         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88433         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
88434         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88435         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
88436         (configure.ac): Define CHECK_SNPRINTF_POSIX.
88437         (TESTS, check_PROGRAMS): Add test-snprintf.
88438         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
88439         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
88440         (TESTS, check_PROGRAMS): Add test-vsnprintf.
88441         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
88442         assertions that fail on HP-UX, OSF/1, or IRIX.
88443         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
88445 2007-04-29  Bruno Haible  <bruno@clisp.org>
88447         * MODULES.html.sh (posix_functions): Remove 'contents'.
88449 2007-04-29  Karl Berry  <karl@gnu.org>
88451         * config/srclist.txt (gendocs_template_min): new entry.
88453 2007-04-29  Bruno Haible  <bruno@clisp.org>
88455         Work around fpurge bug on BSD systems.
88456         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
88457         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
88458         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
88459         fpurge to rpl_fpurge if the system already has this function.
88460         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
88461         the case where the system already has this function. Correct invariants
88462         on BSD systems.
88463         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
88464         BSD systems.
88466 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
88468         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
88469         proposed by Sven Verdoolaege.
88471         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
88472         options.
88473         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
88474         (usage and help tests): Update
88476 2007-04-29  Bruno Haible  <bruno@clisp.org>
88478         * tests/test-fflush.c (main): Use a file of size 17, not 10.
88479         Print more information in case of failure. Disable a test on BeOS.
88481 2007-04-29  Bruno Haible  <bruno@clisp.org>
88483         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
88484         This helps debugging on systems on which no gdb is available.
88486 2007-04-29  Bruno Haible  <bruno@clisp.org>
88488         * lib/freading.h: Improve comments.
88489         * lib/fwriting.h: Likewise.
88490         * tests/test-freading.c (main): Don't check freading immediately after
88491         repositioning. Needed for glibc.
88493 2007-04-29  Bruno Haible  <bruno@clisp.org>
88495         * lib/freading.c (freading): Trivial simplification.
88497 2007-04-28  Bruno Haible  <bruno@clisp.org>
88499         * tests/test-fwriting.c (main): Also test the interaction between
88500         fflush and fwriting.
88501         * modules/fwriting-tests (Depends-on): Add fflush.
88503         * tests/test-freading.c (main): Also test the interaction between
88504         fflush and freading.
88505         * modules/freading-tests (Depends-on): Add fflush.
88507 2007-04-28  Bruno Haible  <bruno@clisp.org>
88509         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
88510         fseeko and ftello.
88511         Suggested by Eric Blake.
88513 2007-04-28  Jim Meyering  <jim@meyering.net>
88515         Avoid false-negative in gl_STDINT_H's C99 conformance test.
88516         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
88517         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
88519 2007-04-27  Eric Blake  <ebb9@byu.net>
88521         * doc/headers/assert.texi (assert.h): Document assert module use.
88523 2007-04-27  Bruno Haible  <bruno@clisp.org>
88525         * doc/headers/*.texi: New files.
88526         * doc/gnulib.texi (Header File Substitutes): New chapter.
88527         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
88528         dependencies.
88529         (standards.info ,standards.html, standards.dvi): Update dependencies.
88530         (mostlyclean, clean): New targets.
88532 2007-04-27  Bruno Haible  <bruno@clisp.org>
88534         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
88535         * modules/sysexits (Files, Makefile.am): Update.
88537         * lib/sys_socket_.h: Renamed from lib/socket_.h.
88538         * modules/sys_socket (Files, Makefile.am): Update.
88540         * lib/sys_stat_.h: Renamed from lib/stat_.h.
88541         * modules/sys_stat (Files, Makefile.am): Update.
88543 2007-04-27  Eric Blake  <ebb9@byu.net>
88545         * lib/freading.h: Improve comments.
88546         * lib/fwriting.h: Likewise.
88547         * lib/fflush.c: Likewise.
88549         Fix closein for mingw.
88550         * modules/closein-tests: Add tests for closein.
88551         * tests/test-closein.c: New file.
88552         * tests/test-closein.sh: Likewise.
88553         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
88554         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
88556 2007-04-27  Bruno Haible  <bruno@clisp.org>
88558         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
88559         version is < 6.
88560         * lib/math_.h [__DECC]: Likewise.
88561         * lib/stdio_.h [__DECC]: Likewise.
88562         * lib/stdlib_.h [__DECC]: Likewise.
88563         * lib/string_.h [__DECC]: Likewise.
88564         * lib/time_.h [__DECC]: Likewise.
88565         * lib/wchar_.h [__DECC]: Likewise.
88566         * lib/wctype_.h [__DECC]: Likewise.
88568 2007-04-27  Bruno Haible  <bruno@clisp.org>
88570         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
88572 2007-04-27  Bruno Haible  <bruno@clisp.org>
88574         * lib/fflush.c: Add comments.
88575         * modules/fpurge-tests (Depends-on): Add fflush.
88576         * modules/freadable-tests (Depends-on): Likewise.
88577         * modules/fwritable-tests (Depends-on): Likewise.
88579 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
88581         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
88582         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
88583         Report by Bruno Haible <bruno@clisp.org>.
88585 2007-04-26  Eric Blake  <ebb9@byu.net>
88587         Fix fflush on mingw.
88588         * modules/fflush (Depends-on): Add freading.
88589         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
88590         but unread data.
88592 2007-04-26  Eric Blake  <ebb9@byu.net>
88593         and Bruno Haible  <bruno@clisp.org>
88595         Implement freading and fwriting.
88596         * lib/freading.c: New file.
88597         * lib/freading.h: Likewise.
88598         * m4/freading.m4: Likewise.
88599         * modules/freading: Likewise.
88600         * modules/freading-tests: Likewise.
88601         * tests/test-freading.c: Likewise.
88602         * lib/fwriting.c: New file.
88603         * lib/fwriting.h: Likewise.
88604         * m4/fwriting.m4: Likewise.
88605         * modules/fwriting: Likewise.
88606         * modules/fwriting-tests: Likewise.
88607         * tests/test-fwriting.c: Likewise.
88608         * MODULES.html.sh (File stream based Input/Output): Mention them.
88610 2007-04-26  Bruno Haible  <bruno@clisp.org>
88612         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
88613         'long' when we assume it.
88614         Suggested by Eric Blake.
88616 2007-04-26  Bruno Haible  <bruno@clisp.org>
88618         Ensure fseeko, ftello are declared on glibc systems.
88619         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
88620         * modules/fseeko (configure.ac-early): Likewise.
88621         * modules/ftello (configure.ac-early): Likewise.
88622         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
88623         AC_FUNC_FSEEKO for this.
88624         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
88625         (gl_CHECK_FSEEKO): Remove macro.
88627 2007-04-26  Bruno Haible  <bruno@clisp.org>
88629         * tests/test-fflush.c (main): Also check the ftell result after
88630         fflush and fseek/fseeko.
88631         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
88632         file descriptor position cache in the stream.
88633         * lib/fseeko.c (rpl_fseeko): Likewise.
88635 2007-04-26  Bruno Haible  <bruno@clisp.org>
88637         * modules/fflush-tests (Depends-on): Add fseeko.
88639 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
88640             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88642         * lib/argz_.h: ensure error_t definition is obtained in same
88643         mechanism system argz.h would have.
88644         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
88645         argz facilities are known bad.  Err on the side of caution if
88646         cross-compiling.
88648 2007-04-25  Eric Blake  <ebb9@byu.net>
88650         * lib/fpurge.c (includes): Use stdlib.h for free.
88651         * tests/test-fflush.c (main): Also test fflush-fseeko.
88653 2007-04-25  Bruno Haible  <bruno@clisp.org>
88655         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
88656         * lib/fseeko.c: New file.
88657         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
88658         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
88659         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
88660         gl_FUNC_FSEEKO.
88661         (gl_FUNC_FSEEKO): Invoke it.
88662         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
88663         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
88664         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
88666 2007-04-25  Bruno Haible  <bruno@clisp.org>
88668         * modules/fflush (Depends-on): Add ftello.
88670 2007-04-25  Bruno Haible  <bruno@clisp.org>
88672         * modules/ftello-tests: New file.
88673         * tests/test-ftello.c: New file.
88675         * modules/ftello: New file.
88676         * m4/ftello.m4: New file.
88677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
88678         HAVE_FTELLO.
88679         * lib/stdio_.h (ftello): New declaration.
88680         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
88681         HAVE_FTELLO.
88683 2007-04-25  Bruno Haible  <bruno@clisp.org>
88685         * modules/fseeko-tests: New file.
88686         * tests/test-fseeko.c: New file.
88688         * modules/fseeko: New file.
88689         * m4/fseeko.m4: New file.
88690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
88691         HAVE_FSEEKO.
88692         * lib/stdio_.h (fseeko): New declaration.
88693         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
88694         HAVE_FSEEKO.
88696 2007-04-25  Bruno Haible  <bruno@clisp.org>
88698         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
88700 2007-04-25  Bruno Haible  <bruno@clisp.org>
88702         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
88703         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
88704         * tests/test-unistd.c: Likewise.
88705         * tests/test-fcntl.c: Likewise.
88707 2007-04-23  Eric Blake  <ebb9@byu.net>
88709         * lib/fflush.c: Fix missing include.
88710         Reported by Bruno Haible.
88712 2007-04-23  Bruno Haible  <bruno@clisp.org>
88714         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
88715         Reported by Eric Blake.
88717 2007-04-23  Bruno Haible  <bruno@clisp.org>
88719         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
88721 2007-04-23  Bruno Haible  <bruno@clisp.org>
88723         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
88725 2007-04-23  Bruno Haible  <bruno@clisp.org>
88727         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
88728         Needed on HP-UX 11.
88730 2007-04-16  Eric Blake  <ebb9@byu.net>
88732         Make fflush rely on fpurge.
88733         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
88734         open coding all variants.
88735         * modules/fflush (Depends-on): Add fpurge and unistd.
88736         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
88737         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
88739         Fix --with-tests compilation on cygwin.
88740         * modules/argmatch-tests (Makefile.am): List gnulib library first
88741         in LDADD.
88742         * modules/argp-tests (Makefile.am): Likewise.
88743         * modules/array-list-tests (Makefile.am): Likewise.
88744         * modules/array-oset-tests (Makefile.am): Likewise.
88745         * modules/avltree-list-tests (Makefile.am): Likewise.
88746         * modules/avltree-oset-tests (Makefile.am): Likewise.
88747         * modules/avltreehash-list-tests (Makefile.am): Likewise.
88748         * modules/carray-list-tests (Makefile.am): Likewise.
88749         * modules/dirname-tests (Makefile.am): Likewise.
88750         * modules/frexp-tests (Makefile.am): Likewise.
88751         * modules/isnanl-tests (Makefile.am): Likewise.
88752         * modules/linked-list-tests (Makefile.am): Likewise.
88753         * modules/linkedhash-list-tests (Makefile.am): Likewise.
88754         * modules/lock-tests (Makefile.am): Likewise.
88755         * modules/rbtree-list-tests (Makefile.am): Likewise.
88756         * modules/rbtree-oset-tests (Makefile.am): Likewise.
88757         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
88758         * modules/tls-tests (Makefile.am): Likewise.
88759         * modules/tsearch-tests (Makefile.am): Likewise.
88760         * modules/xvasprintf-tests (Makefile.am): Likewise.
88762         Fix fpurge for cygwin.
88763         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
88764         value.
88765         * modules/fpurge-tests (Depends-on): Clean up trash.
88767 2007-04-16  Simon Josefsson  <simon@josefsson.org>
88769         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
88771         * m4/autobuild.m4: Re-indent.
88773 2007-04-13  Bruno Haible  <bruno@clisp.org>
88775         * modules/fpurge-tests: New file.
88776         * tests/test-fpurge.c: New file.
88778         * modules/fpurge: New file.
88779         * lib/fpurge.h: New file.
88780         * lib/fpurge.c: New file.
88781         * m4/fpurge.m4: New file.
88783 2007-04-13  Bruno Haible  <bruno@clisp.org>
88785         * modules/fbufmode-tests: New file.
88786         * tests/test-fbufmode.c: New file.
88788         * modules/fbufmode: New file.
88789         * lib/fbufmode.h: New file.
88790         * lib/fbufmode.c: New file.
88791         * m4/fbufmode.m4: New file.
88793 2007-04-13  Bruno Haible  <bruno@clisp.org>
88795         * modules/fwritable-tests: New file.
88796         * tests/test-fwritable.c: New file.
88798         * modules/fwritable: New file.
88799         * lib/fwritable.h: New file.
88800         * lib/fwritable.c: New file.
88801         * m4/fwritable.m4: New file.
88803 2007-04-13  Bruno Haible  <bruno@clisp.org>
88805         * modules/freadable-tests: New file.
88806         * tests/test-freadable.c: New file.
88808         * modules/freadable: New file.
88809         * lib/freadable.h: New file.
88810         * lib/freadable.c: New file.
88811         * m4/freadable.m4: New file.
88813 2007-04-13  Bruno Haible  <bruno@clisp.org>
88815         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
88816         MOSTLYCLEANFILES.
88818 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88820         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
88821         gzip bootstrap.conf to avoid dragging in i18n machinery.
88822         (gnulib_tool_option): Use it.
88824 2007-04-13  Bruno Haible  <bruno@clisp.org>
88826         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
88827         %F directives.
88828         * tests/test-vasprintf-posix.c (test_function): Likewise.
88829         * tests/test-snprintf-posix.h (test_function): Likewise.
88830         * tests/test-sprintf-posix.h (test_function): Likewise.
88831         * tests/test-fprintf-posix.h (test_function): Likewise.
88832         * tests/test-printf-posix.h (test_function): Likewise.
88833         * tests/test-fprintf-posix.out: Likewise.
88835 2007-04-13  Bruno Haible  <bruno@clisp.org>
88837         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
88838         * modules/tls-tests (configure.ac): Likewise.
88839         Reported by Arto C. Nirkko <anirkko@insel.ch>.
88841 2007-04-13  Bruno Haible  <bruno@clisp.org>
88843         * lib/tls.c (glthread_tls_get): Fix return type.
88844         Patch by Arto C. Nirkko <anirkko@insel.ch>.
88846 2007-04-12  Eric Blake  <ebb9@byu.net>
88848         * modules/gettime (Depends-on): Remove gettime.
88849         Reported by Dmitry V. Levin.
88851 2007-04-12  Bruno Haible  <bruno@clisp.org>
88853         * modules/fflush (Include): Mention <stdio.h>.
88854         * modules/strtoimax (Include): Mention <inttypes.h>.
88855         * modules/strtoumax (Include): Likewise.
88857 2007-04-12  Eric Blake  <ebb9@byu.net>
88859         * .cvsignore: New file.
88860         * .gitignore: Likewise.
88862 2007-04-12  Bruno Haible  <bruno@clisp.org>
88864         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
88865         not before, since $(LDADD) often contains libgnu.a.
88866         * modules/striconv-tests (test_striconv_LDADD): Likewise.
88867         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
88868         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
88869         Needed on Cygwin.
88871 2007-04-12  Eric Blake  <ebb9@byu.net>
88873         Work around glibc's failure to flush stdin on fclose.
88874         * lib/closein.c (close_stdin): Flush stdin before closing.
88876         Work around glibc's failure to reset seekable stdin on exit.
88877         * modules/closein: New module.
88878         * lib/closein.c: New file.
88879         * lib/closein.h: Likewise.
88880         * m4/closein.m4: Likewise.
88881         * MODULES.html.sh (File stream based Input/Output): Document it.
88883 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88885         * gnulib-tool: Rename generated 'autobuild' script to
88886         'do-autobuild' in --create-megatestdir output.
88888         * doc/gnulib.texi (Build robot for gnulib): Fix.
88890 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88892         * modules/sysexits (Depends-on): Add absolute-header.
88894 2007-04-12  Eric Blake  <ebb9@byu.net>
88896         No need to preserve errno on success.
88897         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
88898         Reported by Bruno Haible.
88900 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88902         * MODULES.html.sh (Support for maintaining and releasing
88903         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
88905 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88907         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
88909 2007-04-12  Simon Josefsson  <simon@josefsson.org>
88911         * modules/autobuild: New module.
88913         * m4/autobuild.m4: New file.
88915 2007-04-11  Bruno Haible  <bruno@clisp.org>
88917         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
88918         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
88919         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
88920         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
88921         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88922         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88923         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88924         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88925         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88926         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88927         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
88928         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88929         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
88931         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88932         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88933         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
88934         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88935         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88936         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
88937         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88938         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88939         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
88940         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88941         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88942         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
88943         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
88944         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
88945         Reported by Eric Blake.
88947 2007-04-11  Bruno Haible  <bruno@clisp.org>
88949         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
88951 2007-04-10  Bruno Haible  <bruno@clisp.org>
88953         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
88954         for NaN and Infinity. Needed on FreeBSD 6.1.
88955         * tests/test-vasnprintf-posix.c (test_function): Undo last change
88956         regarding results for "%010a" of Infinity and NaN.
88957         * tests/test-vasprintf-posix.c (test_function): Likewise.
88958         * tests/test-snprintf-posix.h (test_function): Likewise.
88959         * tests/test-sprintf-posix.h (test_function): Likewise.
88960         * tests/test-fprintf-posix.h (test_function): Likewise.
88961         * tests/test-printf-posix.h (test_function): Likewise.
88962         * tests/test-fprintf-posix.out: Likewise.
88964 2007-04-10  Bruno Haible  <bruno@clisp.org>
88966         * modules/locale-tests: New file.
88967         * tests/test-locale.c: New file.
88969         * modules/locale: New file.
88970         * lib/locale_.h: New file.
88971         * m4/locale_h.m4: New file.
88973 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
88974             Bruno Haible  <bruno@clisp.org>
88976         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
88977         be determined, test for availability of the copysignf, copysign,
88978         copysignl functions.
88979         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
88980         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
88981         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
88983 2007-04-09  Eric Blake  <ebb9@byu.net>
88985         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
88986         * modules/stdio (Makefile.am): Support fflush.
88987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
88988         * modules/fflush: New file.
88989         * lib/fflush.c: Likewise.
88990         * m4/fflush.m4: Likewise.
88991         * modules/fflush-tests: New test.
88992         * tests/test-fflush.c: Likewise.
88993         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
88995 2007-04-06  Bruno Haible  <bruno@clisp.org>
88997         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
88998         (VASNPRINTF): Use signbit for faster determination whether to print a
88999         minus sign.
89000         * modules/vasnprintf (Files): Remove lib/float+.h.
89001         * modules/fprintf-posix (Depends-on): Add signbit.
89002         * modules/snprintf-posix (Depends-on): Likewise.
89003         * modules/sprintf-posix (Depends-on): Likewise.
89004         * modules/vasnprintf-posix (Depends-on): Likewise.
89005         * modules/vasprintf-posix (Depends-on): Likewise.
89006         * modules/vfprintf-posix (Depends-on): Likewise.
89007         * modules/vsnprintf-posix (Depends-on): Likewise.
89008         * modules/vsprintf-posix (Depends-on): Likewise.
89010 2007-04-06  Bruno Haible  <bruno@clisp.org>
89012         * tests/test-frexp.c (main): Test also the sign bit of zero results.
89013         * tests/test-frexpl.c (main): Likewise.
89014         * tests/test-ldexpl.c (main): Likewise.
89015         * modules/frexp-tests (Depends-on): Add signbit.
89016         * modules/frexpl-tests (Depdends-on): Likewise.
89017         * modules/ldexpl-tests (Depdends-on): Likewise.
89019 2007-04-06  Bruno Haible  <bruno@clisp.org>
89021         * modules/signbit-tests: New file.
89022         * tests/test-signbit.c: New file.
89024         * modules/signbit: New file.
89025         * lib/signbitf.c: New file.
89026         * lib/signbitd.c: New file.
89027         * lib/signbitl.c: New file.
89028         * m4/signbit.m4: New file.
89029         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
89030         (signbit): New macro.
89031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
89032         REPLACE_SIGNBIT.
89033         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
89034         REPLACE_FREXPL into math.h.
89036 2007-04-06  Bruno Haible  <bruno@clisp.org>
89038         * modules/isnanf-nolibm-tests: New file.
89039         * tests/test-isnanf.c: New file.
89041         * modules/isnanf-nolibm: New file.
89042         * lib/isnanf.h: New file.
89043         * lib/isnanf.c: New file.
89044         * lib/isnan.c: Consider the USE_FLOAT macro.
89045         * m4/isnanf.m4: New file.
89047 2007-04-06  Bruno Haible  <bruno@clisp.org>
89049         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
89050         (Link): New section.
89052         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
89054 2007-04-06  Bruno Haible  <bruno@clisp.org>
89056         Assume the 'long double' type.
89057         * m4/longdouble.m4: Remove file.
89058         * config/srclist.txt: Don't mention longdouble.m4.
89059         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
89060         * lib/float+.h: Likewise.
89061         * lib/frexp.c: Likewise.
89062         * lib/printf-args.h: Likewise.
89063         * lib/printf-args.c: Likewise.
89064         * lib/printf-frexp.c: Likewise.
89065         * lib/printf-parse.c: Likewise.
89066         * lib/vasnprintf.c: Likewise.
89067         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
89068         * m4/intl.m4: Likewise.
89069         * m4/isnanl.m4: Likewise.
89070         * m4/printf.m4: Likewise.
89071         * m4/printf-frexpl.m4: Likewise.
89072         * m4/vasnprintf.m4: Likewise.
89073         * modules/allocsa (Files): Remove m4/longdouble.m4.
89074         * modules/gettext (Files): Likewise.
89075         * modules/relocatable-prog-wrapper (Files): Likewise.
89076         * modules/vasnprintf (Files): Likewise.
89077         * modules/isnanl (Files): Likewise.
89078         (Include): Simplify.
89079         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
89080         (Include): Simplify.
89081         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
89082         (Include): Simplify.
89083         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
89084         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89085         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
89086         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89087         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89088         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89089         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
89090         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89091         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89092         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89093         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
89094         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89095         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
89096         * tests/test-isnanl.c: Likewise.
89097         * tests/test-snprintf-posix.h: Likewise.
89098         * tests/test-sprintf-posix.h: Likewise.
89099         * tests/test-vasnprintf-posix.c: Likewise.
89100         * tests/test-vasnprintf-posix2.c: Likewise.
89101         * tests/test-vasprintf-posix.c: Likewise.
89103 2007-04-06  Bruno Haible  <bruno@clisp.org>
89105         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
89106         * lib/math_.h [__DECC]: Include the overridden include file through
89107         #include_next, outside the double-inclusion guard.
89108         * lib/stdio_.h [__DECC]: Likewise.
89109         * lib/stdlib_.h [__DECC]: Likewise.
89110         * lib/string_.h [__DECC]: Likewise.
89111         * lib/time_.h [__DECC]: Likewise.
89112         * lib/wchar_.h [__DECC]: Likewise.
89113         * lib/wctype_.h [__DECC]: Likewise.
89114         * lib/inttypes_.h [__DECC]: Likewise.
89115         Reported by Albert Chin <china@thewrittenword.com> in
89116         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
89118 2007-04-04  Eric Blake  <ebb9@byu.net>
89120         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
89121         1.5.x.
89123 2007-04-04  Bruno Haible  <bruno@clisp.org>
89125         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
89126         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
89128 2007-04-04  Bruno Haible  <bruno@clisp.org>
89130         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
89131         results for "%010a" of Infinity and NaN.
89132         * tests/test-vasprintf-posix.c (test_function): Likewise.
89133         * tests/test-snprintf-posix.h (test_function): Likewise.
89134         * tests/test-sprintf-posix.h (test_function): Likewise.
89135         * tests/test-fprintf-posix.h (test_function): Remove these tests.
89136         * tests/test-printf-posix.h (test_function): Likewise.
89137         * tests/test-fprintf-posix.out: Update.
89138         Needed for FreeBSD 6.1.
89140 2007-04-04  Bruno Haible  <bruno@clisp.org>
89142         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
89143         directly used by the gnulib modules nor by gnulib-tool.
89145 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
89147         * DEPENDENCIES: Give overall description of version dependency
89148         desirability.  Use more-typical names for apps.
89149         Add shell, coreutils, diffutils, grep, tar, gzip.
89151 2007-04-04  Simon Josefsson  <simon@josefsson.org>
89153         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
89155 2007-04-04  Karl Berry  <karl@gnu.org>
89157         * MODULES.html.sh (func_module): missing '.
89159 2007-04-03  Bruno Haible  <bruno@clisp.org>
89161         * modules/argmatch-tests (Makefile.am): New variable
89162         test_argmatch_LDADD.
89163         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
89164         * modules/array-list-tests (Makefile.am): New variable
89165         test_array_list_LDADD.
89166         * modules/array-oset-tests (Makefile.am): New variable
89167         test_array_oset_LDADD.
89168         * modules/avltree-list-tests (Makefile.am): New variable
89169         test_avltree_list_LDADD.
89170         * modules/avltree-oset-tests (Makefile.am): New variable
89171         test_avltree_oset_LDADD.
89172         * modules/avltreehash-list-tests (Makefile.am): New variable
89173         test_avltreehash_list_LDADD.
89174         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
89175         test_canonicalize_lgpl_LDADD.
89176         * modules/carray-list-tests (Makefile.am): New variable
89177         test_carray_list_LDADD.
89178         * modules/dirname-tests (Makefile.am): New variable
89179         test_dirname_LDADD.
89180         * modules/linked-list-tests (Makefile.am): New variable
89181         test_linked_list_LDADD.
89182         * modules/linkedhash-list-tests (Makefile.am): New variable
89183         test_linkedhash_list_LDADD.
89184         * modules/rbtree-list-tests (Makefile.am): New variable
89185         test_rbtree_list_LDADD.
89186         * modules/rbtree-oset-tests (Makefile.am): New variable
89187         test_rbtree_oset_LDADD.
89188         * modules/rbtreehash-list-tests (Makefile.am): New variable
89189         test_rbtreehash_list_LDADD.
89190         * modules/xvasprintf-tests (Makefile.am): New variable
89191         test_xvasprintf_LDADD.
89192         Reported by Eric Blake.
89194 2007-04-03  Eric Blake  <ebb9@byu.net>
89196         * DEPENDENCIES: Weaken m4 requirements.
89198 2007-04-03  Bruno Haible  <bruno@clisp.org>
89200         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
89201         * modules/isnanl-tests (configure.ac): Likewise.
89203 2007-04-03  Ben Pfaff  <blp@gnu.org>
89205         * modules/iconv_open: Add $(srcdir)/ to source directory
89206         references in Makefile fragments that call gperf, to fix VPATH
89207         builds.
89209 2007-04-03  Bruno Haible  <bruno@clisp.org>
89211         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
89212         * lib/ldexpl.c: Undo last change.
89214 2007-04-03  Bruno Haible  <bruno@clisp.org>
89216         * modules/printf-frexpl (Depends-on): Undo last change.
89217         (Files): Add m4/ldexpl.m4.
89219 2007-04-03  Bruno Haible  <bruno@clisp.org>
89221         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
89222         * modules/isnanl (Link): New section.
89224         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
89225         * modules/frexp (Link): New section.
89227         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
89228         * modules/frexpl (Link): New section.
89230         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
89231         * modules/ldexpl (Link): New section.
89233 2007-04-03  Bruno Haible  <bruno@clisp.org>
89235         * modules/TEMPLATE-EXTENDED: New file.
89236         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
89238 2007-04-03  Bruno Haible  <bruno@clisp.org>
89240         * DEPENDENCIES: New file.
89241         Suggested by Simon Josefsson.
89243 2007-04-03  Bruno Haible  <bruno@clisp.org>
89245         * doc/gnulib.texi: Escape @.
89247 2007-04-03  James Youngman  <jay@gnu.org>
89248         and Paul Eggert  <eggert@cs.ucla.edu>
89250         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
89251         birthtime on all systems that have birthtime, not just those which
89252         use st_birthtimensec rather than st_birthtim.  Putting zero in
89253         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
89254         that the birth time is not available for files on an NFS mount.
89256 2007-04-03  Simon Josefsson  <simon@josefsson.org>
89258         * modules/memxor: Move back from crypto/, suggested by Bruno.
89259         * modules/crypto/hmac-sha1: Fix memxor dependency.
89261         * modules/crypto/gc: Moved from ../.
89263 2007-04-02  Eric Blake  <ebb9@byu.net>
89265         * lib/ldexpl.c (includes): Avoid libm.
89267         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
89269 2007-04-02  Bruno Haible  <bruno@clisp.org>
89271         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
89272         on IRIX.
89274 2007-04-02  Bruno Haible  <bruno@clisp.org>
89276         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
89277         x86 or x86_64 platforms running MacOS X.
89278         Reported by Ryan Schmidt <@ryandesign.com>.
89280 2007-04-02  Bruno Haible  <bruno@clisp.org>
89282         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
89283         i386.
89285 2007-04-01  Simon Josefsson  <simon@josefsson.org>
89287         * modules/crypto/arcfour: Moved from ../.
89288         * modules/crypto/arcfour-tests: Moved from ../.
89289         * modules/crypto/arctwo: Moved from ../.
89290         * modules/crypto/arctwo-tests: Moved from ../.
89291         * modules/crypto/des: Moved from ../.
89292         * modules/crypto/des-tests: Moved from ../.
89293         * modules/crypto/gc-arcfour: Moved from ../.
89294         * modules/crypto/gc-arcfour-tests: Moved from ../.
89295         * modules/crypto/gc-arctwo: Moved from ../.
89296         * modules/crypto/gc-arctwo-tests: Moved from ../.
89297         * modules/crypto/gc-des: Moved from ../.
89298         * modules/crypto/gc-des-tests: Moved from ../.
89299         * modules/crypto/gc-hmac-md5: Moved from ../.
89300         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
89301         * modules/crypto/gc-hmac-sha1: Moved from ../.
89302         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
89303         * modules/crypto/gc-md2: Moved from ../.
89304         * modules/crypto/gc-md2-tests: Moved from ../.
89305         * modules/crypto/gc-md4: Moved from ../.
89306         * modules/crypto/gc-md4-tests: Moved from ../.
89307         * modules/crypto/gc-md5: Moved from ../.
89308         * modules/crypto/gc-md5-tests: Moved from ../.
89309         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
89310         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
89311         * modules/crypto/gc-random: Moved from ../.
89312         * modules/crypto/gc-rijndael: Moved from ../.
89313         * modules/crypto/gc-rijndael-tests: Moved from ../.
89314         * modules/crypto/gc-sha1: Moved from ../.
89315         * modules/crypto/gc-sha1-tests: Moved from ../.
89316         * modules/crypto/gc-tests: Moved from ../.
89317         * modules/crypto/hmac-md5: Moved from ../.
89318         * modules/crypto/hmac-md5-tests: Moved from ../.
89319         * modules/crypto/hmac-sha1: Moved from ../.
89320         * modules/crypto/hmac-sha1-tests: Moved from ../.
89321         * modules/crypto/md2: Moved from ../.
89322         * modules/crypto/md2-tests: Moved from ../.
89323         * modules/crypto/md4: Moved from ../.
89324         * modules/crypto/md4-tests: Moved from ../.
89325         * modules/crypto/md5: Moved from ../.
89326         * modules/crypto/md5-tests: Moved from ../.
89327         * modules/crypto/memxor: Moved from ../.
89328         * modules/crypto/rijndael: Moved from ../.
89329         * modules/crypto/rijndael-tests: Moved from ../.
89330         * modules/crypto/sha1: Moved from ../.
89332 2007-03-30  James Youngman  <jay@gnu.org>
89334         * tests/test-stat-time.c (prepare_test): use chmod() rather than
89335         rename() to change the ctime of a file (because ctime is unaffected
89336         by rename on jfs2 on AIX 5.1).
89337         (main): Start by doing cleanup, in case a previous run failed leaving
89338         test files behind.
89340 2007-03-31  Bruno Haible  <bruno@clisp.org>
89342         Support old proprietary implementations of iconv.
89343         * modules/iconv_open: New file.
89344         * lib/iconv_.h: New file.
89345         * m4/iconv_h.m4: New file.
89346         * lib/iconv_open.c: New file.
89347         * lib/iconv_open-aix.gperf: New file.
89348         * lib/iconv_open-hpux.gperf: New file.
89349         * lib/iconv_open-irix.gperf: New file.
89350         * lib/iconv_open-osf.gperf: New file.
89351         * m4/iconv_open.m4: New file.
89352         * modules/linebreak (Depends-on): Add iconv_open.
89353         * modules/striconv (Depends-on): Likewise.
89354         * modules/striconveh (Depends-on): Likewise.
89355         * modules/unicodeio (Depends-on): Likewise.
89356         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
89357         (iconv_t)(-1).
89358         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
89359         conversion if cd is (iconv_t)(-1).
89360         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
89361         is not possible.
89363 2007-03-31  Bruno Haible  <bruno@clisp.org>
89365         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89366         work on Solaris either. Protect also second use of "autodetect_jp".
89368 2007-03-31  Bruno Haible  <bruno@clisp.org>
89370         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
89371         the function is not present.
89373 2007-03-31  Bruno Haible  <bruno@clisp.org>
89375         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
89376         the function is not present.
89378 2007-03-31  Bruno Haible  <bruno@clisp.org>
89380         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
89381         a bug in HP-UX iconv_open().
89383 2007-03-31  Bruno Haible  <bruno@clisp.org>
89385         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
89386         (Mathematics <math.h>): New section, add fpieee.
89387         (Input/output <stdio.h>): Add fseterr.
89388         (Mathematics <math.h>): New section, add printf-frexp.
89389         (Container data structures): Add sublist.
89390         (Core language properties): Add fpucw, inline.
89391         (Functions for greatest-width integer types <inttypes.h>): Add
89392         imaxabs, imaxdiv, inttypes.
89393         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
89394         isnanl-nolibm, ldexp.
89395         (Mathematics <math.h>): New section, add printf-frexpl.
89396         (Support for systems lacking POSIX:2001): Add fprintf-posix,
89397         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
89398         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
89399         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
89400         (Unicode string functions): Add unistr/u*-mbtoucr.
89401         (Java): Add javacomp-script, javaexec-script.
89402         (C#): Add csharpcomp-script, csharpexec-script.
89403         (Support for building libraries and executables): Add havelib,
89404         relocatable-*.
89405         (Support for maintaining and releasing projects): Renamed from
89406         'Support for maintaining and release projects'. Add announce-gen.
89408 2007-03-31  Bruno Haible  <bruno@clisp.org>
89410         * README: Talk primarily about git.
89411         (git and CVS): Renamed from CVS.
89412         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
89413         gnulib is available through git.
89414         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
89416 2007-03-30  Bruno Haible  <bruno@clisp.org>
89418         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
89419         * lib/poll_.h: Likewise.
89420         * lib/stat_.h: Likewise.
89421         * lib/sys_time_.h: Likewise.
89422         * lib/sysexit_.h: Likewise.
89423         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
89424         * lib/stdbool_.h: Likewise.
89425         * lib/byteswap_.h: Add double-inclusion guard.
89427 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
89429         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
89431 2007-03-30  Karl Berry  <karl@gnu.org>
89433         * config/srclist-update: double space after USA in the license
89434         substitution, since that's how it's usually (?) written.
89436 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
89438         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
89439         reported by Bruno Haible.
89441 2007-03-29  Bruno Haible  <bruno@clisp.org>
89443         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
89444         a bug in AIX iconv().
89446 2007-03-29  Bruno Haible  <bruno@clisp.org>
89448         * modules/ldexpl-tests: New file.
89449         * tests/test-ldexpl.c: New file.
89451 2007-03-29  Bruno Haible  <bruno@clisp.org>
89453         * lib/ldexpl.c: Include fpucw.h.
89454         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
89455         multiplication.
89456         * modules/ldexpl (Depends-on): Add fpucw.
89458 2007-03-29  Bruno Haible  <bruno@clisp.org>
89460         * modules/ldexpl: New file.
89461         * m4/ldexpl.m4: New file.
89462         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
89463         set.
89464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
89465         REPLACE_LDEXPL.
89466         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
89467         REPLACE_LDEXPL.
89468         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
89469         gl_FUNC_LDEXPL_WORKS.
89470         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
89471         * modules/mathl (Files): Remove lib/ldexpl.c.
89472         (Depends-on): Add ldexpl.
89474 2007-03-29  Bruno Haible  <bruno@clisp.org>
89476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
89478 2007-03-29  Bruno Haible  <bruno@clisp.org>
89480         * tests/test-striconveh.c (main): Don't assume that a direct conversion
89481         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
89482         and possibly also HP-UX.
89483         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
89484         work on AIX, IRIX, HP-UX, OSF/1.
89485         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
89486         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
89487         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
89488         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
89489         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
89490         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
89492 2007-03-29  Bruno Haible  <bruno@clisp.org>
89494         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
89496 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89498         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
89499         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
89501 2007-03-29  Eric Blake  <ebb9@byu.net>
89503         * lib/acl-internal.h: Remove redundant include.
89504         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
89505         Cygwin when a file is locked.
89507 2007-03-29  Bruno Haible  <bruno@clisp.org>
89509         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
89510         file.
89511         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
89513 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
89515         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
89516         try to remove a parent directory if the child couldn't be removed
89517         (except for the first rmdir, which could fail because the child
89518         doesn't exist).  Problem reported by Jeff Blaine in
89519         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
89521 2007-03-28  Bruno Haible  <bruno@clisp.org>
89523         * lib/striconveh.c (utf8conv_carefully): New function.
89524         (mem_cd_iconveh_internal): Invoke it.
89526 2007-03-28  Bruno Haible  <bruno@clisp.org>
89528         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
89529         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
89530         input.
89531         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
89532         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
89533         unistr/u8-uctomb.
89535 2007-03-28  Bruno Haible  <bruno@clisp.org>
89537         * modules/unistr/u8-mbtoucr: New file.
89538         * lib/unistr/u8-mbtoucr.c: New file.
89539         * modules/unistr/u16-mbtoucr: New file.
89540         * lib/unistr/u16-mbtoucr.c: New file.
89541         * modules/unistr/u16-mbtoucr: New file.
89542         * lib/unistr/u16-mbtoucr.c: New file.
89543         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
89545 2007-03-27  Simon Josefsson  <simon@josefsson.org>
89546             Bruno Haible  <bruno@clisp.org>
89548         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
89549         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
89550         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
89552         * m4/stdio_h.m4: Add stubs for vasprintf too.
89554         * modules/stdio: Support vasprintf in sed command.
89556         * modules/vasprintf: Depend on stdio for prototypes.  Remove
89557         vasprintf.h.  Add stdio module indicator.
89559         * lib/stdio_.h: Declare asprintf and vasprintf, based on
89560         vasprintf.h.
89562         * lib/vasprintf.h: File removed.
89564         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
89565         * lib/vasprintf.c: Ditto.
89566         * lib/xvasprintf.c: Ditto.
89567         * tests/test-vasprintf-posix.c: Ditto.
89568         * tests/test-vasprintf.c: Ditto.
89570 2007-03-27  Bruno Haible  <bruno@clisp.org>
89572         Make vasnprintf multithread-safe.
89573         * lib/vasnprintf.c (decimal_point_char): New function.
89574         (VASNPRINTF): Use it.
89575         Suggested by Simon Josefsson.
89577 2007-03-27  Eric Blake  <ebb9@byu.net>
89579         Support sub-second birthtime on cygwin.
89580         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
89581         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
89582         (get_stat_birthtime): Also work with st_birthtim.
89584 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
89586         * lib/stat-time.h (USE_BIRTHTIME): Remove.
89587         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
89588         (get_stat_birthtime_ns): Do not try to use "spare" fields.
89589         (get_stat_birthtime_ns): Simplify compile-time tests.
89590         (get_stat_birthtime): Change the API to look like
89591         get_stat_mtime etc., except return a negative tv_nsec on error.
89592         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
89593         Don't check for "spare" fields.
89594         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
89595         or for struct stat.st_birthtime, as these tests aren't used.
89596         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
89598 2007-03-27  Bruno Haible  <bruno@clisp.org>
89600         * lib/stat-time.h: Include <sys/stat.h>.
89602 2007-03-27  James Youngman  <jay@gnu.org>
89604         * lib/stat-time.h (get_stat_birthtime): New function for
89605           retrieving st_birthtime as provided by UFS2 (hence *BSD).
89606         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
89607           and its variants.
89608         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
89609         * modules/stat-time-test: New file.
89610         * tests/test-stat-time.c: New test, devised by Bruno Haible.
89612 2007-03-26  Bruno Haible  <bruno@clisp.org>
89614         Better support of signalling NaNs.
89615         * lib/atanl.c: Include isnanl.h.
89616         (atanl): Perform test for NaN at the beginning of the function and
89617         through a call to isnanl.
89618         * lib/cosl.c: Include isnanl.h.
89619         (cosl): Perform test for NaN at the beginning of the function and
89620         through a call to isnanl.
89621         * lib/ldexpl.c: Include isnanl.h.
89622         (ldexpl): Perform test for NaN through a call to isnanl.
89623         * lib/logl.c: Include isnanl.h.
89624         (logl): Perform test for NaN at the beginning of the function and
89625         through a call to isnanl.
89626         * lib/sinl.c: Include isnanl.h.
89627         (sinl): Perform test for NaN at the beginning of the function and
89628         through a call to isnanl.
89629         * lib/sqrtl.c: Include isnanl.h.
89630         (sqrtl): Perform test for NaN at the beginning of the function and
89631         through a call to isnanl.
89632         * lib/tanl.c: Include isnanl.h.
89633         (tanl): Perform test for NaN at the beginning of the function and
89634         through a call to isnanl.
89635         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
89636         * modules/mathl (Depends-on): Add isnanl.
89638 2007-03-26  Eric Blake  <ebb9@byu.net>
89640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
89641         regression in logic sense of previous patch.
89643 2007-03-26  Bruno Haible  <bruno@clisp.org>
89645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
89646         unportable shell command "if ! ...".
89647         Reported by Ralf Wildenhues.
89649 2007-03-25  Bruno Haible  <bruno@clisp.org>
89651         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
89652         <sysexits.h> file, and only add EX_CONFIG.
89653         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
89654         absolute file name and whether it is sufficient. Substitute also
89655         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
89656         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
89657         ABSOLUTE_SYSEXITS_H into sysexits.h.
89659 2007-03-25  Bruno Haible  <bruno@clisp.org>
89661         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
89662         hints is NULL.
89664 2007-03-25  Bruno Haible  <bruno@clisp.org>
89666         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
89667         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
89669 2007-03-25  Bruno Haible  <bruno@clisp.org>
89671         * lib/vasnprintf.c: Include langinfo.h.
89672         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
89673         multithread-safe.
89674         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
89675         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
89676         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
89677         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
89678         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
89679         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
89680         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
89681         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
89682         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
89683         Reported by Simon Josefsson.
89685 2007-03-25  Bruno Haible  <bruno@clisp.org>
89687         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
89688         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
89689         * modules/vasnprintf (Depends-on): Add stdint.
89691 2007-03-25  Bruno Haible  <bruno@clisp.org>
89693         * modules/fpieee: New file.
89694         * m4/fpieee.m4: New file.
89695         * modules/isnan-nolibm (Depends-on): Add fpieee.
89696         * modules/isnanl-nolibm (Depends-on): Add fpieee.
89697         * modules/isnanl (Depends-on): Add fpieee.
89699 2007-03-25  Bruno Haible  <bruno@clisp.org>
89701         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
89703 2007-03-25  Bruno Haible  <bruno@clisp.org>
89705         Avoid test failures on IRIX 6.5.
89706         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
89707         (main): Use it.
89708         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
89709         macros.
89710         (main): Use them.
89712 2007-03-25  Bruno Haible  <bruno@clisp.org>
89714         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
89715         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
89716         exists but doesn't work.
89717         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
89718         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
89719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
89720         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
89721         math.h.
89723 2007-03-25  Bruno Haible  <bruno@clisp.org>
89725         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
89726         returns inf. Needed on IRIX 6.5.
89728 2007-03-25  Bruno Haible  <bruno@clisp.org>
89730         * tests/test-frexpl.c: Include isnanl-nolibm.h.
89731         (main): Use isnanl instead of x != x idiom.
89732         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
89734         * tests/test-frexp.c: Include isnan.h.
89735         (main): Use isnan instead of x != x idiom.
89736         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
89738 2007-03-25  Bruno Haible  <bruno@clisp.org>
89740         * tests/test-frexp.c (NaN): New function/macro.
89741         (main): Use it instead of 0.0 / 0.0.
89742         * tests/test-isnan.c (NaN): New function/macro.
89743         (main): Use it instead of 0.0 / 0.0.
89744         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
89745         (test_function): Use it instead of 0.0 / 0.0.
89746         * tests/test-vasprintf-posix.c (NaN): New function/macro.
89747         (test_function): Use it instead of 0.0 / 0.0.
89748         * tests/test-snprintf-posix.h (NaN): New function/macro.
89749         (test_function): Use it instead of 0.0 / 0.0.
89750         * tests/test-sprintf-posix.h (NaN): New function/macro.
89751         (test_function): Use it instead of 0.0 / 0.0.
89752         * tests/test-fprintf-posix.h (NaN): New function/macro.
89753         (test_function): Use it instead of 0.0 / 0.0.
89754         * tests/test-printf-posix.h (NaN): New function/macro.
89755         (test_function): Use it instead of 0.0 / 0.0.
89757         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
89759 2007-03-25  Bruno Haible  <bruno@clisp.org>
89761         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
89763 2007-03-25  Bruno Haible  <bruno@clisp.org>
89765         * lib/regexec.c (merge_state_with_log): Make static.
89767 2007-03-25  Bruno Haible  <bruno@clisp.org>
89769         * lib/trigl.c (kernel_rem_pio2): Make static.
89771 2007-03-25  Bruno Haible  <bruno@clisp.org>
89773         * lib/sincosl.c (sincosl_table): Make static.
89775 2007-03-25  Bruno Haible  <bruno@clisp.org>
89777         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
89778         if the compiler does not support C99.
89780 2007-03-25  Bruno Haible  <bruno@clisp.org>
89782         * modules/time (Makefile.am): Ensure all rule action lines start with a
89783         tab.
89785 2007-03-24  Bruno Haible  <bruno@clisp.org>
89787         * modules/tsearch-tests: New file.
89788         * tests/test-tsearch.sh: New file.
89789         * tests/test-tsearch.c: New file, mostly copied from glibc.
89791         * modules/search-tests: New file.
89792         * tests/test-search.c: New file.
89794         * modules/search: New file.
89795         * lib/search_.h: New file, incorporating lib/tsearch.h.
89796         * m4/search_h.m4: New file.
89797         * lib/tsearch.h: Remove file.
89798         * lib/tsearch.c: Include search.h instead of tsearch.h.
89799         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
89800         HAVE_TSEARCH.
89801         * modules/tsearch (Files): Remove lib/tsearch.h.
89802         (Depends-on): Add search.
89803         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
89804         (Include): Change tsearch.h into search.h.
89806 2007-03-24  Bruno Haible  <bruno@clisp.org>
89808         * modules/fpucw: New file.
89809         * lib/fpucw.h: New file.
89810         * lib/frexp.c: Include fpucw.h.
89811         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
89812         (FUNC): Use them.
89813         * lib/printf-frexp.c: Include fpucw.h.
89814         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
89815         (FUNC): Use them.
89816         * lib/vasnprintf.c: Include fpucw.h.
89817         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
89818         'long double' calculations.
89819         * tests/test-frexpl.c: Include fpucw.h.
89820         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
89821         * tests/test-printf-frexpl.c: Include fpucw.h.
89822         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
89823         * modules/frexpl (Depends-on): Add fpucw.
89824         * modules/printf-frexpl (Depends-on): Likewise.
89825         * modules/fprintf-posix (Depends-on): Likewise.
89826         * modules/snprintf-posix (Depends-on): Likewise.
89827         * modules/sprintf-posix (Depends-on): Likewise.
89828         * modules/vasnprintf-posix (Depends-on): Likewise.
89829         * modules/vasprintf-posix (Depends-on): Likewise.
89830         * modules/vfprintf-posix (Depends-on): Likewise.
89831         * modules/vsnprintf-posix (Depends-on): Likewise.
89832         * modules/vsprintf-posix (Depends-on): Likewise.
89833         * modules/frexpl-tests (Depends-on): Likewise.
89834         * modules/printf-frexpl-tests (Depends-on): Likewise.
89836 2007-03-24  Bruno Haible  <bruno@clisp.org>
89838         * lib/float+.h: New file.
89839         * lib/isnan.c: Include float+.h.
89840         (SIZE): New macro.
89841         (FUNC): Compare only SIZE bytes of the value.
89842         * lib/vasnprintf.c: Include float+.h.
89843         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
89844         SIZEOF_LDBL or SIZEOF_DBL bytes.
89845         * modules/isnan-nolibm (Files): Add lib/float+.h.
89846         * modules/isnanl-nolibm (Files): Add lib/float+.h.
89847         * modules/isnanl (Files): Add lib/float+.h.
89848         * modules/vasnprintf (Files): Add lib/float+.h.
89850 2007-03-24  Bruno Haible  <bruno@clisp.org>
89852         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
89853         include isnanl-nolibm.h.
89855 2007-03-24  Bruno Haible  <bruno@clisp.org>
89857         * tests/test-read-file.c (main): Don't produce spurious output for
89858         expected situations. Make the test fail if it encountered unexpected
89859         results.
89861 2007-03-24  Bruno Haible  <bruno@clisp.org>
89863         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
89864         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
89866 2007-03-24  Bruno Haible  <bruno@clisp.org>
89868         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
89870 2007-03-24  Bruno Haible  <bruno@clisp.org>
89872         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
89873         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
89875         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
89876         * modules/utf8-ucs4: Turn into a symbolic link to module
89877         unistr/u8-mbtouc.
89879         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
89880         utf8-ucs4-unsafe.
89881         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
89882         unistr/u8-mbtouc-unsafe.
89884         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
89885         * modules/utf16-ucs4: Turn into a symbolic link to module
89886         unistr/u16-mbtouc.
89888         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
89889         utf16-ucs4-unsafe.
89890         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
89891         unistr/u16-mbtouc-unsafe.
89893         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
89894         * modules/ucs4-utf8: Turn into a symbolic link to module
89895         unistr/u8-ubtomb.
89897         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
89898         * modules/ucs4-utf16: Turn into a symbolic link to module
89899         unistr/u16-ubtomb.
89901 2007-03-24  Bruno Haible  <bruno@clisp.org>
89903         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
89904         Enable the function only if HAVE_INLINE.
89905         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
89906         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
89907         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
89908         Enable the function only if HAVE_INLINE.
89909         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
89910         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
89911         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
89912         Enable the function only if HAVE_INLINE.
89913         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
89914         Enable the function only if HAVE_INLINE.
89915         * modules/utf8-ucs4: Update.
89916         * modules/utf8-ucs4-unsafe: Update.
89917         * modules/utf16-ucs4: Update.
89918         * modules/utf16-ucs4-unsafe: Update.
89919         * modules/ucs4-utf8: Update.
89920         * modules/ucs4-utf16: Update.
89922 2007-03-24  Bruno Haible  <bruno@clisp.org>
89924         * lib/utf8-ucs4.h: Remove file.
89925         * lib/utf8-ucs4-unsafe.h: Remove file.
89926         * lib/utf16-ucs4.h: Remove file.
89927         * lib/utf16-ucs4-unsafe.h: Remove file.
89928         * lib/ucs4-utf8.h: Remove file.
89929         * lib/ucs4-utf16.h: Remove file.
89930         * lib/unistr.h: Include their previous contents.
89931         * m4/utf-ucs4.m4: Remove file.
89932         * m4/ucs4-utf.m4: Remove file.
89933         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
89934         (Depends-on): Add unistr/base.
89935         (configure.ac): Remove gl_UTF_UCS4.
89936         (Makefile.am): Update.
89937         (Include): Change to unistr.h.
89938         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
89939         (Depends-on): Add unistr/base.
89940         (configure.ac): Remove gl_UTF_UCS4.
89941         (Makefile.am): Update.
89942         (Include): Change to unistr.h.
89943         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
89944         (Depends-on): Add unistr/base.
89945         (configure.ac): Remove gl_UTF_UCS4.
89946         (Makefile.am): Update.
89947         (Include): Change to unistr.h.
89948         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
89949         (Depends-on): Add unistr/base.
89950         (configure.ac): Remove gl_UTF_UCS4.
89951         (Makefile.am): Update.
89952         (Include): Change to unistr.h.
89953         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
89954         (Depends-on): Add unistr/base.
89955         (configure.ac): Remove gl_UCS4_UTF.
89956         (Makefile.am): Update.
89957         (Include): Change to unistr.h.
89958         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
89959         (Depends-on): Add unistr/base.
89960         (configure.ac): Remove gl_UCS4_UTF.
89961         (Makefile.am): Update.
89962         (Include): Change to unistr.h.
89963         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
89964         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
89965         utf8-ucs4-unsafe.h.
89966         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
89967         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
89968         utf16-ucs4-unsafe.h.
89969         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
89970         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
89971         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
89972         * lib/unistr/u8-strchr.c: Likewise.
89973         * lib/unistr/u8-strrchr.c: Likewise.
89974         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
89975         * lib/unistr/u16-strchr.c: Likewise.
89976         * lib/unistr/u16-strrchr.c: Likewise.
89977         * lib/striconveh.c: Update.
89978         * lib/linebreak.c: Update.
89980 2007-03-24  Bruno Haible  <bruno@clisp.org>
89982         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
89983         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
89985 2007-03-22  Bruno Haible  <bruno@clisp.org>
89987         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
89989 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
89991         * MODULES.html.sh (File system functions): New module write-any-file.
89992         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
89993         * m4/write-any-file.m4: New files.
89995 2007-03-23  Eric Blake  <ebb9@byu.net>
89997         * gnulib-tool: Rearrange space-tab sequences, since some editors
89998         like to eat them.
90000 2007-03-23  Eric Blake  <ebb9@byu.net>
90002         * lib/version-etc.c (version_etc_va): Update license wording to
90003         be more concise.  Recommended by Richard Stallman.
90005 2007-03-22  Bruno Haible  <bruno@clisp.org>
90007         * lib/poll.c (MSG_PEEK): New fallback definition.
90009 2007-03-22  Bruno Haible  <bruno@clisp.org>
90011         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
90012         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
90013         (main): Update.
90014         Fixes a compilation error on BeOS.
90016 2007-03-22  Bruno Haible  <bruno@clisp.org>
90018         * modules/frexpl-tests: New file.
90019         * tests/test-frexpl.c: New file.
90021         * modules/frexpl: New file.
90022         * m4/frexpl.m4: New file.
90023         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
90024         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
90025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
90026         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
90027         (Depends-on): Add frexpl. Remove isnanl-nolibm.
90028         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
90030 2007-03-22  Bruno Haible  <bruno@clisp.org>
90032         * lib/frexpl.c: Share code with lib/frexp.c.
90033         * modules/mathl (Files): Add lib/frexp.c.
90034         (Depends-on): Add isnanl-nolibm.
90036 2007-03-22  Bruno Haible  <bruno@clisp.org>
90038         * modules/printf-frexp (Files): Add m4/frexp.m4.
90039         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
90040         only if the found frexp function actually works.
90042 2007-03-22  Bruno Haible  <bruno@clisp.org>
90044         * lib/frexp.c: Remove older implementation that uses divisions.
90046 2007-03-21  Bruno Haible  <bruno@clisp.org>
90048         * modules/frexp-tests: New file.
90049         * tests/test-frexp.c: New file.
90051         * modules/frexp: New file.
90052         * lib/frexp.c: New file.
90053         * m4/frexp.m4: New file.
90054         * lib/math_.h (frexp): New declaration.
90055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
90056         REPLACE_FREXP.
90057         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
90059 2007-03-21  Bruno Haible  <bruno@clisp.org>
90061         * modules/isnanl-tests: New file.
90062         * tests/test-isnanl.c: New file.
90064         * modules/isnanl: New file.
90065         * lib/isnanl.h: New file.
90066         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
90067         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
90068         gl_FUNC_ISNANL_WORKS.
90069         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
90070         New macros.
90072 2007-03-21  Bruno Haible  <bruno@clisp.org>
90074         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
90075         lib/isnanl.h.
90076         (Include): Update.
90077         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
90078         * lib/vasnprintf.c: Update.
90079         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
90080         tests/test-isnanl.h, remove tests/test-isnanl.c.
90081         (Makefile.am): Update.
90082         * tests/test-isnanl-nolibm.c: New file.
90083         * tests/test-isnanl.h: New file.
90084         * tests/test-isnanl.c: Remove file.
90086 2007-03-21  Jim Meyering  <jim@meyering.net>
90088         When trying to open ".", treat ESTALE like EACCES.
90089         * lib/savewd.c (savewd_save): Resort to forking not just upon
90090         failure with EACCES, but also when errno is ESTALE.
90092 2007-03-20  Bruno Haible  <bruno@clisp.org>
90094         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
90095         Needed on AIX 5.1. Reported by Matthew Woehlke.
90097 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90099         Suggestions by Bruno Haible:
90100         * lib/acl-internal.h: Include "gettext.h" rather than rolling
90101         our own.
90102         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
90103         * modules/acl (Depends-on): Add gettext.
90105 2007-03-19  Bruno Haible  <bruno@clisp.org>
90107         * modules/iconvme: Remove file.
90108         * lib/iconvme.h: Remove file.
90109         * lib/iconvme.c: Remove file.
90110         * m4/iconvme.m4: Remove file.
90112 2007-03-19  Bruno Haible  <bruno@clisp.org>
90114         * doc/relocatable-maint.texi: Break long shell script line.
90115         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90117 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90119         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
90120         handle file_has_acl.
90121         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
90122         * lib/acl.c: Move header inclusions and related macro defns into
90123         lib/acl-internal.h.
90124         (S_ISLNK): Remove defn, since that's now done for us.
90125         (file_has_acl): Move to lib/file-has-acl.c.
90126         Call acl_trivial if available.  This is the crucial part of the fix.
90127         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
90128         shared within the library.  Rewrite a bit, partly to make it compatible
90129         with the GNU coding style.
90130         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
90131         Remove unnecessary double-quotes.
90132         Don't test for acl_to_text; the build will catch that.
90133         Replace acl_entries if it doesn't exist and it is needed.
90134         Check for -lsec and acl_trivial (as used on Solaris 10).
90135         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
90136         lib/file-has-acl.c.
90137         (Depends-on): Add sys_stat, for S_ISLNK.
90139 2007-03-19  Ben Pfaff  <blp@gnu.org>
90141         * doc/gnulib.texi: Fix typos.
90142         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90144 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90146         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
90147         If size is zero here, buf must be zero.
90149 2007-03-19  Simon Josefsson  <simon@josefsson.org>
90151         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
90152         <bruno@clisp.org>.
90154 2007-03-18  Bruno Haible  <bruno@clisp.org>
90156         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
90157         Suggested by Eric Blake.
90159 2007-03-18  Ben Pfaff  <blp@gnu.org>
90161         * doc/relocatable.texi: Recommend using as prefix a directory
90162         that does not exist and will never be created.  Based on
90163         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
90164         and others.
90166 2007-03-17  Bruno Haible  <bruno@clisp.org>
90168         * lib/fchownat.c: Include lchown.h.
90170 2007-03-17  Bruno Haible  <bruno@clisp.org>
90172         Fix endless loop when the given allocated size was > INT_MAX.
90173         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
90174         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
90175         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
90176         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
90177         * lib/sprintf.c (sprintf): Likewise.
90179 2007-03-17  Bruno Haible  <bruno@clisp.org>
90181         * tests/test-argp-2.sh (func_compare): Output a context diff.
90183 2007-03-17  Bruno Haible  <bruno@clisp.org>
90185         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
90186         locale's decimal-point character.
90188 2007-03-17  Bruno Haible  <bruno@clisp.org>
90190         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
90191         before comparing it. Needed because on some platforms (e.g. x86) a
90192         'long double' occupies less bytes than sizeof (long double).
90194 2007-03-17  Bruno Haible  <bruno@clisp.org>
90196         * tests/test-crc.c (main): Make printf statements 64-bit clean.
90197         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
90198         * tests/test-getaddrinfo.c (simple): Likewise.
90199         * tests/test-read-file.c (main): Likewise.
90201 2007-03-17  Bruno Haible  <bruno@clisp.org>
90203         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
90205 2007-03-17  Bruno Haible  <bruno@clisp.org>
90207         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
90208         unused variable.
90210 2007-03-17  Bruno Haible  <bruno@clisp.org>
90212         * tests/test-c-strcasecmp.c: Include c-strcase.h.
90213         * tests/test-c-strncasecmp.c: Likewise.
90215 2007-03-17  Bruno Haible  <bruno@clisp.org>
90217         * modules/stdlib (Depends-on): Add unistd.
90218         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
90219         Needed for MacOS X 10.3.
90221 2007-03-17  Bruno Haible  <bruno@clisp.org>
90223         * lib/unistr/u-strdup.h: Include <stdlib.h>.
90225 2007-03-17  Bruno Haible  <bruno@clisp.org>
90227         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
90229 2007-03-17  Bruno Haible  <bruno@clisp.org>
90231         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
90232         to reflect files copied from gnulib (with or without modifications).
90233         Suggested by Jim Meyering.
90235 2007-03-17  Eric Blake  <ebb9@byu.net>
90237         * NEWS: Document stdlib change from 2007-02-18.
90239 2007-03-17  Jim Meyering  <jim@meyering.net>
90241         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
90242         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
90243         someone uses a name containing shell meta-characters.
90244         Reported by Alfred M. Szmidt.
90246         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
90248 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90250         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
90251         and copy gettext configuration files only if configure.ac contains
90252         a use of AM_GNU_GETTEXT_VERSION.
90254 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90256         * build-aux/bootstrap (gnulib_name): New variable.
90257         (gnulib_tool_options): Use it.
90259 2007-03-13  Simon Josefsson  <simon@josefsson.org>
90261         * tests/test-des.c: Use new namespace.
90263 2007-03-15  Bruno Haible  <bruno@clisp.org>
90265         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
90266         Reported by James Youngman <jay@gnu.org>.
90268 2007-03-15  Bruno Haible  <bruno@clisp.org>
90270         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
90271         declared prototype. Needed with cc on OSF/1 5.1.
90273 2007-03-15  Bruno Haible  <bruno@clisp.org>
90275         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
90276         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
90277         (struct gl_list_implementation): Add dispose_fn argument to the
90278         'create_empty', 'create' methods.
90279         (struct gl_list_impl_base): Add field 'dispose_fn'.
90280         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
90281         argument.
90282         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
90283         dispose_fn argument.
90284         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
90285         dispose_fn on the dropped values.
90286         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
90287         dispose_fn argument.
90288         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
90289         dropped values.
90290         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
90291         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90292         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
90293         (gl_tree_remove_node): Call dispose_fn on the dropped value.
90294         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
90295         argument.
90296         (gl_tree_list_free): Call dispose_fn on the dropped values.
90297         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
90298         the dropped values.
90299         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
90300         Add dispose_fn argument.
90301         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
90302         Call dispose_fn on the dropped values.
90303         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
90304         Add dispose_fn argument.
90305         (gl_sublist_create): Initialize the 'dispose_fn' field.
90306         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
90307         * tests/test-array_list.c (main): Update.
90308         * tests/test-carray_list.c (main): Update.
90309         * tests/test-avltree_list.c (main): Update.
90310         * tests/test-rbtree_list.c (main): Update.
90311         * tests/test-avltreehash_list.c (main): Update.
90312         * tests/test-rbtreehash_list.c (main): Update.
90313         * tests/test-linked_list.c (main): Update.
90314         * tests/test-linkedhash_list.c (main): Update.
90315         * tests/test-array_oset.c (main): Update.
90317 2007-03-15  Bruno Haible  <bruno@clisp.org>
90319         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
90320         (gl_oset_create_empty): Add dispose_fn argument.
90321         (struct gl_oset_implementation): Add dispose_fn argument to
90322         'create_empty' method.
90323         (struct gl_oset_impl_base): Add dispose_fn field.
90324         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
90325         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
90326         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
90327         values.
90328         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
90329         (gl_tree_oset_free): Call dispose_fn on the dropped values.
90330         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90331         dropped value.
90332         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
90333         dropped value.
90334         * tests/test-array_oset.c (main): Update.
90335         * tests/test-avltree_oset.c (main): Update.
90336         * tests/test-rbtree_oset.c (main): Update.
90337         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
90339 2007-03-13  Bruno Haible  <bruno@clisp.org>
90341         * tests/test-stdbool.c (i): Update after last patch.
90343 2007-03-12  Bruno Haible  <bruno@clisp.org>
90345         * lib/quotearg.c: Include <wctype.h> early, before the definition of
90346         the iswprint macro. Needed on Solaris 2.5.1.
90348 2007-03-12  Bruno Haible  <bruno@clisp.org>
90350         * tests/test-printf-frexp.c (main): Declare x as volatile.
90352 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90354         * doc/gnulib.texi (Build robot for gnulib): New section.
90356 2007-03-12  Jim Meyering  <jim@meyering.net>
90358         * build-aux/bootstrap: New file.
90359         * build-aux/bootstrap.conf: New file, from coreutils.
90361 2007-03-11  Bruno Haible  <bruno@clisp.org>
90363         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
90365 2007-03-12  Simon Josefsson  <simon@josefsson.org>
90367         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
90368         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
90369         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
90371 2007-03-11  Bruno Haible  <bruno@clisp.org>
90373         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
90374         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
90376 2007-03-11  Bruno Haible  <bruno@clisp.org>
90378         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
90379         formula. Needed for SunPRO C 5.0.
90381 2007-03-11  Bruno Haible  <bruno@clisp.org>
90383         * modules/long-options (Depends-on): Add getopt.
90385 2007-03-11  Bruno Haible  <bruno@clisp.org>
90387         * modules/modechange (Depends-on): Add stdbool.
90389 2007-03-11  Bruno Haible  <bruno@clisp.org>
90391         * modules/i-ring (Depends-on): Add stdbool.
90393 2007-03-11  Bruno Haible  <bruno@clisp.org>
90395         * modules/gc-des (Depends-on): Add stdbool.
90397 2007-03-11  Bruno Haible  <bruno@clisp.org>
90399         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
90401 2007-03-11  Bruno Haible  <bruno@clisp.org>
90403         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
90405 2007-03-11  Bruno Haible  <bruno@clisp.org>
90407         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
90409 2007-03-11  Bruno Haible  <bruno@clisp.org>
90411         * lib/vasnprintf.c (sprintf): Undefine.
90413 2007-03-11  Bruno Haible  <bruno@clisp.org>
90415         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
90416         initializers in SunPRO C and Compaq C compilers.
90418 2007-03-11  Bruno Haible  <bruno@clisp.org>
90420         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
90421         decrementing code ANSI C compliant.
90423 2007-03-11  Bruno Haible  <bruno@clisp.org>
90425         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
90426         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
90428 2007-03-11  Bruno Haible  <bruno@clisp.org>
90430         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
90431         <stdbool.h> substitute doesn't pass.
90433 2007-03-11  Bruno Haible  <bruno@clisp.org>
90435         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
90437 2007-03-11  Bruno Haible  <bruno@clisp.org>
90439         * gnulib-tool (func_create_megatestdir): Create also an autobuild
90440         script, for submission to autobuild.josefsson.org.
90442 2007-03-10  Bruno Haible  <bruno@clisp.org>
90444         * modules/canonicalize-lgpl-tests: New file.
90445         * tests/test-canonicalize-lgpl.sh: New file.
90446         * tests/test-canonicalize-lgpl.c: New file.
90448         * modules/c-strcase-tests: New file.
90449         * tests/test-c-strcase.sh: New file.
90450         * tests/test-c-strcasecmp.c: New file.
90451         * tests/test-c-strncasecmp.c: New file.
90453         * modules/atexit-tests: New file.
90454         * tests/test-atexit.sh: New file.
90455         * tests/test-atexit.c: New file.
90457 2007-03-10  Bruno Haible  <bruno@clisp.org>
90459         * tests/test-binary-io.sh: Use temporary filenames that are not so
90460         likely to clash with those of other tests (in a parallel make).
90461         * tests/test-binary-io.c: Likewise.
90463 2007-03-10  Bruno Haible  <bruno@clisp.org>
90465         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
90466         fallback; use #error instead.
90467         Suggested by Simon Josefsson.
90469 2007-03-10  Bruno Haible  <bruno@clisp.org>
90471         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
90472         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
90473         first and the last.
90475 2007-03-10  Bruno Haible  <bruno@clisp.org>
90477         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
90479 2007-03-10  Bruno Haible  <bruno@clisp.org>
90481         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
90482         "make distcheck".
90483         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
90484         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
90485         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
90487 2007-03-10  Bruno Haible  <bruno@clisp.org>
90489         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
90490         variable.
90491         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
90492         variable.
90494 2007-03-09  Eric Blake  <ebb9@byu.net>
90495         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
90497         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
90498         types are not being provided by gnulib.
90499         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
90500         types are supported.
90502 2007-03-10  Bruno Haible  <bruno@clisp.org>
90504         * lib/stdio_.h (__attribute__): New macro.
90505         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
90506         vsprintf): Specify __attribute__ __format__ for GCC.
90507         Suggested by Eric Blake.
90509 2007-03-09  Bruno Haible  <bruno@clisp.org>
90511         * modules/printf-posix-tests: New file.
90512         * tests/test-printf-posix.sh: New file.
90513         * tests/test-printf-posix.c: New file.
90515         * modules/printf-posix: New file.
90516         * lib/printf.c: New file.
90517         * m4/printf-posix-rpl.m4: New file.
90518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
90519         REPLACE_PRINTF.
90520         * lib/stdio_.h (printf): New declaration.
90521         (format, __format__, ____printf____, ____scanf____, ____strftime____,
90522         ____strfmon____): New macros.
90523         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
90524         REPLACE_PRINTF.
90526 2007-03-09  Bruno Haible  <bruno@clisp.org>
90528         * tests/test-vasnprintf-posix2.sh: New file.
90529         * tests/test-vasnprintf-posix2.c: New file.
90530         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
90531         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
90532         (Makefile.am): Activate test-vasnprintf-posix2.sh.
90534         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
90535         a locale dependent decimal point, rather than always '.'.
90537 2007-03-09  Eric Blake  <ebb9@byu.net>
90539         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
90540         spite of platforms like Tandem/NSK that define it to -1.
90542 2007-03-08  Bruno Haible  <bruno@clisp.org>
90544         * modules/vprintf-posix-tests: New file.
90545         * tests/test-vprintf-posix.sh: New file.
90546         * tests/test-vprintf-posix.c: New file.
90547         * tests/test-printf-posix.h: New file.
90549         * modules/vprintf-posix: New file.
90550         * lib/vprintf.c: New file.
90551         * m4/vprintf-posix.m4: New file.
90552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
90553         REPLACE_VPRINTF.
90554         * lib/stdio_.h (vprintf): New declaration.
90555         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
90556         REPLACE_VPRINTF.
90558 2007-03-08  Bruno Haible  <bruno@clisp.org>
90560         * modules/fprintf-posix-tests: New file.
90561         * tests/test-fprintf-posix.sh: New file.
90562         * tests/test-fprintf-posix.c: New file.
90564         * modules/fprintf-posix: New file.
90565         * lib/fprintf.c: New file.
90566         * m4/fprintf-posix.m4: New file.
90567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
90568         REPLACE_FPRINTF.
90569         * lib/stdio_.h (fprintf): New declaration.
90570         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
90571         REPLACE_FPRINTF.
90573 2007-03-08  Bruno Haible  <bruno@clisp.org>
90575         * modules/vfprintf-posix-tests: New file.
90576         * tests/test-vfprintf-posix.sh: New file.
90577         * tests/test-vfprintf-posix.c: New file.
90578         * tests/test-fprintf-posix.h: New file.
90579         * tests/test-fprintf-posix.out: New file.
90581         * modules/vfprintf-posix: New file.
90582         * lib/vfprintf.c: New file.
90583         * m4/vfprintf-posix.m4: New file.
90584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
90585         REPLACE_VFPRINTF.
90586         * lib/stdio_.h (vfprintf): New declaration.
90587         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
90588         REPLACE_VFPRINTF.
90590 2007-03-08  Bruno Haible  <bruno@clisp.org>
90592         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
90594 2007-03-08  Bruno Haible  <bruno@clisp.org>
90596         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
90597         instead of 'expr' invocations.
90598         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
90599         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
90600         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
90601         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
90602         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
90603         Suggested by Paul Eggert.
90605 2007-03-08  Bruno Haible  <bruno@clisp.org>
90607         * modules/fseterr-tests: New file.
90608         * tests/test-fseterr.c: New file.
90610         * modules/fseterr: New file.
90611         * lib/fseterr.h: New file.
90612         * lib/fseterr.c: New file.
90614 2007-03-08  Bruno Haible  <bruno@clisp.org>
90616         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
90617         * lib/getopt_.h: Likewise.
90618         * lib/mbswidth.h: Likewise.
90619         * lib/setenv.h: Likewise.
90620         * lib/vasnprintf.h: Likewise.
90621         * lib/vasprintf.h: Likewise.
90622         * lib/verror.h: Likewise.
90623         * lib/xsetenv.h: Likewise.
90624         * lib/xvasprintf.h: Likewise.
90626 2007-03-08  Jim Meyering  <jim@meyering.net>
90628         * users.txt: Add parted.
90630         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
90632 2007-03-07  Bruno Haible  <bruno@clisp.org>
90634         * m4/printf.m4: Make the shell script snippets copy&pastable.
90636 2007-03-02  Bruno Haible  <bruno@clisp.org>
90638         * lib/netinet_in_.h: New file.
90639         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
90640         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
90641         * modules/netinet_in (Files): Add lib/netinet_in_.h.
90642         (Depends-on): Add absolute-header.
90643         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
90644         into netinet/in.h.
90646 2007-03-03  Bruno Haible  <bruno@clisp.org>
90648         * lib/sys_select_.h: New file.
90649         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
90650         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
90651         * modules/sys_select (Files): Add lib/sys_select_.h.
90652         (Depends-on): Add absolute-header.
90653         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
90654         into sys/select.h.
90656 2007-03-02  Bruno Haible  <bruno@clisp.org>
90658         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
90659         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
90660         values.
90661         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
90662         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
90663         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
90664         * modules/sys_socket (Depends-on): Add absolute-header.
90665         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
90666         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
90667         (Include): Remove requirement of inclusion of <sys/types.h>.
90669 2007-03-02  Bruno Haible  <bruno@clisp.org>
90671         * lib/byteswap_.h (bswap_32): Fix formula.
90673 2007-03-06  Bruno Haible  <bruno@clisp.org>
90675         * modules/sprintf-posix-tests: New file.
90676         * tests/test-sprintf-posix.c: New file.
90678         * modules/sprintf-posix: New file.
90679         * lib/sprintf.c: New file.
90680         * m4/sprintf-posix.m4: New file.
90681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
90682         REPLACE_SPRINTF.
90683         * lib/stdio_.h (sprintf): New declaration.
90684         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
90685         REPLACE_SPRINTF.
90687 2007-03-06  Bruno Haible  <bruno@clisp.org>
90689         * modules/vsprintf-posix-tests: New file.
90690         * tests/test-vsprintf-posix.c: New file.
90691         * tests/test-sprintf-posix.h: New file.
90693         * modules/vsprintf-posix: New file.
90694         * lib/vsprintf.c: New file.
90695         * m4/vsprintf-posix.m4: New file.
90696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
90697         REPLACE_VSPRINTF.
90698         * lib/stdio_.h (vsprintf): New declaration.
90699         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
90700         REPLACE_VSPRINTF.
90702 2007-03-06  Bruno Haible  <bruno@clisp.org>
90704         * modules/vsnprintf (Depend-on): Remove minmax.
90706 2007-03-06  Bruno Haible  <bruno@clisp.org>
90708         * modules/snprintf-posix-tests: New file.
90709         * tests/test-snprintf-posix.c: New file.
90711         * modules/snprintf-posix: New file.
90712         * m4/snprintf-posix.m4: New file.
90713         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
90714         gl_FUNC_SNPRINTF.
90715         (gl_FUNC_SNPRINTF): Invoke it.
90716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
90717         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
90718         is set.
90719         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
90721 2007-03-06  Bruno Haible  <bruno@clisp.org>
90723         * modules/vsnprintf-posix-tests: New file.
90724         * tests/test-vsnprintf-posix.c: New file.
90725         * tests/test-snprintf-posix.h: New file.
90727         * modules/vsnprintf-posix: New file.
90728         * m4/vsnprintf-posix.m4: New file.
90729         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
90730         gl_FUNC_VSNPRINTF.
90731         (gl_FUNC_VSNPRINTF): Invoke it.
90732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
90733         * lib/stdio_.h (vsnprintf): Define as a replacement if
90734         REPLACE_VSNPRINTF is set.
90735         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
90737 2007-03-06  Bruno Haible  <bruno@clisp.org>
90739         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
90740         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
90742 2007-03-06  Bruno Haible  <bruno@clisp.org>
90744         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
90745         (asinl): Declare also if HAVE_DECL_ASINL is set.
90746         (atanl): Declare also if HAVE_DECL_ATANL is set.
90747         (ceill): Declare also if HAVE_DECL_CEILL is set.
90748         (cosl): Declare also if HAVE_DECL_COSL is set.
90749         (expl): Declare also if HAVE_DECL_EXPL is set.
90750         (floorl): Declare also if HAVE_DECL_FLOORL is set.
90751         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
90752         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
90753         (logl): Declare also if HAVE_DECL_LOGL is set.
90754         (sinl): Declare also if HAVE_DECL_SINL is set.
90755         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
90756         (tanl): Declare also if HAVE_DECL_TANL is set.
90757         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
90758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
90759         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
90760         declaration of frexpl, ldexpl.
90761         * modules/printf-frexpl (Depends-on): Add math.
90762         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
90764 2007-03-05  Bruno Haible  <bruno@clisp.org>
90766         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
90767         frexpl and ldexpl are declared.
90768         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
90770 2007-03-05  Bruno Haible  <bruno@clisp.org>
90772         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
90773         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
90775 2007-03-05  Bruno Haible  <bruno@clisp.org>
90777         * lib/stdio_.h: Include <stddef.h>.
90779 2007-03-05  Bruno Haible  <bruno@clisp.org>
90781         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
90783 2007-03-05  Bruno Haible  <bruno@clisp.org>
90785         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
90786         NetBSD 4, from Ralf Wildenhues.
90788 2007-03-04  Bruno Haible  <bruno@clisp.org>
90790         * lib/vasprintf.h: Update #if logic for the case when the functions
90791         exist but are overridden.
90793 2007-03-04  Bruno Haible  <bruno@clisp.org>
90795         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
90796         implementations: glibc-2.4 and MacOS X 10.3.
90797         * tests/test-vasnprintf-posix.c (test_function): Test also the case
90798         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
90799         * tests/test-vasprintf-posix.c (test_function): Likewise.
90801 2007-03-04  Bruno Haible  <bruno@clisp.org>
90803         * modules/vasprintf-posix-tests: New file.
90804         * tests/test-vasprintf-posix.c: New file.
90806         * modules/vasprintf-posix: New file.
90807         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
90808         defined.
90809         * m4/vasprintf-posix.m4: New file.
90810         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
90811         gl_FUNC_VASPRINTF.
90812         (gl_FUNC_VASPRINTF): Invoke it.
90813         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
90814         here.
90815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
90817 2007-03-04  Bruno Haible  <bruno@clisp.org>
90819         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
90820         REPLACE_GETTIMEOFDAY.
90821         * modules/sys_time (Makefile.am): Likewise.
90822         * m4/sys_time_h.m4: Likewise.
90823         * m4/gettimeofday.m4: Likewise.
90825 2007-03-04  Bruno Haible  <bruno@clisp.org>
90827         * modules/vasnprintf-posix-tests: New file.
90828         * tests/test-vasnprintf-posix.c: New file.
90830         * modules/vasnprintf-posix: New file.
90831         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
90832         printf-frexpl.h.
90833         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
90834         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
90835         REPLACE_VASNPRINTF is defined.
90836         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
90837         gl_FUNC_VASNPRINTF.
90838         (gl_FUNC_VASNPRINTF): Invoke it.
90839         * m4/vasnprintf-posix.m4: New file.
90840         * m4/printf.m4: New file.
90842 2007-03-04  Bruno Haible  <bruno@clisp.org>
90844         Compile progreloc.c only if --enable-relocatable is specified.
90845         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
90846         if --enable-relocatable was specified.
90847         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
90848         lib_SOURCES.
90850 2007-03-04  Jim Meyering  <jim@meyering.net>
90852         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
90853         Use it consistently, rather than enumerating errno constants.
90855 2007-03-04  Bruno Haible  <bruno@clisp.org>
90857         * modules/xvasprintf-tests: New file.
90858         * tests/test-xvasprintf.c: New file.
90860         * modules/vasprintf-tests: New file.
90861         * tests/test-vasprintf.c: New file.
90863         * modules/vasnprintf-tests: New file.
90864         * tests/test-vasnprintf.c: New file.
90866         * modules/vsnprintf-tests: New file.
90867         * tests/test-vsnprintf.c: New file.
90869         * modules/snprintf-tests: New file.
90870         * tests/test-snprintf.c: New file.
90872 2007-03-04  Bruno Haible  <bruno@clisp.org>
90874         Compile relocatable.c only if --enable-relocatable is specified.
90875         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
90876         gl_RELOCATABLE_LIBRARY.
90877         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
90878         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
90879         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
90880         gl_RELOCATABLE_LIBRARY.
90881         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
90882         (Makefile.am): Remove lib_SOURCES.
90883         * modules/relocatable-lib-lgpl (configure.ac): Invoke
90884         gl_RELOCATABLE_LIBRARY.
90885         (Makefile.am): Remove lib_SOURCES.
90886         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
90887         always.
90888         * modules/relocatable-prog-wrapper (configure.ac): Invoke
90889         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
90891 2007-03-04  Bruno Haible  <bruno@clisp.org>
90893         * modules/argmatch-tests: New file.
90894         * tests/test-argmatch.c: New file.
90896         * tests/test-allocsa.c (main): Halve the number of loop runs.
90898         * modules/alloca-opt-tests: New file.
90899         * tests/test-alloca-opt.c: New file.
90901 2007-03-04  Jim Meyering  <jim@meyering.net>
90903         Work around difference between Linux ACLs and Solaris 10 ZFS.
90904         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
90905         for EINVAL.
90907 2007-03-03  Bruno Haible  <bruno@clisp.org>
90909         * modules/relocatable-prog (Depends-on): Add back progreloc's
90910         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
90912 2007-03-03  Bruno Haible  <bruno@clisp.org>
90914         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
90915         * modules/relocatable-lib: New file.
90917 2007-03-03  Bruno Haible  <bruno@clisp.org>
90919         * modules/relocatable-prog: Renamed from modules/relocatable.
90920         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
90922 2007-03-03  Bruno Haible  <bruno@clisp.org>
90924         * modules/relocatable-script (Files): Add doc/relocatable.texi,
90925         m4/relocatable-lib.m4.
90926         (Depends-on): Remove 'relocatable'.
90927         (configure.ac): Add gl_RELOCATABLE_NOP.
90929 2007-03-03  Bruno Haible  <bruno@clisp.org>
90931         * modules/relocatable-prog-wrapper: New file.
90932         * modules/relocatable (Depends-on): Add it. Remove all other
90933         dependencies except progname.
90934         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
90936         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
90937         (gl_FUNC_STRERROR): Nop.
90938         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
90940         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
90941         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
90943         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
90944         (gl_FUNC_READLINK): Update.
90946         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
90948 2007-03-03  Bruno Haible  <bruno@clisp.org>
90950         * lib/xreadlink.c: Include <unistd.h> unconditionally.
90951         * modules/xreadlink (Depends-on): Add unistd.
90952         * modules/xreadlink-with-size (Depends-on): Likewise.
90954 2007-03-03  Bruno Haible  <bruno@clisp.org>
90956         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
90957         extracted from gt_FUNC_SETENV.
90958         (gt_FUNC_SETENV): Remove macro.
90959         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
90960         remove gt_FUNC_SETENV.
90962 2007-03-03  Bruno Haible  <bruno@clisp.org>
90964         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
90965         ENABLE_RELOCATABLE here.
90966         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
90968 2007-03-03  Bruno Haible  <bruno@clisp.org>
90970         * modules/rbtreehash-list-tests (Depends-on): Add progname.
90971         * tests/test-rbtreehash_list.c: Include progname.h.
90972         (main): Call set_program_name.
90974         * modules/rbtree-oset-tests (Depends-on): Add progname.
90975         * tests/test-rbtree_oset.c: Include progname.h.
90976         (main): Call set_program_name.
90978         * modules/rbtree-list-tests (Depends-on): Add progname.
90979         * tests/test-rbtree_list.c: Include progname.h.
90980         (main): Call set_program_name.
90982         * modules/linked-list-tests (Depends-on): Add progname.
90983         * tests/test-linked_list.c: Include progname.h.
90984         (main): Call set_program_name.
90986 2007-03-03  Bruno Haible  <bruno@clisp.org>
90988         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
90989         All uses of __restrict changed to _Restrict_.
90990         * lib/glob_.h (__restrict): Remove macro.
90992 2007-03-02  Bruno Haible  <bruno@clisp.org>
90994         * modules/gettext (configure.ac): Require gettext infrastructure
90995         from version 0.16.1.
90997 2007-03-02  Bruno Haible  <bruno@clisp.org>
90999         * modules/linkedhash-list-tests (Depends-on): Add progname.
91000         * tests/test-linkedhash_list.c: Include progname.h.
91001         (main): Call set_program_name.
91003         * modules/carray-list-tests (Depends-on): Add progname.
91004         * tests/test-carray_list.c: Include progname.h.
91005         (main): Call set_program_name.
91007         * modules/avltreehash-list-tests (Depends-on): Add progname.
91008         * tests/test-avltreehash_list.c: Include progname.h.
91009         (main): Call set_program_name.
91011         * modules/avltree-oset-tests (Depends-on): Add progname.
91012         * tests/test-avltree_oset.c: Include progname.h.
91013         (main): Call set_program_name.
91015         * modules/avltree-list-tests (Depends-on): Add progname.
91016         * tests/test-avltree_list.c: Include progname.h.
91017         (main): Call set_program_name.
91019         * modules/array-oset-tests (Depends-on): Add progname.
91020         * tests/test-array_oset.c: Include progname.h.
91021         (main): Call set_program_name.
91023         * modules/array-list-tests (Depends-on): Add progname.
91024         * tests/test-array_list.c: Include progname.h.
91025         (main): Call set_program_name.
91027         * modules/argp-tests (Depends-on): Add progname.
91028         * tests/test-argp.c: Include argp.h first. Include progname.h.
91029         (main): Call set_program_name.
91031 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
91033         * doc/gnulib-tool.texi (Initial import): Reword description of
91034         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
91035         limited effect even if defined after the first system include.
91037 2007-03-01  Bruno Haible  <bruno@clisp.org>
91039         * build-aux/config.libpath: Update to libtool-1.5.22.
91040         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91042 2007-03-01  Bruno Haible  <bruno@clisp.org>
91044         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
91045         foo_CFLAGS.
91046         Reported by Ralf Wildenhues.
91048 2007-03-01  Bruno Haible  <bruno@clisp.org>
91050         * build-aux/install-reloc: Remove object files left over by some
91051         compilers.
91052         Reported by Ralf Wildenhues.
91054 2007-03-01  Bruno Haible  <bruno@clisp.org>
91056         * build-aux/install-reloc: Break long lines.
91058 2007-03-01  Bruno Haible  <bruno@clisp.org>
91060         * doc/relocatable.texi: Document that it may not work on OpenBSD.
91061         Reported by Ralf Wildenhues.
91063 2007-03-01  Bruno Haible  <bruno@clisp.org>
91065         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
91066         include ordering constraints.
91068 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
91070         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
91071         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
91072         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
91073         as another example.
91074         * lib/time_.h: Fix misspelling.
91075         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91076         Require gl_HEADER_TIME_H_DEFAULTS.
91077         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
91078         * m4/time_r.m4 (gl_TIME_R): Likewise.
91079         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
91081 2007-03-01  Bruno Haible  <bruno@clisp.org>
91083         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
91084         * m4/utimens.m4 (gl_UTIMENS): Likewise.
91086 2007-03-01  Jim Meyering  <jim@meyering.net>
91088         * modules/xreadlink (Maintainer): Add my name.
91089         * modules/xreadlink-with-size (Depends-on): Alphabetize.
91091 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
91092             Bruno Haible  <bruno@clisp.org>
91094         * build-aux/install-reloc: Compile also c-ctype.c.
91095         * build-aux/relocatable.sh.in: New file.
91096         * doc/relocatable.texi: New file.
91097         * doc/relocatable-maint.texi: New file.
91098         * doc/gnulib.texi: Include relocatable-maint.texi.
91099         * lib/progreloc.c: Include unistd.h unconditionally.
91100         * lib/relocwrapper.c: Include unistd.h unconditionally.
91101         Include c-ctype.h.
91102         (add_dotbin): Use c_tolower.
91103         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
91104         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
91105         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
91106         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
91107         to m4/relocatable-lib.m4.
91108         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
91109         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
91110         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
91111         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
91112         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
91113         * modules/relocatable: New file.
91114         * modules/relocatable-lib: New file.
91115         * modules/relocatable-script: New file.
91117 2007-02-28  Bruno Haible  <bruno@clisp.org>
91119         Import --enable-relocatable infrastructure.
91120         * build-aux/config.libpath: New file, from GNU gettext.
91121         * build-aux/install-reloc: New file, from GNU gettext.
91122         * build-aux/reloc-ldflags: New file, from GNU gettext.
91123         * lib/relocatable.h: New file, from GNU gettext.
91124         * lib/relocatable.c: New file, from GNU gettext.
91125         * lib/relocwrapper.c: New file, from GNU gettext.
91126         * m4/relocatable.m4: New file, from GNU gettext.
91128 2007-02-28  Bruno Haible  <bruno@clisp.org>
91130         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
91132         * modules/xreadlink: New file, from GNU gettext with modifications.
91133         * lib/xreadlink.c: New file, from GNU gettext.
91134         * lib/xreadlink.h: Add comments.
91135         (xreadlink): New declaration.
91137         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
91138         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
91139         lib/xreadlink-with-size.c.
91140         (configure.ac): Remove gl_XREADLINK invocation.
91141         (Makefile.am): Augment lib_SOURCES.
91142         * m4/xreadlink.m4: Remove file.
91143         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
91144         (xreadlink_with_size): Renamed from xreadink.
91145         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
91146         * modules/canonicalize (Depends-on): Replace xreadlink with
91147         xreadlink-with-size.
91148         * lib/canonicalize.c (canonicalize_filename_mode): Update.
91150 2007-02-25  Jim Meyering  <jim@meyering.net>
91152         * build-aux/announce-gen: When complaining about excess arguments,
91153         list them.
91155 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
91157         * README: Document signed integer overflow situation more
91158         accurately.
91160 2007-02-25  Bruno Haible  <bruno@clisp.org>
91162         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
91163         'a' or 'A' conversion.
91165 2007-02-25  Bruno Haible  <bruno@clisp.org>
91167         * modules/filename: Renamed from modules/pathname.
91168         (Files): Replace lib/pathname.h with lib/filename.h. Replace
91169         lib/concatpath.c with lib/concat-filename.c.
91170         (Makefile.am): Update.
91171         (Include): Replace pathname.h with filename.h.
91172         * lib/filename.h: Renamed from lib/pathname.h.
91173         (concatenated_filename): Renamed from concatenated_pathname.
91174         * lib/concat-filename.c: Renamed from lib/concatpath.c.
91175         (concatenated_filename): Renamed from concatenated_pathname.
91176         * lib/findprog.c: Include filename.h instead of pathname.h.
91177         (find_in_path): Update.
91178         * lib/javacomp.c: Include filename.h instead of pathname.h.
91179         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91180         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91181         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91182         is_oldgcj_14_13_usable, is_javac_usable): Update.
91183         * lib/javaexec.c: Include filename.h instead of pathname.h.
91184         (execute_java_class): Update.
91185         * modules/findprog: Update.
91186         * modules/javacomp: Update.
91187         * modules/javaexec: Update.
91188         * MODULES.html.sh (File system functions): Add 'filename', remove
91189         'pathname'.
91191 2007-02-25  Bruno Haible  <bruno@clisp.org>
91193         * modules/printf-frexpl-tests: New file.
91194         * tests/test-printf-frexpl.c: New file.
91196         * modules/printf-frexpl: New file.
91197         * lib/printf-frexpl.h: New file.
91198         * lib/printf-frexpl.c: New file.
91199         * m4/printf-frexpl.m4: New file.
91201 2007-02-25  Bruno Haible  <bruno@clisp.org>
91203         * modules/printf-frexp-tests: New file.
91204         * tests/test-printf-frexp.c: New file.
91206         * modules/printf-frexp: New file.
91207         * lib/printf-frexp.h: New file.
91208         * lib/printf-frexp.c: New file.
91209         * m4/printf-frexp.m4: New file.
91211 2007-02-25  Bruno Haible  <bruno@clisp.org>
91213         Assume automake >= 1.10 for the tests.
91214         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
91215         * modules/arctwo-tests: Likewise.
91216         * modules/argp-tests: Likewise.
91217         * modules/avltree-list-tests: Likewise.
91218         * modules/avltree-oset-tests: Likewise.
91219         * modules/avltreehash-list-tests: Likewise.
91220         * modules/carray-list-tests: Likewise.
91221         * modules/crc-tests: Likewise.
91222         * modules/des-tests: Likewise.
91223         * modules/gc-arcfour-tests: Likewise.
91224         * modules/gc-arctwo-tests: Likewise.
91225         * modules/gc-des-tests: Likewise.
91226         * modules/gc-hmac-md5-tests: Likewise.
91227         * modules/gc-hmac-sha1-tests: Likewise.
91228         * modules/gc-md2-tests: Likewise.
91229         * modules/gc-md4-tests: Likewise.
91230         * modules/gc-md5-tests: Likewise.
91231         * modules/gc-pbkdf2-sha1-tests: Likewise.
91232         * modules/gc-rijndael-tests: Likewise.
91233         * modules/gc-sha1-tests: Likewise.
91234         * modules/gc-tests: Likewise.
91235         * modules/getaddrinfo-tests: Likewise.
91236         * modules/hmac-md5-tests: Likewise.
91237         * modules/hmac-sha1-tests: Likewise.
91238         * modules/linked-list-tests: Likewise.
91239         * modules/linkedhash-list-tests: Likewise.
91240         * modules/lock-tests: Likewise.
91241         * modules/md2-tests: Likewise.
91242         * modules/md4-tests: Likewise.
91243         * modules/md5-tests: Likewise.
91244         * modules/rbtree-list-tests: Likewise.
91245         * modules/rbtree-oset-tests: Likewise.
91246         * modules/rbtreehash-list-tests: Likewise.
91247         * modules/read-file-tests: Likewise.
91248         * modules/rijndael-tests: Likewise.
91249         * modules/stdint-tests: Likewise.
91250         * modules/tls-tests: Likewise.
91252 2007-02-24  Bruno Haible  <bruno@clisp.org>
91254         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
91255         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
91256         function; instead check whether isnan with a double argument links.
91257         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
91258         function; instead check whether isnan with a 'long double' argument
91259         links.
91260         Reported by Eric Blake <ebb9@byu.net>.
91262 2007-02-24  Bruno Haible  <bruno@clisp.org>
91264         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
91265         defined.
91266         * lib/isnanl.c: Remove all code. Just include isnan.c.
91267         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
91269 2007-02-25  Jim Meyering  <jim@meyering.net>
91271         Avoid conflicting types for 'unsetenv' on FreeBSD.
91272         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
91273         conflicting with FreeBSD's (5.0 and 6.1) function declaration
91274         in stdlib.h.
91276 2007-02-24  Bruno Haible  <bruno@clisp.org>
91278         * modules/isnanl-nolibm-tests: New file.
91279         * tests/test-isnanl.c: New file.
91281         * modules/isnanl-nolibm: New file.
91282         * lib/isnanl.h: New file.
91283         * lib/isnanl.c: New file.
91284         * m4/isnanl.m4: New file.
91286 2007-02-24  Bruno Haible  <bruno@clisp.org>
91288         * modules/isnan-nolibm-tests: New file.
91289         * tests/test-isnan.c: New file.
91291         * modules/isnan-nolibm: New file.
91292         * lib/isnan.h: New file.
91293         * lib/isnan.c: New file.
91294         * m4/isnan.m4: New file.
91296 2007-02-24  Bruno Haible  <bruno@clisp.org>
91298         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
91299         assume that an exponent fits in 20 bits.
91301 2007-02-24  Jim Meyering  <jim@meyering.net>
91303         * m4/regex.m4: Update the description of the configure-time option,
91304         --without-included-regex, to state accurately what the defaults are,
91305         and perhaps to give people an idea why using this option is risky.
91307 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
91309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
91310         loops on small arguments.  This attempts to avoid the problem
91311         Bruno Haible reported for AIX 4.3.2 in
91312         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
91314 2007-02-23  Bruno Haible  <bruno@clisp.org>
91316         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
91317         Needed for help2man.
91319 2007-02-23  Karl Berry  <karl@gnu.org>
91321         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
91322         exists, foo.h should be cvs-ignored, not committed.
91324 2007-02-23  Eric Blake  <ebb9@byu.net>
91326         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
91327         * lib/stat-time.h (includes): Likewise.
91328         * lib/utimecmp.c (includes): Likewise.
91329         * lib/utimens.h (includes): Likewise.
91330         * lib/getdate.y (includes): Also include "timespec.h" for use
91331         internal to the module.
91332         * modules/utimens (Depends-on): Revert yesterday's patch.
91333         * modules/nanosleep (Depends-on): Add missing dependency.
91335 2007-02-22  Bruno Haible  <bruno@clisp.org>
91337         * lib/glob.c: Don't include getlogin_r.h.
91339 2007-02-22  Jim Meyering  <jim@meyering.net>
91341         * modules/utimens (Depends-on): Add timespec, required for
91342         utimens.h's inclusion of timespec.h.
91344 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
91346         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
91347         long unreadable paths in GNU/Linux.  Problem reported by Andreas
91348         Schwab in
91349         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
91350         I'll try to think of a better way to fix the Solaris problem.
91352         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
91353         like glibc; on Solaris 10, it fails with errno == EINVAL.
91354         POSIX says the behavior is unspecified if the first argument is NULL,
91355         so play it safe and never pass NULL to the system getcwd.
91357 2007-02-21  Jim Meyering  <jim@meyering.net>
91359         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
91360         of gettimeofday.  It would conflict with the one now always
91361         provided via sys_time_.h.  Reported by Matthew Woehlke, as
91362         an IRIX 6.5 build failure.
91364 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
91366         Minor fixups to port to Solaris 10 with Sun C 5.8.
91367         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
91368         * modules/getcwd (Depends-on): Add dirfd.
91369         * lib/putenv.c (putenv): #undef it.
91370         (rpl_putenv): New decl.
91371         (malloc, free): Include <stdlib.h> rather than prototyping separately.
91373 2007-02-20  Bruno Haible  <bruno@clisp.org>
91375         * modules/stdio-tests: New file.
91376         * tests/test-stdio.c: New file.
91378         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
91379         (Depends-on): Add stdio.
91380         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91381         (Include): Use <stdio.h> instead of vsnprintf.h.
91382         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91383         HAVE_DECL_VSNPRINTF.
91384         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
91386         * modules/snprintf (Files): Remove lib/snprintf.h.
91387         (Depends-on): Add stdio.
91388         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
91389         (Include): Use <stdio.h> instead of snprintf.h.
91390         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
91391         HAVE_DECL_SNPRINTF.
91392         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
91393         * lib/getaddrinfo.c: Likewise.
91395         * modules/stdio: New file.
91396         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
91397         * lib/snprintf.h: Remove file.
91398         * lib/vsnprintf.h: Remove file.
91399         * lib/.cppi-disable: Remove snprintf.h.
91400         * m4/stdio_h.m4: New file.
91401         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
91403 2007-02-20  Jim Meyering  <jim@meyering.net>
91405         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
91406         used by e.g., mingw.  From Bruno Haible.
91408 2007-02-19  Bruno Haible  <bruno@clisp.org>
91410         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
91411         warnings.
91412         Reported by Ben Pfaff <blp@cs.stanford.edu>.
91414 2007-02-19  Bruno Haible  <bruno@clisp.org>
91416         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
91417         from mingw users.
91419 2007-02-19  Bruno Haible  <bruno@clisp.org>
91421         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
91422         warnings.
91423         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
91425 2007-02-19  Jim Meyering  <jim@meyering.net>
91427         Don't use FD after a successful "fdopendir (fd)".
91428         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
91429         Reset it by calling dirfd on the just-obtained DIR*.
91431         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
91432         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
91434 2007-02-18  Bruno Haible  <bruno@clisp.org>
91436         * lib/readlink.c: Include <unistd.h>.
91437         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
91438         HAVE_READLINK.
91439         * modules/readlink (Depends-on): Add unistd.
91440         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91441         (Include): Add <unistd.h>.
91443         * lib/getlogin_r.h: Remove file.
91444         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
91445         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
91446         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
91447         HAVE_DECL_GETLOGIN_R.
91448         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
91449         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91450         (Include): Use <unistd.h> instead of getlogin_r.h.
91452         * lib/getcwd.h: Remove file.
91453         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
91454         * lib/xgetcwd.c: Likewise.
91455         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
91456         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
91457         * modules/getcwd (Files): Remove lib/getcwd.h.
91458         (Depends-on): Add unistd.
91459         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91460         (Include): Use <unistd.h> instad of getcwd.h.
91462         * lib/ftruncate.c: Include <unistd.h> first.
91463         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
91464         Set HAVE_FTRUNCATE.
91465         * modules/ftruncate (Depends-on): Add unistd.
91466         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91468         * lib/fchdir.c: Include <unistd.h> first.
91469         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
91470         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
91471         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
91472         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91473         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
91475         * lib/dup2.c: Include <unistd.h> first.
91476         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
91477         HAVE_DUP2.
91478         * modules/dup2 (Depends-on): Add unistd.
91479         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91481         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
91482         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
91483         REPLACE_CHOWN. Don't define chown as a macro here.
91484         * modules/chown (Depends-on): Add unistd.
91485         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
91487         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
91488         Add definition for GL_LINK_WARNING.
91489         (chown, dup2): New declarations.
91490         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
91491         link warning.
91492         (ftruncate): New declaration.
91493         (getcwd): New declaration, taken from old getcwd.h.
91494         (getlogin_r): New declaration, taken from old getlogin_r.h.
91495         (readlink): New declaration.
91496         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
91497         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
91498         (gl_PREREQ_UNISTD): Remove macro.
91499         (gl_UNISTD_MODULE_INDICATOR): New macro.
91500         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
91501         many new variables. Don't set UNISTD_H.
91502         * modules/unistd (Description): Change.
91503         (Depends-on): Add link-warning.
91504         (configure.ac): Update.
91505         (Makefile.am): Create unistd.h always. Substitute many new variables
91506         into it.
91508 2007-02-18  Bruno Haible  <bruno@clisp.org>
91510         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
91511         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
91512         HAVE_GETSUBOPT.
91513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
91514         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
91515         * lib/getsubopt.h: Remove file.
91516         * modules/getsubopt (Files): Remove lib/getsubopt.h.
91517         (Depends-on): Add stdlib.
91518         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91519         (Includes): Use <stdlib.h> instead of getsubopt.h.
91520         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
91521         Set HAVE_GETSUBOPT.
91522         * lib/getsubopt.c: Don't include getsubopt.h.
91524 2007-02-18  Bruno Haible  <bruno@clisp.org>
91526         * modules/fchdir (Depends-on): Add dup2.
91528 2007-02-18  Bruno Haible  <bruno@clisp.org>
91530         * lib/stdlib_.h: Handle glibc's special invocation convention
91531         specially.
91533 2007-02-18  Bruno Haible  <bruno@clisp.org>
91535         * modules/stdlib-tests: New file.
91536         * tests/test-stdlib.c: New file.
91538         * modules/mkstemp (Files): Remove lib/mkstemp.h.
91539         (Depends-on): Add stdlib.
91540         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91541         (Includes): Use <stdlib.h> instead of mkstemp.h.
91542         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91543         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
91544         * lib/mkstemp.c: Don't include mkstemp.h.
91545         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
91546         * lib/stdlib--.h: Don't include mkstemp.h.
91548         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
91549         (Depends-on): Add stdlib.
91550         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91551         (Includes): Use <stdlib.h> instead of mkdtemp.h.
91552         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
91553         HAVE_MKDTEMP.
91554         * lib/mkdtemp.c: Don't include mkdtemp.h.
91555         * lib/clean-temp.c: Don't include mkdtemp.h.
91557         * modules/exit (Files): Remove lib/exit.h.
91558         (Depends-on): Add stdlib.
91559         (Makefile.am): Remove lib_SOURCES.
91560         (Include): Use <stdlib.h> instead of exit.h.
91561         * lib/argmatch.c: Don't include exit.h.
91562         * lib/execute.c: Likewise.
91563         * lib/pagealign_alloc.c: Likewise.
91564         * lib/pipe.c: Likewise.
91565         * lib/wait-process.c: Likewise.
91566         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
91567         * lib/exitfail.c: Likewise.
91568         * lib/savewd.c: Likewise.
91569         * lib/xsetenv.c: Likewise.
91571         * modules/stdlib: New file.
91572         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
91573         and extra comments about mkstemp().
91574         * lib/exit.h: Remove file.
91575         * lib/mkdtemp.h: Remove file.
91576         * lib/mkstemp.h: Remove file.
91577         * m4/stdlib_h.m4: New file.
91578         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
91580 2007-02-18  Bruno Haible  <bruno@clisp.org>
91582         * modules/math-tests: New file.
91583         * tests/test-math.c: New file.
91585         * modules/math: New file.
91586         * modules/mathl (Files): Remove lib/mathl.h.
91587         (Depends-on): Add math.
91588         (Makefile.am): Don't mention mathl.h.
91589         (Include): Use <math.h> instead of mathl.h.
91590         * lib/math_.h: New file.
91591         * lib/mathl.h: Remove file.
91592         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
91593         mathl.h.
91594         * lib/asinl.c: Likewise.
91595         * lib/atanl.c: Likewise.
91596         * lib/ceill.c: Likewise.
91597         * lib/cosl.c: Likewise.
91598         * lib/expl.c: Likewise.
91599         * lib/floorl.c: Likewise.
91600         * lib/frexpl.c: Likewise.
91601         * lib/ldexpl.c: Likewise.
91602         * lib/logl.c: Likewise.
91603         * lib/sincosl.c: Likewise.
91604         * lib/sinl.c: Likewise.
91605         * lib/sqrtl.c: Likewise.
91606         * lib/tanl.c: Likewise.
91607         * lib/trigl.c: Likewise.
91608         * m4/math_h.m4: New file.
91609         * MODULES.html.sh (Mathematics): Add math.
91611 2007-02-17  Bruno Haible  <bruno@clisp.org>
91613         * modules/wctype-tests: New file.
91614         * tests/test-wctype.c: New file.
91616         * modules/wchar-tests: New file.
91617         * tests/test-wchar.c: New file.
91619         * modules/unistd-tests: New file.
91620         * tests/test-unistd.c: New file.
91622         * modules/time-tests: New file.
91623         * tests/test-time.c: New file.
91625         * modules/sysexits-tests: New file.
91626         * tests/test-sysexits.c: New file.
91628         * modules/sys_time-tests: New file.
91629         * tests/test-sys_time.c: New file.
91631         * modules/sys_stat-tests: New file.
91632         * tests/test-sys_stat.c: New file.
91634         * modules/sys_socket-tests: New file.
91635         * tests/test-sys_socket.c: New file.
91637         * modules/sys_select-tests: New file.
91638         * tests/test-sys_select.c: New file.
91640         * modules/string-tests: New file.
91641         * tests/test-string.c: New file.
91643         * modules/stdbool-tests: New file.
91644         * tests/test-stdbool.c: New file.
91646         * modules/netinet_in-tests: New file.
91647         * tests/test-netinet_in.c: New file.
91649         * modules/inttypes-tests: New file.
91650         * tests/test-inttypes.c: New file.
91652         * modules/fcntl-tests: New file.
91653         * tests/test-fcntl.c: New file.
91655         * modules/byteswap-tests: New file.
91656         * tests/test-byteswap.c: New file.
91658         * modules/arpa_inet-tests: New file.
91659         * tests/test-arpa_inet.c: New file.
91661 2007-02-17  Bruno Haible  <bruno@clisp.org>
91663         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
91664         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
91665         if the corresponding module is not enabled. Emit link warnings if
91666         the function is used nevertheless.
91667         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
91668         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
91669         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
91670         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
91671         * modules/inttypes (Depends-on): Add link-warning.
91672         (Makefile.am): Copy the contents of build-aux/link-warning.h into
91673         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
91674         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
91675         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
91676         * modules/imaxdiv (configure.ac): Likewise.
91677         * modules/strtoimax (configure.ac): Likewise.
91678         * modules/strtoumax (configure.ac): Likewise.
91680 2007-02-17  Bruno Haible  <bruno@clisp.org>
91682         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
91683         gl_STRING_MODULE_INDICATOR_DEFAULTS.
91684         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
91685         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
91687 2007-02-17  Bruno Haible  <bruno@clisp.org>
91689         * modules/link-warning: New file.
91690         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
91691         * lib/string_.h (GL_LINK_WARNING): Remove definition.
91692         * modules/string (Depends-on): Add link-warning.
91693         (Makefile.am): Copy the contents of build-aux/link-warning.h into
91694         string.h.
91695         * MODULES.html.sh (Support for building libraries and executables): Add
91696         link-warning.
91698 2007-02-17  Bruno Haible  <bruno@clisp.org>
91700         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
91701         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
91702         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
91703         long lines.
91705 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
91706             Bruno Haible  <bruno@clisp.org>
91708         * modules/tmpfile: New file.
91709         * lib/tmpfile.c: New file.
91710         * m4/tmpfile.m4: New file.
91711         * MODULES.html.sh (func_all_modules): New section "Input/output".
91713 2007-02-15  Bruno Haible  <bruno@clisp.org>
91715         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
91716         (supports_delete_on_close): New function.
91717         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
91719 2007-02-14  Bruno Haible  <bruno@clisp.org>
91721         * modules/mbspcasecmp-tests: New file.
91722         * tests/test-mbspcasecmp.sh: New file.
91723         * tests/test-mbspcasecmp.c: New file.
91725         New module mbspcasecmp.
91726         * modules/mbspcasecmp: New file.
91727         * lib/mbspcasecmp.c: New file.
91728         * lib/string_.h (strncasecmp): Change warning message.
91729         (mbspcasecmp): New declaration.
91730         * m4/mbspcasecmp.m4: New file.
91731         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91732         GNULIB_MBSPCASECMP.
91733         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
91734         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
91736 2007-02-14  Bruno Haible  <bruno@clisp.org>
91738         * modules/mbsncasecmp-tests: New file.
91739         * tests/test-mbsncasecmp.sh: New file.
91740         * tests/test-mbsncasecmp.c: New file.
91742         New module mbsncasecmp.
91743         * modules/mbsncasecmp: New file.
91744         * lib/mbsncasecmp.c: New file.
91745         * lib/string_.h (mbsncasecmp): New declaration.
91746         * m4/mbsncasecmp.m4: New file.
91747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91748         GNULIB_MBSNCASECMP.
91749         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
91750         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
91752 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
91754         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
91755         Verify that it doesn't overlap with our flags.
91756         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
91757         do not have the desired effect in multibyte locales; instead, use
91758         mbscasecmp.
91759         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
91760         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
91761         we don't require GNU fnmatch ourselves (if our users require it, they
91762         should do so explicitly).
91764         Fix regex code so it doesn't rely on strcasecmp.
91765         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
91766         Otherwise, include gnulib's langinfo.h.
91767         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
91768         undesirable behavior in non-C locales.  Instead, rely on localecharset.
91769         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
91770         * modules/regex (FILES): Remove m4/codeset.m4.
91771         (Depends-on): Add localcharset.  Remove strcase.
91773 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91775         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
91776         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
91778 2007-02-13  Bruno Haible  <bruno@clisp.org>
91780         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
91781         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91783 2007-02-12  Bruno Haible  <bruno@clisp.org>
91785         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
91786         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
91787         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
91788         time warning rather than a link error.
91790 2007-02-12  Bruno Haible  <bruno@clisp.org>
91792         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
91793         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
91794         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91796 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
91798         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
91799         args, not 2.
91801 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
91803         New module 'time', so that apps can include <time.h> as per
91804         POSIX and GNU instead of separate include files like time_r.h
91805         and timegm.h.  This implementation tries out a simpler approach
91806         for replacing decls in standard include files (as compared to
91807         the string module), somewhat as an experiment.
91809         * config/srclist.txt: Comment out mktime.c for now.
91810         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
91811         since it doesn't apply any more.  Use generic wording instead.
91812         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
91813         'time'.
91814         * lib/time_.h, m4/time_h.m4, modules/time: New files.
91815         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
91816         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
91817         Don't include <sys/types.h>; no longer needed since we assume C89.
91818         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
91819         * lib/strftime.c: Likewise.
91820         * lib/time_r.c: Likewise.
91821         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
91822         * lib/nanosleep.c: Include <time.h> first, to check interface.
91823         * lib/strptime.c: Likewise.
91824         * lib/time_r.c: Likewise.
91825         * lib/timegm.c: Likewise.
91826         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
91827         needed.
91828         * lib/timegm.c: Don't include timegm.h; no longer needed.
91829         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
91830         time.h now handles any problems in that area.
91831         (struct timespec, nanosleep): Remove; time.h now arranges for these.
91832         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
91833         that time.h defines struct timespec.
91834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
91835         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
91836         handles that.
91837         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
91838         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
91839         needed.  Set REPLACE_LOCALTIME.
91840         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
91841         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
91842         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
91843         nanosleep; time_h.m4 now does that.  Don't require
91844         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
91845         module handles this now.
91846         * modules/getdate (Depends-on): Remove timespec.  Add time.
91847         * modules/nanosleep (Depends-on): Likewise.
91848         * modules/stat-time (Depends-on): Likewise.
91849         * modules/nanosleep (Include): Include time.h, not timespec.h.
91850         * modules/strptime (Files): Remove lib/strptime.h.
91851         (Depends-on): Add extensions, time.
91852         (Include): Include time.h, not strptime.h.
91853         * modules/time_r (Files): Remove lib/time_r.h.
91854         (Depends-on): Add time.
91855         (Include): Include time.h, not time_r.h.
91856         * modules/timegm: Likewise.
91857         * modules/timespec (Description): Now does timespec-related decls
91858         of our own, instead of struct timespec itself.
91859         (Depends-on): Add time; remove extensions.
91860         (Maintainer): Add self.
91861         * modules/utimecmp (Depends-on): Add time; remove timespec.
91862         * modules/utimens (Depends-on): Likewise.
91863         * modules/xnanosleep (Depends-on): Likewise.
91865 2007-02-11  Bruno Haible  <bruno@clisp.org>
91867         * lib/c-strstr.c: Include allocsa.h.
91868         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
91869         * lib/c-strcasestr.c: Include allocsa.h.
91870         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
91871         * lib/strcasestr.c: Include allocsa.h.
91872         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
91873         * lib/mbsstr.c: Include allocsa.h.
91874         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
91875         allocsa/freesa instead of malloc/free.
91876         * lib/mbscasestr.c: Include allocsa.h.
91877         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
91878         allocsa/freesa instead of malloc/free.
91879         * modules/c-strstr (Depends-on): Add allocsa.
91880         * modules/c-strcasestr (Depends-on): Likewise.
91881         * modules/strcasestr (Depends-on): Likewise.
91882         * modules/mbsstr (Depends-on): Likewise.
91883         * modules/mbscasestr (Depends-on): Likewise.
91885 2007-02-11  Bruno Haible  <bruno@clisp.org>
91887         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
91889         * modules/mbsspn-tests: New file.
91890         * tests/test-mbsspn.sh: New file.
91891         * tests/test-mbsspn.c: New file.
91893 2007-02-11  Bruno Haible  <bruno@clisp.org>
91895         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
91897         * modules/mbspbrk-tests: New file.
91898         * tests/test-mbspbrk.sh: New file.
91899         * tests/test-mbspbrk.c: New file.
91901 2007-02-11  Bruno Haible  <bruno@clisp.org>
91903         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
91904         unneeded cast.
91906         * modules/mbscspn-tests: New file.
91907         * tests/test-mbscspn.sh: New file.
91908         * tests/test-mbscspn.c: New file.
91910 2007-02-11  Bruno Haible  <bruno@clisp.org>
91912         * modules/mbscasecmp-tests: New file.
91913         * tests/test-mbscasecmp.sh: New file.
91914         * tests/test-mbscasecmp.c: New file.
91916 2007-02-11  Bruno Haible  <bruno@clisp.org>
91918         Ensure O(n) worst-case complexity of mbscasestr.
91919         * lib/mbscasestr.c: Include stdbool.h.
91920         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
91921         functions.
91922         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
91923         the bookkeeping indicates that it's worth it.
91924         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
91926         * modules/mbscasestr-tests: New file.
91927         * tests/test-mbscasestr1.c: New file.
91928         * tests/test-mbscasestr2.sh: New file.
91929         * tests/test-mbscasestr2.c: New file.
91930         * tests/test-mbscasestr3.sh: New file.
91931         * tests/test-mbscasestr3.c: New file.
91932         * tests/test-mbscasestr4.sh: New file.
91933         * tests/test-mbscasestr4.c: New file.
91934         * m4/locale-tr.m4: New file.
91936 2007-02-11  Bruno Haible  <bruno@clisp.org>
91938         Ensure O(n) worst-case complexity of mbsstr.
91939         * lib/mbsstr.c: Include stdbool.h.
91940         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
91941         functions.
91942         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
91943         bookkeeping indicates that it's worth it.
91944         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
91946         * modules/mbsstr-tests: New file.
91947         * tests/test-mbsstr1.c: New file.
91948         * tests/test-mbsstr2.sh: New file.
91949         * tests/test-mbsstr2.c: New file.
91950         * tests/test-mbsstr3.sh: New file.
91951         * tests/test-mbsstr3.c: New file.
91952         * m4/locale-fr.m4: New file.
91954 2007-02-11  Bruno Haible  <bruno@clisp.org>
91956         * lib/mbsrchr.c (mbsrchr): Fix bug.
91958         * modules/mbsrchr-tests: New file.
91959         * tests/test-mbsrchr.sh: New file.
91960         * tests/test-mbsrchr.c: New file.
91962 2007-02-11  Bruno Haible  <bruno@clisp.org>
91964         * lib/mbschr.c (mbschr): Fix bug.
91966         * modules/mbschr-tests: New file.
91967         * tests/test-mbschr.sh: New file.
91968         * tests/test-mbschr.c: New file.
91969         * m4/locale-zh.m4: New file.
91971 2007-02-11  Bruno Haible  <bruno@clisp.org>
91973         Support for copying multibyte string iterators.
91974         * lib/mbiter.h: Include <string.h>.
91975         (mbiter_multi_copy): New function.
91976         (mbi_copy): New macro.
91977         * lib/mbuiter.h: Include <string.h>.
91978         (mbuiter_multi_copy): New function.
91979         (mbui_copy): New macro.
91981 2007-02-11  Bruno Haible  <bruno@clisp.org>
91983         New module mbslen.
91984         * modules/mbslen: New file.
91985         * lib/mbslen.c: New file.
91986         * lib/string_.h (mbslen): New declaration.
91987         * m4/mbslen.m4: New file.
91988         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
91989         GNULIB_MBSLEN.
91990         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
91991         * MODULES.html.sh (Internationalization functions): Add mbslen.
91993 2007-02-11  Bruno Haible  <bruno@clisp.org>
91995         Ensure O(n) worst-case complexity of strcasestr substitute.
91996         * lib/strcasestr.c: Include stdbool.h.
91997         (knuth_morris_pratt): New function.
91998         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
91999         bookkeeping indicates that it's worth it.
92000         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
92002         * modules/strcasestr-tests: New file.
92003         * tests/test-strcasestr.c: New file.
92005 2007-02-11  Bruno Haible  <bruno@clisp.org>
92007         Ensure O(n) worst-case complexity of c_strcasestr.
92008         * lib/c-strcasestr.c: Include stdbool.h, string.h.
92009         (knuth_morris_pratt): New function.
92010         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
92011         the bookkeeping indicates that it's worth it.
92012         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
92014         * modules/c-strcasestr-tests: New file.
92015         * tests/test-c-strcasestr.c: New file.
92017 2007-02-11  Bruno Haible  <bruno@clisp.org>
92019         Ensure O(n) worst-case complexity of c_strstr.
92020         * lib/c-strstr.c: Include stdbool.h, string.h.
92021         (knuth_morris_pratt): New function.
92022         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92023         bookkeeping indicates that it's worth it.
92024         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
92026         * lib/c-strstr.c: Complete rewrite for maintainability.
92028         * modules/c-strstr-tests: New file.
92029         * tests/test-c-strstr.c: New file.
92031 2007-02-11  Bruno Haible  <bruno@clisp.org>
92033         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
92034         5.2.1 and earlier, whereby \055 was treated just like the range
92035         delimiter '-'.
92036         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92038 2007-02-08  Bruno Haible  <bruno@clisp.org>
92040         * modules/regex (Depends-on): Add stdbool.
92041         Reported by Dalibor Topic <robilad@kaffe.org>.
92043 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
92045         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
92046         Prefer returning from main to exiting from it.
92047         Remove unnecessary parens after sizeof.
92049 2007-02-05  Bruno Haible  <bruno@clisp.org>
92051         New module mbssep.
92052         * modules/mbssep: New file.
92053         * lib/mbssep.c: New file.
92054         * lib/string_.h (strsep): Add a conditional link warning.
92055         (mbssep): New declaration.
92056         * m4/mbssep.m4: New file.
92057         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92058         GNULIB_MBSSEP.
92059         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
92060         * MODULES.html.sh (Internationalization functions): Add mbssep.
92062 2007-02-05  Bruno Haible  <bruno@clisp.org>
92064         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
92065         Optimize search in case of 1 delimiter.
92067 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92069         * lib/acl.h: Include sys/types.h before sys/acl.h.
92071 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92073         Merge upstream fix for glibc bugzilla #3957:
92075         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
92077         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
92078         bit for RE_HAT_LISTS_NOT_NEWLINE.
92079         (build_charclass_op): Remove bogus comment.
92081 2007-02-05  Simon Josefsson  <simon@josefsson.org>
92083         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
92085 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92087         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
92088         * lib/memmem.c [!defined _LIBC]: Include config.h.
92090 2007-02-04  Bruno Haible  <bruno@clisp.org>
92092         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
92093         warning message.
92095 2007-02-04  Bruno Haible  <bruno@clisp.org>
92097         New module mbstok_r.
92098         * modules/mbstok_r: New file.
92099         * lib/mbstok_r.c: New file.
92100         * lib/string_.h (strtok_r): Change argument names to match the
92101         comments. Add a conditional link warning.
92102         (mbstok_r): New declaration.
92103         * m4/mbstok_r.m4: New file.
92104         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92105         GNULIB_MBSTOK_R.
92106         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
92107         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
92109 2007-02-04  Bruno Haible  <bruno@clisp.org>
92111         New module mbsspn.
92112         * modules/mbsspn: New file.
92113         * lib/mbsspn.c: New file.
92114         * lib/string_.h (strspn): Add a conditional link warning.
92115         (mbsspn): New declaration.
92116         * m4/mbsspn.m4: New file.
92117         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92118         GNULIB_MBSSPN.
92119         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
92120         * MODULES.html.sh (Internationalization functions): Add mbsspn.
92122 2007-02-04  Bruno Haible  <bruno@clisp.org>
92124         New module mbspbrk.
92125         * modules/mbspbrk: New file.
92126         * lib/mbspbrk.c: New file.
92127         * lib/string_.h (strpbrk): Add a conditional link warning.
92128         (mbspbrk): New declaration.
92129         * m4/mbspbrk.m4: New file.
92130         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92131         GNULIB_MBSPBRK.
92132         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
92133         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
92135 2007-02-04  Bruno Haible  <bruno@clisp.org>
92137         New module mbscspn.
92138         * modules/mbscspn: New file.
92139         * lib/mbscspn.c: New file.
92140         * lib/string_.h (strcspn): Add a conditional link warning.
92141         (mbscspn): New declaration.
92142         * m4/mbscspn.m4: New file.
92143         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92144         GNULIB_MBSCSPN.
92145         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
92146         * MODULES.html.sh (Internationalization functions): Add mbscspn.
92148 2007-02-04  Bruno Haible  <bruno@clisp.org>
92150         New module mbscasestr, reduced goal of strcasestr.
92151         * modules/mbscasestr: New file.
92152         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
92153         (mbscasestr): Renamed from strcasestr.
92154         * lib/strcasestr.c: Don't include mbuiter.h.
92155         (strcasestr): Remove support for multibyte locales.
92156         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
92157         Change the conditional link warning.
92158         (mbscasestr): New declaration.
92159         * m4/mbscasestr.m4: New file.
92160         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
92161         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
92162         REPLACE_STRCASESTR.
92163         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
92164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92165         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92166         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
92167         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
92168         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92169         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
92170         (Depends-on): Remove mbuiter.
92171         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
92173 2007-02-04  Bruno Haible  <bruno@clisp.org>
92175         Simplify handling of strncasecmp.
92176         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
92177         the conditional link warning.
92178         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92179         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
92180         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
92181         * modules/strcase (configure.ac): Don't invoke
92182         gl_STRING_MODULE_INDICATOR.
92183         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
92185 2007-02-04  Bruno Haible  <bruno@clisp.org>
92187         New module mbscasecmp, reduced goal of strcasecmp.
92188         * modules/mbscasecmp: New file.
92189         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
92190         (mbscasecmp): Renamed from strcasecmp.
92191         * lib/strcasecmp.c: Don't include mbuiter.h.
92192         (strcasecmp): Remove support for multibyte locales.
92193         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
92194         Change the conditional link warning.
92195         (mbscasecmp): New declaration.
92196         * m4/mbscasecmp.m4: New file.
92197         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
92198         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
92199         REPLACE_STRCASECMP.
92200         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
92201         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92202         GNULIB_MBSCASECMP.
92203         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
92204         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
92205         * modules/strcase (Files): Remove m4/mbrtowc.m4.
92206         (Depends-on): Remove mbuiter.
92207         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
92209 2007-02-04  Bruno Haible  <bruno@clisp.org>
92211         New module mbsstr. Remove module strstr.
92212         * modules/mbsstr: New file.
92213         * modules/strstr: Remove file.
92214         * lib/mbsstr.c: Renamed from lib/strstr.c.
92215         (mbsstr): Renamed from strstr.
92216         * lib/string_.h (strstr): Remove declaration. Change the conditional
92217         link warning.
92218         (mbsstr): New declaration.
92219         * m4/mbsstr.m4: New file.
92220         * m4/strstr.m4: Remove file.
92221         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
92222         REPLACE_STRSTR.
92223         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
92224         Don't initialize GNULIB_STRSTR.
92225         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
92226         substitute GNULIB_STRSTR and REPLACE_STRSTR.
92227         * MODULES.html.sh (Internationalization functions): Add mbsstr.
92228         (Support for systems lacking ANSI C 89): Remove strstr.
92230 2007-02-04  Bruno Haible  <bruno@clisp.org>
92232         New module mbsrchr.
92233         * modules/mbsrchr: New file.
92234         * lib/mbsrchr.c: New file.
92235         * lib/string_.h (strrchr): Add a conditional link warning.
92236         (mbsrchr): New declaration.
92237         * m4/mbsrchr.m4: New file.
92238         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92239         GNULIB_MBSRCHR.
92240         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
92241         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
92243 2007-02-04  Bruno Haible  <bruno@clisp.org>
92245         New module mbschr.
92246         * modules/mbschr: New file.
92247         * lib/mbschr.c: New file.
92248         * lib/string_.h (strchr): Add a conditional link warning.
92249         (mbschr): New declaration.
92250         * m4/mbschr.m4: New file.
92251         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92252         GNULIB_MBSCHR.
92253         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
92254         * MODULES.html.sh (Internationalization functions): Add mbschr.
92256 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92258         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
92260         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
92262 2007-02-04  Bruno Haible  <bruno@clisp.org>
92264         New module description section 'configure.ac-early'.
92265         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
92266         (func_get_autoconf_early_snippet): New function.
92267         (func_import, func_create_testdir): Use it. Remove special cases for
92268         modules 'extensions' and 'lock'.
92269         * modules/extensions (configure.ac-early): Require
92270         gl_USE_SYSTEM_EXTENSIONS.
92271         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
92273 2007-02-04  Bruno Haible  <bruno@clisp.org>
92275         Make use of gcj-4.3's -fsource and -ftarget option.
92276         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
92277         and if so try the options -fsource and -ftarget.
92278         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
92279         source_version, ftarget_option, target_version arguments.
92280         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
92281         (is_envjavac_oldgcj_14_14_usable): Renamed from
92282         is_envjavac_gcj_14_14_usable.
92283         (is_envjavac_oldgcj_14_13_usable): Renamed from
92284         is_envjavac_gcj_14_13_usable.
92285         (is_gcj_present): Update.
92286         (is_gcj_43, is_gcj43_usable): New functions.
92287         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
92288         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
92289         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
92290         try the options -fsource and -ftarget.
92292 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
92294         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
92295         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
92296         larger value.
92298 2007-02-03  Jim Meyering  <jim@meyering.net>
92300         Give tools a better chance to allocate space for very large buffers.
92301         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
92303         Make pwd and readlink work also when run with an unreadable parent dir
92304         on systems with openat support.
92305         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
92306         provided getcwd function, even when we have openat support.
92307         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
92309 2007-02-02  Bruno Haible  <bruno@clisp.org>
92311         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92312         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
92313         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
92314         portability problems if one of these functions is only used on specific
92315         platforms.
92316         Reported by Paul Eggert.
92318 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
92320         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
92321         is causing more trouble than it's curing.
92322         * lib/regex_internal.h (__mempcpy): Remove.
92323         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
92324         (and make the code a tad smaller to boot).
92325         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
92327 2007-02-02  Jim Meyering  <jim@meyering.net>
92329         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
92330         section, not in the Makefile.am: one.
92332 2007-02-02  Eric Blake  <ebb9@byu.net>
92334         * lib/strchrnul.c: Always include config.h first.
92336         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
92337         gnulib strstr is not necessary here.
92339 2007-02-02  Simon Josefsson  <simon@josefsson.org>
92341         * m4/socklen.m4: Fix typo.
92343 2007-02-02  Eric Blake  <ebb9@byu.net>
92345         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
92346         * modules/netinet_in (Makefile.am): Likewise.
92348 2007-02-01  Bruno Haible  <bruno@clisp.org>
92350         * lib/string_.h (GL_LINK_WARNING): New macro.
92351         (strcasecmp, strstr, strcasestr): If provided by the system,
92352         conditionally define as a macro that leads to a warning instead of to
92353         an error.
92354         (strncasecmp): Conditionally define as a macro that leads to a warning.
92356 2007-02-01  Karl Berry  <karl@gnu.org>
92358         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
92360 2007-02-01  Bruno Haible  <bruno@clisp.org>
92362         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
92363         renamings.
92365 2007-02-01  Eric Blake  <ebb9@byu.net>
92367         * modules/regex (Depends-on): Revert dependence on mempcpy.
92368         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
92369         module's definition of mempcpy.
92370         Reported by Paul Eggert.
92372 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
92374         * lib/string_.h: If the gnulib module XYZ is not present, undefine
92375         the symbol XYZ before redefining it.  This fixes a problem with
92376         programs that don't use XYZ, when compiled on systems that define
92377         XYZ to something else.
92379 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
92381         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
92382         occurs when "mkdir -m foo" creates a setgid directory that is (1)
92383         writeable to group or other and (2) is intended to have a special
92384         mode bit that is set or cleared.  In such a case, the directory
92385         should be neither group- nor other-writeable until the special
92386         mode bits are right.
92388 2007-01-31  Eric Blake  <ebb9@byu.net>
92390         * modules/mountlist (Depends-on): Add strstr.
92392         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
92393         bug.
92394         * modules/string (Makefile.am): Remove redundant replacement.
92395         * modules/regex (Depends-on): Add mempcpy.
92397 2007-01-31  Bruno Haible  <bruno@clisp.org>
92399         New module description field 'Link'.
92400         * gnulib-tool (func_usage): Document --extract-link-directive.
92401         (sed_extract_prog): Recognize 'Link' directive.
92402         (func_get_link_directive): New function.
92403         (func_import): Show summary of link directives.
92404         Handle --extract-link-directive option.
92405         * modules/acl (Link): New section.
92406         * modules/clock-time (Link): New section.
92407         * modules/euidaccess (Link): New section.
92408         * modules/gettext (Link): New section.
92409         * modules/iconv (Link): New section.
92410         * modules/lock (Link): New section.
92411         * modules/nanosleep (Link): New section.
92412         * modules/readline (Link): New section.
92414 2007-01-27  Bruno Haible  <bruno@clisp.org>
92416         Enforce the use of gnulib modules for unportable <string.h> functions.
92417         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
92418         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
92419         (gl_HEADER_STRING_H_BODY): Require it.
92420         * lib/string_.h: If the gnulib module XYZ is not present, redefine
92421         the symbol XYZ to one that gives a link error.
92422         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
92423         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
92424         * modules/mempcpy (configure.ac): Likewise.
92425         * modules/memrchr (configure.ac): Likewise.
92426         * modules/stpcpy (configure.ac): Likewise.
92427         * modules/stpncpy (configure.ac): Likewise.
92428         * modules/strcase (configure.ac): Likewise.
92429         * modules/strcasestr (configure.ac): Likewise.
92430         * modules/strchrnul (configure.ac): Likewise.
92431         * modules/strdup (configure.ac): Likewise.
92432         * modules/strndup (configure.ac): Likewise.
92433         * modules/strnlen (configure.ac): Likewise.
92434         * modules/strpbrk (configure.ac): Likewise.
92435         * modules/strsep (configure.ac): Likewise.
92436         * modules/strstr (configure.ac): Likewise.
92437         * modules/strtok_r (configure.ac): Likewise.
92439 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
92441         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
92443 2007-01-30  Jim Meyering  <jim@meyering.net>
92445         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
92447 2007-01-29  Bruno Haible  <bruno@clisp.org>
92449         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
92450         * lib/execute.c: Likewise.
92451         * lib/pipe.c: Likewise.
92452         * lib/printf-args.h: Likewise.
92453         * lib/printf-args.c: Likewise.
92454         * lib/printf-parse.c: Likewise.
92455         * lib/vasnprintf.c: Likewise.
92457 2007-01-29  Eric Blake  <ebb9@byu.net>
92459         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
92460         declaration.
92462 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
92464         * lib/strptime.h (strptime): Use 'restrict' for args where
92465         POSIX requires this.
92466         * lib/strptime.c (strptime): Likewise.
92467         Change license notice from LGPL to GPL, since gnulib-tool will
92468         change this as needed.
92469         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
92470         defined.
92471         Include "strptime.h" first, to check interface.
92472         Do not #undef _LIBC and _NL_CURRENT.
92473         Do not include <stdlib.h>; no longer needed.
92474         Include "time_r.h" and declare ptime_locale_status
92475         only if _LIBC is not defined.
92476         (__P): Remove unused macro.
92477         (match_string): Bring back glibc version, but use it only if _LIBC
92478         is defined.
92479         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
92480         Remove unnecessary assertion and abort() call.
92481         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
92482         * m4/strptime.m4: Fix serial number comment.
92483         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
92484         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
92485         (Depends-on): Add time_r.
92487 2007-01-29  Bruno Haible  <bruno@clisp.org>
92489         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92490         strptime.
92491         * modules/strptime (Depends-on): Add stdbool.
92492         * lib/strptime.h: Include <time.h> always. Add comments.
92494 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
92496         * modules/strptime: New file.
92497         * lib/strptime.h: New file.
92498         * lib/strptime.c: New file.
92499         * m4/strptime.m4: New file.
92501 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
92503         * MODULES.html.sh: New module mpsort.
92504         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
92506         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
92507         a circularity problem with HP-UX ia64 reported by Bob Proulx in
92508         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
92509         All uses changed.
92510         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
92511         All uses changed.
92512         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
92513         to _Restrict_.
92514         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
92515         the parameter matches the prototype.
92517 2007-01-28  Jim Meyering  <jim@meyering.net>
92519         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
92520         sys/time.h here, reverting that part of the previous patch:
92521         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
92523 2007-01-28  Bruno Haible  <bruno@clisp.org>
92525         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
92526         value of $(SYS_TIME_H).
92527         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
92528         remove it conditionally, too. [added by Jim Meyering]
92529         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
92530         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
92531         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
92532         GETTIMEOFDAY_REPLACEMENT to 1.
92534 2007-01-28  Bruno Haible  <bruno@clisp.org>
92536         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
92537         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
92538         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
92539         Set UNISTD_H instead of UNISTD_H2.
92540         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
92542 2007-01-28  Bruno Haible  <bruno@clisp.org>
92544         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
92545         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
92547 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92549         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
92550         (func_create_testdir): Ensure C locale for `grep' and `tr'
92551         character ranges.
92552         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
92553         ACLOCAL_AMFLAGS parsing state machine.
92555 2007-01-27  Bruno Haible  <bruno@clisp.org>
92557         * modules/unistr/base: Update.
92559 2007-01-27  Bruno Haible  <bruno@clisp.org>
92561         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
92562         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
92563         * modules/unistr/u32-mbtouc-unsafe: Renamed from
92564         modules/unistr/u32-mbtouc.
92565         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
92566         * lib/unistr.h: Update.
92567         * lib/linebreak.c: Update.
92568         * modules/unistr/u32-mbtouc: Renamed from
92569         modules/unistr/u32-mbtouc-safe.
92570         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
92571         * lib/unistr.h: Update.
92572         * lib/unistr/u32-to-u8.c: Update.
92573         * lib/unistr/u32-to-u16.c: Update.
92575 2007-01-27  Bruno Haible  <bruno@clisp.org>
92577         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
92578         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
92579         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
92580         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
92581         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
92582         * modules/unistr/u16-mbtouc-unsafe: Renamed from
92583         modules/unistr/u16-mbtouc.
92584         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
92585         * lib/unistr.h: Update.
92586         * lib/linebreak.c: Update.
92587         * modules/linebreak: Update.
92588         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
92589         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
92590         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
92591         * modules/unistr/u16-mbtouc: Renamed from
92592         modules/unistr/u16-mbtouc-safe.
92593         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
92594         * lib/unistr.h: Update.
92595         * lib/unistr/u16-to-u8.c: Update.
92596         * modules/unistr/u16-to-u8: Update.
92597         * lib/unistr/u16-to-u32.c: Update.
92598         * modules/unistr/u16-to-u32: Update.
92600 2007-01-27  Bruno Haible  <bruno@clisp.org>
92602         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
92603         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
92604         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
92605         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
92606         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
92607         * modules/unistr/u8-mbtouc-unsafe: Renamed from
92608         modules/unistr/u8-mbtouc.
92609         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
92610         * lib/unistr.h: Update.
92611         * lib/striconveh.c: Update.
92612         * modules/striconveh: Update.
92613         * lib/linebreak.c: Update.
92614         * modules/linebreak: Update.
92615         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
92616         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
92617         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
92618         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
92619         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
92620         * lib/unistr.h: Update.
92621         * lib/striconveh.c: Update.
92622         * modules/striconveh: Update.
92623         * lib/unistr/u8-to-u16.c: Update.
92624         * modules/unistr/u8-to-u16: Update.
92625         * lib/unistr/u8-to-u32.c: Update.
92626         * modules/unistr/u8-to-u32: Update.
92628 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92630         Sync from Libtool.
92631         * lib/argz.c: Do not include strings.h nor memory.h, include
92632         string.h unconditionally.  Patch by Simon Josefsson.
92634 2007-01-27  Bruno Haible  <bruno@clisp.org>
92636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
92637         from gl_HEADER_STRING_H_BODY.
92638         (gl_HEADER_STRING_H_BODY): Require it.
92639         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
92640         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
92641         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
92642         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
92643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
92644         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
92645         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92646         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
92647         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
92648         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
92649         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
92650         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
92651         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
92652         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
92653         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
92655 2007-01-27  Bruno Haible  <bruno@clisp.org>
92657         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
92658         check_PROGRAMS into noinst_PROGRAMS.
92659         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
92660         check_PROGRAMS in this case.
92661         (func_import): Set for_test to false.
92662         (func_create_testdir): Set for_test to true.
92664 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92665             Bruno Haible  <bruno@clisp.org>
92667         * modules/strcasestr (Files): Remove lib/strcasestr.h.
92668         (Depends-on): Add string.
92669         (Includes): Use <string.h> instead of strcasestr.h.
92670         * modules/string (Makefile.am): Also substitute the value of
92671         REPLACE_STRCASESTR.
92672         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
92673         assume strcasestr is declared in <string.h> not <strings.h>. Also
92674         set REPLACE_STRCASESTR.
92675         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
92676         REPLACE_STRCASESTR.
92677         * lib/strcasestr.h: Remove file.
92678         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
92679         * lib/string_.h (strcasestr): New declaration.
92681 2007-01-27  Bruno Haible  <bruno@clisp.org>
92683         * lib/string_.h: Use 'extern'.
92685 2007-01-27  Jim Meyering  <jim@meyering.net>
92687         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
92688         of set-but-not-used local, "q".
92690         * lib/mempcpy.c: Include <config.h> before <string.h>.
92691         This fixes a compilation error on HP-UX, due to the system's
92692         "restrict"-using mempcpy prototype.
92694 2007-01-26  Bruno Haible  <bruno@clisp.org>
92696         Small optimization.
92697         * lib/javacomp.c: Include c-strstr.h.
92698          (is_envjavac_gcj): Use c_strstr instead of strstr.
92699         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
92701 2007-01-26  Bruno Haible  <bruno@clisp.org>
92703         * MODULES.html.sh (Unicode string functions): Add the new modules.
92705         * modules/uniconv/u32-strconv-to-locale: New file.
92706         * lib/uniconv/u32-strconv-to-locale.c: New file.
92708         * modules/uniconv/u16-strconv-to-locale: New file.
92709         * lib/uniconv/u16-strconv-to-locale.c: New file.
92711         * modules/uniconv/u8-strconv-to-locale: New file.
92712         * lib/uniconv/u8-strconv-to-locale.c: New file.
92714         * modules/uniconv/u32-strconv-from-locale: New file.
92715         * lib/uniconv/u32-strconv-from-locale.c: New file.
92717         * modules/uniconv/u16-strconv-from-locale: New file.
92718         * lib/uniconv/u16-strconv-from-locale.c: New file.
92720         * modules/uniconv/u8-strconv-from-locale: New file.
92721         * lib/uniconv/u8-strconv-from-locale.c: New file.
92723         * modules/uniconv/u32-strconv-to-enc: New file.
92724         * lib/uniconv/u32-strconv-to-enc.c: New file.
92725         * modules/uniconv/u32-strconv-to-enc-tests: New file.
92726         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
92728         * modules/uniconv/u16-strconv-to-enc: New file.
92729         * lib/uniconv/u16-strconv-to-enc.c: New file.
92730         * lib/uniconv/u-strconv-to-enc.h: New file.
92731         * modules/uniconv/u16-strconv-to-enc-tests: New file.
92732         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
92734         * modules/uniconv/u8-strconv-to-enc: New file.
92735         * lib/uniconv/u8-strconv-to-enc.c: New file.
92736         * modules/uniconv/u8-strconv-to-enc-tests: New file.
92737         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
92739         * modules/uniconv/u32-strconv-from-enc: New file.
92740         * lib/uniconv/u32-strconv-from-enc.c: New file.
92741         * modules/uniconv/u32-strconv-from-enc-tests: New file.
92742         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
92744         * modules/uniconv/u16-strconv-from-enc: New file.
92745         * lib/uniconv/u16-strconv-from-enc.c: New file.
92746         * modules/uniconv/u16-strconv-from-enc-tests: New file.
92747         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
92749         * modules/uniconv/u8-strconv-from-enc: New file.
92750         * lib/uniconv/u8-strconv-from-enc.c: New file.
92751         * lib/uniconv/u-strconv-from-enc.h: New file.
92752         * modules/uniconv/u8-strconv-from-enc-tests: New file.
92753         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
92755         * modules/uniconv/u32-conv-from-enc: New file.
92756         * lib/uniconv/u32-conv-from-enc.c: New file.
92757         * modules/uniconv/u32-conv-from-enc-tests: New file.
92758         * tests/uniconv/test-u32-conv-from-enc.c: New file.
92760         * modules/uniconv/u16-conv-from-enc: New file.
92761         * lib/uniconv/u16-conv-from-enc.c: New file.
92762         * lib/uniconv/u-conv-from-enc.h: New file.
92763         * modules/uniconv/u16-conv-from-enc-tests: New file.
92764         * tests/uniconv/test-u16-conv-from-enc.c: New file.
92766         * modules/uniconv/u8-conv-from-enc: New file.
92767         * lib/uniconv/u8-conv-from-enc.c: New file.
92768         * modules/uniconv/u8-conv-from-enc-tests: New file.
92769         * tests/uniconv/test-u8-conv-from-enc.c: New file.
92771         * modules/uniconv/base: New file.
92772         * lib/uniconv.h: New file.
92774 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
92776         * doc/gnulib-tool.texi (Initial import): Update to match current
92777         behavior with strdup module.
92778         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
92779         * lib/memmem.h: Remove; all uses removed.  This is now done
92780         by <string.h>.
92781         * lib/mempcpy.h: Likewise.
92782         * lib/memrchr.h: Likewise.
92783         * lib/stpcpy.h: Likewise.
92784         * lib/stpncpy.h: Likewise.
92785         * lib/strcase.h: Likewise.
92786         * lib/strchrnul.h: Likewise.
92787         * lib/strdup.h: Likewise.
92788         * lib/strndup.h: Likewise.
92789         * lib/strnlen.h: Likewise.
92790         * lib/strpbrk.h: Likewise.
92791         * lib/strsep.h: Likewise.
92792         * lib/strstr.h: Likewise.
92793         * lib/strtok_r.h: Likewise.
92794         * lib/string_.h: New file.
92795         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
92796         Rely on <string.h> instead.
92797         * lib/canon-host.c: Likewise.
92798         * lib/chdir-long.c: Likewise.
92799         * lib/concatpath.c: Likewise.
92800         * lib/exclude.c: Likewise.
92801         * lib/fchdir.c: Likewise.
92802         * lib/getaddrinfo.c: Likewise.
92803         * lib/getcwd.c: Likewise.
92804         * lib/getsubopt.c: Likewise.
92805         * lib/glob.c: Likewise.
92806         * lib/hard-locale.c: Likewise.
92807         * lib/iconvme.c: Likewise.
92808         * lib/javacomp.c: Likewise.
92809         * lib/mempcpy.c: Likewise.
92810         * lib/memrchr.c: Likewise.
92811         * lib/regex_internal.h: Likewise.
92812         * lib/stpncpy.c: Likewise.
92813         * lib/strcasecmp.c: Likewise.
92814         * lib/strchrnul.c: Likewise.
92815         * lib/strdup.c: Likewise.
92816         * lib/striconv.c: Likewise.
92817         * lib/striconveh.c: Likewise.
92818         * lib/striconveha.c: Likewise.
92819         * lib/strncasecmp.c: Likewise.
92820         * lib/strndup.c: Likewise.
92821         * lib/strnlen.c: Likewise.
92822         * lib/strsep.c: Likewise.
92823         * lib/strstr.c: Likewise.
92824         * lib/strtok_r.c: Likewise.
92825         * lib/userspec.c: Likewise.
92826         * lib/w32spawn.h: Likewise.
92827         * lib/xstrndup.c: Likewise.
92828         * lib/mountlist.c (strstr): Remove decl.
92829         * m4/string_h.m4: New file.
92830         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
92831         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
92832         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
92833         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
92834         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
92835         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
92836         Set REPLACE_STRCASECMP if necessary.
92837         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
92838         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
92839         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
92840         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
92841         HAVE_DECL_STRDUP if necessary.
92842         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
92843         since gl_FUNC_STRNDUP does that now.
92844         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
92845         Check for decl here...
92846         (gl_PREREQ_STRNLEN): ... not here.
92847         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
92848         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
92849         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
92850         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
92851         necessary.
92852         * modules/string: New file.
92853         * modules/memmem (Files): Remove special-purpose include file.
92854         (Depends-on): Add string.
92855         (Include): Include <string.h>, not the removed file.
92856         * modules/mempcpy: Likewise.
92857         * modules/memrchr: Likewise.
92858         * modules/stpcpy: Likewise.
92859         * modules/stpncpy: Likewise.
92860         * modules/strcase: Likewise.
92861         * modules/strchrnul: Likewise.
92862         * modules/strdup: Likewise.
92863         * modules/strndup: Likewise.
92864         * modules/strnlen: Likewise.
92865         * modules/strpbrk: Likewise.
92866         * modules/strsep: Likewise.
92867         * modules/strstr: Likewise.
92868         * modules/strtok_r: Likewise.
92869         * tests/test-dirname.c: Don't include "strdup.h", since
92870         <string.h> now suffices.
92871         * tests/test-memmem.c: Don't include "memmem.h", since
92872         <string.h> now suffices.
92874 2007-01-25  Bruno Haible  <bruno@clisp.org>
92876         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
92877         *resultp is 0.
92879         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
92880         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
92881         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
92882         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
92884         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
92885         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
92886         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
92887         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
92888         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
92889         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
92891 2007-01-24  Bruno Haible  <bruno@clisp.org>
92893         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
92894         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
92895         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
92896         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
92897         gl_FUNC_FTS_CORE.
92898         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
92899         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
92900         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92901         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
92902         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
92903         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
92904         gl_FUNC_FCHOWNAT.
92905         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
92906         gl_FUNC_STRFTIME.
92907         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
92908         Reported by Ralf Wildenhues.
92910 2007-01-24  Bruno Haible  <bruno@clisp.org>
92912         Drop AC_REQUIRE calls that are redundant with the module dependencies.
92913         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
92914         gl_GETADDRINFO.
92915         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
92916         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
92917         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
92919 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
92921         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
92922         Don't use 'exit'; just return from 'main'.
92923         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
92925         * lib/fnmatch_.h: Readjust white space and comments to match
92926         glibc, to avoid spurious diffs.
92928 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
92930         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
92931         2004-12-01 change by Jakub Jelinek, since this code won't compile
92932         if !LIBC.  Problem reported by Bob Proulx.
92934 2007-01-23  Bruno Haible  <bruno@clisp.org>
92936         * lib/striconveh.c: Include c-strcaseeq.h.
92937         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
92938         * modules/striconveh (Depends-on): Add c-strcaseeq.
92940 2007-01-23  Bruno Haible  <bruno@clisp.org>
92942         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
92944         * modules/c-strcaseeq: New file.
92945         * lib/c-strcaseeq.h: New file.
92947         * modules/streq: New file.
92948         * lib/streq.h: New file.
92950 2007-01-23  Bruno Haible  <bruno@clisp.org>
92952         * modules/striconveha-tests: New file.
92953         * tests/test-striconveha.c: New file.
92955         * lib/striconveha.h: Include <stdbool.h>.
92956         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
92957         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
92958         (mem_iconveha_notranslit): Renamed from mem_iconveha.
92959         (mem_iconveha): New function.
92960         (str_iconveha_notranslit): Renamed from str_iconveha.
92961         (str_iconveha): New function.
92962         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
92963         c-strcase.
92965 2007-01-23  Bruno Haible  <bruno@clisp.org>
92967         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
92968         encodings without forgiving before trying any encoding with handler.
92969         (str_iconveha): Try all encodings without forgiving before trying any
92970         encoding with handler.
92972 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
92974         Import the following changes from libc.
92976         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
92978         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
92980         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
92982         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
92983         normal_bracket label.
92985         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
92987         [BZ #361]
92988         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
92989         to normal_bracket after fetching the next character.
92991 2007-01-22  Bruno Haible  <bruno@clisp.org>
92993         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
92994         argument.
92995         * lib/striconveh.c (iconv_carefully_1): New function.
92996         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
92997         argument.
92998         (str_cd_iconveh): Update.
92999         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
93000         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
93001         * tests/test-striconveh.c (MAGIC): New macro.
93002         (new_offsets): New function.
93003         (main): Test call with and without offsets.
93005 2007-01-22  Bruno Haible  <bruno@clisp.org>
93007         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
93008         * modules/sys_select (Makefile.am): Likewise.
93009         * modules/sys_socket (Makefile.am): Likewise.
93010         * modules/sys_time (Makefile.am): Likewise.
93012 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
93014         * modules/gettimeofday (License): Change from GPL to LGPL, since
93015         gettimeofday is a library function.
93017 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93019         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
93021 2007-01-21  Bruno Haible  <bruno@clisp.org>
93023         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
93025 2007-01-21  Bruno Haible  <bruno@clisp.org>
93027         * modules/striconveha: New file.
93028         * lib/striconveha.h: New file.
93029         * lib/striconveha.c: New file.
93030         * MODULES.html.sh (Internationalization functions): Add striconveha.
93031         * lib/striconv.c (str_iconv): Optimize the case of an empty input
93032         string.
93033         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
93035 2007-01-21  Bruno Haible  <bruno@clisp.org>
93037         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
93038         * lib/striconveh.c (str_iconveh): Likewise.
93040 2007-01-21  Bruno Haible  <bruno@clisp.org>
93042         * lib/striconveh.h (mem_iconveh): New declaration.
93043         * lib/striconveh.c (mem_iconveh): New function.
93044         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
93046 2007-01-21  Bruno Haible  <bruno@clisp.org>
93048         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
93050         * lib/striconveh.h (mem_cd_iconveh): Change specification.
93051         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
93052         original result buffer.
93053         (str_cd_iconveh): Update.
93054         * tests/test-striconveh.c (main): Update.
93056         * lib/striconv.h (mem_cd_iconv): Change specification.
93057         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
93058         result buffer.
93059         (str_cd_iconv): Update.
93060         * tests/test-striconv.c (main): Update.
93062 2007-01-21  Bruno Haible  <bruno@clisp.org>
93064         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
93066 2007-01-20  Jim Meyering  <jim@meyering.net>
93068         * lib/userspec.c (parse_with_separator): If a user or group string
93069         starts with "+", skip the corresponding name-to-ID look-up, since
93070         such a look-up must fail: user and group names may not include "+".
93072 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
93074         * lib/poll.c: Include sys/time.h and time.h unconditionally,
93075         since we now assume the sys_time module.
93076         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
93077         check for sys/time.h; no longer needed.
93078         * modules/poll (Depends-on): Depend on sys_time.
93080 2007-01-18  Bruno Haible  <bruno@clisp.org>
93082         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
93083         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93085         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
93086         gettimeofday.
93088         * tests/test-gettimeofday.c: Include <time.h>.
93089         (dummy): Remove variable.
93091         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
93092         gl_HEADER_SYS_TIME_H.
93093         (gl_HEADER_SYS_TIME_H): New macro.
93095         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
93096         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93097         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
93098         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
93099         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93100         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
93101         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
93102         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93103         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
93104         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
93105         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93107         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
93108         last change; it caused a compilation error when cross-compiling to
93109         Cygwin.
93111 2007-01-18  Jim Meyering  <jim@meyering.net>
93113         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
93114         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
93115         than the race-prone "test -d sys || mkdir sys".
93116         (configure.ac): Use AC_PROG_MKDIR_P.
93117         * modules/sys_select: Likewise.
93118         * modules/sys_socket: Likewise.
93119         * modules/sys_time: Likewise.
93121 2007-01-18  Eric Blake  <ebb9@byu.net>
93123         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
93124         replace gettimeofday.
93125         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
93126         name, to avoid infinite recursion.
93128 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
93130         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
93131         module sys_time.
93132         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
93133         assume timespec.h defines struct timeval.
93134         * lib/settime.c: Likewise.
93135         * lib/utimens.c: Likewise.
93136         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
93137         since we now assume the gettimeofday module.
93138         * lib/tempname.c (__gen_tempname): Likewise.
93139         * lib/gettimeofday.h: Remove.
93140         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
93141         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
93142         Include <time.h>, for 'time()'.
93143         (localtime_buffer_addr): Also use this workaround if
93144         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
93145         to simplify the uses.  All uses changed.
93146         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
93147         that #undef is inside {}, and 'const' follows type name consistently.
93148         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
93149         (gettimeofday): Do not use the maximum possible value for
93150         tv->tv_usec, since that might break usages other than ls.c.
93151         Instead, we'll leave ls.c alone.  This undoes today's patch
93152         by Bruno.  Add a compile-time warning for 1s-clock resolution;
93153         we've never observed the problem but might as well keep the
93154         canary.
93155         * lib/nanosleep.c: Include timespec.h first, for interface check.
93156         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
93157         now assume the sys_time module.
93158         * lib/tempname.c: Likewise.
93159         * lib/timespec.h: Likewise.
93160         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
93161         needed.
93162         * lib/strftime.c: Likewise.
93163         * lib/timespec.h: Likewise.
93164         * lib/posixtm.c: Include posixtm.h first, for interface check.
93165         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
93166         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
93167         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
93168         * lib/sys_time_.h: New file.
93169         * lib/timespec.h (struct timespec): Use long int, not long.
93170         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
93171         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
93172         Remove obsolescent call to AC_HEADER_TIME.
93173         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
93174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
93175         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93176         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
93177         Likewise.
93178         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
93179         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
93180         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
93181         into the sys_time module.  Check for gettimeofday just once.
93182         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
93183         for gettimeofday signature to just check the signature.  Merely
93184         compile it, since linking doesn't test signature.  Improve test for
93185         whether gettimeofday.o is actually needed.
93186         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
93187         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
93188         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
93189         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93190         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
93191         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
93192         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
93193         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
93194         than worrying about sys/time.h.
93195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
93196         Don't bother worrying about TIME_WITH_SYS_TIME.
93197         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
93198         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
93199         * m4/sys_time_h.m4: New file.
93200         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
93201         Don't include sys/time.h.  Return from main rather than exiting.
93202         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
93203         all uses changed.
93204         * modules/gethrxtime (Depends-on): Add sys_time.
93205         * modules/gettime (Depends-on): Likewise.
93206         * modules/gettimeofday (Depends-on): Likewise.
93207         * modules/nanosleep (Depends-on): Likewise.
93208         * modules/settime (Depends-on): Likewise.
93209         * modules/tempname (Depends-on): Likewise.
93210         * modules/utimens (Depends-on): Likewise.
93211         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
93212         (Include): Change back to <sys/time.h>.
93213         (Maintainer): Add self.
93214         * modules/sys_time: New file.
93215         * modules/tempname (Depends-on): Add gettimeofday.
93216         * tests/test-gettimeofday.c: Include <sys/time.h>
93217         rather than gettimeofday.h.
93219 2007-01-17  Bruno Haible  <bruno@clisp.org>
93221         * gnulib-tool (func_get_license): Revert last patch. Instead, let
93222         the license default to GPL.
93223         (func_create_testdir): Don't complain if a module is LGPL and its
93224         tests module depends on GPLed modules.
93226 2007-01-17  Bruno Haible  <bruno@clisp.org>
93228         * lib/gettimeofday.c (gettimeofday): Add code for the case
93229         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
93230         maximum possible value for tv->tv_usec, rather than the minimum one.
93232 2005-10-08  Martin Lambers  <marlam@marlam.de>
93233 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93234 2007-01-16  Bruno Haible  <bruno@clisp.org>
93236         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
93237         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
93238         gl_FUNC_GETTIMEOFDAY.
93239         (Include): Add gettimeofday.h.
93240         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
93241         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
93242         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
93243         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
93244         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
93245         * lib/gettimeofday.h: New file.
93246         * lib/gettimeofday.c: Include <sys/timeb.h>.
93247         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
93248         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93249         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
93250         fall back on time().
93252         * tests/test-gettimeofday.c: New file.
93253         * modules/gettimeofday-tests: New file.
93255 2007-01-16  Eric Blake  <ebb9@byu.net>
93257         * modules/fnmatch (Depends-on): Depend on wchar.
93258         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
93259         * m4/fnmatch.m4: Likewise.
93260         * modules/mbchar (Makefile.am): Assume <wchar.h>.
93261         * m4/mbchar.m4: Likewise.
93262         * modules/mbswidth (Depends-on): Depend on wchar.
93263         * lib/mbswidth.c: Assume <wchar.h>.
93264         * m4/mbswidth.m4: Likewise.
93265         * modules/quotearg (Depends-on): Depend on wchar.
93266         * lib/quotearg.c: Assume <wchar.h>.
93267         * m4/quotearg.m4: Likewise.
93268         * modules/regex (Depends-on): Depend on wchar.
93269         * lib/regex_internal.h: Assume <wchar.h>.
93270         * m4/regex.m4: Likewise.
93271         * modules/stdint (Depends-on): Depend on wchar.
93272         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
93273         * m4/stdint.m4: Likewise.
93274         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
93275         * modules/strftime (Depends-on): Depend on wchar.
93276         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
93277         * modules/strtol (Depends-on): Depend on wchar.
93278         * lib/strtol.c: Assume <wchar.h>.
93279         * modules/wcwidth (Depends-on): Depend on wchar.
93280         * lib/wcwidth.h: Assume <wchar.h>.
93281         * m4/wcwidth.m4: Likewise.
93283 2007-01-16  Bruno Haible  <bruno@clisp.org>
93285         * modules/csharpexec-script: New, created from...
93286         * modules/csharpexec: ... this.
93288 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93290         * modules/javaexec-script: New, created from...
93291         * modules/javaexec: ... this.
93293 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93295         * modules/poll (Dependencies): Add sys_select.
93297 2007-01-15  Jim Meyering  <jim@meyering.net>
93299         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
93300         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
93301         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
93302         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
93304 2007-01-15  Bruno Haible  <bruno@clisp.org>
93306         * modules/striconveh: New file.
93307         * lib/striconveh.h: New file.
93308         * lib/striconveh.c: New file.
93309         * MODULES.html.sh (Internationalization functions): Add striconveh.
93311         * modules/striconveh-tests: New file.
93312         * tests/test-striconveh.c: New file.
93314 2007-01-15  Bruno Haible  <bruno@clisp.org>
93316         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
93317         not from GNU libiconv or GNU libc.
93319 2007-01-15  Bruno Haible  <bruno@clisp.org>
93321         * doc/gnulib-intro.texi (Copyright): Explain the different license
93322         terms for module descriptions, autoconf macros, tests, documentation.
93324 2007-01-14  Bruno Haible  <bruno@clisp.org>
93326         * modules/striconv-tests: New file.
93327         * tests/test-striconv.c: New file.
93329 2007-01-14  Bruno Haible  <bruno@clisp.org>
93331         * modules/iconv-tests: New file.
93332         * tests/test-iconv.c: New file.
93334 2007-01-14  Bruno Haible  <bruno@clisp.org>
93336         * gnulib-tool (func_get_license): For test modules, use the license of
93337         the main module.
93339 2007-01-14  Bruno Haible  <bruno@clisp.org>
93341         * modules/iconv (Include): Clarify that <iconv.h> can only be included
93342         if iconv is found to exist.
93344 2007-01-14  Bruno Haible  <bruno@clisp.org>
93346         * modules/c-ctype-tests: New file.
93347         * tests/test-c-ctype.c: New file.
93349 2007-01-14  Bruno Haible  <bruno@clisp.org>
93351         * modules/binary-io-tests: New file.
93352         * tests/test-binary-io.sh: New file.
93353         * tests/test-binary-io.c: New file.
93355 2007-01-14  Bruno Haible  <bruno@clisp.org>
93357         * modules/array-oset-tests: New file.
93358         * tests/test-array_oset.c: New file.
93360 2007-01-14  Bruno Haible  <bruno@clisp.org>
93362         * modules/array-list-tests: New file.
93363         * tests/test-array_list.c: New file.
93365 2007-01-14  Bruno Haible  <bruno@clisp.org>
93367         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
93368         and make.
93369         Reported by Simon Josefsson in
93370         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
93372 2007-01-14  Bruno Haible  <bruno@clisp.org>
93374         * modules/allocsa-tests: New file.
93375         * tests/test-allocsa.c: New file.
93377 2007-01-14  Bruno Haible  <bruno@clisp.org>
93379         * modules/fchdir (Depends-on): Add absolute-header.
93380         * modules/unistd (Depends-on): Likewise.
93382 2006-12-30  Bruno Haible  <bruno@clisp.org>
93384         * modules/fchdir: New file.
93385         * modules/unistd (Files): Add lib/unistd_.h.
93386         (Makefile.am): Generate unistd.h from unistd_.h.
93387         * lib/fchdir.c: New file.
93388         * lib/dirent_.h: New file.
93389         * lib/unistd_.h: New file.
93390         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
93391         * m4/fchdir.m4: New file.
93392         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
93393         (gl_HEADER_UNISTD): Invoke it.
93394         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
93395         function.
93396         * lib/backupfile.c (opendir, closedir): Undefine.
93397         * lib/chown.c (open, close): Undefine.
93398         * lib/clean-temp.c (open, close): Undefine.
93399         * lib/copy-file.c (open, close): Undefine.
93400         * lib/execute.c (open, close): Undefine.
93401         * lib/fsusage.c (open, close): Undefine.
93402         * lib/gc-gnulib.c (open, close): Undefine.
93403         * lib/getcwd.c (opendir, closedir): Undefine.
93404         * lib/glob.c (opendir, closedir): Undefine.
93405         * lib/javacomp.c (open, close): Undefine.
93406         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
93407         * lib/openat-proc.c (open, close): Undefine.
93408         * lib/pagealign_alloc.c (open, close): Undefine.
93409         * lib/pipe.c (open, close): Undefine.
93410         * lib/progreloc.c (open, close): Undefine.
93411         * lib/savedir.c (opendir, closedir): Undefine.
93412         * lib/utime.c (open, close): Undefine.
93413         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
93415 2007-01-10  Bruno Haible  <bruno@clisp.org>
93417         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
93419 2007-01-12  Eric Blake  <ebb9@byu.net>
93421         Provide a robust <wchar.h>.  Further simplifications are now
93422         possible in other modules, but not included here.
93423         * modules/wchar: New module.
93424         * m4/wchar.m4: New file.
93425         * lib/wchar_.h: Likewise.
93426         * modules/mbchar (Depends-on): Depend on wchar, as the first use
93427         of the new module.
93428         * MODULES.html.sh (Extended multibyte and wide character utilities):
93429         New section.
93431 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
93433         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
93434         to a reasonable default for memory allocation.
93435         (xreadlink): Don't allocate a huge buffer, to work around a buggy
93436         file system that reports garbage st_size values for symlinks.
93437         Problem reported by Liyang Hu.
93439 2007-01-11  Simon Josefsson  <simon@josefsson.org>
93441         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
93442         Emacs .#* auto-save files).
93444 2007-01-11  Bruno Haible  <bruno@clisp.org>
93446         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
93447         directory.
93449 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
93451         Use @...@ consistently in lib/wctype_.h.
93452         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
93453         on it being set to 1 or 0.
93454         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
93455         go back to AC_SUBSTing it.
93456         * modules/wctype (Makefile.am): Undo previous change.
93458 2007-01-10  Eric Blake  <ebb9@byu.net>
93460         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
93461         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
93462         * modules/wctype (Makefile.am): Likewise.
93463         Reported by Chris McGuire.
93465 2007-01-10  Jim Meyering  <jim@meyering.net>
93467         fts.c: a small readability/maintainability improvement
93468         * lib/fts.c (fts_read): Make this code slightly more readable and
93469         maintainable by hoisting the "sp->fts_cur = p" assignments to
93470         immediately follow the statements that set P.  Derived from
93471         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
93473 2007-01-10  Eric Blake  <ebb9@byu.net>
93475         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
93476         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
93477         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
93478         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
93479         Reported by Chris McGuire.
93481 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93483         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
93484         in sed script.
93486 2007-01-09  Bruno Haible  <bruno@clisp.org>
93488         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
93489         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
93490         variables.
93491         (func_module): Use them.
93493 2007-01-09  Bruno Haible  <bruno@clisp.org>
93495         * modules/unistr/base: New file.
93496         * lib/unistr.h: New file.
93498         * modules/unistr/u8-to-u16: New file.
93499         * lib/unistr/u8-to-u16.c: New file.
93501         * modules/unistr/u8-to-u32: New file.
93502         * lib/unistr/u8-to-u32.c: New file.
93504         * modules/unistr/u16-to-u8: New file.
93505         * lib/unistr/u16-to-u8.c: New file.
93507         * modules/unistr/u16-to-u32: New file.
93508         * lib/unistr/u16-to-u32.c: New file.
93510         * modules/unistr/u32-to-u8: New file.
93511         * lib/unistr/u32-to-u8.c: New file.
93513         * modules/unistr/u32-to-u16: New file.
93514         * lib/unistr/u32-to-u16.c: New file.
93516         * modules/unistr/u8-check: New file.
93517         * modules/unistr/u16-check: New file.
93518         * modules/unistr/u32-check: New file.
93519         * lib/unistr/u8-check.c: New file.
93520         * lib/unistr/u16-check.c: New file.
93521         * lib/unistr/u32-check.c: New file.
93523         * modules/unistr/u8-chr: New file.
93524         * modules/unistr/u16-chr: New file.
93525         * modules/unistr/u32-chr: New file.
93526         * lib/unistr/u8-chr.c: New file.
93527         * lib/unistr/u16-chr.c: New file.
93528         * lib/unistr/u32-chr.c: New file.
93530         * modules/unistr/u8-cmp: New file.
93531         * modules/unistr/u16-cmp: New file.
93532         * modules/unistr/u32-cmp: New file.
93533         * lib/unistr/u8-cmp.c: New file.
93534         * lib/unistr/u16-cmp.c: New file.
93535         * lib/unistr/u32-cmp.c: New file.
93537         * modules/unistr/u8-cpy: New file.
93538         * modules/unistr/u16-cpy: New file.
93539         * modules/unistr/u32-cpy: New file.
93540         * lib/unistr/u8-cpy.c: New file.
93541         * lib/unistr/u16-cpy.c: New file.
93542         * lib/unistr/u32-cpy.c: New file.
93543         * lib/unistr/u-cpy.h: New file.
93545         * modules/unistr/u8-cpy-alloc: New file.
93546         * modules/unistr/u16-cpy-alloc: New file.
93547         * modules/unistr/u32-cpy-alloc: New file.
93548         * lib/unistr/u8-cpy-alloc.c: New file.
93549         * lib/unistr/u16-cpy-alloc.c: New file.
93550         * lib/unistr/u32-cpy-alloc.c: New file.
93551         * lib/unistr/u-cpy-alloc.h: New file.
93553         * modules/unistr/u8-endswith: New file.
93554         * modules/unistr/u16-endswith: New file.
93555         * modules/unistr/u32-endswith: New file.
93556         * lib/unistr/u8-endswith.c: New file.
93557         * lib/unistr/u16-endswith.c: New file.
93558         * lib/unistr/u32-endswith.c: New file.
93559         * lib/unistr/u-endswith.h: New file.
93561         * modules/unistr/u8-mblen: New file.
93562         * modules/unistr/u16-mblen: New file.
93563         * modules/unistr/u32-mblen: New file.
93564         * lib/unistr/u8-mblen.c: New file.
93565         * lib/unistr/u16-mblen.c: New file.
93566         * lib/unistr/u32-mblen.c: New file.
93568         * modules/unistr/u8-mbtouc: New file.
93569         * modules/unistr/u16-mbtouc: New file.
93570         * modules/unistr/u32-mbtouc: New file.
93571         * lib/unistr/u8-mbtouc.c: New file.
93572         * lib/unistr/u16-mbtouc.c: New file.
93573         * lib/unistr/u32-mbtouc.c: New file.
93575         * modules/unistr/u8-mbtouc-safe: New file.
93576         * modules/unistr/u16-mbtouc-safe: New file.
93577         * modules/unistr/u32-mbtouc-safe: New file.
93578         * lib/unistr/u8-mbtouc-safe.c: New file.
93579         * lib/unistr/u16-mbtouc-safe.c: New file.
93580         * lib/unistr/u32-mbtouc-safe.c: New file.
93582         * modules/unistr/u8-move: New file.
93583         * modules/unistr/u16-move: New file.
93584         * modules/unistr/u32-move: New file.
93585         * lib/unistr/u8-move.c: New file.
93586         * lib/unistr/u16-move.c: New file.
93587         * lib/unistr/u32-move.c: New file.
93588         * lib/unistr/u-move.h: New file.
93590         * modules/unistr/u8-next: New file.
93591         * modules/unistr/u16-next: New file.
93592         * modules/unistr/u32-next: New file.
93593         * lib/unistr/u8-next.c: New file.
93594         * lib/unistr/u16-next.c: New file.
93595         * lib/unistr/u32-next.c: New file.
93597         * modules/unistr/u8-prev: New file.
93598         * modules/unistr/u16-prev: New file.
93599         * modules/unistr/u32-prev: New file.
93600         * lib/unistr/u8-prev.c: New file.
93601         * lib/unistr/u16-prev.c: New file.
93602         * lib/unistr/u32-prev.c: New file.
93604         * modules/unistr/u8-set: New file.
93605         * modules/unistr/u16-set: New file.
93606         * modules/unistr/u32-set: New file.
93607         * lib/unistr/u8-set.c: New file.
93608         * lib/unistr/u16-set.c: New file.
93609         * lib/unistr/u32-set.c: New file.
93610         * lib/unistr/u-set.h: New file.
93612         * modules/unistr/u8-startswith: New file.
93613         * modules/unistr/u16-startswith: New file.
93614         * modules/unistr/u32-startswith: New file.
93615         * lib/unistr/u8-startswith.c: New file.
93616         * lib/unistr/u16-startswith.c: New file.
93617         * lib/unistr/u32-startswith.c: New file.
93618         * lib/unistr/u-startswith.h: New file.
93620         * modules/unistr/u8-stpcpy: New file.
93621         * modules/unistr/u16-stpcpy: New file.
93622         * modules/unistr/u32-stpcpy: New file.
93623         * lib/unistr/u8-stpcpy.c: New file.
93624         * lib/unistr/u16-stpcpy.c: New file.
93625         * lib/unistr/u32-stpcpy.c: New file.
93626         * lib/unistr/u-stpcpy.h: New file.
93628         * modules/unistr/u8-stpncpy: New file.
93629         * modules/unistr/u16-stpncpy: New file.
93630         * modules/unistr/u32-stpncpy: New file.
93631         * lib/unistr/u8-stpncpy.c: New file.
93632         * lib/unistr/u16-stpncpy.c: New file.
93633         * lib/unistr/u32-stpncpy.c: New file.
93634         * lib/unistr/u-stpncpy.h: New file.
93636         * modules/unistr/u8-strcat: New file.
93637         * modules/unistr/u16-strcat: New file.
93638         * modules/unistr/u32-strcat: New file.
93639         * lib/unistr/u8-strcat.c: New file.
93640         * lib/unistr/u16-strcat.c: New file.
93641         * lib/unistr/u32-strcat.c: New file.
93642         * lib/unistr/u-strcat.h: New file.
93644         * modules/unistr/u8-strchr: New file.
93645         * modules/unistr/u16-strchr: New file.
93646         * modules/unistr/u32-strchr: New file.
93647         * lib/unistr/u8-strchr.c: New file.
93648         * lib/unistr/u16-strchr.c: New file.
93649         * lib/unistr/u32-strchr.c: New file.
93651         * modules/unistr/u8-strcmp: New file.
93652         * modules/unistr/u16-strcmp: New file.
93653         * modules/unistr/u32-strcmp: New file.
93654         * lib/unistr/u8-strcmp.c: New file.
93655         * lib/unistr/u16-strcmp.c: New file.
93656         * lib/unistr/u32-strcmp.c: New file.
93658         * modules/unistr/u8-strcpy: New file.
93659         * modules/unistr/u16-strcpy: New file.
93660         * modules/unistr/u32-strcpy: New file.
93661         * lib/unistr/u8-strcpy.c: New file.
93662         * lib/unistr/u16-strcpy.c: New file.
93663         * lib/unistr/u32-strcpy.c: New file.
93664         * lib/unistr/u-strcpy.h: New file.
93666         * modules/unistr/u8-strcspn: New file.
93667         * modules/unistr/u16-strcspn: New file.
93668         * modules/unistr/u32-strcspn: New file.
93669         * lib/unistr/u8-strcspn.c: New file.
93670         * lib/unistr/u16-strcspn.c: New file.
93671         * lib/unistr/u32-strcspn.c: New file.
93672         * lib/unistr/u-strcspn.h: New file.
93674         * modules/unistr/u8-strdup: New file.
93675         * modules/unistr/u16-strdup: New file.
93676         * modules/unistr/u32-strdup: New file.
93677         * lib/unistr/u8-strdup.c: New file.
93678         * lib/unistr/u16-strdup.c: New file.
93679         * lib/unistr/u32-strdup.c: New file.
93680         * lib/unistr/u-strdup.h: New file.
93682         * modules/unistr/u8-strlen: New file.
93683         * modules/unistr/u16-strlen: New file.
93684         * modules/unistr/u32-strlen: New file.
93685         * lib/unistr/u8-strlen.c: New file.
93686         * lib/unistr/u16-strlen.c: New file.
93687         * lib/unistr/u32-strlen.c: New file.
93688         * lib/unistr/u-strlen.h: New file.
93690         * modules/unistr/u8-strmblen: New file.
93691         * modules/unistr/u16-strmblen: New file.
93692         * modules/unistr/u32-strmblen: New file.
93693         * lib/unistr/u8-strmblen.c: New file.
93694         * lib/unistr/u16-strmblen.c: New file.
93695         * lib/unistr/u32-strmblen.c: New file.
93697         * modules/unistr/u8-strmbtouc: New file.
93698         * modules/unistr/u16-strmbtouc: New file.
93699         * modules/unistr/u32-strmbtouc: New file.
93700         * lib/unistr/u8-strmbtouc.c: New file.
93701         * lib/unistr/u16-strmbtouc.c: New file.
93702         * lib/unistr/u32-strmbtouc.c: New file.
93704         * modules/unistr/u8-strncat: New file.
93705         * modules/unistr/u16-strncat: New file.
93706         * modules/unistr/u32-strncat: New file.
93707         * lib/unistr/u8-strncat.c: New file.
93708         * lib/unistr/u16-strncat.c: New file.
93709         * lib/unistr/u32-strncat.c: New file.
93710         * lib/unistr/u-strncat.h: New file.
93712         * modules/unistr/u8-strncmp: New file.
93713         * modules/unistr/u16-strncmp: New file.
93714         * modules/unistr/u32-strncmp: New file.
93715         * lib/unistr/u8-strncmp.c: New file.
93716         * lib/unistr/u16-strncmp.c: New file.
93717         * lib/unistr/u32-strncmp.c: New file.
93719         * modules/unistr/u8-strncpy: New file.
93720         * modules/unistr/u16-strncpy: New file.
93721         * modules/unistr/u32-strncpy: New file.
93722         * lib/unistr/u8-strncpy.c: New file.
93723         * lib/unistr/u16-strncpy.c: New file.
93724         * lib/unistr/u32-strncpy.c: New file.
93725         * lib/unistr/u-strncpy.h: New file.
93727         * modules/unistr/u8-strnlen: New file.
93728         * modules/unistr/u16-strnlen: New file.
93729         * modules/unistr/u32-strnlen: New file.
93730         * lib/unistr/u8-strnlen.c: New file.
93731         * lib/unistr/u16-strnlen.c: New file.
93732         * lib/unistr/u32-strnlen.c: New file.
93733         * lib/unistr/u-strnlen.h: New file.
93735         * modules/unistr/u8-strpbrk: New file.
93736         * modules/unistr/u16-strpbrk: New file.
93737         * modules/unistr/u32-strpbrk: New file.
93738         * lib/unistr/u8-strpbrk.c: New file.
93739         * lib/unistr/u16-strpbrk.c: New file.
93740         * lib/unistr/u32-strpbrk.c: New file.
93741         * lib/unistr/u-strpbrk.h: New file.
93743         * modules/unistr/u8-strrchr: New file.
93744         * modules/unistr/u16-strrchr: New file.
93745         * modules/unistr/u32-strrchr: New file.
93746         * lib/unistr/u8-strrchr.c: New file.
93747         * lib/unistr/u16-strrchr.c: New file.
93748         * lib/unistr/u32-strrchr.c: New file.
93750         * modules/unistr/u8-strspn: New file.
93751         * modules/unistr/u16-strspn: New file.
93752         * modules/unistr/u32-strspn: New file.
93753         * lib/unistr/u8-strspn.c: New file.
93754         * lib/unistr/u16-strspn.c: New file.
93755         * lib/unistr/u32-strspn.c: New file.
93756         * lib/unistr/u-strspn.h: New file.
93758         * modules/unistr/u8-strstr: New file.
93759         * modules/unistr/u16-strstr: New file.
93760         * modules/unistr/u32-strstr: New file.
93761         * lib/unistr/u8-strstr.c: New file.
93762         * lib/unistr/u16-strstr.c: New file.
93763         * lib/unistr/u32-strstr.c: New file.
93764         * lib/unistr/u-strstr.h: New file.
93766         * modules/unistr/u8-strtok: New file.
93767         * modules/unistr/u16-strtok: New file.
93768         * modules/unistr/u32-strtok: New file.
93769         * lib/unistr/u8-strtok.c: New file.
93770         * lib/unistr/u16-strtok.c: New file.
93771         * lib/unistr/u32-strtok.c: New file.
93772         * lib/unistr/u-strtok.h: New file.
93774         * modules/unistr/u8-uctomb: New file.
93775         * modules/unistr/u16-uctomb: New file.
93776         * modules/unistr/u32-uctomb: New file.
93777         * lib/unistr/u8-uctomb.c: New file.
93778         * lib/unistr/u16-uctomb.c: New file.
93779         * lib/unistr/u32-uctomb.c: New file.
93781         * MODULES.html.sh (Unicode string functions): Add the new modules.
93783 2007-01-08  Bruno Haible  <bruno@clisp.org>
93785         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
93786         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
93787         subdirectories.
93789 2007-01-08  Karl Berry  <karl@gnu.org>
93791         * doc/error.texi: mention that main() fns must set program_name
93792         when progname is used.
93794 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
93796         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
93797         WCTYPE_H is empty, for the benefit of builds from non-distclean
93798         directories.  Problem reported by Eric Blake in
93799         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
93801 2007-01-08  Bruno Haible  <bruno@clisp.org>
93803         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
93804         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
93805         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
93806         PROVIDE_CANONICALIZE_FILENAME_MODE.
93807         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
93809 2007-01-08  Bruno Haible  <bruno@clisp.org>
93811         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
93812         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
93813         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
93814         * lib/fts.c: Likewise.
93815         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
93817 2006-12-25  Bruno Haible  <bruno@clisp.org>
93819         * modules/utf8-ucs4-safe: New file.
93820         * lib/utf8-ucs4-safe.h: New file.
93821         * lib/unistr/utf8-ucs4-safe.c: New file.
93823         * modules/utf16-ucs4-safe: New file.
93824         * lib/utf16-ucs4-safe.h: New file.
93825         * lib/unistr/utf16-ucs4-safe.c: New file.
93827         * MODULES.html.sh (Unicode string functions): Add the new modules.
93829 2007-01-08  Bruno Haible  <bruno@clisp.org>
93831         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
93832         (Depends-on): Add unitypes.
93833         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
93834         (u8_mbtouc_aux): Move out to separate file.
93835         (u8_mbtouc): Use ucs4_t, uint8_t types.
93836         * lib/unistr/utf8-ucs4.c: New file.
93838         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
93839         (Depends-on): Add unitypes.
93840         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
93841         (u16_mbtouc_aux): Move out to separate file.
93842         (u16_mbtouc): Use ucs4_t, uint16_t types.
93843         * lib/unistr/utf16-ucs4.c: New file.
93845         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
93846         (Depends-on): Add unitypes.
93847         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
93848         (u8_uctomb_aux): Move out to separate file.
93849         (u8_uctomb): Use ucs4_t, uint8_t types.
93850         * lib/unistr/ucs4-utf8.c: New file.
93852         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
93853         (Depends-on): Add unitypes.
93854         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
93855         (u16_uctomb_aux): Move out to separate file.
93856         (u16_uctomb): Use ucs4_t, uint16_t types.
93857         * lib/unistr/ucs4-utf16.c: New file.
93859 2006-12-25  Bruno Haible  <bruno@clisp.org>
93861         * modules/unitypes: New file.
93862         * lib/unitypes.h: New file.
93863         * MODULES.html.sh (func_all_modules): New section "Unicode string
93864         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
93865         this section. Add unitypes.
93867 2007-01-08  Bruno Haible  <bruno@clisp.org>
93869         Avoid variable names that conflict with those from libtool.
93870         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
93871         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
93872         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
93873         library_names_spec to acl_library_names_spec, hardcode_* to
93874         acl_hardcode_*.
93875         Reported by Ralf Wildenhues.
93877 2007-01-08  Bruno Haible  <bruno@clisp.org>
93879         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
93880         definition.
93881         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
93882         definition.
93883         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
93884         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
93885         definition.
93886         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
93887         definition.
93888         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
93889         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
93890         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
93891         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
93892         definition.
93893         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
93894         definition.
93895         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
93896         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
93897         GC_USE_<algorithm>.
93898         * lib/gc-libgcrypt.c: Likewise.
93899         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
93900         * modules/gc-arctwo (configure.ac): Likewise.
93901         * modules/gc-des (configure.ac): Likewise.
93902         * modules/gc-hmac-md5 (configure.ac): Likewise.
93903         * modules/gc-hmac-sha1 (configure.ac): Likewise.
93904         * modules/gc-md2 (configure.ac): Likewise.
93905         * modules/gc-md4 (configure.ac): Likewise.
93906         * modules/gc-md5 (configure.ac): Likewise.
93907         * modules/gc-random (configure.ac): Likewise.
93908         * modules/gc-rijndael (configure.ac): Likewise.
93909         * modules/gc-sha1 (configure.ac): Likewise.
93911 2007-01-08  Bruno Haible  <bruno@clisp.org>
93913         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
93914         macro definition.
93915         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
93916         definition.
93917         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
93918         definition.
93919         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
93920         * modules/fcntl-safer (configure.ac): Likewise.
93921         * modules/fopen-safer (configure.ac): Likewise.
93922         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
93923         GNULIB_FWRITEERROR macro definition.
93925 2007-01-08  Bruno Haible  <bruno@clisp.org>
93927         * m4/gnulib-common.m4: New file.
93928         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
93929         (func_get_filelist): Add m4/gnulib-common.m4.
93931 2007-01-08  Bruno Haible  <bruno@clisp.org>
93933         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
93934         command.
93936 2007-01-08  Jim Meyering  <jim@meyering.net>
93938         Use a more robust test for a "can't happen" condition.
93939         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
93940         narrowed the st_size value.  Presuming the "can't happen" condition
93941         is true, that narrowing could conceivably convert an invalid st_size
93942         value into a valid one.  Instead, use a change based on Matthew
93943         Woehlke's original patch.
93945         Slight readability improvement: use an assert-like macro
93946         in place of literal "abort ()" uses.
93947         * lib/fts.c (fts_assert): Define.
93948         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
93949         Use this macro instead of a bare 'abort'.
93951 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
93953         Don't worry about using IRIX 5.3's wctype.h broken definitions;
93954         simply work around them.
93955         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
93956         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
93957         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
93958         declaring.
93959         Don't bother to define as macros, since the standard doesn't require it.
93960         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
93961         longer worry about IRIX 5.3.
93962         (HAVE_WCTYPE_CTMP_BUG): Remove.
93964 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
93966         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
93967         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
93968         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
93969         Problems reported by Georg Schwarz for IRIX 5.3.
93971         * gnulib-tool (autoconf_minversion): Take the maximum version number
93972         found, not the minimum.  Problem reported by James Youngman.
93974 2007-01-03  Karl Berry  <karl@gnu.org>
93976         * doc/error.texi: new file, explaining interaction with progname.
93977         * doc/gnulib.texi: include it.  Update copyright.
93979 2007-01-03  Simon Josefsson  <simon@josefsson.org>
93981         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
93982         AC_CANONICAL_HOST, to improve autobuild outputs.
93984 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
93985             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
93987         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
93988         sockets, server sockets, and other file descriptors.  Count errors
93989         to compute the return value.  Reorder the code a bit to be easier
93990         to follow.  Don't set event bits that were not requested (except
93991         POLLERR and POLLHUP).
93993 2007-01-01  Bruno Haible  <bruno@clisp.org>
93995         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
93997 2007-01-03  Jim Meyering  <jim@meyering.net>
93999         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
94001 2007-01-02  Bruno Haible  <bruno@clisp.org>
94003         * modules/settime (Include): Require timespec.h.
94004         * modules/nanosleep (Include): Likewise.
94006 2007-01-01  Bruno Haible  <bruno@clisp.org>
94008         * gnulib-tool (func_emit_copyright_notice): Bump year.
94009         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
94011 2007-01-01  Bruno Haible  <bruno@clisp.org>
94013         Improve support for OpenBSD.
94014         * build-aux/config.rpath (libname_spec): Export.
94015         (library_names_spec): New variable. Export.
94016         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
94017         library_names_spec from the config.rpath output. Locate shared library
94018         through the name pattern in library_names_spec.
94020 2007-01-01  Eric Blake  <ebb9@byu.net>
94022         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
94024 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
94026         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
94027         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
94028         assume the C locale, and avoid an "eval" that could cause trouble.
94029         Problem with SORT reported by Bob Proulx.
94031         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
94032         Define.  Trivial patch from Henning Nielsen Lund, originally
94033         sent to bug-grep@gnu.org today.
94035 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94037         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
94038         struct stat.  Problem reported by Henning Nielsen Lund.
94039         * lib/acl.c: Include acl.h first, to check interface.  Don't
94040         bother to include sys/types.h and sys/stat.h again.
94042 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
94044         Import the following change from libc; problem reported by
94045         Sven Verdoolaege.
94047         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
94049         [BZ #1373]
94050         * lib/argp.h: Remove __NTH for __argp_usage inline function.
94052 2006-12-28  Jim Meyering  <jim@meyering.net>
94054         * build-aux/announce-gen: Do not assume that the package
94055         builds any of tar.gz, tar.bz2, and .xdelta files.
94056         Suggestion from Simon Josefsson.
94058 2006-12-28  Simon Josefsson  <simon@josefsson.org>
94060         * modules/announce-gen: New file.
94062 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
94064         * lib/mbchar.h: Just include <wctype.h>; the wctype module
94065         handles its gotchas now.
94066         * lib/mbswidth.c: Likewise.
94067         * lib/wcwidth.h: Likewise.
94068         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
94069         and iswcntrl; the wctype module does this stuff now.
94070         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
94072         * modules/mbchar (Depends-on): Add wctype.
94073         * modules/mbswidth (Depends-on): Likewise.
94074         * modules/wcwidth (Depends-on): Likewise.
94076 2006-12-27  Eric Blake  <ebb9@byu.net>
94078         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
94079         module uses more than what <wctype.h> is required to provide.
94081 2006-12-26  Eric Blake  <ebb9@byu.net>
94083         * gnulib-tool (sed_extract_prog): Avoid space-tab.
94085 2006-12-26  Eric Blake  <ebb9@byu.net>
94087         * modules/absolute-header: New module.
94088         * modules/fcntl (Depends-on): Depend on it.
94089         * modules/inttypes (Depends-on): Likewise.
94090         * modules/stdint (Depends-on): Likewise.
94091         * modules/sys_stat (Depends-on): Likewise.
94092         * modules/wctype (Depends-on): Likewise.
94093         * MODULES.html.sh (Support for building libraries and
94094         executables): Document it.
94096 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94098         * gnulib-tool (SED): Remove, undoing previous change.
94099         The problem was that it broke coreutils on Solaris, because
94100         "sed --posix" leaked into a makefile.
94101         (sed): New alias, if 'alias' and GNU sed.
94103 2006-12-24  Jim Meyering  <jim@meyering.net>
94105         Work around an fchownat bug in glibc-2.4:
94106         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
94107         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
94108         in spite of the -P option.
94109         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
94110         New macros.
94111         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
94112         * modules/openat (Files): Add lib/fchownat.c.
94113         * lib/openat.c (fchownat): Don't define here.  Move to...
94114         * lib/fchownat.c: ...this new file.
94116 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
94118         Fix bug reported by Bruno Haible in
94119         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
94120         where quotearg.c didn't compile on Mac OS X 10.2 because it
94121         lacks <wchar.h> and wint_t.
94122         * lib/wctype_.h (__wctype_wint_t): New type.
94123         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
94124         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
94125         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
94126         Arg is now of type __wctype_wint_t, not wint_t.
94127         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
94128         substitute HAVE_WINT_T.
94129         * modules/wctype (Files): Add m4/wint_t.m4.
94130         (wctype.h): Substitute HAVE_WINT_T.
94132 2006-12-23  Bruno Haible  <bruno@clisp.org>
94134         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
94136 2006-12-23  Bruno Haible  <bruno@clisp.org>
94138         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
94139         S_ISLNK.
94140         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
94141         mingw.
94143 2006-12-22  Bruno Haible  <bruno@clisp.org>
94145         * lib/copy-file.c: Include acl.h.
94146         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
94147         Close the file descriptors only after being done with copy_acl.
94148         * modules/copy-file (Depends-on): Add acl.
94150 2006-12-22  Bruno Haible  <bruno@clisp.org>
94152         * gnulib-tool (SED): New variable.
94153         Use $SED instead of sed everywhere.
94155 2006-12-22  Bruno Haible  <bruno@clisp.org>
94157         * modules/no-c++: New file.
94158         * m4/no-c++.m4: New file.
94159         * MODULES.html.sh (Support for building libraries and executables):
94160         Add no-c++.
94162 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
94164         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94165         Include <limits.h>, and use its INT_MAX to rewrite the
94166         j loop so that it does not overflow 'int'.  Problem reported by
94167         Ralf Wildenhues in
94168         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
94169         Play it safe by shifting left by 1 rather than multiplying by 2,
94170         as GCC is less likely to optimize this away when the value
94171         is signed (when it assumes overflow leads to undefined behavior).
94172         Also, don't assume time_t uses two's complement.
94174 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
94176         * MODULES.html.sh: New module wctype.
94177         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
94178         * lib/fnmatch.c: Don't bother to include <wchar.h> before
94179         <wctype.h>, since the new wctype module should fix this.
94180         * lib/quotearg.c: Include <wctype.h> unconditionally, since
94181         the wctype module should arrange for it.
94182         * lib/regex_internal.h: Likewise.
94183         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
94184         since the wctype module should handle this now.
94185         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
94186         * modules/fnmatch (Depends-on): Add wctype.
94187         * modules/quotearg (Depends-on): Likewise.
94188         * modules/regex (Depends-on): Likewise.
94190 2006-12-19  Bruno Haible  <bruno@clisp.org>
94192         * lib/strdup.h [C++]: Wrap definitions in extern "C".
94193         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
94195 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94197         * modules/savewd (Depends-on): Fix dependency on fcntl.
94199 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94201         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
94202         conforms to C99, rather than relying on the user's environment
94203         setting of STDINT_H.
94205 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94206         and Eric Blake  <ebb9@byu.net>
94208         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
94209         This is more consistent with the other defines here.
94210         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
94211         Port to z/OS.  Problem reported by Paul Gilmartin.
94212         Change local vars to use gl_ prefix rather than ac_.
94213         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
94214         with other defines.
94215         * modules/double-slash-root: New module.
94216         * modules/dirname (Files): Remove m4/double-slash-root.m4.
94217         (Depends-on): Add double-slash-root.
94218         * MODULES.html.sh (File system functions): Mention new module.
94220 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
94222         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
94223         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
94224         This is for the benefit of gzip, which doesn't do i18n.
94226 2006-12-12  Jim Meyering  <jim@meyering.net>
94228         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
94229         Reported by Andreas Schwab <schwab@suse.de>.
94231 2006-12-12  Bruno Haible  <bruno@clisp.org>
94233         Merge these changes.
94234         2006-09-05  Bruno Haible  <bruno@clisp.org>
94235         * lib/iconvme.c (iconv_string): No need to save and restore errno when
94236         iconv_alloc succeeded.
94237         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
94238         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
94239         test for " && dest " at the end - dest is always != NULL there. Call
94240         iconv with 4xNULL arguments initially, to reset the state. Call iconv
94241         with 2xNULL arguments, also to flush the state storage. Handle the
94242         IRIX iconv behaviour. Realloc the final result, to throw away unused
94243         memory.
94245 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
94247         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
94248         and fchmodat unconditionally, since glibc 2.4 has them.
94249         Problem reported by Arkadiusz Miskiewicz.
94251 2006-12-10  Bruno Haible  <bruno@clisp.org>
94253         * gnulib-tool (func_import): Show the include files only for those
94254         modules that are copied and specified.
94255         Reported by Karl Berry.
94257 2006-12-08  Jim Meyering  <jim@meyering.net>
94259         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
94260         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
94262         * build-aux/announce-gen: Add two new options, both optional:
94263         --bootstrap-tools=TOOL_LIST
94264               a comma-separated list of tools, e.g.,
94265               autoconf,automake,bison,gnulib
94266         --gnulib-snapshot-date=DATE
94267               if gnulib is in the bootstrap tool list,
94268               then report this as the snapshot date.
94269               If not specified, use the current date/time.
94270               If you specify a date here, be sure it's UTC.
94272 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94274         * tests/test-argp-2.sh: Fix test to match actual output.
94275         (func_compare): Fix sed script to be portable.
94277 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
94279         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
94280         workaround for this case.  It is not autoconfigured now; offhand
94281         it's hard to see how to autoconfigure it.
94283 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94285         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
94286         a directory that is about to be chowned.  Such a directory's
94287         initial file permissions should permit the owner only and this
94288         should not be changed until after the chown, since the group and
94289         other bits would be incorrect if they granted permission before
94290         the chown.
94292         Fix porting problem for iswctype reported by Georg Schwarz in:
94293         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
94294         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
94295         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
94296         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
94297         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
94299 2006-12-03  Jim Meyering  <jim@meyering.net>
94301         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
94302         p->fts_statp may not yet be defined.
94303         (fts_read): Instead, set it in the caller, once p->fts_statp is
94304         sure to be defined, and corresponds to a top-level directory.
94305         This bug made du -x fail.  Here's the coreutils test case:
94306         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
94307         Reported by Mike Frysinger.
94309 2006-12-01  Jim Meyering  <jim@meyering.net>
94311         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
94312         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
94313         Reported by Simon Josefsson.
94315 2006-11-30  Jim Meyering  <jim@meyering.net>
94317         * m4/warning.m4: Use the all-permissive copyright notice
94318         recommended by RMS (rather than LGPL).
94319         * m4/vararrays.m4: Likewise.
94320         * m4/flexmember.m4: Likewise.
94322 2006-11-29  Bruno Haible  <bruno@clisp.org>
94324         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94325         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
94326         using +=.
94327         Reported by Simon Josefsson <simon@josefsson.org>.
94329 2006-11-28  James Youngman  <jay@gnu.org>
94331         * README: Advise users that they might find the bug-gnulib@gnu.org
94332         and autotools-announce@gnu.org mailing lists useful.
94334 2006-11-28  Bruno Haible  <bruno@clisp.org>
94336         * m4/ptrdiff_max.m4: Remove file.
94338 2006-11-21  Bruno Haible  <bruno@clisp.org>
94340         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
94341         _AC_COMPUTE_INT.
94342         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94343         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
94344         _AC_COMPUTE_INT.
94345         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94346         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
94347         _AC_COMPUTE_INT.
94348         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94350 2006-11-28  Jim Meyering  <jim@meyering.net>
94352         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
94353         warning from "gcc -Wshadow" about shadowing the builtin.
94355 2006-11-27  Bruno Haible  <bruno@clisp.org>
94357         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
94358         _AC_COMPUTE_INT.
94359         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
94361 2006-11-27  Bruno Haible  <bruno@clisp.org>
94362             Paul Eggert  <eggert@cs.ucla.edu>
94364         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
94366 2006-11-26  Bruno Haible  <bruno@clisp.org>
94368         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
94369         noinst_LTLIBRARIES.
94371 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
94372             Bruno Haible  <bruno@clisp.org>
94374         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
94375         if compiling with "gcc -ansi".
94377 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
94379         Fix some incompatibilities with gcc -ansi -pedantic.
94380         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
94381         if compiling pedantically with GCC, unless it's C99 or later.
94382         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
94383         it mishandles gcc -ansi -pedantic as well.
94384         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
94385         if gcc -pedantic.
94386         * lib/regexec.c (check_node_accept_bytes): Don't use auto
94387         initializers for struct if -pedantic, unless it's C99 or later.
94389 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
94391         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
94392         Don't close an fd more than once. Identical atimes indicate
94393         success, not failure.
94395 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
94397         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
94399 2006-11-23  Jim Meyering  <jim@meyering.net>
94401         * build-aux/announce-gen: New file.  From coreutils.
94403 2006-11-22  Jim Meyering  <jim@meyering.net>
94405         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
94406         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
94407         (fts_read): Use a temporary to narrow the overused st_size member
94408         before using it in a switch statement.  Reported by Matthew Woehlke.
94410         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
94411         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
94413 2006-11-20  Bruno Haible  <bruno@clisp.org>
94415         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
94416         changequote instead of pairs of brackets.
94417         Reported by Andreas Schwab <schwab@suse.de>.
94419 2006-11-21  Jim Meyering  <jim@meyering.net>
94421         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
94422         so as to remain compatible with older compilers.
94423         Patch from Michael Deutschmann.
94425 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94427         * MODULES.html.sh (File system functions): Add openat.
94429         * lib/openat.h (rpl_fstatat): New macro, if
94430         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
94431         (fstatat): Define to rpl_fstatat under the same conditions,
94432         unless COMPILING_FSTATAT.
94433         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
94434         seems to have the bug.
94435         * lib/fstatat.c: New file.
94436         * modules/openat (Files): Add it.
94438 2006-11-20  Bruno Haible  <bruno@clisp.org>
94440         * Makefile: New file.
94442 2006-11-20  Jim Meyering  <jim@meyering.net>
94444         The beginnings of syntax-related checks for gnulib.
94445         * lib/Makefile: New file.
94446         * lib/t-idcache: New script.  Ensure that the two halves of
94447         idcache.c stay in sync.
94449         * lib/idcache.c: Adjust comments in user- and group- portions to
94450         be more accurate, and to be consistent with one another.
94452 2006-11-20  Jim Meyering  <jim@meyering.net>
94454         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
94455         continue using the flexible array member (thus, this module performs
94456         half as many malloc calls), with the addition that...
94457         (getgroup, getuser): Consistently record a non-match via an empty
94458         "name" string, and map an empty string match to a NULL return value.
94459         * modules/idcache (Depends-on): Re-add flexmember.
94461         * lib/idcache.c (getuser): Remove all uses of the register keyword.
94462         (getuidbyname, getgroup, getgidbyname): Likewise.
94464         Use cleaner syntax: NULL rather than 0.
94465         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
94467 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
94469         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
94470         It mishandled the case where the group was missing.
94471         Problem reported by Greg Schafer.
94472         * modules/idcache: Likewise.
94474 2006-11-18  Jim Meyering  <jim@meyering.net>
94476         * check-module (%exempt_header): Add exception for some
94477         conditionally-included headers.
94479         * modules/i-ring (Depends-on): Add verify.
94480         (License): Change to LGPL.
94482 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94484         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
94485         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
94486         and inttostr.h.  Use snprintf rather than uinttostr, so that
94487         LGPLed code doesn't depend on GPLed.
94489 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
94491         * modules/inline (License): Change from GPL to LGPL.
94493 2006-11-17  Jim Meyering  <jim@meyering.net>
94495         * modules/d-type (License): Switch to LGPL.
94497 2006-11-15  Bruno Haible  <bruno@clisp.org>
94499         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
94501 2006-11-15  Eric Blake  <ebb9@byu.net>
94503         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
94504         the module dependency.
94506 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94507             Bruno Haible  <bruno@clisp.org>
94509         * gnulib-tool (func_create_testdir): Add license consistency check.
94511 2006-11-15  Eric Blake  <ebb9@byu.net>
94513         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
94514         random "(cached)" in configure output.
94516 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94518         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
94519         test for conforming inttypes.h is both announced and cached.
94521         * MODULES.html.sh (seen_modules, seen_files): New variables.
94522         (func_module): Rewrite to use a few less gnulib-tool and sed
94523         invocations.  Avoid a couple of quadratic algorithms for ...
94524         (missed_modules, missed_files): ... these, with ...
94525         (func_append, func_tmpdir): ... these new functions, from
94526         gnulib-tool.  Analogously, install traps for cleanup.
94528         * tests/test-gc.c (main): Remove unused variables.
94529         * tests/test-read-file.c: Include stdlib.h, for 'free'.
94531 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
94533         * modules/inttostr (License): Change to LGPL.
94535 2006-11-14  Eric Blake  <ebb9@byu.net>
94537         * modules/tempname (License): Change to LGPL.
94539 2006-11-14  Eric Blake  <ebb9@byu.net>
94541         * doc/functions.texi (Function Portability): *printf functions on
94542         Cygwin now understand all POSIX size specifiers.
94544 2006-11-14  Bruno Haible  <bruno@clisp.org>
94546         * modules/c-ctype (License): Change to LGPL.
94548 2006-11-12  Bruno Haible  <bruno@clisp.org>
94550         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
94551         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
94552         for GNOME libraries, for which the include files are installed in
94553         subdirectories of $prefix/include.
94555 2006-11-12  Bruno Haible  <bruno@clisp.org>
94557         * m4/lib-link.m4: Require at least autoconf-2.54.
94558         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
94559         name to underscores for the --with option.
94561 2006-11-13  Bruno Haible  <bruno@clisp.org>
94563         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
94564         the tests directory.
94565         Reported by Ralf Wildenhues.
94567 2006-11-13  Bruno Haible  <bruno@clisp.org>
94569         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
94570         (func_emit_initmacro_end): Undo the override here.
94571         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
94572         Works around the famous automake error in coreutils.
94574 2006-11-13  Eric Blake  <ebb9@byu.net>
94576         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
94577         element, not its node.
94579 2006-11-12  Bruno Haible  <bruno@clisp.org>
94581         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
94582         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
94584 2006-11-12  Bruno Haible  <bruno@clisp.org>
94586         * gnulib-tool: New option --local-symlink.
94587         (func_usage): Document it.
94588         (lsymbolic): New variable.
94589         (func_import, func_create_testdir): If --symlink was not specified,
94590         test whether --local-symlink was specified and the file comes from
94591         the local_gnulib_dir.
94593 2006-11-12  Bruno Haible  <bruno@clisp.org>
94595         * gnulib-tool (func_ln): New function.
94596         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
94598 2006-11-12  Bruno Haible  <bruno@clisp.org>
94600         Finish support for source files in subdirectories.
94601         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
94602         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
94603         AUTOMAKE_OPTIONS.
94604         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
94606 2006-11-12  Bruno Haible  <bruno@clisp.org>
94608         * gnulib-tool (func_get_automake_snippet): Synthesize also an
94609         EXTRA_lib_SOURCES augmentation.
94610         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
94612 2006-11-12  Jim Meyering  <jim@meyering.net>
94614         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
94615         file descriptors.  This also averts a failure on systems with
94616         native openat support when a traversed directory lacks "x" access.
94617         * lib/fts_.h: Include "i-ring.h"
94618         (struct FTS) [fts_fd_ring]: New member.
94619         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
94620         (FCHDIR): Add parentheses.
94621         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
94622         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
94623         When descending, rather than simply closing the previous
94624         fts_cwd_fd value, push that file descriptor onto the ring.
94625         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
94626         (fts_open): Initialize the new fd_ring member.
94627         (fts_close): Clear the ring.
94628         (fts_safe_changedir): When possible, use our new fd_ring to skip
94629         the diropen and fstat and dev/ino comparison that would normally
94630         accompany a virtual `chdir ("..")'.
94632         * modules/fts (Depends-on): Add i-ring.
94633         * modules/i-ring: New module.
94634         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
94635         * m4/i-ring.m4: New file.
94637 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94639         * gnulib-tool (func_create_testdir): Fix replacement of
94640         `build-aux' in configure.ac.  Run autotools in gltests
94641         subdirectory.
94642         (func_create_testdir, func_create_megatestdir, test): There is
94643         no need for '--force' in most autotool invocations in a new
94644         tree.  Actually fail the whole test if any of the tools, or the
94645         configure or make stages fail.
94647         Sync from Automake.
94648         * build-aux/gnupload: Revert last change.  Add pointer to upload
94649         instructions of the GNU Maintenance Instructions.
94650         Suggestion by Karl Berry.
94652 2006-11-10  Jim Meyering  <jim@meyering.net>
94654         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
94656 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
94658         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
94659         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
94660         (bind_textdomain_codeset) [! ENABLE_NLS]:
94661         Evaluate all the arguments.  That way, callers get compatible behavior
94662         if the arguments have side effects.  Also, it avoids some GCC
94663         diagnostics in some cases; Joel E. Denny reported problems when Bison
94664         was configured with --enable-gcc-warnigs.
94666 2006-11-10  Jim Meyering  <jim@meyering.net>
94668         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
94669         relevant options in CFLAGS (like -O, -fno-inline) are taken into
94670         account.
94672 2006-11-10  Jim Meyering  <jim@meyering.net>
94674         * modules/inline: New file/module.
94675         * modules/xalloc (Files): Remove m4/inline.m4.
94676         (Depends-on): Add inline, instead.
94677         * modules/oset: Likewise.
94678         * modules/list: Likewise.
94680 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
94682         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
94683         Problem reported by Matthew Woehlke.
94685 2006-11-09  Bruno Haible  <bruno@clisp.org>
94687         * lib/tempname.c (gen_tempname): Remove variant that invokes
94688         __gen_tempname.
94689         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
94690         __gen_tempname.
94692 2006-11-08  Bruno Haible  <bruno@clisp.org>
94694         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
94695         to 'yes' instead of 'cross-compiling'.
94697 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
94699         * lib/quotearg.h (quotearg_free): New decl.
94700         * lib/quotearg.c (quotearg_free): New function.
94701         (slot0, nslots, slotvec0, slotvec):
94702         Now file-scope so that quotearg_free can get at them.
94704 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94706         Sync from Automake.
94707         * build-aux/gnupload: Add missing 'gnu' to example URL.
94708         Report by Karl Berry.
94710 2006-11-08  Bruno Haible  <bruno@clisp.org>
94712         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
94713         Suggested by Paul Eggert.
94715 2006-11-08  Jim Meyering  <jim@meyering.net>
94717         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
94718         It's already included if !_LIBC.
94719         (fts_safe_changedir): Add a comment.
94721 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
94723         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
94724         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
94725         Matthew Woehlke.
94727         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
94728         definitions up, to avoid colliding with change below.
94729         (static_inline) [HAVE_INLINE]: New macro.
94730         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
94731         Provide extern decls when !HAVE_INLINE.  Do not define unless
94732         static_inline is defined, either by us or by xmalloc.c.  Use
94733         static_inline rather than static inline.
94734         (XCALLOC): Optimize sizeof(T) = 1 case.
94735         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
94737 2006-11-07  Bruno Haible  <bruno@clisp.org>
94739         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
94740         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
94741         AC_C_INLINE.
94742         * modules/xalloc (Files): Add m4/inline.m4.
94744 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94746         * README: Fix typo.
94747         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
94748         (Miscellanous Notes): ...from this.
94750 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
94752         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
94753         Mention that offsetof should be used instead of sizeof.
94754         From Bruno Haible.
94756 2006-11-07  Bruno Haible  <bruno@clisp.org>
94758         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
94760 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
94762         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
94763         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
94764         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
94765         (gl_tree_add_before, gl_tree_add_after):
94766         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
94767         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
94768         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
94769         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
94770         (gl_linked_add_after, gl_linked_add_at): Likewise.
94771         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
94772         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
94773         (gl_tree_add_before, gl_tree_add_after): Likewise.
94774         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
94775         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
94776         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
94778 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94780         * lib/gl_oset.h: Use C comment style, not C++ comment style.
94782 2006-11-06  Bruno Haible  <bruno@clisp.org>
94784         * m4/inline.m4: New file.
94785         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
94786         * modules/list (Files): Add m4/inline.m4.
94787         * modules/oset (Files): Likewise.
94789 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
94791         * lib/idcache.c: Include <stddef.h>, for offsetof.
94792         (struct userid.name): Change from char * to a flexible array member.
94793         All uses changed.
94794         * modules/idcache (Depends-on): Add flexmember.
94796         * MODULES.html.sh (Core language properties): New module flexmember.
94797         * modules/flexmember, m4/flexmember.m4: New files.
94799         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
94800         inline functions that are identical with the old xnmalloc_inline,
94801         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
94802         that we can avoid some unnecessary integer multiplications and
94803         divisions in the common case where the element size is known at
94804         compile time.
94805         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
94806         needed.
94807         (xnboundedmalloc): Remove.
94808         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
94809         arguments, for consistency with rest of this header.
94810         (xcharalloc): Rewrite using XNMALLOC.
94811         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
94812         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
94813         versions have been moved to lib/xalloc.h and renamed to be the
94814         non-*_inline versions.
94815         (xmalloc, xrealloc): Implement without reference to the xnmalloc
94816         and xnrealloc functions, since those functions are now inline and
94817         now call us.
94818         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
94819         renaming described above.
94820         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
94821         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
94822         captures the dependency in AC_C_INLINE.
94824         New module canonicalize-lgpl, proposed by Charles Wilson in
94825         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
94826         with a few small changes afterwards.
94827         * MODULES.html.sh (File system functions): New module
94828         canonicalize-lgpl.
94829         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
94830         and canonicalize_file_name.
94831         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
94832         * modules/canonicalize-lgpl: New files.
94834 2006-11-05  Bruno Haible  <bruno@clisp.org>
94836         * gnulib-tool (func_import, func_create_testdir): Create directories
94837         also for files in subdirectories of lib/.
94839 2006-11-05  Bruno Haible  <bruno@clisp.org>
94841         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
94842         ANSI C compliant.
94844 2006-11-03  Bruno Haible  <bruno@clisp.org>
94846         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
94847         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
94848         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
94849         (xnboundedmalloc): New inline function.
94850         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
94851         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
94852         xmalloc.
94853         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
94854         xmalloc.
94855         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
94856         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
94857         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
94858         xmalloc.
94859         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
94860         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
94861         xmalloc.
94862         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
94863         gl_tree_add_after): Use XMALLOC instead of xmalloc.
94864         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
94865         xmalloc.
94866         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
94867         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
94868         gl_tree_add_after): Use XMALLOC instead of xmalloc.
94869         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
94870         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
94871         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
94872         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
94874 2006-11-03  Bruno Haible  <bruno@clisp.org>
94876         * lib/c-ctype.h [C++]: Define functions without name mangling.
94877         * lib/fwriteerror.h [C++]: Likewise.
94878         * lib/gcd.h [C++]: Likewise.
94879         * lib/linebreak.h [C++]: Likewise.
94881 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
94883         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
94884         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
94885         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
94886         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
94887         Check for functions and headers just once.
94888         Check for declaration of canonicalize_file_name.
94889         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
94891 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
94893         * gnulib-tool (func_import): Fix typo in actioncmd.
94895 2006-11-02  Bruno Haible  <bruno@clisp.org>
94897         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
94898         newline sequence in the Makefile.am snippet as a space, like "make"
94899         does.
94900         Reported by Roger Persson <perrog@gmail.com>.
94902 2006-11-01  Bruno Haible  <bruno@clisp.org>
94904         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
94905         already declared in <string.h>.
94906         * lib/strcase.h (strncasecmp): Don't declare it if yes.
94908 2006-11-01  Bruno Haible  <bruno@clisp.org>
94910         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
94911         * lib/strcase.h: Include <string.h>.
94912         (strcasecmp): Define to rpl_strcasecmp here.
94914 2006-11-01  Bruno Haible  <bruno@clisp.org>
94916         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
94918 2006-11-01  Eric Blake  <ebb9@byu.net>
94920         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
94922         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
94924 2006-10-29  Bruno Haible  <bruno@clisp.org>
94926         Make it compile in C++ mode.
94927         * lib/full-write.c (full_rw): Add a cast.
94929 2006-11-01  Bruno Haible  <bruno@clisp.org>
94931         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
94932         be POSIX compliant.
94933         Reported by Roger Persson <perrog@gmail.com>.
94935 2006-11-01  Eric Blake  <ebb9@byu.net>
94937         * lib/getopt_.h: Fix comments.
94939 2006-10-31  Eric Blake  <ebb9@byu.net>
94941         * modules/tmpdir (Depends-on): Add sys_stat.
94942         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
94943         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
94944         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
94945         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
94946         tempname.
94948 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
94950         Avoid some C++ diagnostics reported by Bruno Haible.
94951         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
94952         xmalloc.
94953         (quotearg_alloc): Use xcharalloc rather than xmalloc.
94954         (struct slotvec): Move to top level.
94955         (quotearg_n_options): Rewrite to avoid xmalloc.
94956         * lib/xalloc.h (xcharalloc): New function.
94957         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
94958         [defined __cplusplus]: Add function template that provides result
94959         type propagation.  This part of the change is from Bruno Haible.
94961 2006-10-29  Bruno Haible  <bruno@clisp.org>
94963         Make it compile in C++ mode.
94964         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
94965         * lib/strnlen1.c (strnlen1): Cast memchr result.
94966         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
94967         * lib/clean-temp.c (string_equals, string_hash): Add casts.
94968         (create_temp_dir): Rename local variable 'template'.
94969         (compile_csharp_using_sscli): Add cast.
94970         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
94971         * lib/findprog.c (find_in_path): Likewise.
94972         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
94973         * lib/wait-process.c (register_slave_subprocess): Likewise.
94975 2006-10-22  Bruno Haible  <bruno@clisp.org>
94977         * modules/tsearch: New file.
94978         * lib/tsearch.h: New file.
94979         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
94980         * m4/tsearch.m4: New file.
94981         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
94983 2006-10-29  Eric Blake  <ebb9@byu.net>
94985         * lib/arcfour.c: Assume config.h.
94986         * lib/arctwo.c: Likewise.
94987         * lib/base64.c: Likewise.
94988         * lib/check-version.c: Likewise.
94989         * lib/crc.c: Likewise.
94990         * lib/des.c: Likewise.
94991         * lib/gc-gnulib.c: Likewise.
94992         * lib/gc-libgcrypt.c: Likewise.
94993         * lib/gc-pbkdf2-sha1.c: Likewise.
94994         * lib/getaddrinfo.c: Likewise.
94995         * lib/getdelim.c: Likewise.
94996         * lib/getline.c: Likewise.
94997         * lib/hmac-md5.c: Likewise.
94998         * lib/hmac-sha1.c: Likewise.
94999         * lib/iconvme.c: Likewise.
95000         * lib/md2.c: Likewise.
95001         * lib/md4.c: Likewise.
95002         * lib/memxor.c: Likewise.
95003         * lib/read-file.c: Likewise.
95004         * lib/readline.c: Likewise.
95005         * lib/rijndael-alg-fst.c: Likewise.
95006         * lib/rijndael-api-fst.c: Likewise.
95007         * lib/xgetdomainname.c: Likewise.
95009 2006-10-28  Eric Blake  <ebb9@byu.net>
95011         * lib/xstrndup.c: Assume config.h.
95013 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
95015         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
95016         stat-macros.h is now for our own macros, whereas stat_h is for
95017         macros in the <sys/stat.h> name space.
95018         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
95019         (STAT_MACROS_H): Remove.
95020         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
95021         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
95022         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
95023         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
95024         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
95025         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
95026         Move these macros to ...
95027         * lib/stat_.h: here.  Don't include stat-macros.h.
95028         * lib/canonicalize.c: Don't include stat-macros.h.
95029         * lib/chown.c: Likewise.
95030         * lib/euidaccess.c: Likewise.
95031         * lib/file-type.c: Likewise.
95032         * lib/filemode.c: Likewise.
95033         * lib/glob.c: Likewise.
95034         * lib/isapipe.c: Likewise.
95035         * lib/lchown.c: Likewise.
95036         * lib/lstat.c: Likewise.
95037         * lib/mkdir-p.c: Likewise.
95038         * lib/rmdir.c: Likewise.
95039         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
95040         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
95041         unless mkdir isn't declared, to speed up 'configure'.
95042         Always create sys/stat.h, since it's unlikely any real sys/stat.h
95043         would define all the S_* symbols.
95044         * modules/canonicalize (Depends-on):
95045         Depend on sys_stat, not stat-macros.
95046         * modules/chown: Likewise.
95047         * modules/euidaccess: Likewise.
95048         * modules/filemode: Likewise.
95049         * modules/file-type: Likewise.
95050         * modules/glob: Likewise.
95051         * modules/isapipe: Likewise.
95052         * modules/lchown: Likewise.
95053         * modules/lstat: Likewise.
95054         * modules/mkancesdirs: Likewise.
95055         * modules/rmdir: Likewise.
95056         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
95057         * modules/modechange: Likewise.
95058         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
95059         (configure.ac): Remove gl_STAT_MACROS.
95060         * modules/sys_stat (Depends-on): Remove stat-macros.
95062 2006-10-27  Bruno Haible  <bruno@clisp.org>
95064         * m4/signed.m4: Remove file.
95065         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
95066         invocation.
95067         * modules/vasnprintf (Files): Remove m4/signed.m4.
95069 2006-10-27  Bruno Haible  <bruno@clisp.org>
95071         Update to GNU gettext 0.16.
95072         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
95073         m4/inttypes-h.m4, m4/signed.m4.
95074         * m4/gettext.m4: Update to GNU gettext 0.16.
95075         * m4/intl.m4: New file, from GNU gettext.
95076         * m4/intldir.m4: New file, from GNU gettext.
95077         * config/srclist.txt: Update
95079 2006-10-27  Eric Blake  <ebb9@byu.net>
95081         * MODULES.html.sh: Document tempname.
95082         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
95083         dependencies.
95084         (Files): Move lib/tempname.c...
95085         * modules/tempname: ...to this new module.
95086         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
95087         (gl_PREREQ_TEMPNAME): Move...
95088         * m4/tempname.m4: ...to this new file.
95089         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
95090         * modules/sys_stat (Depends-on): Add stat-macros.
95091         * lib/stat_.h (includes): Pick up stat macros.
95092         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
95093         if stat macros are broken.
95094         * lib/tempname.c (includes): No need to include "stat-macros.h".
95095         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
95096         (direxists, __path_search) [!_LIBC]: Don't compile these in
95097         gnulib; the tmpdir module covers that.
95098         * lib/tempname.h: New file.
95100 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
95102         * COPYING: Explain how gnulib-tool converts licence headers.
95103         Almost all wording by Eric Blake.
95105 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
95107         * lib/mbchar.h (is_basic_table): Make read-only.
95108         * lib/mbchar.c (is_basic_table): Likewise.
95109         Reported by John Darrington.
95111 2006-10-25  Bruno Haible  <bruno@clisp.org>
95113         * lib/progname.h (set_program_name): Undefine before defining.
95115 2006-10-25  Bruno Haible  <bruno@clisp.org>
95117         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
95118         false for non-gcc C++ compilers.
95119         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95121 2006-10-24  Bruno Haible  <bruno@clisp.org>
95123         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
95124         iconv implementations like Irix iconv.
95126 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95128         * modules/vararrays: New file.
95129         * m4/vararrays.m4: New file, taken from diffutils.
95130         * MODULES.html.sh: New module vararrays.
95132 2006-10-24  Karl Berry  <karl@gnu.org>
95134         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
95135         Don't call GNU Unix.
95137 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95139         * users.txt: Add Libtool.
95141         Sync from Libtool:
95143         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95145         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
95146         to gnulib's policy of including config.h unconditionally.
95148 2006-10-24  Bruno Haible  <bruno@clisp.org>
95150         * modules/wcwidth (Files): Add m4/wint_t.m4.
95151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
95152         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
95154 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95156         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
95157         to pacify GCC with some -W flags enabled.  Problem reported by
95158         Bruno Haible.
95160 2006-10-24  Jim Meyering  <jim@meyering.net>
95162         * MODULES.html.sh: Remove uinttostr.  It's not a module.
95163         Reported by Karl Berry.
95165 2006-10-23  Bruno Haible  <bruno@clisp.org>
95167         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
95169 2006-10-24  Bruno Haible  <bruno@clisp.org>
95171         * lib/gl_list.h: Use C comment style, not C++ comment style.
95173 2006-10-23  Eric Blake  <ebb9@byu.net>
95175         * lib/getaddrinfo.c (includes): Add missing include.
95177 2006-10-23  Bruno Haible  <bruno@clisp.org>
95178             Paul Eggert  <eggert@cs.ucla.edu>
95180         Ability to rename obstack_free.
95181         * lib/obstack.h (__obstack_free): New macro. Declare instead of
95182         obstack_free.
95183         (obstack_free): Invoke the __obstack_free macro.
95184         * lib/obstack.c (obstack_free): Use __obstack_free macro.
95186 2006-10-23  Bruno Haible  <bruno@clisp.org>
95187             Paul Eggert  <eggert@cs.ucla.edu>
95189         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
95190         __argc, __argv from the declaration. (They are defined as macros on
95191         mingw.)
95193 2006-10-22  Bruno Haible  <bruno@clisp.org>
95195         * doc/gnulib-intro.texi: New file.
95196         * doc/gnulib.texi: Include it.
95198 2006-10-21  Bruno Haible  <bruno@clisp.org>
95200         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
95201         "Introduction", "Miscellanous Notes", "Particular Modules".
95203 2006-10-21  Bruno Haible  <bruno@clisp.org>
95205         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95206         Change mostlyclean-local rule to avoid sh syntax error from bash
95207         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
95209 2006-10-23  Jim Meyering  <jim@meyering.net>
95211         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
95212         in place of snprintf.
95214         * modules/inttostr (Files): Add lib/uinttostr.c.
95215         * lib/uinttostr.c (inttostr): New file/function.
95216         * lib/inttostr.h (uinttostr): Declare.
95217         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
95218         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95219         Add uinttostr.
95220         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
95222 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95224         * lib/canonicalize.c (ELOOP): Define if not already defined.
95225         Problem reported by Bruno Haible in
95226         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
95228 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95230         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
95231         Problem reported by Perry Smith and Ville Laurikari.
95233         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
95234         uses.
95236 2006-10-19  Bruno Haible  <bruno@clisp.org>
95238         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
95239         for mingw.
95241 2006-10-19  Bruno Haible  <bruno@clisp.org>
95243         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
95244         Needed for mingw.
95246 2006-10-19  Bruno Haible  <bruno@clisp.org>
95248         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
95250 2006-10-19  Bruno Haible  <bruno@clisp.org>
95252         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
95253         it.
95255 2006-10-19  Bruno Haible  <bruno@clisp.org>
95257         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
95258         invocation.
95260 2006-10-19  Bruno Haible  <bruno@clisp.org>
95262         * gnulib-tool (func_create_testdir): Don't include ftruncate and
95263         mountlist by default.
95265 2006-10-16  Bruno Haible  <bruno@clisp.org>
95267         * lib/c-strstr.c: Include c-strstr.h.
95269 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95271         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
95272         in a slash.
95274 2006-10-18  Bruno Haible  <bruno@clisp.org>
95276         * lib/lock.h [C++]: Wrap definitions in extern "C".
95278 2006-10-18  Bruno Haible  <bruno@clisp.org>
95280         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
95281         gl_LIBOBJS list.
95283 2006-10-18  Bruno Haible  <bruno@clisp.org>
95285         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
95287 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
95289         * lib/xstrtol.h: Include gettext.h.
95290         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
95291         Problem reported by Eric Blake.
95292         * modules/xstrtol (Depends-on): Add gettext-h.
95294 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
95296         * lib/strftime.c (advance): New macro.
95297         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
95298         incomplete type, so you can't add 0 to it.  Problem and patch
95299         reported by Eelco Dolstra for dietlibc.
95301 2006-10-18  Jim Meyering  <jim@meyering.net>
95303         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
95304         type for a local, and rename it: s/up/user_proc/.
95306 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
95308         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
95309         READ_UTMP_USER_PROCESS.
95310         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
95312 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95314         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
95315         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
95317 2006-10-17  Eric Blake  <ebb9@byu.net>
95319         * lib/sigprocmask.c (sigprocmask): Fix typo.
95321         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
95323         * modules/clean-temp (Makefile.am): Don't add to make output...
95324         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
95325         config.h.
95327 2006-10-17  Bruno Haible  <bruno@clisp.org>
95329         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
95330         differently if DEFAULT_TEXT_DOMAIN is set.
95332 2006-10-16  Bruno Haible  <bruno@clisp.org>
95334         * lib/clean-temp.c: Include fwriteerror.h.
95336 2006-10-16  Bruno Haible  <bruno@clisp.org>
95338         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
95340 2006-10-16  Bruno Haible  <bruno@clisp.org>
95342         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
95343         * lib/sigprocmask.h: Include <sys/types.h>.
95344         (sigset_t): Use the system's definition if present.
95346 2006-10-17  Eric Blake  <ebb9@byu.net>
95348         * lib/xvasprintf.c (includes): Assume config.h.
95349         * lib/xasprintf.c (includes): Likewise.
95351 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95353         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
95354         at least as wide as intmax_t.
95356 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
95358         (Imported from Automake.)
95359         * build-aux/gnupload: Update to version 1.1 of directive file.
95361 2006-10-16  Eric Blake  <ebb9@byu.net>
95363         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
95364         match Automake 1.10a.
95366 2006-10-14  Bruno Haible  <bruno@clisp.org>
95368         * modules/sigprocmask: New file.
95369         * lib/sigprocmask.h: New file.
95370         * lib/sigprocmask.c: New file.
95371         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
95372         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
95373         request sigprocmask.o.
95374         (gl_PREREQ_SIGPROCMASK): New macro.
95375         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
95376         (Depends-on): Add sigprocmask.
95377         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
95378         gt_SIGNALBLOCKING. Test for 'raise' only once.
95379         * lib/fatal-signal.c: Include sigprocmask.h.
95380         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
95381         unblock_fatal_signals): Define always.
95382         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
95383         sigprocmask.
95385 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
95387         Sync from Automake.
95388         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
95389         which incorrectly sets the mode of an existing destination
95390         directory.  In some cases the unpatched install-sh could do the
95391         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
95392         system.  We hope this is rare in practice, but it's clearly worth
95393         fixing.  Problem reported by Alex Unleashed in
95394         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
95395         Also, don't bother to check for -m bugs unless we're using -m;
95396         suggested by Stepan Kasal.
95398 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95400         Sync from Automake.
95401         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
95402         `-c' flag, so they appear at the same position as in %FASTDEP%
95403         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
95404         which ignores unknown options only after the first non-option.
95405         Bug report against M4 by Nelson H. F. Beebe.
95407 2006-10-13  Jim Meyering  <jim@meyering.net>
95409         Fix a bug in yesterday's change.
95410         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
95411         p->fts_statp->st_dev would be used uninitialized.
95412         Ensures that we always call fts_stat on the very first entry.
95413         Miklos Szeredi reported that find -xdev stopped working.
95415 2006-10-12  Bruno Haible  <bruno@clisp.org>
95417         * gnulib-tool (func_get_automake_snippet): Append an automatically
95418         computed EXTRA_DIST augmentation.
95419         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
95420         * modules/alloca-opt (Makefile.am): Likewise.
95421         * modules/allocsa (Makefile.am): Likewise.
95422         * modules/arcfour (Makefile.am): Likewise.
95423         * modules/arctwo (Makefile.am): Likewise.
95424         * modules/argmatch (Makefile.am): Likewise.
95425         * modules/argz (Makefile.am): Likewise.
95426         * modules/atexit (Makefile.am): Likewise.
95427         * modules/backupfile (Makefile.am): Likewise.
95428         * modules/byteswap (Makefile.am): Likewise.
95429         * modules/c-strtod (Makefile.am): Likewise.
95430         * modules/c-strtold (Makefile.am): Likewise.
95431         * modules/calloc (Makefile.am): Likewise.
95432         * modules/canon-host (Makefile.am): Likewise.
95433         * modules/canonicalize (Makefile.am): Likewise.
95434         * modules/chdir-long (Makefile.am): Likewise.
95435         * modules/chdir-safer (Makefile.am): Likewise.
95436         * modules/check-version (Makefile.am): Likewise.
95437         * modules/chown (Makefile.am): Likewise.
95438         * modules/cloexec (Makefile.am): Likewise.
95439         * modules/close-stream (Makefile.am): Likewise.
95440         * modules/closeout (Makefile.am): Likewise.
95441         * modules/crc (Makefile.am): Likewise.
95442         * modules/csharpexec (Makefile.am): Likewise.
95443         * modules/cycle-check (Makefile.am): Likewise.
95444         * modules/des (Makefile.am): Likewise.
95445         * modules/dev-ino (Makefile.am): Likewise.
95446         * modules/dirfd (Makefile.am): Likewise.
95447         * modules/dirname (Makefile.am): Likewise.
95448         * modules/dup2 (Makefile.am): Likewise.
95449         * modules/eealloc (Makefile.am): Likewise.
95450         * modules/error (Makefile.am): Likewise.
95451         * modules/euidaccess (Makefile.am): Likewise.
95452         * modules/exclude (Makefile.am): Likewise.
95453         * modules/exitfail (Makefile.am): Likewise.
95454         * modules/fcntl-safer (Makefile.am): Likewise.
95455         * modules/fcntl (Makefile.am): Likewise.
95456         * modules/file-type (Makefile.am): Likewise.
95457         * modules/fileblocks (Makefile.am): Likewise.
95458         * modules/filemode (Makefile.am): Likewise.
95459         * modules/filenamecat (Makefile.am): Likewise.
95460         * modules/fnmatch (Makefile.am): Likewise.
95461         * modules/fopen-safer (Makefile.am): Likewise.
95462         * modules/fpending (Makefile.am): Likewise.
95463         * modules/fprintftime (Makefile.am): Likewise.
95464         * modules/free (Makefile.am): Likewise.
95465         * modules/fsusage (Makefile.am): Likewise.
95466         * modules/ftruncate (Makefile.am): Likewise.
95467         * modules/fts (Makefile.am): Likewise.
95468         * modules/gc-arcfour (Makefile.am): Likewise.
95469         * modules/gc-des (Makefile.am): Likewise.
95470         * modules/gc-hmac-md5 (Makefile.am): Likewise.
95471         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
95472         * modules/gc-md4 (Makefile.am): Likewise.
95473         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
95474         * modules/gc-sha1 (Makefile.am): Likewise.
95475         * modules/gc (Makefile.am): Likewise.
95476         * modules/getaddrinfo (Makefile.am): Likewise.
95477         * modules/getcwd (Makefile.am): Likewise.
95478         * modules/getdelim (Makefile.am): Likewise.
95479         * modules/getdomainname (Makefile.am): Likewise.
95480         * modules/getgroups (Makefile.am): Likewise.
95481         * modules/gethostname (Makefile.am): Likewise.
95482         * modules/gethrxtime (Makefile.am): Likewise.
95483         * modules/getline (Makefile.am): Likewise.
95484         * modules/getloadavg (Makefile.am): Likewise.
95485         * modules/getlogin_r (Makefile.am): Likewise.
95486         * modules/getndelim2 (Makefile.am): Likewise.
95487         * modules/getopt (Makefile.am): Likewise.
95488         * modules/getpagesize (Makefile.am): Likewise.
95489         * modules/getpass-gnu (Makefile.am): Likewise.
95490         * modules/getpass (Makefile.am): Likewise.
95491         * modules/getsubopt (Makefile.am): Likewise.
95492         * modules/gettime (Makefile.am): Likewise.
95493         * modules/gettimeofday (Makefile.am): Likewise.
95494         * modules/getugroups (Makefile.am): Likewise.
95495         * modules/getusershell (Makefile.am): Likewise.
95496         * modules/glob (Makefile.am): Likewise.
95497         * modules/group-member (Makefile.am): Likewise.
95498         * modules/hard-locale (Makefile.am): Likewise.
95499         * modules/hash (Makefile.am): Likewise.
95500         * modules/hmac-md5 (Makefile.am): Likewise.
95501         * modules/hmac-sha1 (Makefile.am): Likewise.
95502         * modules/human (Makefile.am): Likewise.
95503         * modules/idcache (Makefile.am): Likewise.
95504         * modules/imaxabs (Makefile.am): Likewise.
95505         * modules/imaxdiv (Makefile.am): Likewise.
95506         * modules/inet_ntop (Makefile.am): Likewise.
95507         * modules/inet_pton (Makefile.am): Likewise.
95508         * modules/intprops (Makefile.am): Likewise.
95509         * modules/inttostr (Makefile.am): Likewise.
95510         * modules/inttypes (Makefile.am): Likewise.
95511         * modules/isapipe (Makefile.am): Likewise.
95512         * modules/javaversion (Makefile.am): Likewise.
95513         * modules/lchmod (Makefile.am): Likewise.
95514         * modules/lchown (Makefile.am): Likewise.
95515         * modules/localcharset (Makefile.am): Likewise.
95516         * modules/long-options (Makefile.am): Likewise.
95517         * modules/lstat (Makefile.am): Likewise.
95518         * modules/malloc (Makefile.am): Likewise.
95519         * modules/mathl (Makefile.am): Likewise.
95520         * modules/mbchar (Makefile.am): Likewise.
95521         * modules/md2 (Makefile.am): Likewise.
95522         * modules/md4 (Makefile.am): Likewise.
95523         * modules/md5 (Makefile.am): Likewise.
95524         * modules/memcasecmp (Makefile.am): Likewise.
95525         * modules/memchr (Makefile.am): Likewise.
95526         * modules/memcmp (Makefile.am): Likewise.
95527         * modules/memcoll (Makefile.am): Likewise.
95528         * modules/memcpy (Makefile.am): Likewise.
95529         * modules/memmem (Makefile.am): Likewise.
95530         * modules/memmove (Makefile.am): Likewise.
95531         * modules/mempcpy (Makefile.am): Likewise.
95532         * modules/memrchr (Makefile.am): Likewise.
95533         * modules/memset (Makefile.am): Likewise.
95534         * modules/memxor (Makefile.am): Likewise.
95535         * modules/mkancesdirs (Makefile.am): Likewise.
95536         * modules/mkdir-p (Makefile.am): Likewise.
95537         * modules/mkdir (Makefile.am): Likewise.
95538         * modules/mkdtemp (Makefile.am): Likewise.
95539         * modules/mkstemp (Makefile.am): Likewise.
95540         * modules/mktime (Makefile.am): Likewise.
95541         * modules/modechange (Makefile.am): Likewise.
95542         * modules/mountlist (Makefile.am): Likewise.
95543         * modules/nanosleep (Makefile.am): Likewise.
95544         * modules/obstack (Makefile.am): Likewise.
95545         * modules/openat (Makefile.am): Likewise.
95546         * modules/pagealign_alloc (Makefile.am): Likewise.
95547         * modules/pathmax (Makefile.am): Likewise.
95548         * modules/physmem (Makefile.am): Likewise.
95549         * modules/poll (Makefile.am): Likewise.
95550         * modules/posixtm (Makefile.am): Likewise.
95551         * modules/posixver (Makefile.am): Likewise.
95552         * modules/putenv (Makefile.am): Likewise.
95553         * modules/quote (Makefile.am): Likewise.
95554         * modules/quotearg (Makefile.am): Likewise.
95555         * modules/raise (Makefile.am): Likewise.
95556         * modules/read-file (Makefile.am): Likewise.
95557         * modules/readline (Makefile.am): Likewise.
95558         * modules/readlink (Makefile.am): Likewise.
95559         * modules/readtokens (Makefile.am): Likewise.
95560         * modules/readutmp (Makefile.am): Likewise.
95561         * modules/realloc (Makefile.am): Likewise.
95562         * modules/regex (Makefile.am): Likewise.
95563         * modules/rename-dest-slash (Makefile.am): Likewise.
95564         * modules/rename (Makefile.am): Likewise.
95565         * modules/rijndael (Makefile.am): Likewise.
95566         * modules/rmdir (Makefile.am): Likewise.
95567         * modules/rpmatch (Makefile.am): Likewise.
95568         * modules/safe-read (Makefile.am): Likewise.
95569         * modules/safe-write (Makefile.am): Likewise.
95570         * modules/same-inode (Makefile.am): Likewise.
95571         * modules/same (Makefile.am): Likewise.
95572         * modules/save-cwd (Makefile.am): Likewise.
95573         * modules/savedir (Makefile.am): Likewise.
95574         * modules/setenv (Makefile.am): Likewise.
95575         * modules/settime (Makefile.am): Likewise.
95576         * modules/sha1 (Makefile.am): Likewise.
95577         * modules/sig2str (Makefile.am): Likewise.
95578         * modules/snprintf (Makefile.am): Likewise.
95579         * modules/stat-macros (Makefile.am): Likewise.
95580         * modules/stat-time (Makefile.am): Likewise.
95581         * modules/stdbool (Makefile.am): Likewise.
95582         * modules/stdint (Makefile.am): Likewise.
95583         * modules/stdlib-safer (Makefile.am): Likewise.
95584         * modules/stpcpy (Makefile.am): Likewise.
95585         * modules/stpncpy (Makefile.am): Likewise.
95586         * modules/strcase (Makefile.am): Likewise.
95587         * modules/strcasestr (Makefile.am): Likewise.
95588         * modules/strchrnul (Makefile.am): Likewise.
95589         * modules/strcspn (Makefile.am): Likewise.
95590         * modules/strdup (Makefile.am): Likewise.
95591         * modules/strerror (Makefile.am): Likewise.
95592         * modules/strftime (Makefile.am): Likewise.
95593         * modules/strndup (Makefile.am): Likewise.
95594         * modules/strnlen (Makefile.am): Likewise.
95595         * modules/strpbrk (Makefile.am): Likewise.
95596         * modules/strsep (Makefile.am): Likewise.
95597         * modules/strstr (Makefile.am): Likewise.
95598         * modules/strtod (Makefile.am): Likewise.
95599         * modules/strtoimax (Makefile.am): Likewise.
95600         * modules/strtok_r (Makefile.am): Likewise.
95601         * modules/strtol (Makefile.am): Likewise.
95602         * modules/strtoll (Makefile.am): Likewise.
95603         * modules/strtoul (Makefile.am): Likewise.
95604         * modules/strtoull (Makefile.am): Likewise.
95605         * modules/strtoumax (Makefile.am): Likewise.
95606         * modules/strverscmp (Makefile.am): Likewise.
95607         * modules/sys_socket (Makefile.am): Likewise.
95608         * modules/sys_stat (Makefile.am): Likewise.
95609         * modules/sysexits (Makefile.am): Likewise.
95610         * modules/time_r (Makefile.am): Likewise.
95611         * modules/timegm (Makefile.am): Likewise.
95612         * modules/timespec (Makefile.am): Likewise.
95613         * modules/tmpfile-safer (Makefile.am): Likewise.
95614         * modules/trim (Makefile.am): Likewise.
95615         * modules/unistd-safer (Makefile.am): Likewise.
95616         * modules/unlinkdir (Makefile.am): Likewise.
95617         * modules/unlocked-io (Makefile.am): Likewise.
95618         * modules/userspec (Makefile.am): Likewise.
95619         * modules/utime (Makefile.am): Likewise.
95620         * modules/utimecmp (Makefile.am): Likewise.
95621         * modules/utimens (Makefile.am): Likewise.
95622         * modules/vasnprintf (Makefile.am): Likewise.
95623         * modules/vasprintf (Makefile.am): Likewise.
95624         * modules/vsnprintf (Makefile.am): Likewise.
95625         * modules/xalloc (Makefile.am): Likewise.
95626         * modules/xgetcwd (Makefile.am): Likewise.
95627         * modules/xnanosleep (Makefile.am): Likewise.
95628         * modules/xreadlink (Makefile.am): Likewise.
95629         * modules/xstrtod (Makefile.am): Likewise.
95630         * modules/xstrtol (Makefile.am): Likewise.
95631         * modules/xstrtold (Makefile.am): Likewise.
95632         * modules/yesno (Makefile.am): Likewise.
95633         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
95635 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
95637         * modules/error (Makefile.am): Distribute files through
95638         EXTRA_DIST, not lib_SOURCES.
95640 2006-10-12  Eric Blake  <ebb9@byu.net>
95642         * modules/error (Makefile.am): Distribute files in /lib.
95643         * modules/obstack (Makefile.am): Likewise.
95645 2006-10-12  Bruno Haible  <bruno@clisp.org>
95647         * modules/acl (Makefile.am): Distribute all files in lib/ through
95648         EXTRA_DIST.
95649         * modules/arcfour (Makefile.am): Likewise.
95650         * modules/arctwo (Makefile.am): Likewise.
95651         * modules/argmatch (Makefile.am): Likewise.
95652         * modules/argz (Makefile.am): Likewise.
95653         * modules/atexit (Makefile.am): Likewise.
95654         * modules/backupfile (Makefile.am): Likewise.
95655         * modules/c-strtod (Makefile.am): Likewise.
95656         * modules/c-strtold (Makefile.am): Likewise.
95657         * modules/calloc (Makefile.am): Likewise.
95658         * modules/canon-host (Makefile.am): Likewise.
95659         * modules/canonicalize (Makefile.am): Likewise.
95660         * modules/chdir-long (Makefile.am): Likewise.
95661         * modules/chdir-safer (Makefile.am): Likewise.
95662         * modules/check-version (Makefile.am): Likewise.
95663         * modules/chown (Makefile.am): Likewise.
95664         * modules/cloexec (Makefile.am): Likewise.
95665         * modules/close-stream (Makefile.am): Likewise.
95666         * modules/closeout (Makefile.am): Likewise.
95667         * modules/crc (Makefile.am): Likewise.
95668         * modules/cycle-check (Makefile.am): Likewise.
95669         * modules/des (Makefile.am): Likewise.
95670         * modules/dirfd (Makefile.am): Likewise.
95671         * modules/dirname (Makefile.am): Likewise.
95672         * modules/dup2 (Makefile.am): Likewise.
95673         * modules/euidaccess (Makefile.am): Likewise.
95674         * modules/exclude (Makefile.am): Likewise.
95675         * modules/exitfail (Makefile.am): Likewise.
95676         * modules/fcntl-safer (Makefile.am): Likewise.
95677         * modules/file-type (Makefile.am): Likewise.
95678         * modules/fileblocks (Makefile.am): Likewise.
95679         * modules/filemode (Makefile.am): Likewise.
95680         * modules/filenamecat (Makefile.am): Likewise.
95681         * modules/fnmatch (Makefile.am): Likewise.
95682         * modules/fopen-safer (Makefile.am): Likewise.
95683         * modules/fpending (Makefile.am): Likewise.
95684         * modules/fprintftime (Makefile.am): Likewise.
95685         * modules/free (Makefile.am): Likewise.
95686         * modules/fsusage (Makefile.am): Likewise.
95687         * modules/ftruncate (Makefile.am): Likewise.
95688         * modules/fts (Makefile.am): Likewise.
95689         * modules/gc (Makefile.am): Likewise.
95690         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
95691         * modules/getaddrinfo (Makefile.am): Likewise.
95692         * modules/getcwd (Makefile.am): Likewise.
95693         * modules/getdelim (Makefile.am): Likewise.
95694         * modules/getdomainname (Makefile.am): Likewise.
95695         * modules/getgroups (Makefile.am): Likewise.
95696         * modules/gethostname (Makefile.am): Likewise.
95697         * modules/gethrxtime (Makefile.am): Likewise.
95698         * modules/getline (Makefile.am): Likewise.
95699         * modules/getloadavg (Makefile.am): Likewise.
95700         * modules/getlogin_r (Makefile.am): Likewise.
95701         * modules/getopt (Makefile.am): Likewise.
95702         * modules/getpass (Makefile.am): Likewise.
95703         * modules/getpass-gnu (Makefile.am): Likewise.
95704         * modules/getsubopt (Makefile.am): Likewise.
95705         * modules/gettime (Makefile.am): Likewise.
95706         * modules/gettimeofday (Makefile.am): Likewise.
95707         * modules/getugroups (Makefile.am): Likewise.
95708         * modules/getusershell (Makefile.am): Likewise.
95709         * modules/glob (Makefile.am): Likewise.
95710         * modules/group-member (Makefile.am): Likewise.
95711         * modules/hard-locale (Makefile.am): Likewise.
95712         * modules/hash (Makefile.am): Likewise.
95713         * modules/hmac-md5 (Makefile.am): Likewise.
95714         * modules/hmac-sha1 (Makefile.am): Likewise.
95715         * modules/human (Makefile.am): Likewise.
95716         * modules/idcache (Makefile.am): Likewise.
95717         * modules/imaxabs (Makefile.am): Likewise.
95718         * modules/imaxdiv (Makefile.am): Likewise.
95719         * modules/inet_ntop (Makefile.am): Likewise.
95720         * modules/inet_pton (Makefile.am): Likewise.
95721         * modules/inttostr (Makefile.am): Likewise.
95722         * modules/isapipe (Makefile.am): Likewise.
95723         * modules/lchown (Makefile.am): Likewise.
95724         * modules/long-options (Makefile.am): Likewise.
95725         * modules/lstat (Makefile.am): Likewise.
95726         * modules/malloc (Makefile.am): Likewise.
95727         * modules/mathl (Makefile.am): Likewise.
95728         * modules/mbchar (Makefile.am): Likewise.
95729         * modules/md2 (Makefile.am): Likewise.
95730         * modules/md4 (Makefile.am): Likewise.
95731         * modules/md5 (Makefile.am): Likewise.
95732         * modules/memcasecmp (Makefile.am): Likewise.
95733         * modules/memchr (Makefile.am): Likewise.
95734         * modules/memcmp (Makefile.am): Likewise.
95735         * modules/memcoll (Makefile.am): Likewise.
95736         * modules/memcpy (Makefile.am): Likewise.
95737         * modules/memmem (Makefile.am): Likewise.
95738         * modules/memmove (Makefile.am): Likewise.
95739         * modules/mempcpy (Makefile.am): Likewise.
95740         * modules/memrchr (Makefile.am): Likewise.
95741         * modules/memset (Makefile.am): Likewise.
95742         * modules/memxor (Makefile.am): Likewise.
95743         * modules/mkancesdirs (Makefile.am): Likewise.
95744         * modules/mkdir (Makefile.am): Likewise.
95745         * modules/mkdir-p (Makefile.am): Likewise.
95746         * modules/mkdtemp (Makefile.am): Likewise.
95747         * modules/mkstemp (Makefile.am): Likewise.
95748         * modules/mktime (Makefile.am): Likewise.
95749         * modules/modechange (Makefile.am): Likewise.
95750         * modules/mountlist (Makefile.am): Likewise.
95751         * modules/nanosleep (Makefile.am): Likewise.
95752         * modules/openat (Makefile.am): Likewise.
95753         * modules/pagealign_alloc (Makefile.am): Likewise.
95754         * modules/physmem (Makefile.am): Likewise.
95755         * modules/poll (Makefile.am): Likewise.
95756         * modules/posixtm (Makefile.am): Likewise.
95757         * modules/posixver (Makefile.am): Likewise.
95758         * modules/putenv (Makefile.am): Likewise.
95759         * modules/quote (Makefile.am): Likewise.
95760         * modules/quotearg (Makefile.am): Likewise.
95761         * modules/raise (Makefile.am): Likewise.
95762         * modules/read-file (Makefile.am): Likewise.
95763         * modules/readline (Makefile.am): Likewise.
95764         * modules/readlink (Makefile.am): Likewise.
95765         * modules/readtokens (Makefile.am): Likewise.
95766         * modules/readutmp (Makefile.am): Likewise.
95767         * modules/realloc (Makefile.am): Likewise.
95768         * modules/regex (Makefile.am): Likewise.
95769         * modules/rename (Makefile.am): Likewise.
95770         * modules/rename-dest-slash (Makefile.am): Likewise.
95771         * modules/rijndael (Makefile.am): Likewise.
95772         * modules/rmdir (Makefile.am): Likewise.
95773         * modules/rpmatch (Makefile.am): Likewise.
95774         * modules/safe-read (Makefile.am): Likewise.
95775         * modules/safe-write (Makefile.am): Likewise.
95776         * modules/same (Makefile.am): Likewise.
95777         * modules/save-cwd (Makefile.am): Likewise.
95778         * modules/savedir (Makefile.am): Likewise.
95779         * modules/setenv (Makefile.am): Likewise.
95780         * modules/settime (Makefile.am): Likewise.
95781         * modules/sha1 (Makefile.am): Likewise.
95782         * modules/sig2str (Makefile.am): Likewise.
95783         * modules/snprintf (Makefile.am): Likewise.
95784         * modules/stdlib-safer (Makefile.am): Likewise.
95785         * modules/stpcpy (Makefile.am): Likewise.
95786         * modules/stpncpy (Makefile.am): Likewise.
95787         * modules/strcase (Makefile.am): Likewise.
95788         * modules/strcasestr (Makefile.am): Likewise.
95789         * modules/strchrnul (Makefile.am): Likewise.
95790         * modules/strcspn (Makefile.am): Likewise.
95791         * modules/strdup (Makefile.am): Likewise.
95792         * modules/strerror (Makefile.am): Likewise.
95793         * modules/strftime (Makefile.am): Likewise.
95794         * modules/strndup (Makefile.am): Likewise.
95795         * modules/strnlen (Makefile.am): Likewise.
95796         * modules/strpbrk (Makefile.am): Likewise.
95797         * modules/strsep (Makefile.am): Likewise.
95798         * modules/strstr (Makefile.am): Likewise.
95799         * modules/strtod (Makefile.am): Likewise.
95800         * modules/strtoimax (Makefile.am): Likewise.
95801         * modules/strtok_r (Makefile.am): Likewise.
95802         * modules/strtol (Makefile.am): Likewise.
95803         * modules/strtoll (Makefile.am): Likewise.
95804         * modules/strtoul (Makefile.am): Likewise.
95805         * modules/strtoull (Makefile.am): Likewise.
95806         * modules/strtoumax (Makefile.am): Likewise.
95807         * modules/strverscmp (Makefile.am): Likewise.
95808         * modules/time_r (Makefile.am): Likewise.
95809         * modules/timegm (Makefile.am): Likewise.
95810         * modules/tmpfile-safer (Makefile.am): Likewise.
95811         * modules/unistd-safer (Makefile.am): Likewise.
95812         * modules/unlinkdir (Makefile.am): Likewise.
95813         * modules/userspec (Makefile.am): Likewise.
95814         * modules/utime (Makefile.am): Likewise.
95815         * modules/utimecmp (Makefile.am): Likewise.
95816         * modules/utimens (Makefile.am): Likewise.
95817         * modules/vasnprintf (Makefile.am): Likewise.
95818         * modules/vasprintf (Makefile.am): Likewise.
95819         * modules/vsnprintf (Makefile.am): Likewise.
95820         * modules/xalloc (Makefile.am): Likewise.
95821         * modules/xgetcwd (Makefile.am): Likewise.
95822         * modules/xnanosleep (Makefile.am): Likewise.
95823         * modules/xreadlink (Makefile.am): Likewise.
95824         * modules/xstrtod (Makefile.am): Likewise.
95825         * modules/xstrtol (Makefile.am): Likewise.
95826         * modules/xstrtold (Makefile.am): Likewise.
95827         * modules/yesno (Makefile.am): Likewise.
95829 2006-10-12  Jim Meyering  <jim@meyering.net>
95831         * m4/getloadavg.m4: Revert the change below.
95833         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
95834         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
95835         fail with a symlink, which is what coreutils' ./bootstrap now
95836         creates by default.
95838 2006-10-12  Bruno Haible  <bruno@clisp.org>
95840         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
95841         mingw.
95842         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
95843         MSVC and mingw explicitly.
95845 2006-10-11  Simon Josefsson  <jas@extundo.com>
95846             Bruno Haible  <bruno@clisp.org>
95848         Add support for multiple gnulib-tool invocations in the scope of a
95849         single configure.ac file.
95850         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
95851         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
95852         with the same contents as the _LIBADD variable.
95853         (func_emit_initmacro_start, func_emit_initmacro_end,
95854         func_emit_initmacro_done): New functions.
95855         (func_import, func_create_testdir): Invoke them. Allow the identifiers
95856         gl_LIBOBJS and gl_LTLIBOBJS.
95858 2006-10-11  Bruno Haible  <bruno@clisp.org>
95860         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
95861         (func_create_testdir): Don't create po/Makefile.am, don't invoke
95862         autoreconf. Instead, invoke autopoint explicitly but move back the
95863         *.m4 files from gnulib.
95865 2006-10-11  Bruno Haible  <bruno@clisp.org>
95867         * gnulib-tool (func_usage): Make module names after --create-testdir
95868         optional.
95869         (func_create_testdir): If no module was specified, use nearly all
95870         modules.
95872 2006-10-12  Jim Meyering  <jim@meyering.net>
95874         Big performance improvement for fts-based tools that use FTS_NOSTAT.
95875         Avoid spurious inode-mismatch problems on non-POSIX file systems.
95876         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
95877         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
95878         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
95879         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
95880         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
95881         (fts_set_stat_required): New function.
95882         (fts_open): Defer the calls to fts_stat, if possible or requested.
95883         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
95884         into fts_stat itself.
95885         (fts_read): Perform any required (deferred) fts_stat call.
95886         (fts_build): Likewise, for the directory we're about to open and read.
95887         In the readdir loop, carefully decide whether each entry will require
95888         an eventual call to fts_stat, using dirent.d_type info if available.
95889         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
95890         a command line argument into this function.  Update all callers.
95891         Map a return value of FTS_DOT to FTS_D for a command line argument.
95892         * modules/fts (Depends-on): Add d-type.  Alphabetize.
95893         Thanks to Miklos Szeredi for his tenacity and for the initial
95894         bug report about "find" failing on a FUSE-based file system.
95896         * lib/fts.c (fts_open): Use consistent indentation.
95898 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
95900         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
95901         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
95902         reported by Jim Meyering.  All uses of cache variables renamed
95903         to match Autoconf's.
95904         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
95905         the other one.
95907         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
95908         Fix misspelling in diagnostic.
95910 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
95912         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
95913         defined.  Problem reported by Matthew Woehlke.
95915         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
95916         Add support for Tandem NonStop R series.
95917         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
95918         Use new macro.
95920         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
95921         (has_trailing_slash): Omit size arg; all callers changed.
95922         Omit 'inline', since it doesn't help performance and we'd
95923         need to configure it.
95924         Don't count //, ///, etc. as having a trailing slash.
95925         As a side effect, this removes a C99ism reported by Matthew Woehlke.
95926         (rpl_rename_dest_slash): On failure, use rename's errno rather
95927         than (in some cases) an incorrect or junk errno.
95928         Simplify code by removing need to compute length; this does
95929         cause it to make two passes instead of one over the file name,
95930         but it's worth it.
95932         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
95933         change, since Autoconf's version may no longer be appropriate now
95934         that we are using CVS Autoconf's version.  Add support for Tandem.
95936 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
95937             Bruno Haible  <bruno@clisp.org>
95939         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
95940         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
95941         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
95942         gl_AC_TYPE_LONG_LONG.
95944         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
95945         instead of HAVE_LONG_LONG.
95946         * lib/printf-args.c (printf_fetchargs): Likewise.
95947         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
95948         * lib/vasnprintf.c (VASNPRINTF): Likewise.
95949         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
95950         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
95951         gl_AC_TYPE_LONG_LONG.
95953 2006-10-11  Bruno Haible  <bruno@clisp.org>
95955         * m4/longlong.m4: Add comments.
95956         * m4/ulonglong.m4: Likewise.
95958 2006-10-10  Bruno Haible  <bruno@clisp.org>
95960         Make it possible to #define stpcpy, strdup to aliases.
95961         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
95962         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
95964 2006-10-10  Bruno Haible  <bruno@clisp.org>
95966         Make it possible to #define gcd to an alias.
95967         * lib/gcd.c: Include config.h.
95969 2006-10-10  Bruno Haible  <bruno@clisp.org>
95971         Make it possible to #define c_isascii to an alias.
95972         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
95973         defined. Undefine the macros before defining them, to avoid gcc
95974         warnings.
95975         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
95976         define NO_C_CTYPE_MACROS early.
95978 2006-10-10  Bruno Haible  <bruno@clisp.org>
95980         Make it possible to #define set_program_name to an alias.
95981         * lib/progname.c: Don't undefine set_program_name; instead, undefine
95982         ENABLE_RELOCATABLE early.
95984 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
95986         Port to Tandem NSK OSS, which has 64-bit signed int but at most
95987         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
95988         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
95989         More generally, don't assume that 64-bit signed int is available
95990         if unsigned int is, and vice versa.
95991         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
95992         unsigned symbols, not on their signed counterparts.
95993         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
95994         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
95995         (UINT64_C, UINTMAX_C):
95996         Likewise.
95997         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
95998         unsigned counterparts.
95999         (Have_long_long, Unsigned): New macros.
96000         (Int): Renamed from INT.
96001         (strtoimax): Use the new macros.
96002         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
96003         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
96004         * modules/inttypes (inttypes.h): Substitute
96005         HAVE_UNSIGNED_LONG_LONG_INT.
96006         * modules/stdint (stdint.h): Likewise.
96007         (Files): Add m4/ulonglong.m4.
96009 2006-10-10  Bruno Haible  <bruno@clisp.org>
96011         Fix a gcc -Wshadow warning.
96012         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
96013         to 'bucket'.
96014         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
96015         gl_linked_indexof_from_to): Likewise.
96016         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
96017         Likewise.
96018         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
96019         Likewise.
96020         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
96021         Reported by Eric Blake.
96023 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
96025         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
96026         for NetBSD.  Problem reported by Bruno Haible.
96028 2006-10-09  Jim Meyering  <jim@meyering.net>
96030         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
96031         Patch from Bruno Haible.
96033 2006-10-09  Jim Meyering  <jim@meyering.net>
96035         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
96036         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
96037         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
96039 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96041         Don't include <config.h> twice; this doesn't work in some cases,
96042         e.g., when config.h has "#define intmax_t long long int" and
96043         we include <config.h>, <inttypes.h>, <config.h> in that order.
96044         Problem reported by Matthew Woehlke in:
96045         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
96046         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
96047         * lib/fts-cycle.c: Don't include config.h.
96048         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
96049         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
96050         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
96051         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
96052         inttypes.h.
96053         * lib/xstrtoumax.c: Likewise.
96054         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
96055         __strtol and the like, so that this module is more like its siblings.
96056         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
96057         Remove; no longer needed now that we assume gnulib inttypes.h.
96059 2006-10-08  Bruno Haible  <bruno@clisp.org>
96061         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
96062         option.
96064 2006-10-07  Jim Meyering  <jim@meyering.net>
96066         * modules/inttypes (inttypes.h): Revert what seems to have been
96067         an inadvertent part of today's change: use "|", not "/" in the
96068         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
96070 2006-10-07  Bruno Haible  <bruno@clisp.org>
96072         * modules/sublist: New file.
96074 2006-10-07  Bruno Haible  <bruno@clisp.org>
96076         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
96077         * modules/argz (argz.h): Likewise.
96078         * modules/arpa_inet (arpa/inet.h): Likewise.
96079         * modules/byteswap (byteswap.h): Likewise.
96080         * modules/configmake (configmake.h): Likewise.
96081         * modules/fcntl (fcntl.h): Likewise.
96082         * modules/fnmatch (fnmatch.h): Likewise.
96083         * modules/getopt (getopt.h): Likewise.
96084         * modules/glob (glob.h): Likewise.
96085         * modules/inttypes (inttypes.h): Likewise.
96086         * modules/netinet_in (netinet/in.h): Likewise.
96087         * modules/poll (poll.h): Likewise.
96088         * modules/stdbool (stdbool.h): Likewise.
96089         * modules/stdint (stdint.h): Likewise.
96090         * modules/sys_select (sys/select.h): Likewise.
96091         * modules/sys_socket (sys/socket.h): Likewise.
96092         * modules/sys_stat (sys/stat.h): Likewise.
96093         * modules/sysexits (sysexits.h): Likewise.
96094         * modules/unistd (unistd.h): Likewise.
96095         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96096         Add a "DO NOT EDIT" comment to the generated file.
96097         (func_import): Likewise for gnulib-comp.m4.
96099 2006-10-07  Bruno Haible  <bruno@clisp.org>
96101         * lib/gl_sublist.h: New file.
96102         * lib/gl_sublist.c: New file.
96104 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
96106         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
96107         name (relative to the original working directory) and the file
96108         name component (relative to the temporary working directory).  All
96109         callers changed.
96110         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
96111         * lib/mkdir-p.c (make_dir_parents): Likewise.
96112         * lib/mkdir-p.h (make_dir_parents): Likewise.
96114 2006-10-06  Eric Blake  <ebb9@byu.net>
96116         Define several macros for use by the clean-temp module.
96117         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
96118         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
96119         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
96121         * lib/clean-temp.h (close_stream_temp): New declaration.
96122         * lib/clean-temp.c (includes): Pull in headers according to what
96123         other modules are in use.
96124         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
96126 2006-10-06  Bruno Haible  <bruno@clisp.org>
96128         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
96129         instead of fopen, fwriteerror.
96131 2006-10-06  Bruno Haible  <bruno@clisp.org>
96133         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
96134         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
96135         int.
96136         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
96137         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
96138         Return an error indicator.
96139         Suggested by Eric Blake.
96141 2006-10-06  Bruno Haible  <bruno@clisp.org>
96143         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
96144         Reported by Eric Blake.
96146 2006-10-06  Bruno Haible  <bruno@clisp.org>
96148         * modules/closeout (Description): Mention stderr too.
96150 2006-10-06  Bruno Haible  <bruno@clisp.org>
96151         and Paul Eggert  <eggert@cs.ucla.edu>
96153         * lib/closeout.c (close_stdout): Also close stderr.
96154         * lib/closeout.h: Update comment.
96156 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
96158         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
96159         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
96160         * lib/dirchownmod.c: Include lchown.h.
96161         * lib/lchown.c: Don't include files that lchown.h now includes.
96162         Don't declare chown, since lchown.h now does that.
96163         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
96164         (lchown): Define to rpl_chown if lchown is declared but
96165         does not exist.  Declare using a prototype if lchown is not
96166         declared.  Add a copyright notice.
96167         * lib/mkstemp.h: Include <unistd.h>.
96168         * lib/openat.c: Include lchown.h.
96170         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
96171         we now test for that separately.
96172         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
96173         rather than O_NOFOLLOW, when testing whether it's possible to
96174         avoid a race condition reliably.
96175         * lib/savewd.c (savewd_chdir): Likewise.
96177         Remove macros that are no longer needed now that stdint.h is
96178         reliable.
96179         * lib/fsusage.c (UINTMAX_MAX): Remove.
96180         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
96181         * lib/utimecmp.c (SIZE_MAX): Remove.
96183         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
96185         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
96186         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
96187         O_NOATIME works.
96189 2006-10-05  Bruno Haible  <bruno@clisp.org>
96191         * lib/gl_list.h (gl_sortedlist_search_from_to,
96192         gl_sortedlist_indexof_from_to): New declarations.
96193         (gl_list_implementation): New fields sortedlist_search_from_to,
96194         sortedlist_indexof_from_to.
96195         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
96196         inline functions.
96197         * lib/gl_list.c (gl_sortedlist_search_from_to,
96198         gl_sortedlist_indexof_from_to): New functions.
96199         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
96200         function.
96201         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
96202         (gl_array_sortedlist_search_from_to): New function.
96203         (gl_array_list_implementation): Update.
96204         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
96205         function.
96206         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
96207         (gl_carray_sortedlist_search_from_to): New function.
96208         (gl_carray_list_implementation): Update.
96209         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
96210         gl_linked_sortedlist_indexof_from_to): New functions.
96211         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96212         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96213         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
96214         gl_tree_sortedlist_indexof_from_to): New functions.
96215         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96216         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96217         Update.
96218         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96219         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
96220         Update.
96222 2006-10-05  Bruno Haible  <bruno@clisp.org>
96224         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
96225         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
96226         (struct gl_list_implementation): Add fields search_from_to,
96227         indexof_from_to. Remove fields search, indexof.
96228         (gl_list_search): Use the search_from_to method.
96229         (gl_list_search_from, gl_list_search_from_to): New functions.
96230         (gl_list_indexof): Use the indexof_from_to method.
96231         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96232         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
96233         (gl_list_search_from, gl_list_search_from_to): New functions.
96234         (gl_list_indexof): Use the indexof_from_to method.
96235         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96236         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
96237         gl_array_indexof. Add start_index, end_index arguments.
96238         (gl_array_search_from_to): Renamed from gl_array_search. Add
96239         start_index, end_index arguments.
96240         (gl_array_remove, gl_array_list_implementation): Update.
96241         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
96242         gl_carray_indexof. Add start_index, end_index arguments.
96243         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
96244         start_index, end_index arguments.
96245         (gl_carray_remove, gl_carray_list_implementation): Update.
96246         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
96247         gl_linked_search. Add start_index, end_index arguments.
96248         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
96249         start_index, end_index arguments.
96250         (gl_linked_remove): Update.
96251         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96252         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96253         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
96254         field to 'size_t'.
96255         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
96256         gl_tree_search. Add start_index, end_index arguments.
96257         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96258         start_index, end_index arguments.
96259         (gl_tree_remove): Update.
96260         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96261         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96262         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
96263         function.
96264         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
96265         gl_tree_search. Add start_index, end_index arguments.
96266         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
96267         start_index, end_index arguments.
96268         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96269         Update.
96270         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96272 2006-10-05  Bruno Haible  <bruno@clisp.org>
96274         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
96276         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
96277         fwriteerror_temp): New declarations.
96278         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
96279         (descriptors): New variable.
96280         (cleanup): First, close the descriptors.
96281         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
96282         fclose_temp, fwriteerror_temp): New functions.
96284 2006-10-04  Jim Meyering  <jim@meyering.net>
96286         * lib/fts.c (fts_open): Tiny comment change.
96288 2006-10-04  Bruno Haible  <bruno@clisp.org>
96290         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
96291         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
96292         gl_LOCK_BODY.
96293         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
96294         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
96295         gl_LOCK_EARLY_BODY.
96296         (gl_LOCK): Require gl_LOCK_BODY.
96298 2006-10-04  Bruno Haible  <bruno@clisp.org>
96300         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
96301         (gl_oset_search_atleast): New declaration.
96302         (struct gl_oset_implementation): Add field 'search_atleast'.
96303         (gl_oset_search_atleast): New inline function.
96304         * lib/gl_oset.c (gl_oset_search_atleast): New function.
96305         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
96306         (gl_array_oset_implementation): Update.
96307         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
96308         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
96309         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
96311 2006-10-04  Bruno Haible  <bruno@clisp.org>
96313         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
96315 2006-10-03  Bruno Haible  <bruno@clisp.org>
96317         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
96318         from gl_avltreehash_list_implementation.
96320 2006-10-03  Bruno Haible  <bruno@clisp.org>
96322         * lib/gl_oset.c (gl_oset_add): Fix return type.
96324 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
96326         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
96328 2006-10-02  Eric Blake  <ebb9@byu.net>
96330         * modules/strnlen (Depends-on): Add extensions.
96332 2006-10-02  Eric Blake  <ebb9@byu.net>
96334         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
96335         definition in 2.60+.
96337 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
96339         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
96340         checks.
96342 2006-10-02  Bruno Haible  <bruno@clisp.org>
96344         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
96345         to the AUTOMAKE_OPTIONS.
96346         Reported by Jim Meyering.
96348 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
96350         Work around bug in Solaris 10 /proc file system:
96351         /proc/self/fd/NNN/.. isn't the parent directory of
96352         the directory whose file descriptor is NNN.  This needs to
96353         be worked around at run time, not compile time, since a
96354         program might be built on Solaris 8, where things work, and
96355         run on Solaris 10.
96356         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
96357         to use the following interface instead:
96358         (OPENAT_BUFFER_SIZE): New macro.
96359         (openat_proc_name): New function.
96360         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
96361         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
96362         Likewise.
96363         * lib/openat-proc.c: New file.
96364         * modules/openat (Files): Add lib/openat-proc.c.
96365         (Depends-on): Add same-inode, stdbool.
96366         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
96368 2006-09-29  Bruno Haible  <bruno@clisp.org>
96370         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
96371         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
96372         argument. Set stdout_closed before testing for ferror, not after.
96373         (fwriteerror, fwriteerror_no_ebadf): New functions.
96375 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96377         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
96379 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
96381         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
96382         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
96384 2006-09-28  Jim Meyering  <jim@meyering.net>
96386         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
96387         Include <unistd.h>.
96389 2006-09-28  Bruno Haible  <bruno@clisp.org>
96391         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
96392         * modules/linkedhash-list (Depends-on): Likewise.
96393         * modules/rbtreehash-list (Depends-on): Likewise.
96395 2006-09-28  Bruno Haible  <bruno@clisp.org>
96397         * lib/strndup.h: Simplify the redefinition of strndup.
96398         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
96399         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
96401 2006-09-28  Bruno Haible  <bruno@clisp.org>
96403         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
96404         * lib/gl_linkedhash_list.c: Likewise.
96405         * lib/gl_rbtreehash_list.c: Likewise.
96407 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
96409         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
96410         getaddrinfo.
96412         * lib/__fpending.h: Don't include <stdio_ext.h> unless
96413         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
96414         it causes <stdio_ext.h> to cause a compile-time error.
96415         Problem reported by Nelson H. F. Beebe.
96416         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
96417         of HAVE_DECL___PENDING.
96419         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
96420         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
96421         declaration.
96423 2006-09-27  Jim Meyering  <jim@meyering.net>
96425         This file could end up with a definition for a function
96426         named __strndup, rather than rpl_strndup on a system with
96427         incomplete weak_alias support.
96428         * lib/strndup.c (strndup): Rename from __strndup.
96429         Remove #defines that used to map __strndup to strndup.
96430         Don't use K&R prototypes.
96431         Remove LIBC-related code, since this file is not sync'd with glibc.
96432         * lib/strndup.h: Revamp, accordingly.
96433         * m4/strndup.m4: Modernize.
96435 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
96437         * modules/savewd (Depends-on): Add 'raise'.
96438         * lib/savewd.c: Include <signal.h>, for 'raise'.
96440 2006-09-26  Jim Meyering  <jim@meyering.net>
96442         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
96443         when we detect Darwin 8.7.0's acl_get_file bug.
96444         Rearrange to perform the new (below) run-test while $LIBS
96445         contains any acl-related library.  Set USE_ACL at the end.
96446         (gl_ACL_GET_FILE): New function.
96448 2006-09-26  Eric Blake  <ebb9@byu.net>
96450         * lib/verror.c: Include <config.h> unconditionally.
96452 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
96454         * modules/clock-time (Maintainer): Add self.
96455         * modules/getlogin_r (Depends-on): Add extensions.
96457 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96459         * modules/clock-time: New module.
96460         * modules/nanosleep (Depends-on): Add clock-time.
96461         * modules/gethrxtime (Depends-on): Likewise.
96462         * modules/gettime (Depends-on): Likewise.
96463         * modules/settime (Depends-on): Likewise.
96465         * modules/fts-lgpl: Depend on openat.
96466         * modules/mkancesdirs: Depend on savewd.
96467         * modules/mkdir-p: Likewise.
96469 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96471         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
96473         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
96474         `gl_have_arbitrary_file_name_length_limit' to
96475         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
96476         actually works between configure runs.
96478 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96479             Bruno Haible  <bruno@clisp.org>
96481         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
96483 2006-09-25  Jim Meyering  <jim@meyering.net>
96485         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
96486         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
96488 2006-09-25  Eric Blake  <ebb9@byu.net>
96490         * gnulib-tool (func_import, func_create_testdir): Fix typos in
96491         exec's in 2006-09-18 patch when shuffling fds.
96493 2006-09-25  Bruno Haible  <bruno@clisp.org>
96495         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
96496         Reported by Jim Meyering.
96498 2006-09-24  Jim Meyering  <jim@meyering.net>
96500         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
96501         compare a pointer against a literal "0".  That caused failures with
96502         at least HP-UX's hpcc.
96504 2006-09-22  Simon Josefsson  <jas@extundo.com>
96506         * modules/gc-sha1:
96507         * modules/gc-md4:
96508         * modules/gc-hmac-sha1:
96509         * modules/gc-hmac-md5:
96510         * modules/gc-des:
96511         * modules/gc-arcfour: Distribute more files.
96513 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96515         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
96516         (gl_linked_iterator_from_to): Initialize struct completely.
96517         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
96518         (gl_tree_iterator_from_to): Likewise
96519         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
96520         * lib/gl_array_list.c [lint] (gl_array_iterator)
96521         (gl_array_iterator_from_to): Likewise.
96522         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
96523         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
96524         (gl_carray_iterator_from_to): Likewise.
96526         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
96527         * lib/md4.c (md4_process_block): Remove unused variable.
96528         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
96529         parentheses for clarity.
96531 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96533         * modules/bison-i18n (Depends-on): Add gettext.
96535 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96537         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
96538         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
96539         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
96540         also add missing comma that caused broken test.
96541         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
96542         stdlib.h, for `abort'.
96543         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
96544         variables.
96545         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
96546         include unistd.h if present, for `rmdir'.
96547         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
96548         variables.
96549         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
96550         in the process include standard headers for prototypes.
96551         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
96552         gets declared on GNU/Linux.
96553         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
96554         unistd.h, for `rmdir'.
96555         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
96557         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
96558         always true.
96559         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
96561         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
96563 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96565         * gnulib-tool (func_version): Create output all at once.  This
96566         may help avoid triggering unnecessary SIGPIPEs, and at any
96567         rate it doesn't hurt.
96569 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96570             Bruno Haible  <bruno@clisp.org>
96572         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
96573         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
96574         * m4/signed.m4 (bh_C_SIGNED): Likewise.
96576         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
96577         (gl_FUNC_VASPRINTF): Invoke it.
96579 2006-09-22  Bruno Haible  <bruno@clisp.org>
96581         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
96582         getloadavg.c as first argument.
96584 2006-09-22  Bruno Haible  <bruno@clisp.org>
96586         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
96587         at the beginning of the gl_INIT macro.
96588         * modules/getloadavg (configure.ac): Pass $gl_source_base to
96589         gl_GETLOADAVG.
96591 2006-09-22  Bruno Haible  <bruno@clisp.org>
96593         * gnulib-tool (func_create_megatestdir): Don't include the config-h
96594         module.
96595         Suggested by Ralf Wildenhues.
96597 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
96599         Import this patch from libc:
96601         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
96603         * lib/regex_internal.c (re_string_reconstruct): Handle
96604         offset < pstr->valid_raw_len && pstr->offsets_needed case.
96605         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
96606         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
96607         re_string_context_at.
96609         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
96610         now requires it.
96611         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
96612         gl_REGEX now does it for us.
96613         (gl_REGEX): Add test taken from
96614         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
96616         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
96617         Check that large offsets work.  Modernize Autoconf usages.
96618         Prefer "yes" to mean a good thing rather than a bad.
96619         Don't put "#define mkstemp" in config.h, as this might interfere
96620         with standard system headers that "#define mkstemp mkstemp64".
96622         * modules/mkstemp (Depends-on): Add extensions, so that
96623         mkstemp is visible on some platforms.
96624         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
96625         (Include): Change to "mkstemp.h" from <stdlib.h>.
96626         (Files): Add mkstemp.h.
96628         * lib/mkstemp.h: New file, since some standard headers
96629         #define mkstemp.
96630         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
96631         Include "mkstemp.h".
96632         Make the _LIBC code resemble glibc original more,
96633         e.g., use K&R style.
96634         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
96635         (mkstemp): Remove, since mkstemp.h does this for us.
96636         * lib/stdlib--.h: Include mkstemp.h.
96638         Import this patch from libc:
96640         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
96642         * lib/tempname.c (__gen_tempname): Change attempts_min
96643         into a macro.  Use preprocessor to decide how to initialize
96644         attempts [Coverity CID 67].
96646 2006-09-20  Bruno Haible  <bruno@clisp.org>
96648         * lib/mkdtemp.c: Import from libc.
96649         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
96650                 * sysdeps/posix/tempname.c (__gen_tempname): Change
96651                 attempts_min into a macro.  Use preprocessor to decide how to
96652                 initialize attempts [Coverity CID 67].
96653         2001-11-27  Paul Eggert  <eggert@twinsun.com>
96654                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
96655                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
96657 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96659         * gnulib-tool (func_exit): New function, to allow to pass the
96660         exit status portably through the trap.  Use everywhere.
96661         (--help, --version): Signal a write error.
96662         (trap): catch SIGPIPE, for write errors.
96663         Exit at the end of the trap, with the correct exit status.
96665 2006-09-19  Karl Berry  <karl@gnu.org>
96667         * doc/gnulib.texi: note about the license texinfo files.
96669 2006-09-19  Eric Blake  <ebb9@byu.net>
96671         * gnulib-tool: Avoid space-tab.
96673 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
96675         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
96676         that prevented coreutils 6.1 from building.  Problem reported
96677         by Petter Reinholdtsen.
96679 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
96681         * gnulib-tool (avoidlist): Fix typo that broke options like
96682         --avoid=lock that are used by coreutils bootstrap.
96684 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
96686         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
96687         more systematically.
96689 2006-09-18  Jim Meyering  <jim@meyering.net>
96691         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
96693 2006-09-18  Bruno Haible  <bruno@clisp.org>
96695         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
96697 2006-09-18  Bruno Haible  <bruno@clisp.org>
96699         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
96700         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
96701         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
96702         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
96703         * m4/gettext.m4: Require autoconf >= 2.52.
96704         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
96705         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
96706         of gl_cv_header_inttypes_h.
96708 2006-09-18  Bruno Haible  <bruno@clisp.org>
96710         * lib/javaversion.c: Include configmake.h.
96712 2006-09-18  Bruno Haible  <bruno@clisp.org>
96714         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
96715         avoid that the while loops be executed in a subshell.
96717 2006-09-18  Bruno Haible  <bruno@clisp.org>
96719         * MODULES.html.sh (func_module): Break long lines.
96720         Suggested by Bruce Korb <bkorb@gnu.org>.
96722 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96724         Speed up by a factor of 1.12.
96725         * gnulib-tool (nl): New variable.
96726         (func_import): Rewrite include directive extraction to only read each
96727         directive once.
96729 2006-09-17  Bruno Haible  <bruno@clisp.org>
96731         * modules/javaversion (Makefile.am): Remove DEFS setting.
96732         (Depends-on): Add configmake, for PKGDATADIR definition.
96734 2006-09-17  Bruno Haible  <bruno@clisp.org>
96736         * gnulib-tool (func_create_testdir): Rewrite all files at once.
96738 2006-09-17  Bruno Haible  <bruno@clisp.org>
96740         * gnulib-tool (func_append): New function, stolen from libtool.m4.
96741         (func_modules_transitive_closure, func_modules_add_dummy,
96742         func_modules_to_filelist, func_import, func_create_testdir,
96743         func_create_megatestdir, ...): Use it wherever possible.
96744         Suggested by Ralf Wildenhues.
96746 2006-09-16  Karl Berry  <karl@gnu.org>
96748         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
96749         to avoid sectioning errors.
96750         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
96751         [ifinfo]: blank line after @center-ed titles.
96752         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
96753         Spell FSF address consistently with others.
96754         (These changes approved by rms.)
96756 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96758         Speed up by a factor of 1.61.
96759         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
96760         already checked module names again.
96762 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96764         Speed up by a factor of 1.13.
96765         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
96766         for new_files, and the input to func_add_or_update.
96768 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96770         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
96771         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
96773 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
96775         * modules/mkancesdirs (Depends-on): Add fcntl.
96776         * modules/savewd: New file.
96777         * MODULES.html.sh (File system functions): Add savewd.
96779         * modules/configmake (Makefile.am): Add support for the
96780         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
96782 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
96784         * m4/savewd.m4: New file.
96786 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
96788         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
96789         (dirchownmod): New arg FD.  All callers changed.
96790         Use FD rather than opening the directory ourself, as opening is
96791         now the caller's responsibility.
96792         * lib/dirchownmod.h: Likewise.
96793         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
96794         hosts that require <sys/types.h> before <sys/stat.h>.  Include
96795         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
96796         (test_dir): Remove.
96797         (mkancesdirs): Return length of prefix of FILE that has already
96798         been made, or -2 if there is a child doing the work.  Redo
96799         algorithm so that it is O(N) rather than O(N**2).  Optimize away
96800         ".", and treat ".." specially since it might stray back into
96801         already-created areas.  Use a subprocess if necessary.  New arg
96802         WD; all users changed.  MAKE_DIR function should now return 1
96803         if it creates a directory that is not readable.  Return -2 if
96804         a child process is spun off.
96805         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
96806         Adjust signature to match code.
96807         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
96808         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
96809         all users changed.
96810         * lib/savewd.c, lib/savewd.h: New files.
96812 2006-09-15  Jim Meyering  <jim@meyering.net>
96814         * modules/rename-dest-slash: New module.
96815         * MODULES.html.sh (posix_compat): Add it here.
96817         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
96819 2006-09-15  Jim Meyering  <jim@meyering.net>
96821         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
96822         file.
96824         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
96826 2006-09-15  Jim Meyering  <jim@meyering.net>
96828         * lib/rename-dest-slash.c (has_trailing_slash): Use
96829         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
96830         (rpl_rename_dest_slash): Perform the cheaper trailing slash
96831         test before testing whether SRC is a directory.
96832         Suggestions from Bruno Haible.
96834         Avoid a warning about an unused variable.
96835         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
96836         into the #ifdef block where it's used.
96838         * lib/rename-dest-slash.c: New file.
96840 2006-09-14  Bruno Haible  <bruno@clisp.org>
96842         * lib/allocsa.c: Include <config.h> unconditionally.
96843         * lib/asnprintf.c: Likewise.
96844         * lib/asprintf.c: Likewise.
96845         * lib/c-strcasecmp.c: Likewise.
96846         * lib/c-strcasestr.c: Likewise.
96847         * lib/c-strncasecmp.c: Likewise.
96848         * lib/c-strstr.c: Likewise.
96849         * lib/classpath.c: Likewise.
96850         * lib/clean-temp.c: Likewise.
96851         * lib/concatpath.c: Likewise.
96852         * lib/copy-file.c: Likewise.
96853         * lib/csharpcomp.c: Likewise.
96854         * lib/csharpexec.c: Likewise.
96855         * lib/execute.c: Likewise.
96856         * lib/fatal-signal.c: Likewise.
96857         * lib/findprog.c: Likewise.
96858         * lib/fwriteerror.c: Likewise.
96859         * lib/gl_array_list.c: Likewise.
96860         * lib/gl_array_oset.c: Likewise.
96861         * lib/gl_avltree_list.c: Likewise.
96862         * lib/gl_avltree_oset.c: Likewise.
96863         * lib/gl_avltreehash_list.c: Likewise.
96864         * lib/gl_carray_list.c: Likewise.
96865         * lib/gl_linked_list.c: Likewise.
96866         * lib/gl_linkedhash_list.c: Likewise.
96867         * lib/gl_list.c: Likewise.
96868         * lib/gl_oset.c: Likewise.
96869         * lib/gl_rbtree_list.c: Likewise.
96870         * lib/gl_rbtree_oset.c: Likewise.
96871         * lib/gl_rbtreehash_list.c: Likewise.
96872         * lib/imaxabs.c: Likewise.
96873         * lib/imaxdiv.c: Likewise.
96874         * lib/javacomp.c: Likewise.
96875         * lib/javaexec.c: Likewise.
96876         * lib/javaversion.c: Likewise.
96877         * lib/linebreak.c: Likewise.
96878         * lib/localcharset.c: Likewise.
96879         * lib/lock.c: Likewise.
96880         * lib/mbchar.c: Likewise.
96881         * lib/mbswidth.c: Likewise.
96882         * lib/mkdtemp.c: Likewise.
96883         * lib/pipe.c: Likewise.
96884         * lib/printf-args.c: Likewise.
96885         * lib/printf-parse.c: Likewise.
96886         * lib/progname.c: Likewise.
96887         * lib/progreloc.c: Likewise.
96888         * lib/readlink.c: Likewise.
96889         * lib/sh-quote.c: Likewise.
96890         * lib/stpcpy.c: Likewise.
96891         * lib/stpncpy.c: Likewise.
96892         * lib/strcasecmp.c: Likewise.
96893         * lib/strcasestr.c: Likewise.
96894         * lib/strcspn.c: Likewise.
96895         * lib/striconv.c: Likewise.
96896         * lib/strncasecmp.c: Likewise.
96897         * lib/strnlen1.c: Likewise.
96898         * lib/strstr.c: Likewise.
96899         * lib/strtok_r.c: Likewise.
96900         * lib/tls.c: Likewise.
96901         * lib/tmpdir.c: Likewise.
96902         * lib/unicodeio.c: Likewise.
96903         * lib/unsetenv.c: Likewise.
96904         * lib/vasnprintf.c: Likewise.
96905         * lib/vasprintf.c: Likewise.
96906         * lib/wait-process.c: Likewise.
96907         * lib/xallocsa.c: Likewise.
96908         * lib/xsetenv.c: Likewise.
96909         * lib/xstriconv.c: Likewise.
96911 2006-09-13  Simon Josefsson  <jas@extundo.com>
96913         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
96914         that internally, suggested by Ralf Wildenhues
96915         <Ralf.Wildenhues@gmx.de>.
96917 2006-09-13  Simon Josefsson  <jas@extundo.com>
96919         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
96920         @LIBOBJS@.
96921         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96923 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
96925         * lib/_fpending.c: Include <config.h> unconditionally, since we no
96926         longer worry about uses that don't define HAVE_CONFIG_H.
96927         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
96928         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
96929         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
96930         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
96931         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
96932         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
96933         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
96934         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
96935         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
96936         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
96937         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
96938         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
96939         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
96940         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
96941         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
96942         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
96943         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
96944         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
96945         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
96946         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
96947         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
96948         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
96949         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
96950         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
96951         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
96952         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
96953         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
96954         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
96955         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
96956         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
96957         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
96958         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
96959         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
96960         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
96961         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
96962         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
96963         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
96964         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
96965         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
96966         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
96967         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
96968         Likewise.
96970 2006-09-13  Eric Blake  <ebb9@byu.net>
96972         * lib/getopt.c: Fix typo in last commit.
96974 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
96976         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
96977         dgettext.
96979 2006-09-12  Jim Meyering  <jim@meyering.net>
96981         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
96982         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
96983         Reported by Nelson H. F. Beebe.
96985 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
96987         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
96988         program_invocation_name and program_invocation_short_name are
96989         initialized.
96990         * lib/argp-namefrob.h: Move declarations of program_invocation_name
96991         and program_invocation_short_name to argp.h, so they are visible
96992         to user programs.
96993         * lib/argp.h: Likewise
96995 2006-09-10  Bruno Haible  <bruno@clisp.org>
96997         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
96998         m4/inttypes_h.m4, m4/uintmax_t.m4.
97000 2006-09-10  Bruno Haible  <bruno@clisp.org>
97002         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
97003         gl_AC_TYPE_UINTMAX_T.
97005 2006-09-10  Bruno Haible  <bruno@clisp.org>
97007         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
97009 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97011         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
97012         convention.  Text proposed by Bruno Haible.
97013         (struct argp_option): Document the use of N_() wrappers.
97015         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
97016         '\v', and translate the two parts separately, instead of feeding
97017         the whole string to gettext.  This allows to exclude
97018         '\v' from the strings visible to the translator by writing doc
97019         strings as N_("..") "\v" N_("..").
97021 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
97023         * config/srclist.txt: Undo latest change; the bug was fixed.
97025 2006-09-09  Bruno Haible  <bruno@clisp.org>
97027         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
97028         assignments if building a library without libtool.
97029         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
97030         in func_emit_lib_Makefile_am.
97031         (func_import): When building a static library libfoo.a, arrange to
97032         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
97033         (func_create_testdir): Likewise.
97034         * modules/gc (configure.ac, Makefile.am): If building statically,
97035         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
97036         * modules/iconvme (configure.ac, Makefile.am): Likewise.
97037         * modules/striconv (configure.ac, Makefile.am): Likewise.
97038         Based on a suggestion by Ralf Wildenhues.
97040 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97042         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
97043         Check for unistd.h too, since Autoconf doesn't assume POSIX.
97044         Also:
97046         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97047         Add year_2050_test to catch glibc bug 2821
97048         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97050         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97051         Prefer #ifdef to #if.
97053         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
97054         Return from 'main' instead of calling 'exit'.
97056 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97058         * lib/mktime.c (guess_time_tm): Fix bug where mktime
97059         returned the maximum time_t value rather than (time_t) -1.
97060         Problem originally reported by William Bardwell
97061         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97063         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97064         Moved to here ...
97065         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97066         ... from here.
97068 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97070         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
97071         2821 is fixed.
97073 2006-09-08  Jim Meyering  <jim@meyering.net>
97075         Don't make generated files read-only.  That would bother too many
97076         people.  However, do retain the ability to work when targets are
97077         read-only: remove the destination and temporary files before writing
97078         them (when generated via sed or echo), or by using the -f option for
97079         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
97080         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97081         * modules/byteswap, modules/configmake, modules/fcntl:
97082         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97083         * modules/localcharset, modules/netinet_in, modules/poll:
97084         * modules/stdbool, modules/stdint, modules/sys_select:
97085         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97087 2006-09-08  Jim Meyering  <jim@meyering.net>
97089         Avoid new build failure on FreeBSD 6.0.
97090         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
97091         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
97092         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
97094 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97096         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
97098 2006-09-07  Jim Meyering  <jim@meyering.net>
97100         Fix global typo in last change: use chmod u-w, not chmod u-x.
97101         Spotted by Paul Eggert and Bruce Korb.
97102         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97103         * modules/byteswap, modules/configmake, modules/fcntl:
97104         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97105         * modules/localcharset, modules/netinet_in, modules/poll:
97106         * modules/stdbool, modules/stdint, modules/sys_select:
97107         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97109 2006-09-06  Jim Meyering  <jim@meyering.net>
97111         Make generated files be read-only.
97112         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
97113         Ensure that each generated file is now read-only.
97114         * modules/argz: Likewise.
97115         * modules/arpa_inet: Likewise.
97116         * modules/byteswap: Likewise.
97117         * modules/configmake: Likewise.
97118         * modules/fcntl: Likewise.
97119         * modules/fnmatch: Likewise.
97120         * modules/getopt: Likewise.
97121         * modules/glob: Likewise.
97122         * modules/inttypes: Likewise.
97123         * modules/netinet_in: Likewise.
97124         * modules/poll: Likewise.
97125         * modules/stdbool: Likewise.
97126         * modules/stdint: Likewise.
97127         * modules/sys_select: Likewise.
97128         * modules/sys_socket: Likewise.
97129         * modules/sys_stat: Likewise.
97130         * modules/sysexits: Likewise.
97131         * modules/localcharset: Same as above, but continue using temporary
97132         file named "t-$@" (why different?) rather than the "$@-t" used
97133         everywhere else.
97135         * modules/sysexits (Makefile.am): Replace literal occurrences
97136         of "sysexit.h" more readable, and more consistent, "$@".
97138 2006-09-06  Bruno Haible  <bruno@clisp.org>
97140         * modules/striconv: New file.
97141         * modules/xstriconv: New file.
97142         * MODULES.html.sh (Internationalization functions): Add striconv,
97143         xstriconv.
97145 2006-09-06  Bruno Haible  <bruno@clisp.org>
97147         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
97148         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
97149         not using libtool correctly.
97151 2006-09-06  Bruno Haible  <bruno@clisp.org>
97153         * lib/striconv.h: New file.
97154         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
97155         iconvstring.c.
97156         * lib/xstriconv.h: New file.
97157         * lib/xstriconv.c: New file.
97159 2006-09-06  Bruno Haible  <bruno@clisp.org>
97161         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
97162         lib_..._LDFLAGS.
97164 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97166         * lib/argz_.h: Sync from Libtool.
97168         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
97169                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97171         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
97173 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97175         * modules/trim: New file.
97177 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97179         * lib/trim.h: New file.
97180         * lib/trim.c: New file.
97182 2006-09-05  Bruno Haible  <bruno@clisp.org>
97184         * MODULES.html.sh (String handling): Add trim.
97186 2006-09-04  Karl Berry  <karl@gnu.org>
97188         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
97189         until next release.
97191 2006-09-03  Bruno Haible  <bruno@clisp.org>
97193         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
97194         correctly.
97196 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97198         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
97199         not gl_GETLOADAVG.  Omit unneeded semicolons.
97200         Problems reported by Ralf Wildenhues in
97201         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97202         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
97203         at the end, which is the usual gnulib style.
97205         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
97206         of doing all the work ourselves.
97207         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
97208         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
97210 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97212         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
97213         Problem reported by Ralf Wildenhues in
97214         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97216         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
97217         HAVE_STRUCT_STATFS_F_FSTYPENAME.
97219 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97221         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
97222         yesterday's patch by changing test -n to test -z.
97224 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97226         * modules/getloadavg (Files): Add m4/getloadavg.m4.
97227         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
97228         the former is now obsolescent.
97230         * modules/chdir-long (Depends-on): Add fcntl.
97232 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97234         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
97235         obsolescent, and programs should use gnulib instead.
97236         * m4/getloadavg.m4: New file, with contents taken from Autoconf
97237         but with prefixes changed.
97239 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97241         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
97242         or stdbool.h, because they might not exist while configuring.
97244         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
97245         Don't include unistd.h or limits.h; not needed, since chdir-long.h
97246         does that for us.
97247         (O_DIRECTORY): Remove.
97249 2006-08-31  Eric Blake  <ebb9@byu.net>
97251         * gnulib-tool: Don't let emacs change spaces to TAB.
97253 2006-08-31  Bruno Haible  <bruno@clisp.org>
97255         * gnulib-tool: When calling func_import more than once, do it in a
97256         subshell.
97257         Reported by Eric Blake <ebb9@byu.net>.
97259 2006-08-31  Bruno Haible  <bruno@clisp.org>
97261         * gnulib-tool (nl): Remove variable.
97262         (sed_transform_lib_file): Use more robust test for config-h module.
97263         (func_import): Fix typo in 2006-08-25 patch.
97265 2006-08-31  Bruno Haible  <bruno@clisp.org>
97267         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
97268         specified, augment Makefile.am variables instead of assigning them.
97270 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97272         Work around a bug in both the Linux and SunOS 64-bit kernels:
97273         nanosleep mishandles sleeps for longer than 2**31 seconds.
97274         Problem reported by Frank v Waveren in
97275         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
97277         Check for nanosleep bug.
97278         (LIB_NANOSLEEP): Append clock_gettime library if needed.
97280 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97282         Work around a bug in both the Linux and SunOS 64-bit kernels:
97283         nanosleep mishandles sleeps for longer than 2**31 seconds.
97284         Problem reported by Frank v Waveren in
97285         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
97286         * lib/nanosleep.c (BILLION): New constant.
97287         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
97288         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
97289         implementation.
97291 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97293         * modules/nanosleep (Depends-on): Add gettime.
97295 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
97296         and Simon Josefsson  <jas@extundo.com>
97297         and Oskar Liljeblad  <oskar@osk.mine.nu>
97299         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
97300         * gnulib-tool (func_import): New license type 'unmodifiable license
97301         text'.
97302         * modules/fdl: Use it.  Longer description.
97303         * module/gpl, module/lgpl: New files.
97305 2006-08-30  Jim Meyering  <jim@meyering.net>
97307         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
97308         shadowing the parameter.
97310 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97312         Sync from Libtool:
97314         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97316         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
97317         sharing with gnulib.  Report by Eric Blake.
97319 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97321         * modules/isapipe: New file.
97322         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
97324 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97326         * modules/configmake (Makefile.am): Add a comment, and omit
97327         the CONFIGMAKE_ prefix from generated macro names.  Suggested
97328         by Bruno Haible.
97330 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97332         * m4/isapipe.m4: New file.
97334 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
97336         * lib/isapipe.c, lib/isapipe.h: New files.
97338 2006-08-29  Jim Meyering  <jim@meyering.net>
97340         * modules/configmake (Makefile.am): Make configmake.h depend on
97341         Makefile.  Otherwise, a stale configmake.h could hang around.
97343 2006-08-29  Eric Blake  <ebb9@byu.net>
97345         * lib/error.c (error_at_line, print_errno_message): Match libc, after
97346         resolution of upstream bug 3044.
97348 2006-08-29  Bruno Haible  <bruno@clisp.org>
97350         * modules/localcharset (Depends-on): Add configmake.
97351         (Makefile.am): Remove setting of LIBDIR through DEFS.
97353 2006-08-29  Bruno Haible  <bruno@clisp.org>
97355         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
97356         defined.
97358 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97360         * modules/fcntl: New file.
97361         * modules/chdir-safer (Depends-on): Add fcntl.
97362         * modules/fts: Likewise.
97363         * modules/mkdir-p: Likewise.
97365         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
97366         This undoes the most recent change, since we're now addressing the
97367         problem in a different way.
97369         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
97370         into output, since the output might be called Makefile.am even
97371         if $makefile_name is something different.
97372         (func_import): Use $makefile_am rather than
97373         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
97374         empty.
97376         * modules/inttypes (Files): Add m4/inttypes-h.m4.
97378 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97380         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
97381         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
97382         recent change to stdint.m4, since we're now addressing the problem in a
97383         different way.
97385 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97387         * m4/fcntl_h.m4: New file.
97389 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
97391         * lib/fcntl_.h: New file.
97392         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
97393         the fcntl module.
97394         * lib/dirchownmod.c: Likewise.
97395         * lib/fts.c: Likewise.
97397         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
97398         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
97399         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
97400         just before including <inttypes.h>, to avoid circular inclusion.
97402 2006-08-28  Jim Meyering  <jim@meyering.net>
97404         * doc/visibility.texi: Actually read and correct the grammar of the
97405         sentence affected by yesterday's change.
97407 2006-08-28  Eric Blake  <ebb9@byu.net>
97409         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
97410         needs wrapper.
97412 2006-08-28  Eric Blake  <ebb9@byu.net>
97414         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
97416 2006-08-28  Eric Blake  <ebb9@byu.net>
97418         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
97420 2006-08-28  Bruno Haible  <bruno@clisp.org>
97422         * modules/c-strstr: New file, from GNU gettext.
97423         * MODULES.html.sh (String handling): Add c-strstr.
97425 2006-08-28  Bruno Haible  <bruno@clisp.org>
97427         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
97428         macros.
97429         Reported by Eric Blake.
97431 2006-08-28  Bruno Haible  <bruno@clisp.org>
97433         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
97434         (VASNPRINTF): Return a string of length > INT_MAX without failing.
97435         * lib/vasprintf.c: Include errno.h, limits.h.
97436         (EOVERFLOW): New fallback definition.
97437         (vasprintf): Test here whether the string length is > INT_MAX.
97438         * lib/vsnprintf.c: Include errno.h, limits.h.
97439         (EOVERFLOW): New fallback definition.
97440         (vsnprintf): Fix bug when generated string was too long for the buffer.
97441         Test here whether the string length is > INT_MAX.
97443 2006-08-28  Bruno Haible  <bruno@clisp.org>
97445         * lib/inttypes_.h (SCNX*): Remove definitions.
97446         Reported by Eric Blake.
97448 2006-08-28  Bruno Haible  <bruno@clisp.org>
97450         * lib/c-strstr.h: New file, from GNU gettext.
97451         * lib/c-strstr.c: New file, from GNU gettext.
97453 2006-08-28  Bruno Haible  <bruno@clisp.org>
97455         * gnulib-tool: Reorder some statements.
97457 2006-08-28  Bruno Haible  <bruno@clisp.org>
97459         * gnulib-tool: New option --makefile-name.
97460         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
97461         $makefile_name.
97462         (func_import): Write $makefile_name to the cache file, and read it from
97463         there unless explicitly specified. Use $makefile_name as file name
97464         instead of Makefile.am. Adjust the recommendations accordingly.
97466 2006-08-28  Bruno Haible  <bruno@clisp.org>
97468         * gnulib-tool (func_verify_module): Check against misapplying patch.
97470 2006-08-28  Bruno Haible  <bruno@clisp.org>
97472         * gnulib-tool (func_relativize, func_relconcat): New functions.
97473         Give an error if --local-dir is given with --update.
97474         Remove trailing slashes from $local_gnulib_dir.
97475         (func_import): Store the relativized $local_gnulib_dir in
97476         gnulib-cache.m4, and read it from there if not specified explicitly.
97478 2006-08-28  Bruno Haible  <bruno@clisp.org>
97480         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
97481         is the current directory. Respect also $local_gnulib_dir.
97483 2006-08-28  Bruno Haible  <bruno@clisp.org>
97484             Simon Josefsson  <jas@extundo.com>
97486         BeOS portability.
97487         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
97489 2006-08-27  Jim Meyering  <jim@meyering.net>
97491         * doc/visibility.texi: Remove duplicate word: "pointer".
97493 2006-08-26  Bruno Haible  <bruno@clisp.org>
97495         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
97496         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
97497         (Makefile.am): Create inttypes.h from inttypes_.h.
97498         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
97500         * modules/imaxabs: New file.
97502         * modules/imaxdiv: New file.
97504 2006-08-26  Bruno Haible  <bruno@clisp.org>
97506         * m4/inttypes.m4: New file.
97507         * m4/_inttypes_h.m4: Remove file.
97508         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
97509         PRI_MACROS_BROKEN.
97510         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
97512         * m4/imaxabs.m4: New file.
97514         * m4/imaxdiv.m4: New file.
97516 2006-08-26  Bruno Haible  <bruno@clisp.org>
97518         * lib/inttypes_.h: New file.
97519         * lib/inttypes.h: Remove file.
97520         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
97522         * lib/imaxabs.c: New file.
97524         * lib/imaxdiv.c: New file.
97526 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97528         New config-h module, so that "make" output needn't be cluttered
97529         by -DHAVE_CONFIG_H.
97530         * MODULES.html.sh (Support for building libraries and executables):
97531         Add config-h.
97532         * modules/config-h: New file.
97533         * gnulib-tool (nl, sed_transform_lib_file): New vars.
97534         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
97535         the config-h module is used.
97537         New configmake module, so that "make" output needn't be cluttered
97538         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
97539         * MODULES.html.sh (Support for building libraries and executables):
97540         Add configmake.
97541         * modules/configmake: New file.
97543 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
97545         * m4/config-h.m4: New file.
97547 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97549         * config/srclist.txt: Add elisp-comp.
97551 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
97553         * MODULES.html.sh (Support for building libraries and executables):
97554         Add elisp-comp.
97555         * build-aux/elisp-comp: New file.
97556         * modules/elisp-comp: New file.
97558 2006-08-24  Bruno Haible  <bruno@clisp.org>
97560         * gnulib-tool (func_create_testdir): Use non-default values of
97561         sourcebase and m4base.
97563 2006-08-24  Bruno Haible  <bruno@clisp.org>
97565         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
97566         HTML structure.
97568 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
97570         * modules/openat (Depends-on): Add lchown.
97572 2006-08-23  Bruno Haible  <bruno@clisp.org>
97574         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
97575         of gl_LOCK_EARLY instead of gl_LOCK.
97577 2006-08-23  Bruno Haible  <bruno@clisp.org>
97579         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
97580         on OSF/1 to no.
97581         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
97583 2006-08-23  Bruno Haible  <bruno@clisp.org>
97585         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
97586         as unusable.
97588         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
97589         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
97590         (gl_LOCK): New macro.
97592 2006-08-22  Simon Josefsson  <jas@extundo.com>
97594         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
97595         to md5 module.
97597 2006-08-22  Simon Josefsson  <jas@extundo.com>
97599         * MODULES.html.sh: Add "Support for maintaining and release
97600         projects".
97602         * build-aux/gnupload: New file, from coreutils.
97604 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97606         Avoid the need for AC_LIBSOURCES in m4 macros.
97607         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
97608         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
97609         * modules/check-version (EXTRA_DIST): Add check-version.h.
97610         * modules/crc (EXTRA_DIST): Add crc.h.
97611         * modules/des (EXTRA_DIST): Add des.h.
97612         * modules/gc (EXTRA_DIST): Add gc.h.
97613         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
97614         * modules/getline (EXTRA_DIST): Add getline.h.
97615         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
97616         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
97617         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
97618         * modules/md2 (EXTRA_DIST): Add md2.h.
97619         * modules/md4 (EXTRA_DIST): Add md4.h.
97620         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
97621         * modules/read-file (EXTRA_DIST): Add read-file.h.
97622         * modules/readline (EXTRA_DIST): Add readline.h.
97623         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
97624         rijndael-api-fst.h.
97626 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97628         * m4/rijndael.m4 (gl_ARCFOUR):
97629         * m4/arctwo.m4 (gl_ARCTWO):
97630         * m4/check-version.m4 (gl_CHECK_VERSION):
97631         * m4/crc.m4 (gl_CRC):
97632         * m4/des.m4 (gl_DES):
97633         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
97634         * m4/gc.m4 (gl_GC):
97635         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
97636         * m4/getline.m4 (gl_FUNC_GETLINE):
97637         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
97638         * m4/hmac-md5.m4 (gl_HMAC_MD5):
97639         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
97640         * m4/md2.m4 (gl_MD2):
97641         * m4/md4.m4 (gl_MD4):
97642         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
97643         * m4/read-file.m4 (gl_FUNC_READ_FILE):
97644         * m4/readline.m4 (gl_FUNC_READLINE):
97645         * m4/rijndael.m4 (gl_RIJNDAEL):
97646         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
97647         to get the necessary .h files and whatnot.
97649 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
97651         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
97652         gnulib rather than the other way around.
97653         * config/srclistvars.sh (COREUTILS): Remove.
97655 2006-08-22  Jim Meyering  <jim@meyering.net>
97657         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
97659         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
97661 2006-08-22  Eric Blake  <ebb9@byu.net>
97663         * modules/regexprops-generic: New file.
97664         * MODULES.html.sh (Support for building documentation): List it.
97666 2006-08-22  Eric Blake  <ebb9@byu.net>
97668         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
97669         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
97670         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
97671         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
97673 2006-08-22  Bruno Haible  <bruno@clisp.org>
97675         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
97676         and lib_LTLIBRARIES like the other lib_* variables.
97678 2006-08-22  Bruno Haible  <bruno@clisp.org>
97680         * build-aux/x-to-1.in: New file, from GNU gettext.
97682 2006-08-22  Bruno Haible  <bruno@clisp.org>
97684         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
97685         <utmpx.h> exists.
97687 2006-08-22  Bruno Haible  <bruno@clisp.org>
97689         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
97690         <utmpx.h> exists.
97692 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
97694         BeOS portability.
97695         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
97696         exist.
97697         Problem reported by Bruno Haible.
97699 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
97701         Avoid the need for AC_LIBSOURCES in m4 macros.
97702         * modules/acl (EXTRA_DIST): Add acl.h.
97703         * modules/argmatch (Files): Add m4/argmatch.m4.
97704         (configure.ac): Add gl_ARGMATCH.
97705         (EXTRA_DIST): Renamed from lib_SOURCES, for
97706         consistency with the other modules.  Remove argmatch.c.
97707         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
97708         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
97709         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
97710         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
97711         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
97712         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
97713         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
97714         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
97715         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
97716         * modules/closeout (EXTRA_DIST): Add closeout.h.
97717         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
97718         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
97719         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
97720         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
97721         dirname.h; remove basename.c and stripslash.c.
97722         * modules/exclude (EXTRA_DIST): Add exclude.h.
97723         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
97724         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
97725         * modules/file-type (EXTRA_DIST): Add file-type.h.
97726         * modules/filemode (EXTRA_DIST): Add filemode.h.
97727         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
97728         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
97729         * modules/fpending (EXTRA_DIST): Add __fpending.h.
97730         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
97731         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
97732         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
97733         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
97734         * modules/getdate (EXTRA_DIST): Add getdate.c.
97735         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
97736         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
97737         * modules/getpass (EXTRA_DIST): Add getpass.h.
97738         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
97739         * modules/group-member (EXTRA_DIST): Add group-member.h.
97740         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
97741         * modules/hash (EXTRA_DIST): Add hash.h.
97742         * modules/human (EXTRA_DIST): Add human.h.
97743         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
97744         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
97745         * modules/lchown (EXTRA_DIST): Add lchown.h.
97746         * modules/long-options (EXTRA_DIST): Add long-options.h.
97747         * modules/lstat (EXTRA_DIST): Add lstat.h.
97748         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
97749         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
97750         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
97751         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
97752         * modules/memxor (EXTRA_DIST): Add memxor.h.
97753         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
97754         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
97755         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
97756         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
97757         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
97758         * modules/physmem (EXTRA_DIST): Add physmem.h.
97759         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
97760         * modules/posixver (EXTRA_DIST): Add posixver.h.
97761         * modules/quote (EXTRA_DIST): Add quote.h.
97762         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
97763         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
97764         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
97765         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
97766         regex_internal.h regexec.c.
97767         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
97768         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
97769         * modules/same (EXTRA_DIST): Add same.h.
97770         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
97771         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
97772         * modules/savedir (EXTRA_DIST): Add savedir.h.
97773         * modules/sha1 (EXTRA_DIST): Add sha1.h.
97774         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
97775         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
97776         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
97777         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
97778         * modules/strdup (EXTRA_DIST): Add strdup.h.
97779         * modules/strftime (EXTRA_DIST): Add strftime.h.
97780         * modules/strndup (EXTRA_DIST): Add strndup.h.
97781         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
97782         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
97783         * modules/time_r (EXTRA_DIST): Add time_r.h.
97784         * modules/timespec (EXTRA_DIST): Add timespec.h.
97785         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
97786         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
97787         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
97788         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
97789         * modules/userspec (EXTRA_DIST): Add userspec.h.
97790         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
97791         * modules/utimens (EXTRA_DIST): Add utimens.h.
97792         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
97793         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
97794         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
97795         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
97796         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
97797         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
97798         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
97799         * modules/yesno (EXTRA_DIST): Add yesno.h.
97801 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
97803         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
97805         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
97806         * m4/dev-ino.m4, same-inode.m4: Remove.
97808         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
97809         * m4/acl.m4 (AC_FUNC_ACL):
97810         * m4/backupfile.m4 (gl_BACKUPFILE):
97811         * m4/c-strtod.m4 (gl_C99_STRTOLD):
97812         * m4/canon-host.m4 (gl_CANON_HOST):
97813         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
97814         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
97815         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
97816         * m4/cloexec.m4 (gl_CLOEXEC):
97817         * m4/close-stream.m4 (gl_CLOSE_STREAM):
97818         * m4/closeout.m4 (gl_CLOSEOUT):
97819         * m4/dirfd.m4 (gl_FUNC_DIRFD):
97820         * m4/dirname.m4 (gl_DIRNAME):
97821         * m4/exclude.m4 (gl_EXCLUDE):
97822         * m4/exitfail.m4 (gl_EXITFAIL):
97823         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
97824         * m4/file-type.m4 (gl_FILE_TYPE):
97825         * m4/filemode.m4 (gl_FILEMODE):
97826         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
97827         * m4/fpending.m4 (gl_FUNC_FPENDING):
97828         * m4/fprintftime.m4 (gl_FPRINTFTIME):
97829         * m4/fts.m4 (gl_FUNC_FTS):
97830         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
97831         * m4/getdate.m4 (gl_GETDATE):
97832         * m4/gethrxtime.m4 (gl_GETHRXTIME):
97833         * m4/getpagesize.m4 (gl_GETPAGESIZE):
97834         * m4/getpass.m4 (gl_FUNC_GETPASS):
97835         * m4/gettime.m4 (gl_GETTIME):
97836         * m4/getugroups.m4 (gl_GETUGROUPS):
97837         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
97838         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
97839         * m4/hard-locale.m4 (gl_HARD_LOCALE):
97840         * m4/hash.m4 (gl_HASH):
97841         * m4/idcache.m4 (gl_IDCACHE):
97842         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
97843         * m4/lchown.m4 (gl_FUNC_LCHOWN):
97844         * m4/long-options.m4 (gl_LONG_OPTIONS):
97845         * m4/lstat.m4 (gl_FUNC_LSTAT):
97846         * m4/md5.m4 (gl_MD5):
97847         * m4/memcasecmp.m4 (gl_MEMCASECMP):
97848         * m4/memcoll.m4 (gl_MEMCOLL):
97849         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
97850         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
97851         * m4/memxor.m4 (gl_MEMXOR):
97852         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
97853         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
97854         * m4/modechange.m4 (gl_MODECHANGE):
97855         * m4/mountlist.m4 (gl_MOUNTLIST):
97856         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
97857         * m4/openat.m4 (gl_FUNC_OPENAT):
97858         * m4/pathmax.m4 (gl_PATHMAX):
97859         * m4/physmem.m4 (gl_PHYSMEM):
97860         * m4/posixtm.m4 (gl_POSIXTM):
97861         * m4/posixver.m4 (gl_POSIXVER):
97862         * m4/quote.m4 (gl_QUOTE):
97863         * m4/quotearg.m4 (gl_QUOTEARG):
97864         * m4/readtokens.m4 (gl_READTOKENS):
97865         * m4/readutmp.m4 (gl_READUTMP):
97866         * m4/regex.m4 (gl_REGEX):
97867         * m4/safe-read.m4 (gl_SAFE_READ):
97868         * m4/safe-write.m4 (gl_SAFE_WRITE):
97869         * m4/same.m4 (gl_SAME):
97870         * m4/save-cwd.m4 (gl_SAVE_CWD):
97871         * m4/savedir.m4 (gl_SAVEDIR):
97872         * m4/settime.m4 (gl_SETTIME):
97873         * m4/sha1.m4 (gl_SHA1):
97874         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
97875         * m4/stat-macros.m4 (gl_STAT_MACROS):
97876         * m4/stat-time.m4 (gl_STAT_TIME):
97877         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
97878         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
97879         * m4/strdup.m4 (gl_FUNC_STRDUP):
97880         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
97881         * m4/strndup.m4 (gl_FUNC_STRNDUP):
97882         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
97883         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
97884         * m4/time_r.m4 (gl_TIME_R):
97885         * m4/timespec.m4 (gl_TIMESPEC):
97886         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
97887         * m4/unlinkdir.m4 (gl_UNLINKDIR):
97888         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
97889         * m4/userspec.m4 (gl_USERSPEC):
97890         * m4/utimecmp.m4 (gl_UTIMECMP):
97891         * m4/utimens.m4 (gl_UTIMENS):
97892         * m4/xalloc.m4 (gl_XALLOC):
97893         * m4/xgetcwd.m4 (gl_XGETCWD):
97894         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
97895         * m4/xreadlink.m4 (gl_XREADLINK):
97896         * m4/xstrtod.m4 (gl_XSTRTOD):
97897         * m4/yesno.m4 (gl_YESNO):
97898         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
97899         to get the necessary .h files and whatnot.
97901 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
97902             Bruno Haible  <bruno@clisp.org>
97904         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
97905         /bin/sh understanding of '!' conditional negation.
97907 2006-08-21  Jim Meyering  <jim@meyering.net>
97909         * modules/openat (Depends-on): Really alphabetize.
97911         * modules/acl (Depends-on): Add error and quote.
97913         * check-module (find_included_lib_files): Add at-func.c to the
97914         ok-to-include-more-than-once white list.
97916         * modules/openat (Depends-on): Add lstat.  Alphabetize.
97918 2006-08-21  Bruno Haible  <bruno@clisp.org>
97920         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
97921         Emit a pkgdata_DATA variable only if some snippets add contents to it.
97922         Reported by Martin Lambers <marlam@marlam.de>.
97924 2006-08-21  Bruno Haible  <bruno@clisp.org>
97926         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
97927         specify an installation location, don't emit a noinst_LIBRARIES or
97928         noinst_LTLIBRARIES assignment.
97930 2006-08-21  Bruno Haible  <bruno@clisp.org>
97932         BeOS portability.
97933         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
97934         BeOS has mbrtowc() but no <wctype.h>.
97936 2006-08-21  Bruno Haible  <bruno@clisp.org>
97938         BeOS portability.
97939         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
97940         exist.
97942 2006-08-21  Bruno Haible  <bruno@clisp.org>
97944         BeOS portability.
97945         * lib/mbchar.h: Include <wctype.h> only if it exists.
97947 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
97949         Remove files that are no longer needed by their respective modules.
97950         * m4/obstack.m4: Remove.
97951         * m4/strerror_r.m4: Remove.
97952         * m4/uint32_t.m4: Remove.
97953         * m4/uintptr_t.m4: Remove.
97954         * m4/ullong_max.m4: Remove.
97955         * m4/xstrtoimax.m4: Remove.
97956         * m4/xstrtoumax.m4: Remove.
97958         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
97959         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
97960         dependencies now capture this.
97962         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
97963         Do not use AC_LIBSOURCES, since gnulib modules now do this.
97964         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
97965         * m4/human.m4 (gl_HUMAN): Likewise.
97966         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
97967         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
97969         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
97971         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
97972         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
97973         stdint.
97974         * m4/human.m4 (gl_HUMAN): Likewise.
97975         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
97976         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
97977         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
97978         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
97979         * m4/xstrtol (gl_XSTRTOL): Likewise.
97981         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
97982         AC_TYPE_LONG_LONG_INT.
97983         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
97984         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
97985         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
97986         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
97988         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
97989         on stdbool.
97991         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
97992         (gl_PREREQ_XSTRTOUL): Remove.
97994         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
97996         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
97997         mode.
97999 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98001         Add and change modules to make it easier for coreutils to use
98002         gnulib-tool.
98003         * modules/backupfile (Files): Remove m4/d-ino.m4.
98004         (Depends-on): Add d-ino.
98005         * modules/cycle-check (Depends-on): Add stdint.
98006         (lib_SOURCES): Add cycle-check.h.
98007         * modules/d-ino: New module.
98008         * modules/d-type: New module.
98009         * modules/error (Files): Remove m4/strerror_r.m4.
98010         * modules/filemode (Files): Add m4/st_dm_mode.m4.
98011         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
98012         m4/inttypes_h.m4, m4/uintmax_t.m4.
98013         (Depends-on): Add stdint.
98014         (lib_SOURCES): Add fsusage.h.
98015         * modules/getcwd (Files): Remove d-ino.m4.
98016         (Depends-on): Add d-ino.
98017         * modules/getndelim2 (Depends-on): Add stdint.
98018         * modules/glob (Files): Remove m4/d-type.m4.
98019         (Depends-on): Add d-type.
98020         * modules/host-os: New module.
98021         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
98022         m4/inttypes_h.m4, m4/uintmax_t.m4.
98023         * Depends-on: Add stdint.
98024         (lib_SOURCES): Add human.h.
98025         * modules/inttostr (Files): Remove m4/intmax_t.m4,
98026         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
98027         m4/uintmax_t.m4, m4/ulonglong.m4.
98028         (Depends-on): Add stdint.
98029         (EXTRA_DIST): Add inttostr.h.
98030         * modules/lchmod: New module.
98031         * modules/link-follow: New module.
98032         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
98033         (Depends-on): Add lchmod.
98034         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
98035         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
98036         (Depends-on): Add stdint.
98037         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
98038         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
98039         (Depends-on): Add stdint.
98040         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
98041         * modules/perl: New module.
98042         * modules/regex (Depends-on): Add stdint.
98043         * modules/rmdir-errno: New module.
98044         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98045         m4/intmax_t.m4.
98046         (Depends-on): Add stdint.
98047         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98048         m4/uintmax_t.m4.
98049         (Depends-on): Add stdint.
98050         * modules/unlink-busy: New module.
98051         * modules/utimecmp (Depends-on): Add stdint.
98052         * modules/uptime: New module.
98053         * modules/winsz-ioctl: New module.
98054         * modules/winsz-termios: New module.
98055         * modules/xnanosleep (Depends-on): Add nanosleep.
98056         * modules/ullong_max: Remove.
98057         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
98058         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
98059         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
98060         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
98061         (Depends-on): Add inttypes.
98062         (lib_SOURCES): Add xstrtol.h.
98063         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
98064         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
98065         * MODULES.html.sh: Move 'assert' into the assert section.
98066         Move 'dummy' into the linking section.
98067         Remove ullong_max.
98068         Add section for compatibility checks for POSIX:2001 functions,
98069         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
98070         winsz-ioctl, and winsz-termios into it.
98071         Add lchmod.
98072         Add top-level Misc section and put host-os, perl, and uptime
98073         into it.
98075 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98077         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
98078         now assume the stdint module.  Do not include inttypes.h.
98079         * lib/fsusage.h: Likewise.
98080         * lib/getndelim2.c: Likewise.
98081         * lib/human.h: Likewise.
98082         * lib/inttostr.h: Likewise.
98083         * lib/obstack.c: Likewise.
98084         * lib/regex_internal.h: Likewise.
98085         * lib/tempname.c: Likewise.
98086         * lib/utimecmp.c: Likewise.
98087         * lib/xstrtol.h: Likewise.
98089         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
98091         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
98092         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
98093         * lib/xtime.h: Likewise.
98095 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98097         * modules/openat (Files): Add lib/fchmodat.c.
98098         Fixes problem reported by Jay Youngman.
98100 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98102         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
98103         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
98105 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
98106             Bruno Haible  <bruno@clisp.org>
98108         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
98109         and is a script that invokes bison. Tighten the code. Add comments.
98111 2006-08-18  Jim Meyering  <jim@meyering.net>
98113         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
98114         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
98115         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
98116         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
98118 2006-08-18  Bruno Haible  <bruno@clisp.org>
98120         * modules/bison-i18n: New file.
98121         * MODULES.html.sh (Internationalization functions): Add it.
98123 2006-08-18  Bruno Haible  <bruno@clisp.org>
98125         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
98126         sys/statvfs.h. When getmntinfo was found, check its declaration and
98127         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
98129 2006-08-18  Bruno Haible  <bruno@clisp.org>
98131         * m4/bison-i18n.m4: New file, from bison.
98133 2006-08-18  Bruno Haible  <bruno@clisp.org>
98135         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
98136         (ME_DUMMY): Treat "kernfs" as a dummy.
98137         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
98139 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98141         Update from coreutils.
98143         2006-08-15  Jim Meyering  <jim@meyering.net>
98145         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
98147         2006-01-17  Jim Meyering  <jim@meyering.net>
98149         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
98151         2006-01-11  Jim Meyering  <jim@meyering.net>
98153         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
98154         Check for the lchmod function.
98156 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98158         Update from coreutils.
98160         * lib/__fpending.h: Add copyright notice.
98161         * lib/fprintftime.h: Likewise.
98162         * lib/savedir.c: Use (C) in copyright notice.
98163         * lib/savedir.h: Likewise.
98165         2006-08-15  Jim Meyering  <jim@meyering.net>
98167         * lib/at-func.c: New file, with the logic of all emulated at-functions.
98168         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
98169         in support of the EXPECTED_ERRNO macro.
98170         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
98171         definitions.  Instead, define the appropriate symbols and include
98172         "at-func.c".
98173         * lib/mkdirat.c (mkdirat): Likewise.
98174         * lib/fchmodat.c (fchmodat): Likewise.
98175         (ENOSYS): Remove definition.
98176         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
98177         it.  Don't include "unistd--.h" -- it wasn't ever used.
98179         2006-01-17  Jim Meyering  <jim@meyering.net>
98181         Rewrite fts.c not to change the current working directory,
98182         by using openat, fstatat, fdopendir, etc..
98184         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
98185         (HAVE_OPENAT_SUPPORT): Define.
98186         [_LIBC] (fchdir): Don't undef or define; no longer used.
98187         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
98188         Now, this `function' always succeeds, and consumes its file descriptor
98189         parameter -- so callers must not close such FDs.  Update callers.
98190         (diropen_fd, opendirat, cwd_advance_fd): New functions.
98191         (diropen): Add parameter, SP.  Adjust all callers.
98192         Implement using diropen_fd, rather than open.
98193         (fts_open): Initialize new member, fts_cwd_fd.
98194         Remove fts_rft-setting code.
98195         (fts_close): Close fts_cwd_fd, if necessary.
98196         (__opendir2): Define in terms of opendir or opendirat,
98197         depending on whether the FST_NOCHDIR flag is set.
98198         (fts_build): Since fts_safe_changedir consumes its FD, and since
98199         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
98200         and close the dup'd file descriptor upon failure.
98201         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
98202         (fts_safe_changedir): Tweak semantics to reflect that this function
98203         now calls cwd_advance_fd and hence consumes its FD argument.
98204         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
98205         [struct FTS] (fts_rft): Remove now-unused member.
98206         [struct FTS] (fts_cycle.state): Improve comment.
98208         * lib/openat.c (openat_needs_fchdir): New function.
98209         * lib/openat.h (openat_needs_fchdir): Declare it.
98211 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
98213         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
98214         Problem and fix reported by Pádraig Brady in
98215         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
98217 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98219         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
98221 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98223         * lib/memcoll.c (memcoll): Optimize for the common case where the
98224         arguments are bytewise equal.
98226 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98228         * doc/regexprops-generic.texi: Add a copyright notice.
98230 2006-08-15  Bruno Haible  <bruno@clisp.org>
98232         * modules/tmpdir (License): Change to LGPL.
98234 2006-08-15  Bruno Haible  <bruno@clisp.org>
98236         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
98237         module.
98239 2006-08-14  Simon Josefsson  <jas@extundo.com>
98241         * config/srclist.txt: Add gnupload.
98243 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98245         Change copyright notice from LGPL 2 to GPL 2, since that's the
98246         standard form used in the gnulib repository.
98247         * tests/test-lock.c: Likewise.
98248         * tests/test-stdint.c: Likewise.
98249         * tests/test-tls.c: Likewise.
98251         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
98252         prelude-manager.  User shorter URLs for GNU projects, without '?'.
98253         Add copyright notice.
98255         * check-module: Add copyright notice.  Output a copyright
98256         notice if "--version" is specified.
98257         * modules/COPYING: New file.
98258         * tests/test-getaddrinfo.c: Add copyright notice.
98259         * tests/test-verify.c: Likewise.
98261 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98263         Change copyright notice from LGPL 2 to GPL 2, since that's the
98264         standard form used in the gnulib repository.
98265         * lib/lock.c: LGPL -> GPL.
98266         * lib/lock.h: Likewise.
98267         * lib/strnlen1.c: Likewise.
98268         * lib/strnlen1.h: Likewise.
98269         * lib/tls.c: Likewise.
98270         * lib/tls.h: Likewise.
98271         * lib/tmpdir.c: Likewise.
98273         * lib/TODO: Remove; this belongs only in coreutils.
98275 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98277         Add copyright notices to long-enough files that lack them, since
98278         otherwise the files aren't clearly free.  Use the same notice that
98279         getdate.texi already uses.
98280         * doc/alloca-opt.texi: Add copyright notice.
98281         * doc/alloca.texi: Likewise.
98282         * doc/ctime.texi: Likewise.
98283         * doc/functions.texi: Likewise.
98284         * doc/gcd.texi: Likewise.
98285         * doc/gnulib-tool.texi: Likewise.
98286         * doc/inet_ntoa.texi: Likewise.
98287         * doc/visibility.texi: Likewise.
98289         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
98290         * doc/quote.texi: Add copyright notice.
98292         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
98293         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
98294         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
98295         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
98296         is now obsolete, and give a pointer to the Sun list.
98297         Add copyright notice.
98299 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98301         * config/srclistvars.sh: Add copyright notice.
98303 2006-08-14  Eric Blake  <ebb9@byu.net>
98305         Import the following change from libc:
98307         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
98309         Upstream bug 2997.
98310         * lib/misc/error.c: Add space between program name and message if file
98311         name is missing.
98313 2006-08-12  Karl Berry  <karl@gnu.org>
98315         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
98316         remove, these originate in gnulib now.
98318 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98320         * doc/Makefile (standards.info standards.html standards.dvi):
98321         Also depend on make-stds.texi.
98323 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
98325         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
98326         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
98328         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
98329         in wchar_t.  Problem reported by Eric Blake.
98331         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
98332         LEN is smaller than SIZE.  Suggested by Bruno Haible.
98333         Also, help the compiler to keep LEN in a register.
98335 2006-08-11  Eric Blake  <ebb9@byu.net>
98337         * users.txt: Sort.  Add tar.
98339 2006-08-11  Bruno Haible  <bruno@clisp.org>
98341         * users.txt: New file.
98343 2006-08-11  Bruno Haible  <bruno@clisp.org>
98345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
98346         before <wchar.h>. Needed for OSF/1 and BSD/OS.
98348 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98350         * modules/snprintf (Depends-on): Remove minmax.
98351         (Maintainer): Add self and Bruno.
98353 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98355         * lib/.cppi-disable: Add snprintf.h, socket_.h.
98356         * lib/snprintf.c: Include <errno.h> and <limits.h>.
98357         (EOVERFLOW): Define if the system does not.
98358         Do not include "minmax.h"; it wasn't used.
98359         (snprintf): Don't assume size_t promotes to an unsigned type.
98360         Fix bug when generated string was too long for the buffer: the
98361         buffer's contents are supposed to be the initial prefix of the
98362         output.  Don't assume vasnprintf returns EOVERFLOW if the size
98363         exceeds INT_MAX; do the check ourselves.
98365         Import the following changes from libc:
98367         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
98369         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
98370         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
98371         set wc to the byte which couldn't be converted.
98372         (re_string_reconstruct): Don't clear valid_raw_len before calling
98373         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
98374         tip_context using re_string_context_at.
98376         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
98378         * lib/posix/regex.h: g++ still cannot handled [restrict].
98380         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
98382         * lib/posix/regex.h: Remove special handling for VMS.
98384 2006-08-10  Jim Meyering  <jim@meyering.net>
98386         * modules/same-inode: New module.
98387         * modules/dev-ino: New module.
98388         * modules/cycle-check: Depend on these modules, rather than simply
98389         including their .h files.
98390         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
98391         required via m4/cycle-check.m4.
98392         * modules/same: Depend on new same-inode module, rather than
98393         including same-inode.h.
98394         * modules/chdir-safer: New file.
98396         * modules/chown (Depends-on): Add stat-macros.
98398 2006-08-10  Jim Meyering  <jim@meyering.net>
98400         * m4/cycle-check.m4: New file.
98401         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
98402         * m4/dev-ino.m4, m4/same-inode.m4: New files.
98404 2006-08-10  Eric Blake  <ebb9@byu.net>
98406         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
98407         in from original proposal.
98409 2006-08-10  Eric Blake  <ebb9@byu.net>
98410         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
98412         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
98413         namespace.
98415 2006-08-10  Bruno Haible  <bruno@clisp.org>
98417         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
98418         as well.
98420 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98422         Sync from coreutils.
98424         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
98426         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
98427         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
98429 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98431         * modules/restrict: Remove; no longer needed now that we assume
98432         Autoconf 2.59 or later.
98433         * MODULES.html.sh: Remove 'restrict'.
98434         * modules/argp (Depends-on): Remove 'restrict'.
98435         * modules/base64 (Depends-on): Likewise.
98436         * modules/gc (Depends-on): Likewise.
98437         * modules/getaddrinfo (Depends-on): Likewise.
98438         * modules/glob (Depends-on): Likewise.
98439         * modules/inet_ntop (Depends-on): Likewise.
98440         * modules/inet_pton (Depends-on): Likewise.
98441         * modules/memxor (Depends-on): Likewise.
98442         * modules/regex (Depends-on): Likewise.
98443         * modules/strtok_r (Depends-on): Likewise.
98444         * modules/time_r (Depends-on): Likewise.
98446 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
98448         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
98449         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
98450         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98451         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
98452         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
98453         * m4/memxor.m4 (gl_MEMXOR): Likewise.
98454         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
98455         gl_C_RESTRICT replaced by AC_C_RESTRICT.
98457         Merge from coreutils.
98458         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
98459         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
98460         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
98461         * m4/time_r.m4 (gl_TIME_R): Likewise.
98463 2006-08-09  Karl Berry  <karl@gnu.org>
98465         * config/srclist.txt: no more gettext-tools, per Bruno.
98467 2006-08-08  Eric Blake  <ebb9@byu.net>
98469         * modules/verror: New module.
98470         * MODULES.html.sh: Document it.
98472 2006-08-08  Eric Blake  <ebb9@byu.net>
98474         * lib/verror.h, lib/verror.c: New files.
98476 2006-08-08  Eric Blake  <ebb9@byu.net>
98478         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
98479         verror_at_line output complies with GNU Coding Standards even when
98480         file is NULL.
98482 2006-08-07  Bruno Haible  <bruno@clisp.org>
98484         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
98485         versions of AIX.
98486         Reported by Ralf Wildenhues.
98488 2006-08-07  Bruno Haible  <bruno@clisp.org>
98490         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
98491         in an AC_DEFUN. Needed so that the autoconf snippets can use
98492         AC_REQUIRE.
98494 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98496         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98497         Initialize pkgdata_DATA.
98498         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
98499         overriding it.
98501 2006-08-06  Eric Blake  <ebb9@byu.net>
98503         * lib/error.h: Fold in some upstream changes from glibc.
98504         * lib/error.c: Likewise.
98506 2006-08-04  Bruno Haible  <bruno@clisp.org>
98508         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98509         Make the mostlyclean-local rule depend on mostlyclean-generic.
98510         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
98512 2006-07-31  Bruno Haible  <bruno@clisp.org>
98514         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
98515         <stdlib.h>, <string.h>.
98517 2006-07-30  Bruno Haible  <bruno@clisp.org>
98519         * modules/readlink (License): Change to LGPL.
98521 2006-07-30  Bruno Haible  <bruno@clisp.org>
98523         * modules/javaversion (Makefile.am): Distribute javaversion.java and
98524         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
98525         set PKGDATADIR to point to it.
98527 2006-07-30  Bruno Haible  <bruno@clisp.org>
98529         * modules/csharpexec (configure.ac): Comment out macro invocation.
98530         * modules/javaexec (configure.ac): Likewise.
98531         * modules/javacomp-script (configure.ac): Likewise.
98533         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
98535 2006-07-30  Bruno Haible  <bruno@clisp.org>
98537         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
98538         linked-list.
98540 2006-07-30  Bruno Haible  <bruno@clisp.org>
98542         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
98544 2006-07-30  Bruno Haible  <bruno@clisp.org>
98546         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98547         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
98548         get removed.
98550 2006-07-29  Bruno Haible  <bruno@clisp.org>
98552         Make it possible for gnulib-tool to work with locally modified or
98553         augmented gnulib repositories.
98554         * gnulib-tool (func_usage): Document --local-dir option.
98555         (local_gnulib_dir): New variable.
98556         Handle --local-dir option.
98557         (func_lookup_file): New function.
98558         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
98559         (func_get_description, func_get_filelist, func_get_description,
98560         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
98561         func_get_automake_snippet, func_get_include_directive,
98562         func_get_license, func_get_maintainer): Use func_lookup_file.
98563         (func_import, func_create_testdir): Use func_lookup_file.
98565 2006-07-29  Bruno Haible  <bruno@clisp.org>
98567         * modules/setenv (Depends-on): Add unistd.
98569 2006-07-29  Bruno Haible  <bruno@clisp.org>
98571         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
98573 2006-07-29  Bruno Haible  <bruno@clisp.org>
98575         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
98577 2006-07-29  Bruno Haible  <bruno@clisp.org>
98579         * gnulib-tool (import, update): If there is no Makefile.am, look at
98580         aclocal.m4, instead of bailing out.
98582 2006-07-29  Bruno Haible  <bruno@clisp.org>
98584         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
98585         Categorize the options by when they are useful.
98587 2006-07-29  Bruno Haible  <bruno@clisp.org>
98589         * gnulib-tool (func_usage): Document option --no-libtool.
98590         Handle option --no-libtool.
98591         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
98592         for changed semantics of $libtool variable.
98593         (func_import): Likewise. If libtool is not used, show this through
98594         an option --no-libtool.
98595         (func_create_testdir): Update.
98597 2006-07-29  Bruno Haible  <bruno@clisp.org>
98599         * gnulib-tool (func_import): Extend error message about missing
98600         --doc-base.
98602 2006-07-29  Bruno Haible  <bruno@clisp.org>
98604         * gnulib-tool (func_import): Don't create the $docbase directory if
98605         there is no file to store there.
98607 2006-07-29  Bruno Haible  <bruno@clisp.org>
98609         * gnulib-tool (autoconf_minversion): If a --dir option is given and
98610         relevant, look for configure.ac there, not in the current directory.
98611         Also use a simple search for AC_PREREQ, not "autoconf --trace".
98613 2006-07-29  Bruno Haible  <bruno@clisp.org>
98615         * gnulib-tool (SORT): New variable.
98616         (func_usage): Undocument --assume-autoconf option.
98617         Remove --assume-autoconf option handling.
98618         (autoconf_minversion): Determine from the contents of configure.ac.
98619         (func_import): Remove autoconf_minversion handling.
98620         Suggested by Eric Blake.
98622 2006-07-29  Bruno Haible  <bruno@clisp.org>
98624         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
98626 2006-07-29  Bruno Haible  <bruno@clisp.org>
98628         * config/srclist.txt (*setenv.[ch]): Remove rules.
98630 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98632         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
98634 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98636         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
98637         arpa/inet.h.
98639 2006-07-28  Simon Josefsson  <jas@extundo.com>
98641         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
98642         * modules/inet_pton (Depends-on): Likewise.
98644 2006-07-28  Simon Josefsson  <jas@extundo.com>
98646         * m4/netinet_in_h.m4: New file.
98648 2006-07-28  Simon Josefsson  <jas@extundo.com>
98650         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
98651         #include's.
98653 2006-07-28  Simon Josefsson  <jas@extundo.com>
98655         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
98656         #include's.
98658 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
98660         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
98661         setgid on directories only if they set these bits.
98662         * lib/modechange.h: Remove obsolete comment about masks.
98664 2006-07-28  Eric Blake  <ebb9@byu.net>
98666         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
98667         macro expansion.
98669 2006-07-28  Bruno Haible  <bruno@clisp.org>
98671         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
98673 2006-07-28  Bruno Haible  <bruno@clisp.org>
98675         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
98677 2006-07-28  Bruno Haible  <bruno@clisp.org>
98679         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
98680         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
98681         Define fallbacks.
98682         Avoids link error on FreeBSD 4.x.
98683         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98685         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
98686         encoding.
98687         * lib/mbswidth.c (iswcntrl): Likewise.
98689 2006-07-27  Bruno Haible  <bruno@clisp.org>
98691         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
98692         test.
98694 2006-07-27  Bruno Haible  <bruno@clisp.org>
98696         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
98697         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
98698         defined.
98700 2006-07-26  Eric Blake  <ebb9@byu.net>
98702         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
98704 2006-07-26  Eric Blake  <ebb9@byu.net>
98706         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
98707         like mingw that lack mkstemp.
98708         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
98709         avoid compilation warning on mingw.
98711 2006-07-26  Bruno Haible  <bruno@clisp.org>
98713         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
98714         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
98715         INT_FAST*_MIN, INTPTR_MIN.
98717 2006-07-25  Bruno Haible  <bruno@clisp.org>
98719         * modules/version-etc (Depends-on): Add stdarg.
98721 2006-07-25  Bruno Haible  <bruno@clisp.org>
98723         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
98724         complex commands.
98726 2006-07-25  Bruno Haible  <bruno@clisp.org>
98728         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
98729         defined in <stdarg.h> or config.h.
98731 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
98733         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
98734         (gl_STDIO_SAFER): Remove.
98736 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
98738         * MODULES.html.sh (File stream based Input/Output):
98739         Add fopen-safer, tmpfile-safer; remove stdio-safer.
98740         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
98741         * modules/fopen-safer, modules/tmpfile-safer: New files.
98742         * modules/stdio-safer: Remove.
98744 2006-07-24  Bruno Haible  <bruno@clisp.org>
98746         * modules/tmpdir: New file.
98747         * MODULES.html.sh (File system functions): Add it.
98749 2006-07-24  Bruno Haible  <bruno@clisp.org>
98751         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
98752         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
98754 2006-07-24  Bruno Haible  <bruno@clisp.org>
98756         * modules/clean-temp: New file.
98758 2006-07-24  Bruno Haible  <bruno@clisp.org>
98760         * m4/tmpdir.m4: New file, from GNU gettext.
98762 2006-07-24  Bruno Haible  <bruno@clisp.org>
98764         * lib/tmpdir.h: New file, from GNU gettext.
98765         * lib/tmpdir.c: New file, from GNU gettext.
98767 2006-07-24  Bruno Haible  <bruno@clisp.org>
98769         * lib/clean-temp.h: New file, from GNU gettext.
98770         * lib/clean-temp.c: New file, from GNU gettext.
98772 2006-07-23  Eric Blake  <ebb9@byu.net>
98774         * modules/stdio-safer (Files): Add tmpfile-safer.c.
98775         (Depends-on): Add binary-io.
98777 2006-07-23  Eric Blake  <ebb9@byu.net>
98779         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
98781 2006-07-23  Eric Blake  <ebb9@byu.net>
98783         * lib/tmpfile-safer.c: New file.
98784         * lib/stdio-safer.h (fopen_safer): Add prototype.
98785         * lib/stdio--.h (tmpfile): Make safer.
98787 2006-07-23  Bruno Haible  <bruno@clisp.org>
98789         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
98790         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
98791         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
98792         gl_linked_remove_at): Use it.
98794 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98795         and Simon Josefsson <jas@extundo.com>
98797         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
98799         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
98801 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98803         * modules/close-stream: New file.
98804         * modules/closeout (Description): Make it clear that it exits
98805         with a diagnostic on error.
98806         (Depends-on): Add close-stream.  Remove fpending, stdbool.
98807         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
98809 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98811         * m4/close-stream.m4: New file.
98813 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98815         * lib/close-stream.c, lib/close-stream.h: New files.
98817 2006-07-22  Bruno Haible  <bruno@clisp.org>
98819         Merge from GNU gettext 0.15.
98821         2006-05-01  Bruno Haible  <bruno@clisp.org>
98823                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
98825         2006-07-22  Bruno Haible  <bruno@clisp.org>
98827                 * modules/javaversion: New file.
98828                 * MODULES.html.sh (Java): Add javaversion.
98830         2006-03-12  Bruno Haible  <bruno@clisp.org>
98832                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
98834         2005-12-04  Bruno Haible  <bruno@clisp.org>
98836                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
98837                 (untested).
98839         2006-06-21  Bruno Haible  <bruno@clisp.org>
98841                 Avoid warnings from recent versions of mcs.
98842                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
98843                 -o, -L, -r any more. Use options documented since mcs-1.0
98844                 instead. Similarly for -g.
98846         2005-12-04  Bruno Haible  <bruno@clisp.org>
98848                 * build-aux/csharpcomp.sh.in: Suffix for resources is
98849                 .resources, not .resource.
98851         2005-07-09  Bruno Haible  <bruno@clisp.org>
98853                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
98854                 add a .dll suffix.
98855                 Reported by Mark Junker <mjscod@gmx.de>.
98857         2006-07-22  Bruno Haible  <bruno@clisp.org>
98859                 * modules/gettext: Upgrade to gettext-0.15.
98860                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
98861                 m4/visibility.m4.
98862                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
98864 2006-07-22  Bruno Haible  <bruno@clisp.org>
98866         Merge from GNU gettext 0.15.
98868         2006-03-25  Bruno Haible  <bruno@clisp.org>
98870                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
98872         2006-07-21  Bruno Haible  <bruno@clisp.org>
98874                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
98875                 "1.1".
98877         2006-05-09  Bruno Haible  <bruno@clisp.org>
98879                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
98880                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
98881                 for the conftestver execution.
98883         2006-05-01  Bruno Haible  <bruno@clisp.org>
98885                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
98886                 optional target-version argument. Verify that the compiler
98887                 groks source of the specified source-version, or add -source
98888                 option as necessary. Verify that the compiler produces
98889                 bytecode in the specified target-version, or add -target and
98890                 -source options as necessary. Make the result of the test
98891                 available as variable CONF_JAVAC. Also log error output in
98892                 config.log.
98894         2006-03-11  Bruno Haible  <bruno@clisp.org>
98896                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
98898         2006-05-09  Bruno Haible  <bruno@clisp.org>
98900                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
98901                 CLASSPATH_SEPARATOR to a semicolon.
98903         2006-03-12  Bruno Haible  <bruno@clisp.org>
98905                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
98906                 available as variable CONF_JAVA, for subsequent autoconf
98907                 tests. Also log error output in config.log.
98909         2006-07-19  Bruno Haible  <bruno@clisp.org>
98911                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
98912                 that getline works on glibc2 systems. Needed to avoid trouble
98913                 in relocatable.c.
98914                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
98916         2005-12-04  Bruno Haible  <bruno@clisp.org>
98918                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
98919                 launcher (untested).
98921         2005-12-04  Bruno Haible  <bruno@clisp.org>
98923                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
98925         2006-07-22  Bruno Haible  <bruno@clisp.org>
98927                 * gettext.m4: Update from GNU gettext-0.15.
98928                 * nls.m4: Likewise.
98929                 * po.m4: Likewise.
98930                 * inttypes-pri.m4: Likewise.
98931                 * inttypes-h.m4: Renamed from inttypes.m4.
98932                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
98934 2006-07-22  Bruno Haible  <bruno@clisp.org>
98936         Merge from GNU gettext 0.15.
98938         2005-07-05  Bruno Haible  <bruno@clisp.org>
98940                 * printf-args.c (printf_fetchargs): Work around broken
98941                 definition of wint_t on mingw.
98943         2005-02-12  Bruno Haible  <bruno@clisp.org>
98945                 * xallocsa.h: Add extern "C" for C++.
98947         2006-05-17  Bruno Haible  <bruno@clisp.org>
98949                 Cygwin portability.
98950                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
98952         2006-04-30  Bruno Haible  <bruno@clisp.org>
98954                 * progreloc.c: Include <mach-o/dyld.h> if available.
98955                 (find_executable): Use _NSGetExecutablePath when possible.
98957         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
98959                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
98960                 function.
98962         2005-12-29  Bruno Haible  <bruno@clisp.org>
98964                 * progreloc.c (set_program_name_and_installdir): Fix
98965                 compilation error.
98967         2005-12-04  Bruno Haible  <bruno@clisp.org>
98969                 Cygwin portability.
98970                 * progreloc.c: Include <windows.h> also on Cygwin.
98971                 (find_executable): Add support for Cygwin.
98972                 (set_program_name_and_installdir): Handle also platforms with
98973                 nonempty EXEEXT.
98975         2006-07-11  Bruno Haible  <bruno@clisp.org>
98977                 * javacomp.c: Fix a comment.
98978                 Reported by Jim Meyering.
98980         2006-04-30  Bruno Haible  <bruno@clisp.org>
98982                 * javacomp.h (compile_java_class): Add source_version,
98983                 target_version arguments.
98984                 * javacomp.c: Rewritten to choose only a compiler that
98985                 respects the specified source_version and target_version.
98987         2006-06-27  Bruno Haible  <bruno@clisp.org>
98989                 Assume correct S_ISDIR macro.
98990                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
98992         2006-07-22  Bruno Haible  <bruno@clisp.org>
98994                 * javaversion.h: New file, from GNU gettext.
98995                 * javaversion.c: New file, from GNU gettext.
98996                 * javaversion.java: New file, from GNU gettext.
98997                 * javaversion.class: New file, from GNU gettext.
98999         2006-05-17  Bruno Haible  <bruno@clisp.org>
99001                 Cygwin portability.
99002                 * javaexec.c (execute_java_class): Test for jview program
99003                 also on Cygwin.
99005         2006-04-09  Bruno Haible  <bruno@clisp.org>
99007                 * fatal-signal.c: Don't include string.h.
99008                 (at_fatal_signal): Use a copying loop instead of memcpy.
99010         2005-12-04  Bruno Haible  <bruno@clisp.org>
99012                 * csharpexec.c: Add support for 'clix' launcher (untested).
99013                 (execute_csharp_using_sscli): New function.
99014                 (execute_csharp_program): Call it.
99016         2006-06-21  Bruno Haible  <bruno@clisp.org>
99018                 Avoid warnings from recent versions of mcs.
99019                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
99020                 -o, -L, -r any more. Use options documented since mcs-1.0
99021                 instead. Similarly for -g.
99023         2005-07-09  Bruno Haible  <bruno@clisp.org>
99025                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
99026                 add a .dll suffix.
99027                 Reported by Mark Junker <mjscod@gmx.de>.
99029         2006-06-17  Bruno Haible  <bruno@clisp.org>
99031                 * config.charset: Update for NetBSD 3.0.
99033         2006-05-17  Bruno Haible  <bruno@clisp.org>
99035                 Cygwin portability.
99036                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
99038         2006-05-16  Bruno Haible  <bruno@clisp.org>
99040                 * localcharset.c [CYGWIN]: Include <windows.h>.
99041                 (get_charset_aliases): For Cygwin, return the same CPxxx
99042                 aliases list as under WIN32.
99043                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
99044                 the environment variables. Fall back to GetACP().
99046         2006-04-05  Bruno Haible  <bruno@clisp.org>
99048                 * config.charset: Update Juan Manuel Guerrero's address.
99050         2005-02-12  Bruno Haible  <bruno@clisp.org>
99052                 * allocsa.h: Add extern "C" for C++.
99054         2005-02-10  Bruno Haible  <bruno@clisp.org>
99056                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
99057                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
99059         2006-07-22  Bruno Haible  <bruno@clisp.org>
99061                 * gettext.h: Update to GNU gettext-0.15.
99063 2006-07-22  Bruno Haible  <bruno@clisp.org>
99065         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
99066         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
99067         lib-prefix.m4, longdouble.m4, ssize_t.m4.
99069 2006-07-21  Eric Blake  <ebb9@byu.net>
99071         * modules/stdlib-safer: New file.
99072         * MODULES.html.sh (File stream based Input/Output): Add
99073         stdlib-safer.
99075 2006-07-21  Eric Blake  <ebb9@byu.net>
99077         * lib/stdlib-safer.h: New file from coreutils, required by
99078         stdlib--.h.
99080 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
99082         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
99084 2006-07-20  Bruno Haible  <bruno@clisp.org>
99086         * gnulib-tool: Recognize new option --assume-autoconf.
99087         (autoconf_minversion): New variable.
99088         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
99090 2006-07-20  Bruno Haible  <bruno@clisp.org>
99092         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
99094 2006-07-19  Derek R. Price  <derek@ximbiot.com>
99096         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
99097         Reindent and repaginate.
99099 2006-07-19  Derek Price  <derek@ximbiot.com>
99101         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
99102         Correct grammar.
99104 2006-07-17  Bruno Haible  <bruno@clisp.org>
99106         * modules/list: New file.
99107         * modules/array-list: New file.
99108         * modules/carray-list, modules/carray-list-tests: New files.
99109         * modules/linked-list, modules/linked-list-tests: New files.
99110         * modules/avltree-list, modules/avltree-list-tests: New files.
99111         * modules/rbtree-list, modules/rbtree-list-tests: New files.
99112         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
99113         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
99114         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
99115         * modules/oset: New file.
99116         * modules/array-oset: New file.
99117         * modules/avltree-oset, modules/avltree-oset-tests: New files.
99118         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
99119         * tests/test-carray_list.c: New file.
99120         * tests/test-linked_list.c: New file.
99121         * tests/test-avltree_list.c: New file.
99122         * tests/test-rbtree_list.c: New file.
99123         * tests/test-linkedhash_list.c: New file.
99124         * tests/test-avltreehash_list.c: New file.
99125         * tests/test-rbtreehash_list.c: New file.
99126         * tests/test-avltree_oset.c: New file.
99127         * tests/test-rbtree_oset.c: New file.
99128         * MODULES.html.sh (Container data structures): New section.
99130 2006-07-17  Bruno Haible  <bruno@clisp.org>
99132         * m4/gl_list.m4: New file.
99134 2006-07-17  Bruno Haible  <bruno@clisp.org>
99136         * lib/gl_list.h: New file.
99137         * lib/gl_list.c: New file.
99138         * lib/gl_array_list.h: New file.
99139         * lib/gl_array_list.c: New file.
99140         * lib/gl_carray_list.h: New file.
99141         * lib/gl_carray_list.c: New file.
99142         * lib/gl_linked_list.h: New file.
99143         * lib/gl_linked_list.c: New file.
99144         * lib/gl_anylinked_list1.h: New file.
99145         * lib/gl_anylinked_list2.h: New file.
99146         * lib/gl_avltree_list.h: New file.
99147         * lib/gl_avltree_list.c: New file.
99148         * lib/gl_anyavltree_list1.h: New file.
99149         * lib/gl_anyavltree_list2.h: New file.
99150         * lib/gl_rbtree_list.h: New file.
99151         * lib/gl_rbtree_list.c: New file.
99152         * lib/gl_anyrbtree_list1.h: New file.
99153         * lib/gl_anyrbtree_list2.h: New file.
99154         * lib/gl_anytree_list1.h: New file.
99155         * lib/gl_anytree_list2.h: New file.
99156         * lib/gl_linkedhash_list.h: New file.
99157         * lib/gl_linkedhash_list.c: New file.
99158         * lib/gl_anyhash_list1.h: New file.
99159         * lib/gl_anyhash_list2.h: New file.
99160         * lib/gl_avltreehash_list.h: New file.
99161         * lib/gl_avltreehash_list.c: New file.
99162         * lib/gl_rbtreehash_list.h: New file.
99163         * lib/gl_rbtreehash_list.c: New file.
99164         * lib/gl_anytreehash_list1.h: New file.
99165         * lib/gl_anytreehash_list2.h: New file.
99167         * lib/gl_oset.h: New file.
99168         * lib/gl_oset.c: New file.
99169         * lib/gl_array_oset.h: New file.
99170         * lib/gl_array_oset.c: New file.
99171         * lib/gl_avltree_oset.h: New file.
99172         * lib/gl_avltree_oset.c: New file.
99173         * lib/gl_rbtree_oset.h: New file.
99174         * lib/gl_rbtree_oset.c: New file.
99175         * lib/gl_anytree_oset.h: New file.
99177 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99179         * m4/mkancesdirs.m4: New file.
99180         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
99181         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
99182         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
99183         it.
99185 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99187         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
99188         * lib/mkancesdirs.h: New files.
99189         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
99190         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
99191         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
99192         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
99193         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
99194         callers changed.  Revamp internals significantly, by not
99195         attempting to create directories that are temporarily more
99196         permissive than the final results.  Do not attempt to use
99197         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
99198         This removes some race conditions, fixes some bugs, and simplifies
99199         things.  Use new dirchownmod function to do owner and mode changes.
99200         * lib/mkdir-p.h: Likewise.
99201         * lib/modechange.c (octal_to_mode): New function.
99202         (struct mode_change): New member mentioned.
99203         (make_node_op_equals): New arg mentioned.  All callers changed.
99204         (mode_compile): Keep track of which mode bits the user has explicitly
99205         mentioned.
99206         (mode_adjust): New arg DIR, so that we implement the X op correctly.
99207         New arg PMODE_BITS, to keep track of which mode bits the user
99208         mentioned; it treats S_ISUID and S_ISGID speciall.
99209         All callers changed.
99210         * lib/modechange.h: Likewise.
99212 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99214         * MODULES.html.sh: Add mkancestors.
99215         * modules/mkancesdirs: New module.
99216         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
99217         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
99218         The chdir-safer and afs files are now orphans; I'll remove them
99219         unless someone speaks up.
99220         Add lib/dirchownmod.c, lib/dirchownmod.h.
99221         (Depends-on): Remove alloca, chown, save-cwd, dirname.
99222         Add lchown, mkancesdirs.
99223         (Maintainer): Add self.
99225 2006-07-15  Karl Berry  <karl@gnu.org>
99227         * gnulib-tool: help message wording/arrangement.
99229 2006-07-14  Simon Josefsson  <jas@extundo.com>
99231         * doc/gnulib.texi (Libtool and Windows): New section.
99233 2006-07-12  Simon Josefsson  <jas@extundo.com>
99235         * modules/gendocs (License): Fix license, approved by Karl.
99237 2006-07-12  Eric Blake  <ebb9@byu.net>
99239         * MODULES.html.sh: Add gendocs.
99241 2006-07-11  Eric Blake  <ebb9@byu.net>
99243         * modules/fdl: New module, to install doc/fdl.texi.
99244         * MODULES.html.sh: Add new section for documentation modules.
99245         * gnulib-tool: Avoid space-tab.
99246         (--doc-base): New option, to manage files from doc.
99248 2006-07-11  Eric Blake  <ebb9@byu.net>
99250         * m4/absolute-header.m4: Fix comments to match recent change.
99252 2006-07-11  Eric Blake  <ebb9@byu.net>
99254         * gnulib-tool: List --doc-base before --tests-base.
99256 2006-07-11  Derek R. Price  <derek@ximbiot.com>
99258         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
99260 2006-07-11  Bruno Haible  <bruno@clisp.org>
99262         * README: Mention where to put documentation.
99264 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99266         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
99268 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99270         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
99271         to stdint.m4.
99273 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
99275         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
99276         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
99277         "no/such/file/stdint.h" when there is no such file, so that
99278         the resulting C code can be parsed by dodgy compilers.
99279         Problems reported by Bob Proulx.
99281 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99283         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
99284         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99285         macros into the GNU _D_EXACT_NAMLEN.
99286         * lib/savedir.c:  Likewise.
99287         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
99289 2006-07-10  Derek R. Price  <derek@ximbiot.com>
99290         and Paul Eggert  <eggert@cs.ucla.edu>
99292         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
99293         * m4/savedir.m4:
99294         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
99295         macros into the GNU _D_EXACT_NAMLEN.
99297 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99299         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
99300         around the absolute name, to work around a problem with the HP-UX
99301         11.23 native C compiler, reported by Bob Proulx.
99303 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99305         * doc/maintain.texi, make-stds.texi: Sync from
99306         <http://savannah.gnu.org/projects/gnustandards>.
99308 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
99310         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
99312 2006-07-09  Jim Meyering  <jim@meyering.net>
99314         * m4/glob.m4: Remove a doubled word in a comment.
99316 2006-07-09  Jim Meyering  <jim@meyering.net>
99318         * lib/argp-pv.c: Remove a doubled word in a comment.
99319         * lib/check-version.c (check_version): Likewise.
99320         * lib/javacomp.c (compile_java_class): Likewise.
99322 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
99324         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
99325         for the benefit of people using Autoconf 2.60.  If you want to
99326         support older Autoconf versions you can copy m4/onceonly_2_57.m4
99327         (or m4/onceonly.m4, if pre-2.57) manually.
99329 2006-07-08  Jim Meyering  <jim@meyering.net>
99331         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
99332         comment.
99333         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
99334         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
99335         comment.
99337 2006-07-08  Jim Meyering  <jim@meyering.net>
99339         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
99341 2006-07-07  Simon Josefsson  <jas@extundo.com>
99343         * tests/test-crc.c: Change expected crc value, the test vector
99344         were probably computed using the old broken crc.c?
99346 2006-07-06  Simon Josefsson  <jas@extundo.com>
99348         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
99349         now the canonical place for the M4 file).
99351         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
99352         from the sys_socket dependency now.
99354         * modules/inet_pton (Files): Ditto.
99356         * modules/inet_ntop (Files): Ditto.
99358 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99360         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
99361         not gl_PREREQ_GETUSERSHELL.
99363 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99365         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
99366         with only one argument, for Autoconf 2.60.
99367         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
99368         expand to nothing, so add a shell command to avoid syntax error.
99369         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
99371 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99373         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
99375 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99377         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
99378         no longer needed.  Check for isblank decl.
99379         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
99380         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
99381         of existence.
99383 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99385         * lib/getloadavg.c: Use __VMS, not VMS.
99386         * lib/getopt.c: Likewise.
99387         * lib/getpagesize.h: Likewise.
99388         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
99389         and probably does not work.
99391 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99393         * lib/.cppi-disable: Add wcwidth.
99394         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
99395         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
99396         (ISGRAPH): Remove.  All uses changed to isgraph.
99397         (FOLD) [!defined _LIBC]: Remove special case.
99398         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
99399         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
99400         HAVE_ISBLANK.
99401         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
99402         case.
99404 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
99406         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
99407         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
99408         brackets.  Other minor changes to suppress some compiler
99409         warnings.
99411 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99412         and Paul Eggert  <eggert@cs.ucla.edu>
99414         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
99415         of invoking obsolescent AC_HEADER_DIRENT macro.
99416         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
99417         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
99418         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
99419         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
99420         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
99421         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
99422         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
99423         * m4/readdir.m4: Remove; no longer needed.
99425 2006-07-06  Derek R. Price  <derek@ximbiot.com>
99426         and Paul Eggert  <eggert@cs.ucla.edu>
99428         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
99429         Don't worry about this obsolete case any more.
99430         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
99431         directories.
99432         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
99433         worry about this obsolete case any more.
99434         * lib/fts.c: Likewise.
99435         * lib/getcwd.c: Likewise.
99436         * lib/glob.h: Likewise.
99437         * lib/savedir.c: Likewise.
99439 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99441         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
99442         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
99443         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
99444         needed.
99445         All uses removed.
99446         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99447         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99448         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
99449         needed.
99450         * m4/getdate.m4 (gl_GETDATE): Likewise.
99451         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99452         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99453         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99454         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99455         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
99456         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99457         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
99458         needed.
99460 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99462         * lib/memcasecmp.c: Include <limits.h>.
99463         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
99464         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
99465         Don't assume isdigit succeeds only on '0' through '9'.
99467 2006-07-05  Eric Blake  <ebb9@byu.net>
99469         * modules/getaddrinfo (Depends-on): Add snprintf.
99471 2006-07-05  Eric Blake  <ebb9@byu.net>
99473         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
99474         to avoid 'header present but could not be compiled' on cygwin.
99476 2006-07-05  Eric Blake  <ebb9@byu.net>
99478         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
99479         missing from netdb.h.
99480         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
99482 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99484         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
99485         no longer needed.
99486         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
99487         * m4/getdate.m4 (gl_GETDATE): Likewise.
99488         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
99489         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
99490         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
99491         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
99492         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
99494 2006-07-05  Derek R. Price  <derek@ximbiot.com>
99496         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
99497         All uses of is_space replaced by isspace.
99498         * lib/exit.h: Don't talk about STDC_HEADERS.
99499         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
99500         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
99501         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
99502         replaced by isprint etc.
99503         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
99504         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99505         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
99506         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
99507         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
99508         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
99510 2006-07-05  Bruno Haible  <bruno@clisp.org>
99512         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
99513         the function exists, before testing against AIX.
99514         Reported by Martin Lambers <marlam@marlam.de>.
99516 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99518         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
99519         From Mark D. Baushke.
99521 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
99523         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
99524         to the absolute name, not just one, to bypass Sun C 5.8's
99525         "warning: #include of /usr/include/... may be non-portable".
99527 2006-07-04  Eric Blake  <ebb9@byu.net>
99529         * modules/dirname-tests: New test module.
99530         * tests/test-dirname.c: New file, replacing dirname.c
99531         TEST_DIRNAME section that was recently deleted.
99533 2006-07-04  Bruno Haible  <bruno@clisp.org>
99535         Assume ANSI C header files and <ctype.h> functions.
99536         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
99537         (mbsnwidth): Use isprint, iscntrl instead.
99539 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99541         Merge from coreutils.
99542         * MODULES.html.sh: Add xstrtold.
99543         * modules/xstrtold: New file.
99544         * modules/cycle-check (Files): Add lib/same-inode.h.
99545         * modules/dirname (Files): Add m4/double-slash-root.m4.
99546         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
99547         * modules/mkdir-p (Files): Add lib/same-inode.h.
99548         * modules/same (Files): Add lib/same-inode.h.
99550 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99552         * m4/absolute-header.m4: Renamed from full-header-path.m4.
99553         This is to keep the terminology clean; POSIX talks about
99554         "absolute pathnames", not "full pathnames", but the GNU
99555         Coding Standards say to use "path" for something else;
99556         so use "absolute" to keep both sides happy.
99557         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
99558         Set gl_absolute_header, not gl_full_header_path.
99559         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
99560         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
99561         All uses changed.
99563         Merge from coreutils.
99565         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
99567         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
99568         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
99569         want to require the building of c-strtod.o.
99570         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
99571         needs -lm directly.
99572         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
99574         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
99576         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
99577         --as-needed option if available.  Problem reported by Albert Chin in
99578         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
99579         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
99580         cc merely issues a bunch of annoying warnings for --as-needed
99581         (this problem was reported by Bob Proulx).  Also, try linking with
99582         -lm to detect a bug in binutils 2.16 (this problem was reported
99583         by Ralf Wildenhues).
99585         2006-06-18  Jim Meyering  <jim@meyering.net>
99587         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
99588         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
99589         macro.
99590         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
99591         also check for glibc-2.4's abort-inducing bug.
99593         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
99594         Low-probability clean-up should be to use rmdir to get rid of
99595         the just-created directory, not unlink.
99597         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
99598         configure fail, and request a bug report to inform us about it.
99599         Add a comment that, barring reports to the contrary, in 2007 we'll
99600         assume ftruncate is universally available.
99602         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
99604         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
99606         2006-03-12  Jim Meyering  <jim@meyering.net>
99608         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
99609         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
99610         * m4/same.m4 (gl_SAME): Likewise.
99611         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
99613         2006-03-11  Eric Blake  <ebb9@byu.net>
99615         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
99616         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
99617         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
99618         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
99620 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99622         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
99623         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
99624         reported by Mark D. Baushke, one in
99625         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
99627         Merge from coreutils.
99629         * lib/.cppi-disable: Add stdint_.h.
99630         * lib/.cvsignore: Add stdint.h.
99632         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
99634         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
99635         both double and long double versions.
99636         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
99637         * lib/xstrtold.c: New file.
99638         * lib/xstrtod.h (xstrtold): New decl.
99640         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
99642         * lib/filemode.c (setst): Remove.
99643         (strmode): Rewrite to avoid setst.  This makes the code shorter,
99644         (arguably) clearer, and the generated code is a bit smaller on my
99645         Debian GNU/Linux stable x86 host.
99647         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
99649         * lib/filemode.c: Include "filemode.h" first, to test the interface.
99650         Assume that filemode.h includes sys/types.h and sys/stat.h.
99651         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
99652         (ftypelet): Reorder to put common cases first, for efficiency.
99653         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
99654         to do 'M'.
99655         (strmode): Renamed from mode_string, and now stores 12 bytes instead
99656         of 10, for compatibility with FreeBSD.  All callers changed.
99657         (filemodestring): Now stores 12 bytes instead of 10, and sets file
99658         types that can't be deduced solely from st_mode.  First arg is now a
99659         const pointer.
99660         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
99661         (strmode): Renamed from mode_string.
99662         (filemodestring): New decl.
99663         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
99664         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
99665         needed.
99666         (S_ISPORT, S_ISWHT): New macros, if not already defined.
99668         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
99670         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
99671         fsusage.h now does that.  Include fsusage.h first, to test interface.
99672         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
99673         at most one method (the old code could have generated decls that
99674         didn't conform to C89, not that this was ever exercised).
99675         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
99677         2006-03-19  Jim Meyering  <jim@meyering.net>
99679         Work even in a chroot where d_ino values for entries in "/"
99680         don't match the stat.st_ino values for the same names.
99681         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
99682         number, iterate through all entries again, using lstat instead.
99683         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
99684         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
99686         * lib/getcwd.c (__getcwd): Clarify a comment.
99687         Use memcpy in place of a call to strcpy.
99689         2006-03-12  Jim Meyering  <jim@meyering.net>
99691         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
99692         matches that of the current directory (which we're about to chdir ".."
99693         out of), then save the dev-ino of the parent, instead.
99695         * lib/same-inode.h (SAME_INODE): New file/macro.
99696         * lib/chdir-safer.c (SAME_INODE): Remove definition.
99697         Include "same-inode.h", instead.
99698         * lib/same.c: Likewise.
99699         * lib/cycle-check.h: Include "same-inode.h".
99700         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
99701         * lib/cycle-check.c (SAME_INODE): Remove definition.
99702         * lib/root-dev-ino.h: Include "same-inode.h".
99704         2006-03-11  Eric Blake  <ebb9@byu.net>
99706         * lib/same.c (same_name): s/base_name/last_component/
99707         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
99708         * lib/filenamecat.c (file_name_concat): Likewise.
99710         2006-03-11  Eric Blake  <ebb9@byu.net>,
99711                     Paul Eggert  <eggert@cs.ucla.edu>
99713         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
99714         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
99715         drive prefix.
99716         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
99717         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
99718         (last_component): New method.
99719         * lib/dirname.c (dir_len): Determine when drive letters need a
99720         subsequent slash.  Preserve // when it is special.
99721         (dir_name): Don't append dot when drive letter is absolute.
99722         [TEST_DIRNAME]: Move into a full-blown gnulib test.
99723         * lib/basename.c (base_name): New semantics - malloc the result.
99724         Preserve // when it is special.  Preserve relative files that look
99725         like drive letters.
99726         (base_len): Preserve // when it is special.
99727         (last_component): New method, similar to old base_name semantics.
99728         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
99729         base_name.  Strip redundant slashes from ///.
99731 2006-07-03  Jim Meyering  <jim@meyering.net>
99733         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
99734         macro is used before the first cycle_check call.
99736 2006-07-03  Eric Blake  <ebb9@byu.net>
99738         * modules/dirname (Depends-on): Add xstrndup.
99740 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
99742         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
99743         test cases, so that config.log is a bit easier to follow.
99745 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
99747         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
99748         both are 64 bits, since this seems to be the tradition, and this
99749         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
99750         we ever run into a host that prefers long long to long in this
99751         case, we'll need another configure-time test.  Problem reported by
99752         Jim Meyering.
99754 2006-07-02  Eric Blake  <ebb9@byu.net>
99756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
99758 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
99760         * modules/inttypes (Depends-on): No longer depends on stdint.
99761         * modules/stdint (Description): Say more about assumptions.
99762         Say that the fast types might differ.  Say macros are used.
99763         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
99764         (Makefile.am): Revise list of substituted symbols to match
99765         new stdint.m4.
99766         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
99767         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
99768         * tests/test-stdint.c (verify_same_types)
99769         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
99770         the code conforms to C99/C89.
99771         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
99772         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
99774 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
99776         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
99777         but fix a bug, by requiring at least 64 bits.
99778         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
99779         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
99780         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
99781         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
99783         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
99784         changes.  Make 2.59 a prerequisite.  Check and substitute for
99785         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
99786         inttypes.h.  Do not use special include files; just use the
99787         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
99788         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
99789         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
99790         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
99791         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
99792         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
99793         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
99794         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
99795         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
99796         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
99797         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
99798         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
99799         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
99800         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
99801         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
99802         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
99803         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
99804         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
99805         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
99806         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
99807         WINT_MAX.  Check for C99 conformance more strictly, by detecting
99808         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
99809         not check for things that C99 does not require, e.g., int8_t.  If
99810         a test isn't needed unless <stdint.h> isn't working, and is
99811         unlikely to be needed for any other reason, then don't do it
99812         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
99813         size_t, since we assume C89 freestanding at least.  Do not check
99814         for sig_atomic_t, wchar_t, or wint_t, since the code now does
99815         the right thing even if the types are not defined.  Instead use:
99816         (gl_STDINT_TYPE_PROPERTIES): New macro.
99817         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
99818         testing whether <sys/types.h> clashes, as Autoconf does this for
99819         us now.  All uses removed.
99820         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
99821         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
99822         (gl_CHECK_TYPE_SAME):
99823         Remove; no longer needed.
99824         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
99825         exists, since we'll return 0 anyway in that case.
99826         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
99828 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
99830         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
99831         possible collision with system files.
99832         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
99833         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
99834         WCHAR_MIN and WCHAR_MAX in this case.
99835         (<stddef.h>): Do not include; no longer needed.
99836         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
99837         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
99838         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
99839         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
99840         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
99841         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
99842         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
99843         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
99844         !defined(__c99))]: Include in this case too, since it's harmless
99845         now.
99846         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
99847         dangerous to do so.
99848         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
99849         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
99850         (_STDINT_MIN, _STDINT_MAX): New macros.
99851         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
99852         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
99853         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
99854         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
99855         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
99856         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
99857         macros, not typedefs; this simplifies things quite a bit.
99858         Use long int for all types narrower than int64_t.
99859         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
99860         Define in terms of long long int or int64_t or long int,
99861         not int64_t or int32_t.  This saves some compile-time testing.
99862         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
99863         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
99864         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
99865         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
99866         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
99867         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
99868         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
99869         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
99870         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
99871         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
99872         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
99873         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
99874         undef any previous version and define our own version, for
99875         simplicity and consistency with the new macros for types.
99876         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
99877         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
99878         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
99879         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
99880         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
99881         @WINT_T_SUFFIX@ to keep things simple here.
99882         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
99883         Simplify by assuming typical 8/16/32/64 host, since we're
99884         already doing that elsewhere anyway.
99885         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
99886         and assume long long int is 64 bits if available.  This
99887         speeds up 'configure'.
99889 2006-07-01  Eric Blake  <ebb9@byu.net>
99891         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
99892         Reported by Andreas Buening.
99894 2006-07-01  Eric Blake  <ebb9@byu.net>
99896         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
99898 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
99900         * lib/getaddrinfo.c: fixed typo
99902 2006-06-29  Jim Meyering  <jim@meyering.net>
99904         * modules/strftime (Maintainer): Add my name, since with the
99905         FPRINTFTIME changes strftime.c has forked from glibc.
99907 2006-06-29  Eric Blake  <ebb9@byu.net>
99909         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
99911 2006-06-29  Eric Blake  <ebb9@byu.net>
99913         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
99915 2006-06-29  Eric Blake  <ebb9@byu.net>
99917         * lib/stat_.h: New file.
99919 2006-06-29  Eric Blake  <ebb9@byu.net>
99921         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
99922         unused static function.
99924 2006-06-29  Eric Blake  <ebb9@byu.net>
99926         * doc/functions.texi (Function Portability): Document missing lstat
99927         on mingw.
99929 2006-06-29  Eric Blake  <ebb9@byu.net>
99931         * MODULES.html.sh: Add sys_stat.
99932         * modules/sys_stat: New module.
99933         * modules/mkstemp (Depends-on): Add sys_stat.
99935 2006-06-29  Derek R. Price  <derek@ximbiot.com>
99937         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
99939 2006-06-29  Derek R. Price  <derek@ximbiot.com>
99941         * m4/c-bs-a.m4: Removed.
99943 2006-06-29  Derek R. Price  <derek@ximbiot.com>
99945         * lib/strftime.c: Assume strftime() exists.
99947 2006-06-29  Derek Price  <derek@ximbiot.com>
99949         * modules/c-bs-a: Removed - \a is C89.
99950         * MODULES.html.sh: Remove c-bs-a.
99952 2006-06-29  Bruno Haible  <bruno@clisp.org>
99954         * modules/wcwidth (License): Change to LGPL.
99956 2006-06-28  Simon Josefsson  <jas@extundo.com>
99958         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
99959         on _WIN32.
99961         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
99962         getnameinfo.
99964 2006-06-28  Simon Josefsson  <jas@extundo.com>
99966         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
99968 2006-06-28  Simon Josefsson  <jas@extundo.com>
99970         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
99971         functions there.  It will succeed on Windows XP, but on Windows
99972         2000 and (presumably) earlier, it will fail, and use the internal
99973         re-implementation.
99974         (use_win32_p): New function.
99975         (getaddrinfo): Use strtoul on servname, to support numeric ports.
99976         Support AI_NUMERICSERV to disable getservbyname.
99977         (getnameinfo): New function, only supports
99978         NI_NUMERICHOST|NI_NUMERICSERV for now.
99980         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
99981         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
99982         getnameinfo.
99984 2006-06-28  Eric Blake  <ebb9@byu.net>
99986         * modules/wcwidth: New file.
99987         * modules/mbchar (Depends-on): Add wcwidth.
99988         * modules/mbswidth (Depends-on): Add wcwidth.
99989         * MODULES.html.sh: Add wcwidth.
99991 2006-06-28  Eric Blake  <ebb9@byu.net>
99993         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
99994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
99996 2006-06-28  Eric Blake  <ebb9@byu.net>
99998         * lib/xvasprintf.h: Fix comments.
100000 2006-06-28  Eric Blake  <ebb9@byu.net>
100002         * lib/mbchar.h (wcwidth): Include wcwidth.h.
100003         * lib/mbswidth.c (wcwidth): Move from here...
100004         * lib/wcwidth.h: ...to this new file.
100006 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100008         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
100010         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
100011         it's obsolete.
100012         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
100014 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100016         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
100017         Autoconf 2.60 says this stuff was obsolete.
100019 2006-06-28  Bruno Haible  <bruno@clisp.org>
100021         * modules/wcwidth (Files): Add m4/wchar_t.m4.
100023 2006-06-28  Bruno Haible  <bruno@clisp.org>
100025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
100026         gt_TYPE_WCHAR_T.
100028 2006-06-28  Bruno Haible  <bruno@clisp.org>
100030         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
100031         declaration for wcwidth.
100032         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
100034 2006-06-28  Bruno Haible  <bruno@clisp.org>
100036         * lib/mkdtemp.c [MINGW]: Include <io.h>.
100037         (mkdir): Define using _mkdir.
100039 2006-06-28  Bruno Haible  <bruno@clisp.org>
100041         * lib/getaddrinfo.h: Fix POSIX URL.
100042         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
100043         _WIN32.
100044         (use_win32_p): Make static.
100045         (getaddrinfo): Reject service name if it is empty or does not consist
100046         solely of decimal digits, or if its value is > 65535.
100047         (getnameinfo): Remove useless casts.
100049 2006-06-27  Simon Josefsson  <jas@extundo.com>
100051         * modules/sys_select: New file, suggested by Bruno Haible, Paul
100052         Eggert and Martin Lambers.
100054 2006-06-27  Simon Josefsson  <jas@extundo.com>
100056         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
100057         Eggert and Martin Lambers.
100059 2006-06-27  Bruno Haible  <bruno@clisp.org>
100061         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
100062         result to 0, not to empty.
100063         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
100065 2006-06-27  Bruno Haible  <bruno@clisp.org>
100067         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
100069 2006-06-26  Simon Josefsson  <jas@extundo.com>
100071         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
100072         present.
100074 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
100076         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
100077         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
100078         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
100080 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
100082         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
100084 2006-06-26  Bruno Haible  <bruno@clisp.org>
100086         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
100088 2006-06-26  Bruno Haible  <bruno@clisp.org>
100090         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
100092 2006-06-26  Bruno Haible  <bruno@clisp.org>
100094         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
100095         SGI C compiler in pre-C99 mode.
100096         Suggested by Mark D. Baushke and Larry Jones.
100098 2006-06-26  Bruno Haible  <bruno@clisp.org>
100100         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
100101         WCHAR_MAX.
100102         Reported by Mark D. Baushke and Larry Jones.
100104 2006-06-26  Bruno Haible  <bruno@clisp.org>
100106         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
100107         in pre-C99 mode.
100108         Suggested by Mark D. Baushke and Larry Jones.
100110 2006-06-23  Simon Josefsson  <jas@extundo.com>
100111             Bruno Haible  <bruno@clisp.org>
100113         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
100114         Emit mostlyclean-local rule.
100115         (func_emit_tests_Makefile_am): Likewise.
100116         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
100118 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
100120         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
100122 2006-06-23  Bruno Haible  <bruno@clisp.org>
100124         * tests/test-stdint.c: Update to match ISO C 99 Technical
100125         Corrigendum 1.
100127 2006-06-23  Bruno Haible  <bruno@clisp.org>
100129         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
100131 2006-06-23  Bruno Haible  <bruno@clisp.org>
100133         * lib/stdint_.h: Treat IRIX like OpenBSD.
100135 2006-06-23  Bruno Haible  <bruno@clisp.org>
100137         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
100138         ISO C 99 Technical Corrigendum 1.
100140 2006-06-22  Simon Josefsson  <jas@extundo.com>
100142         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
100143         MinGW.
100145 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100147         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
100148         needed.  Some compiler complained about some of them.  Problem reported
100149         by Larry Jones in
100150         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
100152 2006-06-21  Simon Josefsson  <jas@extundo.com>
100154         * tests/test-getaddrinfo.c: New file.
100156         * modules/getaddrinfo-tests: New file.
100158         * MODULES.html.sh: Add inet_pton.
100160         * modules/inet_pton: New file.
100162 2006-06-21  Simon Josefsson  <jas@extundo.com>
100164         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
100165         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
100166         of using the (limited) gnulib implementation on Windows XP.
100168         * m4/inet_pton.m4: New file.
100170 2006-06-21  Simon Josefsson  <jas@extundo.com>
100172         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
100173         variable.
100175         * lib/socket_.h: Don't define WINVER.
100177         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
100178         slightly modified to work in gnulib.
100180 2006-06-21  Simon Josefsson  <jas@extundo.com>
100182         * doc/gnulib.texi (Windows sockets): Add.
100184 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100186         * lib/read-file.c (fread_file): Start with buffer allocation of
100187         0 bytes rather than 1 byte; this simplifies the code.
100188         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
100189         code to free buffer and save/restore errno.
100190         (internal_read_file): Remove unused local.
100192 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100194         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
100195         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
100196         Problem reported by Denis Excoffier in
100197         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
100199 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100201         * modules/sys_socket, modules/socklen: Include sys/types since
100202         FreeBSD 4.x's sys/socket.h needs it.
100204 2006-06-19  Simon Josefsson  <jas@extundo.com>
100206         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
100208 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100210         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
100212 2006-06-19  Bruno Haible  <bruno@clisp.org>
100214         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
100215         and FULL_PATH_INTTYPES_H in angle brackets.
100216         Reported by Mark D. Baushke <mdb@gnu.org>.
100218 2006-06-17  Eric Blake  <ebb9@byu.net>
100220         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
100221         errno.
100223 2006-06-17  Bruno Haible  <bruno@clisp.org>
100225         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
100226         <sys/inttypes.h>.
100228 2006-06-17  Bruno Haible  <bruno@clisp.org>
100230         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
100231         whether errno is declared. Assume <errno.h> declares errno.
100233 2006-06-17  Bruno Haible  <bruno@clisp.org>
100235         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
100237 2006-06-17  Bruno Haible  <bruno@clisp.org>
100239         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
100240         problem on Solaris 2.5.1.
100242 2006-06-16  Eric Blake  <ebb9@byu.net>
100244         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
100245         * lib/unicodeio.c [!defined errno]: Likewise.
100246         * lib/strtol.c [!defined errno]: Likewise.
100247         * lib/strtod.c [!defined errno]: Likewise.
100249 2006-06-15  Eric Blake  <ebb9@byu.net>
100251         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
100253 2006-06-15  Eric Blake  <ebb9@byu.net>
100255         * config/srclist.txt (ssize_t.m4): Lose sync.
100257 2006-06-15  Bruno Haible  <bruno@clisp.org>
100259         * modules/stdint (Files): Include m4/full-header-path.m4,
100260         m4/size_max.m4, m4/wchar_t.m4.
100261         (Makefile.am): Many more substitutions.
100262         * modules/stdint-tests: New file.
100263         * tests/test-stdint.c: New file.
100265 2006-06-15  Bruno Haible  <bruno@clisp.org>
100267         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
100268         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
100269         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
100270         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
100271         gl_CHECK_TYPE_SAME): New macros.
100273 2006-06-15  Bruno Haible  <bruno@clisp.org>
100275         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
100277 2006-06-15  Bruno Haible  <bruno@clisp.org>
100279         * lib/stdint_.h: Rewritten to be fully auto-configured.
100280         Fixes bug on HP-UX/IA64.
100282 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
100284         * lib/getdate.y (__attribute__): Don't define if already defined.
100285         Problem reported by Larry Jones.
100286         * lib/utimens.c (__attribute__): Likewise.
100288 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
100290         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
100291         reported by Andreas Schwab.
100293 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100294             Bruno Haible  <bruno@clisp.org>
100296         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
100297         check for the declaration of strnlen and a run test that exposes the
100298         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
100299         rpl_strndup.
100301 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100302             Bruno Haible  <bruno@clisp.org>
100304         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
100306 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100308         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
100309         compile test, for Tru64 4.0D.
100311 2006-05-28  Karl Berry  <karl@gnu.org>
100313         * config/srclist.txt (printf-args.c): lose sync.
100315 2006-05-26  Martin Lambers  <marlam@marlam.de>
100317         * lib/getpass.c: Updates the test for the native W32 API, and adds
100318         missing includes, thus fixing compilation warnings.
100320 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
100322         * lib/exclude.c (exclude_fnmatch): New function.
100323         (excluded_file_name): Call exclude_fnmatch.
100324         * lib/exclude.h (excluded_file_name): New prototype
100326 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
100328         * lib/tempname.c (small_open, large_open): New macros.
100329         (__open, __open64) [!_LIBC]: Remove.
100330         (__gen_tempname): Use small_open and large_open instead of __open
100331         and __open64.  This fixes a portability bug on HP-UX 11.11i
100332         reported by Simon Wing-Tang in
100333         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
100335 2006-05-24  Bruno Haible  <bruno@clisp.org>
100337         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
100338         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
100339         Reported by Thorsten Maerz <torte@netztorte.de> via
100340         Aaron Stone <aaron@serendipity.cx>.
100342 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100344         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
100345         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
100346         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
100347         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
100348         not really conditional on the cache.
100349         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
100351 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
100353         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
100354         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
100355         (my_usleep): Don't mishandle maximum value.
100357 2006-05-19  Jim Meyering  <jim@meyering.net>
100359         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
100361 2006-05-17  Bruno Haible  <bruno@clisp.org>
100363         Cygwin portability.
100364         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
100366 2006-05-17  Bruno Haible  <bruno@clisp.org>
100368         * lib/stdint_.h: Fix recognition of Cygwin.
100370 2006-05-15  Bruno Haible  <bruno@clisp.org>
100372         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
100373         on libtool patch by Ralf Wildenhues.
100375 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100377         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
100378         test for C99 conformance; (bool) 0.5 is an integer constant
100379         expression, but (bool) -0.5 is not.  Problem reported by Fedor
100380         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
100382 2006-05-11  Simon Josefsson  <jas@extundo.com>
100384         * m4/xvasprintf.m4: Fix obvious typo.
100386 2006-05-11  Jim Meyering  <jim@meyering.net>
100388         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
100389         James Lemley.
100391 2006-05-10  Simon Josefsson  <jas@extundo.com>
100393         * lib/md4.c: Typo fix, update copyright years.
100394         (K1, K2): Don't use L because it turn computations into 64-bit on
100395         64-bit platforms.
100397 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
100399         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
100400         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
100401         unwanted sign propagation, e.g., on hosts with 64-bit int.
100402         There still are some problems with reeelly weird theoretical hosts
100403         (e.g., 33-bit int) but it's not worth worrying about now.
100404         * lib/sha1.c (rol): Likewise.
100405         (K1, K2, K3, K4): Remove unnecessary L suffix.
100407 2006-05-10  Bruno Haible  <bruno@clisp.org>
100409         * lib/des.c: Cast to avoid warnings.
100411 2006-05-09  Bruno Haible  <bruno@clisp.org>
100413         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
100414         (Depends-on): Depend also on xsize, stdarg.
100415         (configure.ac): Add gl_XVASPRINTF.
100417 2006-05-09  Bruno Haible  <bruno@clisp.org>
100419         * m4/xvasprintf.m4: New file.
100421 2006-05-09  Bruno Haible  <bruno@clisp.org>
100423         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
100424         (EOVERFLOW): Define fallback value.
100425         (xstrcat): New function.
100426         (xvasprintf): Recognize the special case of a string concatenation.
100428 2006-05-08  Eric Blake  <ebb9@byu.net>
100430         * gnulib-tool (func_version): Base copyright year on CVS date.
100431         (func_emit_copyright_notice): New function.
100432         (func_emit_lib_Makefile_am): Use it.
100433         (func_emit_tests_Makefile_am): Likewise.
100434         (func_import): Likewise.
100436 2006-05-08  Bruno Haible  <bruno@clisp.org>
100438         * modules/stdarg: New file.
100439         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
100441 2006-05-08  Bruno Haible  <bruno@clisp.org>
100443         * m4/stdarg.m4: New file, from GNU gettext.
100445 2006-05-08  Bruno Haible  <bruno@clisp.org>
100447         * config/srclist.txt (build-aux/config.rpath): different from latest
100448         release.
100450 2006-05-08  Bruno Haible  <bruno@clisp.org>
100452         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
100454 2006-05-05  Jim Meyering  <jim@meyering.net>
100456         * m4/warning.m4: New file, derived from bison's file by the same name.
100458 2006-05-03  Bruno Haible  <bruno@clisp.org>
100460         * lib/stdint_.h: Shorter URL.
100461         * lib/inttypes.h: Likewise.
100463 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100465         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
100467 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100469         * lib/verify.h: Document the internals better.  Most of this change
100470         was written by Bruno Haible.
100472 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100474         * doc/verify.texi: New file, partly based on a proposal by
100475         Bruno Haible.
100477 2006-05-02  Bruno Haible  <bruno@clisp.org>
100479         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
100480         test from here...
100481         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
100483 2006-04-29  Bruno Haible  <bruno@clisp.org>
100485         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
100486         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
100488 2006-04-29  Bruno Haible  <bruno@clisp.org>
100490         * gnulib-tool: Make --update option actually work.
100492 2006-04-29  Bruno Haible  <bruno@clisp.org>
100494         * doc/gcd.texi: New file.
100495         * doc/gnulib.texi: Include it.
100497 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
100499         * lib/getdate.y (get_date): When adding relative date, start with the
100500         initial time, not with the result of the first mktime call.
100502 2006-04-25  Bruno Haible  <bruno@clisp.org>
100504         * gnulib-tool (func_import): Output the include directives in three
100505         blocks, sorted separately.
100506         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100508 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100510         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
100511         to define main with arguments, for C++.  Reported by Eric Blake.
100512         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
100513         Prefer 'int main ()' to 'int main (void)', for C++.
100514         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
100515         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
100516         for 'main', for C99 and C++.
100518 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
100520         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
100521         Don't assume that exit status -1 is valid.
100522         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
100523         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
100524         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
100525         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
100526         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
100527         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
100528         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
100529         functions can be used without declaring them, or that you can
100530         exit with status -1.
100531         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
100533 2006-04-24  Karl Berry  <karl@gnu.org>
100535         * config/srclist.txt (longdouble.m4): sync lost.
100537 2006-04-24  Eric Blake  <ebb9@byu.net>
100539         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
100541 2006-04-24  Bruno Haible  <bruno@clisp.org>
100543         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
100544         poll() implementation in AIX.
100545         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100547 2006-04-24  Bruno Haible  <bruno@clisp.org>
100549         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
100550         assigned exactly once.
100552 2006-04-23  Claudio Fontana  <claudio@gnu.org>
100553             Bruno Haible  <bruno@clisp.org>
100555         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
100556         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
100557         for AM_CPPFLAGS.
100559 2006-04-23  Bruno Haible  <bruno@clisp.org>
100561         * modules/copy-file: Depend on unistd.
100562         * modules/execute: Likewise.
100563         * modules/fatal-signal: Likewise.
100564         * modules/findprog: Likewise.
100565         * modules/mkdtemp : Likewise.
100566         * modules/pipe: Likewise.
100567         * modules/wait-process: Likewise.
100569 2006-04-23  Bruno Haible  <bruno@clisp.org>
100571         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
100572         condition was already detected.
100573         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100575 2006-04-23  Bruno Haible  <bruno@clisp.org>
100577         * lib/copy-file.c: Include <unistd.h> unconditionally.
100578         * lib/execute.c: Likewise.
100579         * lib/fatal-signal.c: Likewise.
100580         * lib/findprog.c: Likewise.
100581         * lib/mkdtemp.c: Likewise.
100582         * lib/pipe.h: Likewise.
100583         * lib/pipe.c: Likewise.
100584         * lib/wait-process.h: Likewise.
100586 2006-04-23  Bruno Haible  <bruno@clisp.org>
100588         * gnulib-tool (func_usage): Fix --import description. Document
100589         --update.
100590         (func_import): Create temporary file in a temporary directory, if
100591         --dry-run is specified. Silence errors from 'grep' when there are no
100592         m4 files in $m4dir.
100593         (func_create_testdir): Silence errors from 'grep' when there are no
100594         m4 files in $m4dir.
100595         Reported by Karl Berry <karl@freefriends.org>.
100597 2006-04-20  Bruno Haible  <bruno@clisp.org>
100599         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
100600         one argument, so that the code will be portable to Autoconf 2.60.
100601         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
100602         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
100603         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
100605 2006-04-19  Derek Price  <derek@ximbiot.com>
100606             Eric Blake  <ebb9@byu.net>
100608         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
100609         rather than "/full/path.h".  Update comment to match.  Shorten &
100610         generalize m4_translit call via AS_TR_CPP.
100612 2006-04-19  Derek Price  <derek@ximbiot.com>
100613             Eric Blake  <ebb9@byu.net>
100615         * lib/inttypes.h: Correct grammar in comment.
100617 2006-04-18  Derek Price  <derek@ximbiot.com>
100618             Paul Eggert  <eggert@cs.ucla.edu>
100620         * modules/inttypes: New file.
100621         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
100623 2006-04-18  Derek Price  <derek@ximbiot.com>
100624             Paul Eggert  <eggert@cs.ucla.edu>
100626         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
100627         New files.
100629 2006-04-18  Derek Price  <derek@ximbiot.com>
100630             Paul Eggert  <eggert@cs.ucla.edu>
100632         * lib/inttypes.h: New file.
100633         * lib/strtoimax.c: Assume <inttypes.h>.
100635 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
100637         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
100638         isn't mounted.  Problem reported by Kir Kolyshkin.
100640 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
100642         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
100643         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
100644         Derek R. Price.
100645         * lib/regex.h (RE_DUP_MAX): Update comment to match current
100646         implementation.
100648 2006-04-12  Eric Blake  <ebb9@byu.net>
100650         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
100651         is now done automatically by the corresponding Autoconf macro.
100653 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
100655         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
100656         time_r.h.
100658 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100660         Merge regex changes from libc, removing some of our
100661         POSIX-conformance changes that were rejected and redoing them in a
100662         less-intrusive way.
100664         * lib/regcomp.c (re_compile_internal, init_dfa):
100665         Length arg is now size_t, not Idx.  All uses changed.
100666         (peek_token): Forward decl now says internal_function.
100667         (__re_error_msgid, __re_error_msgid_idx):
100668         Now static rather than extern with attribute_hidden.
100669         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
100670         For some reason libc prefers K&R style defns for external functions.
100671         (regerror) [!defined _LIBC]: Likewise.
100672         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
100673         (seek_collating_symbol_entry, lookup_collation_sequence_value):
100674         (build_range_exp, build_collating_symbol):
100675         Use K&R-style defn.
100676         (re_compile_fastmap): Use '\0' to memset, not 0.
100677         (utf8_sb_map): Make the calculations more obvious.
100678         (init_dfa, parse_bracket_exp, build_charclass_op):
100679         Call calloc and cast result, as glibc does.
100680         (init_word_char, fetch_token, peek_token, peek_token_bracket):
100681         (build_range_exp, build_collating_symbol):
100682         Now internal functions.
100684         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
100686         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
100687         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
100688         Don't depend on VMS; depend on __VMS instead, for POSIX
100689         namespace cleanness.
100690         (regoff_t): Define to ssize_t, not long int.
100692         Remove the REG_ macros named below.  Instead, make the old names
100693         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
100694         __USE_GNU_REGEX.
100695         (REG_BACKSLASH_ESCAPE_IN_LISTS):
100696         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
100697         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
100698         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
100699         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
100700         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
100701         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
100702         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
100703         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
100704         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
100705         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
100706         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
100707         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
100708         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
100709         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
100710         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
100711         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
100712         (REG_NREGS):
100713         Remove.  All uses replaced by the old RE_* names.
100714         (RE_BACKSLASH_ESCAPE_IN_LISTS):
100715         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
100716         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
100717         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
100718         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
100719         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
100720         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
100721         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
100722         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
100723         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
100724         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
100725         Don't bother having these macros be independent of each others'
100726         values, since they no longer exist in the POSIX name space.
100728         Rename the following member names back to their old names,
100729         unless !__USE_GNU_REGEX.  All uses changed back.
100730         (buffer): Renamed from re_buffer.
100731         (allocated): Renamed from re_allocated.
100732         (used): Renamed from re_used.
100733         (syntax): Renamed from re_syntax.
100734         (fastmap): Renamed from re_fastmap.
100735         (translate): Renamed from re_translate.
100736         (can_be_null): Renamed from re_can_be_null.
100737         (regs_allocated): Renamed from re_regs_allocated.
100738         (fastmap_accurate): Renamed from re_fastmap_accurate.
100739         (no_sub): Renamed from re_no_sub.
100740         (not_bol): Renamed from re_not_bol.
100741         (not_eol): Renamed from re_not_eol.
100742         (newline_anchor): Renamed from re_newline_anchor.
100743         (num_regs): Renamed from rm_num_regs.
100744         (start): Renamed from rm_start.
100745         (end): Renamed from rm_end.
100747         (free_state): Move up a bit.
100749         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
100750         #define to be empty.
100751         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
100752         when that is what is intended.
100753         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
100754         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
100755         (MAX): New macro.
100756         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
100757         All uses changed back to re_malloc, etc.  It's now the caller's
100758         responsibility to check for overflow; all callers changed.
100759         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
100760         (re_x2nrealloc): Remove.
100761         (free_state): Remove decl.
100763         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
100764         (re_set_registers, re_exec):
100765         Use K&R-style defn.
100767         2006-01-31  Roland McGrath  <roland@redhat.com>
100769         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
100770         Reported by Mike Frysinger <vapier@gentoo.org>.
100772         2006-01-15  Andreas Jaeger  <aj@suse.de>
100774         [BZ #1950]
100775         * lib/regex_internal.c (re_string_reconstruct): Adjust for
100776         build_wcs_upper_buffer change.
100777         (build_wcs_upper_buffer): Change return type.
100779         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
100781         * lib/regex_internal.h: Include <stdint.h> if available.
100783         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
100785         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
100787         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
100789         * lib/regcomp.c: Adjust for changed secondary hash function.
100791         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
100793         * lib/regex.h: Pretty printing.
100794         Clean up namespace a bit.
100796         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
100798         * lib/regexec.c (update_cur_sifted_state, check_arrival,
100799         check_arrival_add_next_nodes): Avoid using uninitialized variable.
100801         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
100802                     Ulrich Drepper  <drepper@redhat.com>
100804         [BZ #1302]
100805         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
100806         changed.
100807         (bitset_word_t): Renamed from bitset_word.  All uses changed.
100809         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
100811         [BZ #281]
100812         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
100813         * lib/regcomp.c: Remove unnecessary uses of
100814         unsigned RE_TRANSLATE_TYPE.
100815         * lib/regex_internal.h: Likewise.
100816         * lib/regex_internal.c: Likewise.
100817         * lib/regexec.c: Likewise.
100818         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
100820         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
100822         * lib/regexec.c (find_recover_state): Remove unnecessary
100823         initialization.
100824         (transit_state_bkref): Make DFA a const pointer.
100825         (get_subexp): Likewise.
100826         (check_arrival): Likewise.
100827         (update_cur_sifted_state): Likewise.
100828         (re_search_internal): Likewise.
100829         (prune_impossible_nodes): Likewise.
100830         (acquire_init_state_context): Likewise.
100831         (proceed_next_node): Likewise.
100832         (set_regs): Likewise.
100833         (free_fail_stack_return): Likewise.
100834         (check_arrival_expand_ecl): Mark DFA parameter as const.
100835         (check_arrival_expand_ecl_sub): Likewise.
100836         (check_subexp_limits): Likewise.
100837         (sub_epsilon_src_nodes):  Likewise.
100838         (add_epsilon_src_nodes):  Likewise.
100839         (merge_state_array): Likewise.
100840         (update_regs): Likewise.
100841         (build_trtable): Likewise.
100842         (sift_states_backward): Mark MCTX parameter as const.
100843         (build_sifted_states): Likewise.
100844         (update_cur_sifted_state): Likewise.
100845         (sift_states_mkref): Likewise.
100846         (check_arrival_expand_ecl): Mark eclosure as const.
100847         (check_dst_limits_calc_pos_1): Likewise.
100848         * lib/regex_internal.h (re_match_context_t): Make dfa a const
100849         pointer.
100851         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
100853         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
100854         (transit_state_sb): Likewise.
100855         (transit_state_mb): Likewise.
100856         (sift_states_iter_mb): Likewise.
100857         (check_arrival_add_next_nodes): Likewise.
100858         (check_node_accept_bytes): Change first parameter to pointer-to-const.
100859         [_LIBC] (re_search_2_stub): Use mempcpy.
100861         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
100862         mbrtowc for very simple UTF-8 case.
100864         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
100865         a pointer-to-const.
100866         (re_acquire_state_context): Likewise.
100867         * lib/regex_internal.h: Adjust prototypes.
100869         * lib/regex.c: Prevent using C++ compilers.
100871         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
100872         (re_acquire_state_context): Likewise.
100874 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100876         * modules/regex (Depends-on): Add ssize_t.
100878 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100880         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
100881         translation table.
100883 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
100885         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
100887 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
100888             Bruno Haible  <bruno@clisp.org>
100890         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
100891         <sys/types.h> and <inttypes.h>.
100893 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100895         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
100896         `__error_t_defined', so argp.h will not typedef the former.
100898 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
100900         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
100901         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
100902         glibc names.  Even if glibc is changed to conform to POSIX, the
100903         traditional names will be available anyway, since regex depends on
100904         the extensions module.  Also, fix a longstanding typo in the
100905         implementation of Spencer ERE test #75 from grep 2.3.  Problems
100906         reported by Emanuele Giaquinta.  Also, change sense of cached
100907         variable, so that the message makes sense.
100909 2006-03-24  Simon Josefsson  <jas@extundo.com>
100911         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
100912         including some doc fixes.
100913         (base64_encode_alloc): Fix +1 bug on allocation failures.
100915 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100917         * lib/base64.c (base64_encode): Do not read past end of array with
100918         unsanitized input on systems with CHAR_BIT > 8.
100920 2006-03-24  Eric Blake  <ebb9@byu.net>
100922         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
100924 2006-03-22  Karl Berry  <karl@gnu.org>
100926         * config/srclist.txt (*setenv.[ch]): get from coreutils.
100927         * config/srclistvars.sh (COREUTILS): new var.
100929 2006-03-17  Jim Meyering  <jim@meyering.net>
100931         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
100932         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
100934 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
100936         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
100937         no longer needs it.  Instead, check that regoff_t is as least
100938         as wide as ptrdiff_t.
100940         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
100941         so that our regex.h stays compatible with the installed regex.
100942         This is helpful for installers who configure --without-included-regex.
100943         Problem reported by Emanuele Giaquinta.
100945 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
100947         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
100948         Typedef to long int, not to off_, as POSIX will likely change
100949         in that direction.
100951 2006-03-15  Eric Blake  <ebb9@byu.net>
100953         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
100955 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
100957         * lib/argp-help.c (validate_uparams): Fix typo
100958         * lib/argp-parse.c (argp_default_options): Consistently begin help
100959         messages with a lowercase letter.
100961 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
100963         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
100964         overrun buffers and shouldn't be used (much as gets shouldn't be
100965         used).
100966         * lib/time_r.c (asctime_r, ctime_r): Likewise.
100968 2006-03-08  Simon Josefsson  <jas@extundo.com>
100970         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
100971         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100973 2006-03-08  Simon Josefsson  <jas@extundo.com>
100975         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
100976         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100978 2006-03-08  Simon Josefsson  <jas@extundo.com>
100980         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
100981         signal that configure disabled the device.
100983 2006-03-08  Simon Josefsson  <jas@extundo.com>
100985         * build-aux/maint.mk: Fix refresh-po, to handle no translated
100986         languages.
100988 2006-03-07  Simon Josefsson  <jas@extundo.com>
100990         * modules/getopt (Depends-on): Add unistd.
100992         * modules/unistd: New file.
100994 2006-03-07  Simon Josefsson  <jas@extundo.com>
100996         * modules/gc-random: New file.
100998 2006-03-07  Simon Josefsson  <jas@extundo.com>
101000         * m4/unistd_h.m4: New file.
101002 2006-03-07  Simon Josefsson  <jas@extundo.com>
101004         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
101005         test to be side-effect free by storing the result in the cache
101006         variable gl_cv_lib_readline, and moving the assignment of
101007         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
101008         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101010 2006-03-07  Simon Josefsson  <jas@extundo.com>
101012         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
101013         error on missing devices (the functions will return an error).
101015         * m4/gc.m4: Move random stuff to gc-random.m4
101017 2006-03-07  Simon Josefsson  <jas@extundo.com>
101019         * lib/unistd_.h: New file.
101021 2006-03-07  Simon Josefsson  <jas@extundo.com>
101023         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
101025 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101027         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
101028         Problem reported by Juan Manuel Guerrero.
101030 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101032         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
101033         the unistd module.
101034         * lib/getlogin_r.c: Likewise.
101035         * lib/getlogin_r.h: Likewise.
101036         * lib/glob.c: Likewise.
101037         * lib/pagealign_alloc.c: Likewise.
101038         * lib/unistd_.h: Remove; no longer needed.
101040 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101042         * MODULES.html.sh (Support for systems lacking POSIX:2001):
101043         Add unistd.
101044         * modules/c-stack (Depends-on): Add unistd.
101045         * modules/getlogin_r: Likewise.
101046         * modules/glob: Likewise.
101047         * modules/pagealign_alloc: Likewise.
101048         * modules/unistd (Files): Remove lib/unistd_.h.
101049         (EXTRA_DIST): Remove.
101050         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
101051         need unistd_.h.
101052         (MOSTLYCLEANFILES): Remove unistd.h-t.
101054 2006-03-03  Simon Josefsson  <jas@extundo.com>
101056         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
101058 2006-03-03  Simon Josefsson  <jas@extundo.com>
101060         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
101061         libidn and bison.
101063 2006-03-03  Simon Josefsson  <jas@extundo.com>
101065         * build-aux/maint.mk: Add indent target.
101067 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
101069         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
101070         our replacement poll.h in any case, to avoid a differing
101071         declaration from a system header.  Seen on AIX.
101073 2006-03-01  Simon Josefsson  <jas@extundo.com>
101075         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
101076         <kasal@ucw.cz>.
101078 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101080         * modules/gettime (Depends-on): Add extensions module.
101081         * modules/nanosleep (Depends-on): Likewise.
101082         * modules/settime (Depends-on): Likewise.
101084 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101086         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
101087         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
101088         pedantically.
101089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101090         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
101092         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
101093         not "==".  Reported by Ralf Wildenhues.
101095 2006-03-01  Karl Berry  <karl@gnu.org>
101097         * doc/Copyright/request-*: new files, synced from gnuorg.
101099 2006-03-01  Karl Berry  <karl@gnu.org>
101101         * config/srclist.txt (Copyright/*): new entries.
101103 2006-02-28  Simon Josefsson  <jas@extundo.com>
101105         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
101107 2006-02-27  Simon Josefsson  <jas@extundo.com>
101109         * lib/base64.h: Indent #define's.  From Jim Meyering
101110         <jim@meyering.net>.
101112 2006-02-27  Jim Meyering  <jim@meyering.net>
101114         Revert the change of 2006-02-24, so these files can continue
101115         to be sync'd from gettext.
101116         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
101117         of `config.h'.
101119 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
101121         * modules/intprops: New file.
101122         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
101123         Add intprops.
101124         * modules/getloadavg (Files): Remove lib/intprops.h.
101125         (Depends-on): Add intprops.
101126         * modules/human: Likewise.
101127         * modules/inttostr: Likewise.
101128         * modules/openat: Likewise.
101129         * modules/sig2str: Likewise.
101130         * modules/userspec: Likewise.
101131         * modules/utimecmp: Likewise.
101132         * modules/xnanosleep: Likewise.
101133         * modules/xstrtol: Likewise.
101135 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
101137         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
101138         * modules/lock-tests (TESTS): Use $(EXEEXT).
101139         * modules/tls-tests: Likewise.
101140         * modules/argp-tests: Likewise.
101141         (check_PROGRAMS): New var, replacing...
101142         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
101144 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101146         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
101147         `config.h'.
101149 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
101151         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
101153 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101155         Sync from coreutils.
101156         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
101157         gl_CHDIR_SAFER.
101159 2006-02-22  Jim Meyering  <jim@meyering.net>
101161         Sync from coreutils.
101162         * m4/chdir-safer.m4: New file.
101164 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
101166         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
101167         AT_FDCWD exceeds INT_MAX.
101168         * lib/openat.h (AT_FDCWD): Likewise.
101170 2006-02-17  Eric Blake  <address@hidden>
101172         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
101174 2006-02-16  Simon Josefsson  <jas@extundo.com>
101176         * modules/getaddrinfo (Depends-on): Add sys_socket.
101178 2006-02-15  Simon Josefsson  <jas@extundo.com>
101180         * build-aux/maint.mk: Add dsyntax-check rule.
101182 2006-02-15  Eric Blake  <ebb9@byu.net>
101184         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
101185         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
101186         'present but cannot compile' warnings on cygwin.
101187         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
101188         use ws2tcpip.h if sys/socket.h works.
101189         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
101190         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
101192 2006-02-14  Simon Josefsson  <jas@extundo.com>
101194         * modules/maintainer-makefile (Files): Rename.
101196         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
101197         and (the local) Makefile.cfg to maint-cfg.mk.
101199         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
101200         to the latter.
101202         * modules/maintainer-makefile: New module.
101204         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
101205         severaly stripped to make it possible to build it up from scratch
101206         with reliable tests.
101208         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
101209         fixes to permit overriding the default actions when configure and
101210         makefile are not available.
101212 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
101214         Sync from coreutils.
101215         * modules/lstat (Depends-on): Don't depend on xalloc.
101216         (License): Change from GPL to LGPL, since this is now simply a
101217         replacement for a libc function.
101219 2006-02-14  Jim Meyering  <jim@meyering.net>
101221         Sync from coreutils.
101223         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
101224         failure on deficient systems, and simplify gnulib lgpl dependencies.
101225         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
101226         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
101228         * lib/xalloc-die.c: Remove unused definition of N_.
101230 2006-02-14  Jim Meyering  <jim@meyering.net>
101232         Sync from coreutils.
101233         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
101234         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
101235         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
101236         double-quote uses of that variable, to accommodate the rare case in
101237         which getmntent is available in none of the libraries checked.  This
101238         happens at least on FreeBSD 5.0.
101240 2006-02-13  Simon Josefsson  <jas@extundo.com>
101242         * gnulib-tool (Usage): Fix --import, from
101243         karl@freefriends.org (Karl Berry).
101245 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101247         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
101249 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
101251         * lib/argp-namefrob.h: Restore changes accidentally lost during the
101252         "autoupdate" on 2005-12-12.
101254 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101256         * modules/closeout (Depends-on): Remove atexit.
101258 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
101260         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
101261         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
101263 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
101265         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
101266         __EXTENSIONS__ if this causes compilation to fail.  Problem
101267         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
101268         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
101270 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
101272         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
101273         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
101274         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
101275         All uses changed.
101277 2006-01-26  Simon Josefsson  <jas@extundo.com>
101279         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
101280         prototype is visible on mingw32.
101282         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
101283         for mingw32.
101285         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
101286         mingw32).
101288 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
101290         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
101291         attempt to open for write; this always fails, at least on POSIX
101292         hosts.  This reinstates the 2006-01-09 change, which was
101293         inadvertently removed.
101295 2006-01-26  Bruno Haible  <bruno@clisp.org>
101297         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
101298         Reported by Paul Eggert.
101300 2006-01-26  Bruno Haible  <bruno@clisp.org>
101301             Paul Eggert  <eggert@cs.ucla.edu>
101303         * lib/stdbool_.h (_Bool)
101304         [(! (defined __cplusplus || defined __BEOS__)
101305           && !defined __GNUC__
101306           && !(defined __HP_cc || defined __xlc__
101307                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
101308                || defined __sgi))]:
101309         #define to signed char in these cases too; this simplifies
101310         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
101311         etc., separately) and makes it more conservative.
101313 2006-01-25  Simon Josefsson  <jas@extundo.com>
101315         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
101316         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
101317         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
101319 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
101321         * lib/argp-namefrob.h: Bugfix. Remove stray #
101323 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
101325         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
101326         so that we test the test.
101327         Check for yet another HP-UX cc bug involving *bool |= bool.
101329 2006-01-25  Karl Berry  <karl@gnu.org>
101331         * config/srclist.txt (vasnprintf.c): sync lost.
101333 2006-01-25  Jim Meyering  <jim@meyering.net>
101335         Sync from the stable (b5) branch of coreutils:
101337         * lib/fts.c (fts_children): Don't let close() clobber errno from
101338         failed fchdir().
101340         * lib/fts.c (fts_stat): When following a symlink-to-directory,
101341         don't necessarily interpret stat-fails+lstat-succeeds as indicating
101342         a dangling symlink.  That can also happen at least for ELOOP.
101343         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
101344         FYI, this bug predates the inclusion of fts.c in coreutils.
101346         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
101347         in their own block, so pre-c99 compilers don't object.
101349         Avoid the double-free (first in fts_read, second in fts_close) that
101350         would occur when an `active' directory is made inaccessible (e.g.,
101351         via chmod a-x) during a traversal.
101352         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
101353         before returning.  Reproduce this failure by
101354         mkdir -p a/b; cd a; chmod a-x . b
101355         Reported by Stavros Passas.
101357 2006-01-25  Jim Meyering  <jim@meyering.net>
101359         * lib/fileblocks.c: Remove more useless parentheses.
101360         * lib/readutmp.h: Likewise.
101362 2006-01-25  Bruno Haible  <bruno@clisp.org>
101364         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
101365         warnings.
101366         Reported by Paul Eggert.
101368 2006-01-25  Bruno Haible  <bruno@clisp.org>
101370         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
101371         rid of a trap command. For Solaris sh.
101372         Reported by Mark D. Baushke <mdb@gnu.org>.
101374 2006-01-24  Simon Josefsson  <jas@extundo.com>
101376         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
101377         Bruno.
101379 2006-01-24  Karl Berry  <karl@gnu.org>
101381         * config/srclist.txt (argp-namefrob.h): sync lost.
101383 2006-01-24  Jim Meyering  <jim@meyering.net>
101385         * modules/openat (Files): Add lib/intprops.h.
101386         From Mark D. Baushke.
101388 2006-01-24  Jim Meyering  <jim@meyering.net>
101390         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
101391         Reported by Mark D. Baushke.
101393 2006-01-24  Jim Meyering  <jim@meyering.net>
101395         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
101397 2006-01-24  Bruno Haible  <bruno@clisp.org>
101399         * modules/strnlen (Maintainer): Change from glibc to all.
101401 2006-01-24  Bruno Haible  <bruno@clisp.org>
101403         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
101404         Patch by Paul Eggert.
101406 2006-01-24  Bruno Haible  <bruno@clisp.org>
101408         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
101409         already has it.
101410         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
101411         2005-11-26.
101413         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
101414         'signed char' to avoid problems with the built-in _Bool type.
101415         Reported by Paul Eggert on 2005-11-26.
101417 2006-01-24  Bruno Haible  <bruno@clisp.org>
101419         * gnulib-tool (func_import): Avoid constructing complicated sed
101420         expressions inside backquote.
101421         Report and solution by Mark D. Baushke <mdb@gnu.org>.
101423 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
101425         These changes imported from libc.
101426         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
101427         test and two separate function calls.
101428         * lib/strndup.c (__strndup): Add libc_hidden_def.
101430 2006-01-23  Simon Josefsson  <jas@extundo.com>
101432         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
101433         Remove the test_*_SOURCES variable: automake infers it by default.
101434         * modules/tls-tests: Likewise.
101436 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101438         Work around porting bugs reported by Dieter in
101439         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
101440         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
101441         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
101442         Include "getopt.h" first, to check interface.
101443         (getenv): Declare only if defined HAVE_DECL_GETENV &&
101444         !HAVE_DECL_GETENV.
101445         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
101446         (__strndup): Revert to K&R-style function dfns, the glibc style.
101447         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
101448         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
101449         Include strnlen.h first, to get prototype properly.
101450         (strnlen): Renamed from __strnlen.
101451         Remove weak alias.
101453 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101455         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
101457 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101459         * config/srclist.txt: Adjust to reflect glibc reorganization.
101460         This affects only comments.
101462 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101464          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
101465          Reported by Bruce Korb <bkorb@gnu.org>.
101467 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
101469         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
101470         to pacify gcc -Wswitch-default.
101472 2006-01-22  Bruno Haible  <bruno@clisp.org>
101474         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
101475         temporary buffer for sprintf, take into account the precision also
101476         for 'd', 'i', 'u', 'o', 'x', 'X'.
101478 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101480         * modules/argp-tests: New module
101481         * tests/test-argp.c: New file
101482         * tests/test-argp-2.sh: New file
101484 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
101486         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
101487         (__argp_base_name): Removed
101488         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
101489         typo.
101490         (__argp_base_name): Provide macro definition or extern declaration
101491         depending on the configuration
101493 2006-01-20  Simon Josefsson  <jas@extundo.com>
101495         * modules/inet_ntop (Depends-on): Depend on sys_socket.
101497 2006-01-20  Simon Josefsson  <jas@extundo.com>
101499         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
101501 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101503         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
101504         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
101505         Suggested by Bruno Haible.
101507 2006-01-20  Karl Berry  <karl@gnu.org>
101509         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
101510         until changes propagate, I guess.
101512 2006-01-19  Simon Josefsson  <jas@extundo.com>
101514         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
101516 2006-01-19  Simon Josefsson  <jas@extundo.com>
101518         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
101520 2006-01-19  Simon Josefsson  <jas@extundo.com>
101522         * gnulib-tool: Set check_PROGRAMS.
101524         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
101525         modules/des-tests, modules/gc-arcfour-tests,
101526         modules/gc-arctwo-tests, modules/gc-des-tests,
101527         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
101528         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
101529         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
101530         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
101531         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
101532         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
101533         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
101534         test_*_SOURCES.
101536 2006-01-18  Simon Josefsson  <jas@extundo.com>
101538         * modules/socklen (Depends-on): Depend on sys_socket.
101540 2006-01-18  Simon Josefsson  <jas@extundo.com>
101542         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
101543         modules/des-tests, modules/gc-arcfour-tests,
101544         modules/gc-arctwo-tests, modules/gc-des-tests,
101545         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
101546         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
101547         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
101548         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
101549         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
101550         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
101551         $(EXEEXT) to automake TESTS variable, for mingw32.
101553 2006-01-17  Simon Josefsson  <jas@extundo.com>
101555         * modules/socklen (Include): Need sys/socket.h.
101557 2006-01-17  Bruno Haible  <bruno@clisp.org>
101559         * modules/ssize_t (Include): Add <sys/types.h>.
101561 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
101563         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
101564         it's not portable and it doesn't work with cross-compiles.
101565         Problem reported by Bruno Haible.  Fix missing-$ typo in
101566         'test "gl_cv_ignore_unused_libraries" ...' that prevented
101567         -zignore from being used with Sun's C compiler.
101569 2006-01-12  Simon Josefsson  <jas@extundo.com>
101571         * lib/base64.c: Fix warning, reported by Bruno Haible
101572         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
101574 2006-01-12  Bruno Haible  <bruno@clisp.org>
101576         * modules/ldd: New file.
101577         * build-aux/ldd.sh.in: New file.
101578         * MODULES.html.sh (Support for building libraries and executables): Add
101579         ldd.
101581 2006-01-12  Bruno Haible  <bruno@clisp.org>
101583         * m4/ldd.m4: New file.
101585 2006-01-12  Bruno Haible  <bruno@clisp.org>
101587         * gnulib-tool (func_import, func_create_testdir): Don't go into an
101588         endless loop while replacing $auxdir with build-aux.
101590 2006-01-11  Simon Josefsson  <jas@extundo.com>
101592         * lib/stdint_.h (SIZE_MAX): Add missing (.
101594 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
101596         Sync from coreutils.
101597         * lib/md5.c: Fix commentary typos.
101598         (alignof, UNALIGNED_P): No need for a GCC-specific version.
101599         * lib/md5.h (__attribute__): Remove; unused.
101600         * lib/sha1.c: Fix commentary to match md5 better.
101601         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
101602         so that we don't need to worry about alignment.  All uses changed.
101603         This merges the 2005-10-28 md5 change into sha1.
101605 2006-01-11  Jim Meyering  <jim@meyering.net>
101607         Sync from coreutils.
101608         * lib/md5.c (OP): Fix spacing.
101610 2006-01-11  Bruno Haible  <bruno@clisp.org>
101612         Ensure automatic ordering between gl_LOCK and gl_ARGP.
101613         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
101614         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
101616 2006-01-11  Bruno Haible  <bruno@clisp.org>
101618         Ensure automatic ordering between gl_LOCK and gl_ARGP.
101619         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
101620         the "early" section as well.
101622 2006-01-11  Bruno Haible  <bruno@clisp.org>
101624         Avoid "ar: no archive members specified" error on MacOS X.
101625         * gnulib-tool (func_modules_add_dummy): New function.
101626         (func_import, func_create_testdir): Invoke it.
101628 2006-01-11  Bruno Haible  <bruno@clisp.org>
101630         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
101631         with $auxdir in AC_CONFIG_FILES statements.
101633 2006-01-11  Bruno Haible  <bruno@clisp.org>
101635         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
101636         Initialize also noinst_HEADERS to empty.
101638 2006-01-11  Bruno Haible  <bruno@clisp.org>
101640         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
101641         variables.
101642         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
101643         autoreconf.
101645 2006-01-11  Bruno Haible  <bruno@clisp.org>
101647         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
101648         overridable by the user.
101649         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101651 2006-01-10  Simon Josefsson  <jas@extundo.com>
101653         * modules/sys_socket: New file.
101655 2006-01-10  Simon Josefsson  <jas@extundo.com>
101657         * m4/sys_socket_h.m4: New file.
101659 2006-01-10  Simon Josefsson  <jas@extundo.com>
101661         * lib/socket_.h: New file.
101663 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101665         * modules/readutmp (Maintainer): Add myself.
101667 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101669         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
101670         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
101671         People who are still concerned with buggy memcmp implementations
101672         can invoke gl_FUNC_MEMCMP themselves.
101674 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
101676         * lib/regex_internal.h (BITSET_WORD_BITS):
101677         Work around a bug in 64-bit PGC (before version 6.1-2), where the
101678         preprocessor mishandles large unsigned values as if they were signed.
101679         Problem reported by Claudio Fontana in
101680         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
101682 2006-01-10  Jim Meyering  <jim@meyering.net>
101684         Avoid the double-free (first in fts_read, second in fts_close) that
101685         would occur when an `active' directory is made inaccessible (e.g.,
101686         via chmod a-x) during a traversal.
101687         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
101688         before returning.  Reproduce this failure by
101689         mkdir -p a/b; cd a; chmod a-x . b
101690         Reported by Stavros Passas.
101692         Sync from coreutils.
101693         * lib/sha1.c: Tweak grammar in a comment.
101695 2006-01-10  Jim Meyering  <jim@meyering.net>
101697         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
101698         Patch by Joerg Sonnenberger.
101700 2006-01-10  Bruno Haible  <bruno@clisp.org>
101702         * modules/readutmp: Depend on module free.
101703         * modules/strtok_r: Depend on module restrict.
101705 2006-01-10  Bruno Haible  <bruno@clisp.org>
101707         * modules/gettext (configure.ac): Add an invocation of
101708         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
101710 2006-01-10  Bruno Haible  <bruno@clisp.org>
101712         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
101713         Reported by Werner Lemberg <wl@gnu.org>.
101715 2006-01-10  Bruno Haible  <bruno@clisp.org>
101717         * lib/localcharset.c: Update from GNU gettext.
101719 2006-01-10  Bruno Haible  <bruno@clisp.org>
101721         * lib/argp.h (__const): Remove macro. Use const instead.
101722         * lib/argp-fmtstream.h (__const): Likewise.
101723         * lib/glob_.h (__const): Remove macro.
101724         * lib/glob-libc.h: Use const instead of __const.
101726 2006-01-10  Bruno Haible  <bruno@clisp.org>
101728         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
101729         variable.
101730         Needed to avoid an automake error regarding the 'gettext' module.
101732 2006-01-09  Simon Josefsson  <jas@extundo.com>
101734         * modules/inet_ntop (Depends-on): Add restrict.
101736 2006-01-09  Simon Josefsson  <jas@extundo.com>
101738         * modules/gc-rijndael-tests (License): Put under LGPL.
101740         * modules/gc-des-tests (License): Likewise.
101742         * modules/gc-arcfour-tests (License): Likewise.
101744         * modules/gc-arctwo-tests (License): Likewise.
101746         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
101748         * modules/gc-hmac-sha1-tests (Files): Likewise.
101750         * modules/gc-hmac-md5-tests (License): Likewise.
101752         * modules/gc-sha1-tests (License): Likewise.
101754         * modules/gc-md5-tests (License): Likewise.
101756         * modules/gc-md4-tests (License): Likewise.
101758         * modules/gc-md2-tests (License): Likewise.
101760         * modules/gc-tests (License): Likewise.
101762         * modules/des-tests (License): Likewise.
101764         * modules/md4-tests (License): Likewise.
101766         * modules/md2-tests (License): Likewise.
101768 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101770         Sync from coreutils:
101772         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
101773         * modules/lib-ignore: New file.
101774         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
101775         chdir-safer.m4, lchmod.m4.
101776         * modules/openat: Add mkdirat.c, openat-priv.h.
101778 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101780         Sync from coreutils.
101781         * m4/lib-ignore.m4: New file.
101782         * m4/lchmod.m4: New file.
101784 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101786         Sync from coreutils.
101787         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
101788         for write access: POSIX says that must fail.
101789         * lib/fts.c (diropen): Likewise.
101790         * lib/save-cwd.c (save_cwd): Likewise.
101791         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
101792         well, for minor improvements on hosts that lack O_DIRECTORY.
101793         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
101794         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
101795         Fall back on chown if open failed with EACCES.
101797         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
101798         Report an error at compile-time if only a 1-second nominal clock
101799         resolution is found.
101801         * lib/lchmod.h: New file.
101802         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
101803         (make_dir_parents): Use lchown rather than chown, and
101804         lchmod rather than chmod.
101806         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
101807         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
101808         "proc" reported by n0dalus.
101810         * lib/mountlist.c: Include <limits.h>.
101811         (dev_from_mount_options)
101812         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
101813         New function.  It no longer assumes "dev=" has the System V meaning
101814         on Linux (since it doesn't).  It also parses "dev=" more carefully.
101815         (read_file_system_list)
101816         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
101817         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
101818         dev= in that case.
101820         * lib/posixtm.h (PDS_PRE_2000): New macro.
101821         * lib/posixtm.c (year): Arg is now syntax_bits rather than
101822         allow_century.  All usages changed.  Reject dates outside the range
101823         1969-1999 if PDS_PRE_2000 is used.
101825 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
101827         Sync from coreutils.
101828         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
101829         (Time of day items): Mention the possibility of leap seconds.
101830         Problem reported by Dr. David Alan Gilbert.
101832 2006-01-09  Jim Meyering  <jim@meyering.net>
101834         Sync from coreutils.
101836         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
101838         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
101840         * lib/modechange.c (mode_compile): Reject an invalid mode string
101841         that starts with an octal digit.  From Andreas Gruenbacher.
101843         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
101844         and dup to open_safer and dup_safer, respectively.
101845         (openat_permissive): Fix typo in comment.
101847         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
101848         "gettext.h"; either no longer needed or are guaranteed by openat.h.
101849         (_): Remove; no longer needed.
101850         (openat): Renamed from rpl_openat; no need for rpl_openat
101851         since openat.h renames openat for us.
101852         Replace most of the body with a call to openat_permissive,
101853         to avoid duplicate code.
101854         Port to (probably hypothetical) environments were mode_t is
101855         wider than int.
101856         (openat_permissive): Require mode arg, so that we can check
101857         types better.  Put it just after flags.  Change cwd failure
101858         indicator from pointer-to-bool to pointer-to-errno-value.
101859         All callers changed.
101860         Invoke openat_save_fail and/or openat_restore_fail if
101861         cwd_errno is null, so that openat can call us.
101862         (openat_permissive, fdopendir, fstatat, unlinkat):
101863         Simplify errno handling to avoid some duplicate code,
101864         as it's OK to set errno on success.
101865         * lib/openat.h: Revamp code so that function macros depend on
101866         __OPENAT_PREFIX only, not also on AT_FDCWD.
101867         (openat_ro): Remove.  Caller changed to use openat_permissive.
101868         (openat_permissive): Now a macro, if not a function.
101869         (openat_restore_fail, openat_save_fail): Now always functions,
101870         since mkdirat needs them even if __OPENAT_PREFIX is defined.
101872         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
101873         and openat.c.
101874         * lib/mkdirat.c: Include openat-priv.h.
101875         Remove definitions of macros defined therein.
101876         * lib/openat.c: Likewise.
101878         * lib/mkdirat.c (mkdirat): New file and function.
101879         * lib/openat.h (mkdirat): Declare.
101881         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
101883         * lib/openat.h (openat_permissive): Declare.
101884         (openat_ro): Define.
101886         * lib/openat.c (EXPECTED_ERRNO): New macro.
101887         (openat_permissive): New function -- used in remove.c rewrite.
101888         (all functions): Set errno just before returning, only if there
101889         was an actual failure.
101890         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
101892         Emulate openat-family functions using Linux's procfs, if possible.
101893         Idea and some code based on Ulrich Drepper's glibc changes.
101895         * lib/openat.c: (BUILD_PROC_NAME): New macro.
101896         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
101897         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
101898         before falling back on save_cwd and restore_cwd.
101899         (fdopendir, fstatat, unlinkat): Likewise.
101901         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
101902         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
101904         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
101905         as second argument to va_arg.  Otherwise, some versions of gcc
101906         warn that `if this code is reached, the program will abort'.
101908 2006-01-09  Jim Meyering  <jim@meyering.net>
101910         Sync from coreutils.
101911         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
101912         Require openat-priv.h.
101914 2006-01-09  Bruno Haible  <bruno@clisp.org>
101916         * modules/strnlen (Include): Use strnlen.h.
101918 2006-01-09  Bruno Haible  <bruno@clisp.org>
101920         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
101922 2006-01-09  Bruno Haible  <bruno@clisp.org>
101924         * lib/sysexit_.h (EX_OK): New macro.
101925         Suggested by Martin Lambers <marlam@marlam.de>.
101927 2006-01-09  Bruno Haible  <bruno@clisp.org>
101929         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
101930         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
101932 2006-01-09  Bruno Haible  <bruno@clisp.org>
101934         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
101935         numbers.
101937 2006-01-09  Bruno Haible  <bruno@clisp.org>
101939         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
101940         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
101941         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
101942         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
101944 2006-01-09  Bruno Haible  <bruno@clisp.org>
101946         * build-aux/javacomp.sh.in: New file, moved from lib/.
101947         * modules/javacomp-script (Files): Update.
101948         (configure.ac): Add AC_CONFIG_FILES invocation.
101949         (EXTRA_DIST): Remove variable.
101951         * build-aux/javaexec.sh.in: New file, moved from lib/.
101952         * modules/javaexec (Files): Update.
101953         (configure.ac): Add AC_CONFIG_FILES invocation.
101954         (EXTRA_DIST): Remove javaexec.sh.in.
101956         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
101957         * modules/csharpcomp-script (Files): Update.
101958         (configure.ac): Add AC_CONFIG_FILES invocation.
101959         (EXTRA_DIST): Remove variable.
101961         * build-aux/csharpexec.sh.in: New file, moved from lib/.
101962         * modules/csharpexec (Files): Update.
101963         (configure.ac): Add AC_CONFIG_FILES invocation.
101964         (EXTRA_DIST): Remove csharpexec.sh.in.
101966 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
101968         Sync from coreutils.
101970         Add POSIX ACL support
101971         * lib/acl.h (copy_acl, set_acl): Add declarations.
101972         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
101973         systems other than Linux.
101974         (chmod_or_fchmod): New function: use fchmod when possible,
101975         and chmod otherwise.
101976         (file_has_acl): Add a POSIX ACL implementation, with a
101977         Linux-specific subcase.
101978         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
101979         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
101980         acls are unsupported.
101981         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
101982         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
101983         are unsupported.
101985 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
101987         Sync from coreutils.
101988         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
101990 2006-01-07  Bruno Haible  <bruno@clisp.org>
101992         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
101993         gl_EARLY.
101995 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
101997         * lib/strftime.c (tzname): Don't declare if it is already #defined.
101998         Problem reported for Mingw by Mark Junker.
102000 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102002         * README: Gnulib normally doesn't generate a tarball.
102004 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
102006         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
102007         long int, not int, for nanosecond counts, so that people who are
102008         used to POSIX struct timespec won't be surprised.  Reported by Jim
102009         Meyering.
102011 2005-12-28  Bruno Haible  <bruno@clisp.org>
102013         * build-aux/config.rpath: Update from GNU gettext.
102015 2005-12-16  Jim Meyering  <jim@meyering.net>
102017         * modules/fprintftime: New module.
102018         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
102020 2005-12-16  Jim Meyering  <jim@meyering.net>
102022         * m4/fprintftime.m4: New file.
102024 2005-12-16  Jim Meyering  <jim@meyering.net>
102026         * lib/fprintftime.c, lib/fprintftime.h: New files.
102028 2005-12-15  Simon Josefsson  <jas@extundo.com>
102030         * modules/socklen (configure.ac): Fix M4 macro name, to align with
102031         new m4/socklen.m4.
102033 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102035         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
102036         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
102038 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102040         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
102041         * lib/argp-help.c (fill_in_uparams): Check if the constructed
102042         struct uparams is valid. Fall back to the default values if it is
102043         not.
102045 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102047         * modules/argp (Files): Add argp-pin.c
102048         (Depends-on): dirname
102049         (lib_SOURCES): Add argp-pin.c
102051 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102053         * m4/argp.m4:  Check if program_invocation_name and
102054         program_invocation_short_name are declared and define appropriate
102055         macros if they are not.
102057 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102059         * lib/argp-help.c (__argp_base_name): New function
102060         (__argp_short_program_name): Rewrite using __argp_base_name
102061         * lib/argp-namefrob.h: Define program_invocation_name and
102062         program_invocation_short_name if requested
102063         (__argp_base_name): Add prototype
102064         * lib/argp-parse.c (argp_def): Use gettext wrappers
102065         (argp_default_parser): Use __argp_base_name
102066         * lib/argp-pin.c: New file. Defines program_invocation_name and
102067         program_invocation_short_name on systems that lack them.
102069 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102071         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
102072         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102073         porting problem reported by Georg Schwarz in
102074         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102076 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102078         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
102079         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102080         porting problem reported by Georg Schwarz in
102081         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102083 2005-12-05  Bruno Haible  <bruno@clisp.org>
102085         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
102086         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
102087         Reported by Mark Junker <mjscod@gmx.de>.
102089 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
102091         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
102092         Use implementation from Albert Chin, with some
102093         comments/corrections by Stepan Kasal and myself.
102095 2005-12-02  Bruno Haible  <bruno@clisp.org>
102097         * gnulib-tool (func_import): Accept GPLed build tool modules when
102098         --lgpl is given.
102099         * modules/csharpcomp-script: New file.
102100         * modules/csharpcomp: Depend on it.
102101         * modules/javacomp-script: New file.
102102         * modules/javacomp: Depend on it.
102103         Suggested by Simon Josefsson.
102105 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
102107         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
102108         statement, to work around an HP-UX 10.20 compiler bug reported by
102109         Peter O'Gorman.
102111 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102113         * modules/savedir (Depends-on): Add openat.
102115 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102117         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
102118         (uintmax_t) [defined uintmax_t]: Do not declare.
102119         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
102120         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
102121         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
102122         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
102123         sake of portability to weird hosts that C allows (though we don't
102124         know of any practical examples).
102126         * lib/savedir.h (fdsavedir): New decl.
102127         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
102128         contains most of the former guts of savedir.
102129         (savedir): Use savedirstream.
102130         Include "openat.h".
102132 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
102134         * modules/obstack (Files): Add m4/ulonglong.m4.
102135         Problem reported by Davide Angelocola.
102137 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
102139         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
102140         coreutils no longer futzes with rounding modes.
102142 2005-11-14  Jim Meyering  <jim@meyering.net>
102144         * lib/mkstemp-safer.c: Include <config.h>, required for possible
102145         replacement of mkstemp.
102147 2005-11-10  Simon Josefsson  <jas@extundo.com>
102149         * lib/readline.c: Remove EOL.
102151 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102153         * modules/gethrxtime (Depends-on): Add gettime.
102155 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102157         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
102158         or gettimeofday; no longer needed.
102160 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102162         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
102163         time business.
102164         (gethrxtime) [! (HAVE_NANOUPTIME
102165         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
102166         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
102167         our own approximation.
102169 2005-11-08  Eric Blake  <ebb9@byu.net>
102171         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102173 2005-11-08  Eric Blake  <ebb9@byu.net>
102175         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102177 2005-11-04  Bruno Haible  <bruno@clisp.org>
102179         * gnulib-tool: Implement --update mode.
102181 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102183         Fix porting problem reported by Theodoros V. Kalamatianos.
102184         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
102185         Don't assume that futimes failing means we must fail.
102187 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102189         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
102190         variables to suggest the intended function of the PATH_MAX check.
102192 2005-10-30  Kean Johnston  <jkj@sco.com>
102194         Trivial changes to support SCO systems.
102195         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
102196         as PATH_MAX.
102197         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
102198         where __ptr is null when no I/O is pending.
102200 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102202         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
102203         leave errno alone.  Problem reported by Dmitry V. Levin.
102205 2005-10-28  Simon Josefsson  <jas@extundo.com>
102207         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
102208         Test more.
102210         * tests/test-gc-md2.c, tests/test-md2.c: New files.
102212         * modules/md2, modules/md2-tests: New files.
102214 2005-10-28  Simon Josefsson  <jas@extundo.com>
102216         * m4/inet_ntop.m4: More tests.
102218         * m4/gc-md2.m4, md2.m4: New file.
102220 2005-10-28  Simon Josefsson  <jas@extundo.com>
102222         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
102223         "restrict" keywords, as per POSIX.  Protect the function
102224         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
102225         Don't use K&R prototypes.  Check the sprintf return values.
102226         Re-define EAFNOSUPPORT if not present.  Indent.
102228         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
102229         suggested by Bruno Haible <bruno@clisp.org>.
102231         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
102233         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
102235         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
102236         libgcrypt).
102238         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
102240         * lib/md2.h, lib/md2.c: New files.
102242 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
102244         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
102245         errno alone.  Problem reported by Frederic Jolliton.
102247 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
102249         * modules/verify (License): Change from GPL to LGPL.  This is a
102250         tiny module and there are apparently near-equivalents that are
102251         under the BSD license.
102253 2005-10-24  Simon Josefsson  <jas@extundo.com>
102255         * modules/sha1: Relicense to LGPL.
102257 2005-10-24  Simon Josefsson  <jas@extundo.com>
102259         * lib/md4.h: Shrink buffer size, now that we changed the type.
102261 2005-10-23  Simon Josefsson  <jas@extundo.com>
102263         * gnulib-tool (func_import): Fix --tests-base.
102265 2005-10-22  Simon Josefsson  <jas@extundo.com>
102267         * modules/arcfour (Depends-on): Need stdint.
102269 2005-10-22  Simon Josefsson  <jas@extundo.com>
102271         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
102272         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
102274 2005-10-22  Simon Josefsson  <jas@extundo.com>
102276         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
102277         suggested by Bruno Haible <bruno@clisp.org>.
102279 2005-10-22  Simon Josefsson  <jas@extundo.com>
102281         * lib/crc.h: Include stddef.h, for size_t.
102283 2005-10-22  Simon Josefsson  <jas@extundo.com>
102285         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
102286         arcfour_context struct (simplify test vector testing in GNU
102287         Shishi).
102289 2005-10-21  Simon Josefsson  <jas@extundo.com>
102291         * modules/des, modules/des-tests: New files.
102293         * modules/gc-des, modules/gc-des-tests: New files.
102295         * tests/test-des.c, tests/test-gc-des.c: New file.
102297 2005-10-21  Simon Josefsson  <jas@extundo.com>
102299         * modules/arctwo, modules/arctwo-tests: New files.
102301         * tests/test-arctwo.c: New file.
102303         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
102305         * tests/test-gc-arctwo.c: New file.
102307 2005-10-21  Simon Josefsson  <jas@extundo.com>
102309         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
102310         Bruno Haible <bruno@clisp.org>.
102312         * m4/gc-des.m4: New file.
102314 2005-10-21  Simon Josefsson  <jas@extundo.com>
102316         * m4/arctwo.m4: New file.
102318         * m4/gc-arctwo.m4: New file.
102320 2005-10-21  Simon Josefsson  <jas@extundo.com>
102322         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
102323         block.
102325 2005-10-21  Simon Josefsson  <jas@extundo.com>
102327         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
102328         <bruno@clisp.org>.
102330         * lib/hmac-sha1.c (hmac_sha1): Likewise.
102332         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
102333         Bruno Haible <bruno@clisp.org>.
102335         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
102336         <bruno@clisp.org>.
102338 2005-10-21  Simon Josefsson  <jas@extundo.com>
102340         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
102342 2005-10-21  Simon Josefsson  <jas@extundo.com>
102344         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
102346 2005-10-21  Simon Josefsson  <jas@extundo.com>
102348         * lib/des.h, lib/des.c: New files.
102350         * lib/gc-gnulib.c: Support DES.c
102352 2005-10-21  Simon Josefsson  <jas@extundo.com>
102354         * lib/arctwo.h, lib/arctwo.c: New files.
102356         * lib/gc-gnulib.c: Support ARCTWO.
102358 2005-10-21  Simon Josefsson  <jas@extundo.com>
102360         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
102361         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102363 2005-10-21  Simon Josefsson  <jas@extundo.com>
102365         * gnulib-tool (func_import, func_create_testdir): Define automake
102366         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
102367         Makefile.am snippet),
102368         suggested by Bruno Haible <bruno@clisp.org>.
102370         * modules/gc (Makefile.am): Use it.
102372 2005-10-21  Bruno Haible  <bruno@clisp.org>
102374         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
102375         patch.
102377 2005-10-19  Simon Josefsson  <jas@extundo.com>
102379         * tests/test-gc-rijndael.c: New file.
102381         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
102383 2005-10-19  Simon Josefsson  <jas@extundo.com>
102385         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
102386         interface too.
102388 2005-10-19  Simon Josefsson  <jas@extundo.com>
102390         * tests/test-gc-arcfour.c: New file.
102392         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
102394 2005-10-19  Simon Josefsson  <jas@extundo.com>
102396         * modules/gc-md4, modules/gc-md4-tests: New file.
102398         * tests/test-gc-md4.c: New file.
102400 2005-10-19  Simon Josefsson  <jas@extundo.com>
102402         * m4/gc-md4.m4: New file.
102404 2005-10-19  Simon Josefsson  <jas@extundo.com>
102406         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
102407         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
102408         <kasal@ucw.cz>.
102410 2005-10-19  Simon Josefsson  <jas@extundo.com>
102412         * m4/gc-arcfour.m4: New file.
102414         * m4/gc-rijndael.m4: New file.
102416 2005-10-19  Simon Josefsson  <jas@extundo.com>
102418         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
102420 2005-10-19  Simon Josefsson  <jas@extundo.com>
102422         * lib/gc-gnulib.c: Support ARCFOUR.
102424 2005-10-19  Simon Josefsson  <jas@extundo.com>
102426         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
102427         support.
102429         * lib/gc.h: Add ECB enum type.
102431         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
102433 2005-10-18  Simon Josefsson  <jas@extundo.com>
102435         * tests/test-md5.c: New file.
102437         * modules/md5-tests: New file.
102439 2005-10-18  Simon Josefsson  <jas@extundo.com>
102441         * tests/test-md4.c: New file.
102443         * modules/md4, modules/md4-tests: New files.
102445 2005-10-18  Simon Josefsson  <jas@extundo.com>
102447         * m4/md4.m4: New file.
102449 2005-10-18  Simon Josefsson  <jas@extundo.com>
102451         * lib/md4.h, lib/md4.c: New files, based on md5.?.
102453 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
102455         * gnulib-tool (func_create_testdir): Omit the second check whether
102456         BUILT_SOURCES in nonempty.
102458 2005-10-17  Simon Josefsson  <jas@extundo.com>
102460         * tests/test-rijndael.c: New file.
102462 2005-10-17  Simon Josefsson  <jas@extundo.com>
102464         * modules/sha1: Depend on stdint instead of md5.
102466         * modules/md5: Depend on stdint, remove uint32_t.
102468 2005-10-17  Simon Josefsson  <jas@extundo.com>
102470         * modules/gc-sha1-tests: New file.
102472         * tests/test-gc-sha1.c: New file.
102474 2005-10-17  Simon Josefsson  <jas@extundo.com>
102476         * m4/md5.m4: Remove call to uint32_t.m4.
102478 2005-10-17  Simon Josefsson  <jas@extundo.com>
102480         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
102482         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
102483         md5.h.
102485         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
102487         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
102489 2005-10-17  Simon Josefsson  <jas@extundo.com>
102491         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
102493 2005-10-17  Simon Josefsson  <jas@extundo.com>
102495         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
102497 2005-10-17  Simon Josefsson  <jas@extundo.com>
102499         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
102501         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
102503 2005-10-17  Bruno Haible  <bruno@clisp.org>
102505         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
102506         that it can also be used in a test.
102508 2005-10-16  Bruno Haible  <bruno@clisp.org>
102510         * gnulib-tool (func_emit_tests_Makefile_am): Also define
102511         TESTS_ENVIRONMENT, so that individual tests can augment it.
102513         * gnulib-tool (func_create_testdir): Use an intermediate target for
102514         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
102515         macros, like $(ALLOCA_H), which cannot be passed through the command
102516         line.
102518 2005-10-15  Simon Josefsson  <jas@extundo.com>
102520         * modules/rijndael-tests: New file.
102522         * modules/rijndael: New file.
102524 2005-10-15  Simon Josefsson  <jas@extundo.com>
102526         * m4/rijndael.m4: New file.
102528 2005-10-15  Simon Josefsson  <jas@extundo.com>
102530         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
102532         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
102534 2005-10-14  Simon Josefsson  <jas@extundo.com>
102536         * tests/test-arcfour.c: New file.
102538         * modules/arcfour, modules/arcfour-tests: New files.
102540 2005-10-14  Simon Josefsson  <jas@extundo.com>
102542         * m4/arcfour.m4: New file.
102544 2005-10-14  Simon Josefsson  <jas@extundo.com>
102546         * lib/arcfour.h, lib/arcfour.c: New files.
102548 2005-10-14  Roland McGrath  <roland@redhat.com>
102550         Import from libc.  [BZ #1331]
102551         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
102552         macro argument.
102553         Reported by Matej Vela <vela@debian.org>.
102555 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102557         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
102558         include <wchar.h>; no longer needed.
102560 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
102562         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
102564 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
102565         and  Ulrich Drepper  <drepper@redhat.com>
102567         Import from libc.
102568         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
102569         instead of inline stream orientation test and two separate
102570         function calls.  Pay no attention to USE_IN_LIBIO.
102572 2005-10-13  Simon Josefsson  <jas@extundo.com>
102574         * modules/gc-hmac-md5-tests: New file.
102576         * tests/test-gc-hmac-sha1.c: New file.
102578         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
102580         * modules/gc-hmac-md5-tests: New file.
102582         * tests/test-gc-md5.c: New file.
102584         * modules/gc-md5-tests: New file.
102586 2005-10-13  Simon Josefsson  <jas@extundo.com>
102588         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
102589         Move memory allocation outside of loop.
102591 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
102593         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
102594         intermediate directory is in a read-only file system.  Problem
102595         reported by Eric Blake.
102597 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
102599         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
102601 2005-10-12  Simon Josefsson  <jas@extundo.com>
102603         * tests/test-hmac-sha1.c: New file.
102605         * modules/hmac-sha1-tests: New file.
102607         * modules/hmac-sha1: New file.
102609 2005-10-12  Simon Josefsson  <jas@extundo.com>
102611         * modules/gc-sha1: New file.
102613 2005-10-12  Simon Josefsson  <jas@extundo.com>
102615         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
102617         * tests/test-gc-pbkdf2-sha1.c: New file.
102619 2005-10-12  Simon Josefsson  <jas@extundo.com>
102621         * modules/gc-md5, modules/gc-hmac-md5: New files.
102623         * modules/gc (Files): Remove md5, memxor and hmac files.
102625 2005-10-12  Simon Josefsson  <jas@extundo.com>
102627         * m4/gc-pbkdf2-sha1.m4: New file.
102629         * m4/gc-hmac-sha1.m4: New file.
102631         * m4/gc-sha1: New file.
102633         * m4/hmac-sha1.m4: New file.
102635 2005-10-12  Simon Josefsson  <jas@extundo.com>
102637         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
102639         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
102641 2005-10-12  Simon Josefsson  <jas@extundo.com>
102643         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
102644         suggested by Bruno Haible <bruno@clisp.org>.
102646 2005-10-12  Simon Josefsson  <jas@extundo.com>
102648         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
102650 2005-10-12  Simon Josefsson  <jas@extundo.com>
102652         * lib/gc-pbkdf2-sha1.c: New file.
102654         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
102656 2005-10-12  Simon Josefsson  <jas@extundo.com>
102658         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
102660         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
102662 2005-10-12  Simon Josefsson  <jas@extundo.com>
102664         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
102665         GC_USE_HMAC_MD5, respectively.
102667         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
102668         (gc_md5): Fix typo.
102670         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
102672         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
102674         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
102676 2005-10-12  Bruno Haible  <bruno@clisp.org>
102678         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
102679         Reported by Stepan Kasal <kasal@ucw.cz>.
102681 2005-10-11  Simon Josefsson  <jas@extundo.com>
102683         * tests/test-crc.c: New file.
102685         * modules/crc, modules/crc-tests: New files.
102687 2005-10-11  Simon Josefsson  <jas@extundo.com>
102689         * m4/crc.m4: New file.
102691 2005-10-11  Simon Josefsson  <jas@extundo.com>
102693         * lib/gc.h: Add gc_hash and gc_hash_buffer.
102695         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
102697         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
102699 2005-10-11  Simon Josefsson  <jas@extundo.com>
102701         * lib/crc.h, lib/crc.c: New files.
102703         * lib/gc.h (gc_hash_buffer): Add doc.
102705 2005-10-11  Bruno Haible  <bruno@clisp.org>
102707         * modules/c-strcasestr: New file.
102708         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
102710 2005-10-11  Bruno Haible  <bruno@clisp.org>
102712         * modules/c-strcase: New file.
102713         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
102715 2005-10-11  Bruno Haible  <bruno@clisp.org>
102717         * lib/strcasecmp.c: Include limits.h.
102718         (strcasecmp): Avoid integer overflow on exotic platforms.
102719         * lib/strncasecmp.c: Include limits.h.
102720         (strncasecmp): Avoid integer overflow on exotic platforms.
102721         Reported by Paul Eggert.
102723 2005-10-11  Bruno Haible  <bruno@clisp.org>
102725         * lib/c-strcasestr.h: New file, from GNU gettext.
102726         * lib/c-strcasestr.c: New file, from GNU gettext.
102728 2005-10-11  Bruno Haible  <bruno@clisp.org>
102730         * lib/c-strcase.h: New file, from GNU gettext.
102731         * lib/c-strcasecmp.c: New file, from GNU gettext.
102732         * lib/c-strncasecmp.c: New file, from GNU gettext.
102734 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
102736         * modules/mempcpy (License): GPL -> LGPL.
102737         * modules/strchrnul (License): Likewise.
102738         * modules/sysexits (License): Likewise.
102740 2005-10-08  Simon Josefsson  <jas@extundo.com>
102742         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
102744 2005-10-07  Simon Josefsson  <jas@extundo.com>
102746         * m4/memxor.m4: Remove gl_C_RESTRICT call.
102748 2005-10-06  Simon Josefsson  <jas@extundo.com>
102750         * tests/test-hmac-md5.c: New file.
102752         * modules/hmac-md5-tests: New file.
102754         * modules/hmac-md5: New file.
102756 2005-10-06  Simon Josefsson  <jas@extundo.com>
102758         * m4/hmac-md5.m4: New file.
102760         * m4/memxor.m4: Require gl_C_RESTRICT.
102762 2005-10-06  Simon Josefsson  <jas@extundo.com>
102764         * lib/memxor.c (memxor): Avoid casts and warnings.
102766 2005-10-06  Simon Josefsson  <jas@extundo.com>
102768         * lib/hmac-md5.c: New file.
102770         * lib/hmac.h: New file.
102772 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
102774         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
102775         promotes to int, not unsigned int, to catch the AIX 5.3
102776         compiler bug.
102778 2005-10-05  Simon Josefsson  <jas@extundo.com>
102780         * modules/memxor: New file.
102782         * modules/iconv (Files): Move config.rpath to havelib, it is used
102783         there.
102785         * modules/havelib (Files): Add config.rpath.
102787 2005-10-05  Simon Josefsson  <jas@extundo.com>
102789         * m4/memxor.m4: New file.
102791 2005-10-05  Simon Josefsson  <jas@extundo.com>
102793         * lib/memxor.c (memxor): Fix compiler error.
102795         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
102796         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
102798         * lib/memxor.h, lib/memxor.c: New files.
102800         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
102801         we assume all systems have it, suggested by Jim Meyering
102802         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
102803         any systems lack sys/socket.h; mingw32 is known to lack it, but we
102804         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
102805         same reasons.
102807 2005-10-05  Simon Josefsson  <jas@extundo.com>
102809         * config/srclist.txt: Add glibc bug 1423 for md5.h.
102811 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
102813         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
102814         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
102815         needed, since the source code now assumes these .h files.
102817 2005-10-05  Derek Price  <derek@ximbiot.com>
102819         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
102821 2005-10-05  Bruno Haible  <bruno@clisp.org>
102823         * modules/stdint (License): Change to LGPL.
102825 2005-10-04  Simon Josefsson  <jas@extundo.com>
102827         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
102828         D. Baushke" <mdb@gnu.org>.
102830 2005-10-04  Bruno Haible  <bruno@clisp.org>
102832         * lib/verify.h (verify_true): Provide alternative definition for C++.
102834 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
102836         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
102837         (SSIZE_MAX): New macro, if not already defined.
102838         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
102839         than 2 GiB.
102841 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
102843         Sync from coreutils.
102844         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
102845         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
102846         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
102847         ULLONG_MAX doesn't work with 2.7.2.1.
102849 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
102851         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
102852         From Ben Pfaff.
102854         * modules/exclude (Depends-on): Depend on verify.
102855         * modules/strtoimax (Depends-on): Likewise.
102856         * modules/utimecmp (Depends-on): Likewise.
102858 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
102860         * lib/exclude.c: Include verify.h.
102861         (verify): Remove.  All callers changed to use verify.h's version.
102862         * lib/strtoimax.c: Likewise.
102863         * lib/utimecmp.c: Likewis.e
102865         Sync from coreutils.
102866         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
102867         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
102868         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
102869         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
102870         bother returning ENOSYS if settimeofday or stime fails; just let
102871         them return whatever errno they want to return.
102872         * lib/utimens.c: Include unistd.h, for dup2.
102873         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
102874         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
102876 2005-10-02  Jim Meyering  <jim@meyering.net>
102878         Sync from coreutils.
102879         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
102880         from glibc-2.2.5 that fails for read-only files.
102882 2005-10-02  Jim Meyering  <jim@meyering.net>
102884         Sync from coreutils.
102885         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
102886         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
102887         `#if HAVE_CONFIG_H'.
102888         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
102889         Remove AT_FDCWD test.
102890         Do not consume the fd unless successful.
102891         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
102892         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
102893         block, so that we don't even try to compile it if settimeofday is
102894         available.  This works around a compilation failure on OSF1 V5.1,
102895         due to stime requiring a `long int*' while tv_sec is `int'.
102897 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
102899         Sync from coreutils.
102900         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
102901         against `yes', rather than just testing for nonempty.
102903 2005-10-01  Simon Josefsson  <jas@extundo.com>
102905         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
102906         and Darwin.
102908         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
102909         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
102910         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
102911         freeaddrinfo and gai_strerror are declared by the POSIX headers.
102912         Check if struct addrinfo is declared.
102914 2005-10-01  Simon Josefsson  <jas@extundo.com>
102916         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
102917         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
102918         AI_* and EAI_* definitions.  Protect function declarations.
102920 2005-10-01  Jim Meyering  <jim@meyering.net>
102922         Sync from coreutils.
102924         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
102925         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
102926         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
102927         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
102928         in the inet and nsl libraries.  Required on Solaris 5.7.
102930 2005-10-01  Jim Meyering  <jim@meyering.net>
102932         Sync from coreutils.
102933         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
102934         in the inet and nsl libraries.  Required on Solaris 5.7.
102936 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
102938         * lib/getdelim.c (getdelim): Remove unused variables.
102940 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
102942         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
102943         so that the code works even with ancient cpp.  Portability problem
102944         with GCC 2.7.2.1 reported by Thomas M.Ott.
102946 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
102948         * modules/regex (Depends-on): Add strcase.
102950         * modules/gethostname (Licence): Change from GPL to LGPL, since
102951         gethostname.c is a trivial implementation of a standard library
102952         function.
102953         * modules/poll (License): Change from GPL to LGPL, since it's
102954         derived from LGPL code.
102956 2005-09-27  Jim Meyering  <jim@meyering.net>
102958         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
102959         HAVE_CONFIG_H.
102961         * lib/intprops.h (signed_type_or_expr__): Define.
102962         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
102963         for unsigned types.
102965 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
102967         * lib/verify.h (verify_expr): Remove, replacing with:
102968         (verify_true): New macro that returns true instead of void.
102969         (verify_type__): Remove.
102970         (verify): Use verify_true rather than verify_type__.
102972 2005-09-26  Bruno Haible  <bruno@clisp.org>
102974         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
102975         is necessary.
102976         (lib_SOURCES): Remove mbchar.c.
102977         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
102978         (Files): Add m4/mbrtowc.m4.
102979         * modules/mbiter: Likewise.
102980         * modules/mbuiter: Likewise.
102982 2005-09-26  Bruno Haible  <bruno@clisp.org>
102984         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
102985         compile mbchar.c if they are not both present.
102986         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
102987         * m4/mbiter.m4 (gl_MBITER): Likewise.
102988         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
102989         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
102990         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
102992 2005-09-25  Jim Meyering  <jim@meyering.net>
102994         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
102995         also uses socklen_t.
102997 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
102999         * lib/utimens.c (ENOSYS): Define if not already defined.
103000         (futimens): Support having a null PATH if the file descriptor
103001         is nonnegative.
103003         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
103004         Remove.
103005         (__attribute): Define to empty unless GCC 3.1 or later.
103006         This works around a core dump on OpenBSD 3.4, which has GCC
103007         2.95.3, which dumps core when given __attribute__(()).  It also
103008         simplifies other tests, since we really don't want to bother with
103009         worrying about which ancient version of GCC supported what.
103010         Original problem reported by Yoann Vandoorselaere, with part of
103011         the fix suggested by Derek Price.
103013 2005-09-24  Jim Meyering  <jim@meyering.net>
103015         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
103016         so we can once again use a positive bitfield width of 1 -- now we
103017         don't have to explain why we were using a bitfield width of 2.
103019 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103021         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
103022         and similarly for the other external symbols.  Problem reported
103023         by James Gallager.
103025         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
103026         bug reported by Jim Meyering.
103028         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
103029         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
103030         not needed, since socklen is a prerequisite module.
103032 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103034         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
103035         Problem reported by Eric Blake.
103036         (getaddrinfo): Initialize se so that it's not garbage.
103037         Redo internal storage allocation so that it doesn't make unportable
103038         assumptions about alignment.
103039         Fix a memory leak.
103041         * lib/utimens.c (futimens): Use futimesat if available.
103042         Prefer it to futimes since it doesn't have the futimes bug.
103044         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
103045         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
103046         Instead, declare a function that returns a pointer to an array,
103047         and use verify_type__ to declare the size of the array.
103048         Problem and germ of a solution reported by Bruno Haible.
103049         (verify_type__): Use 2, not 1, for bitfield size, to avoid
103050         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
103052 2005-09-23  Jim Meyering  <jim@meyering.net>
103054         Sync from coreutils.
103055         Correct build failure (socklen_t not defined) on at least
103056         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
103057         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
103059 2005-09-23  Jim Meyering  <jim@meyering.net>
103061         * modules/getaddrinfo (Depends-on): Add socklen.
103063 2005-09-23  Bruno Haible  <bruno@clisp.org>
103065         * tests/test-verify.c: New file.
103067 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103069         Sync from coreutils.
103071         * modules/argmatch (Depends-on): Add verify.
103072         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
103073         unistd-safer.
103074         * modules/save-cwd (Depends-on): Likewise.
103076         * modules/openat (Files): Add lib/openat-die.c.
103077         (Depends-on): Remove error, exitfail.
103078         Add dirname.
103080         * modules/verify: New file.
103081         * MODULES.html.sh (Diagnostics <assert.h>): New section,
103082         with "verify" module.
103084 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103086         Sync from coreutils.
103088         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
103089         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
103090         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
103091         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
103092         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
103093         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
103094         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
103095         Don't bother checking for string.h, stdlib.h, unistd.h.
103096         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
103097         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
103098         module's job.
103099         * m4/jm-macros.m4 (gl_MACROS): Likewise.
103100         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
103102         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
103103         (gl_GETDATE): Use it.
103105         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
103107 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103109         Sync from coreutils.
103111         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
103112         stat-time.h.
103113         * lib/argmatch.h: Include verify.h
103114         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
103115         (ARGMATCH_ASSERT): Remove; unused.
103116         * lib/canonicalize.c: Assume STDC_HEADERS.
103117         * lib/exclude.c: Include "strcase.h".
103118         * lib/regex_internal.h [!defined _LIBC]: Likewise.
103119         * lib/getusershell.c: Include stdio--.h rather than stdio.h
103120         and stdio-safer.h.
103121         (getusershell): Call fopen, not fopen_safer.
103122         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
103123         Do not include unistd-safer.h.
103124         (save_cwd): Don't call fd_safer; no longer needed
103125         now that we include fcntl--.h.
103127         * lib/getdate.y (relative_time): New type.
103128         (RELATIVE_TIME_0): New constant.
103129         (parser_control): Use relative_time instead of doing it ourselves.
103130         (%union): Add new relative_time rel member.
103131         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
103132         Now typeless.
103133         (relunit, relunit_snumber): Now of type rel.
103134         (zone, rel, relunit, get_date): Adjust to above changes.
103136         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
103137         Do not include unistd-safer.h.
103138         (getloadavg): Don't call fd_safer; no longer needed
103139         now that we include fcntl--.h.
103141         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
103142         (make_dir_parents): Treat ENOSYS like EEXIST.
103144         Improve quality of diagnostics on restore_cwd failure.
103145         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
103146         (make_dir_parents): Last arg is now int * (for errno), not bool *.
103147         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
103148         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
103149         each time through the loop.  Do not diagnose restore_cwd failure;
103150         that is the caller's job (and perhaps the caller does not care).
103152         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
103153         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
103154         If the file already exists but is not a directory, don't bother
103155         to try to make its parents.
103156         Close potential file descriptor leak if we can't chdir("/") (!).
103157         Don't always return true if chdir($PWD) fails; return true only
103158         if the requested action was done successfully (except for the
103159         chdir($PWD)).
103160         Don't log final directory unless we actually made it.
103161         Refactor to avoid duplicate code to fix up permissions.
103162         Don't attempt to fix up parent permissions if chdir($PWD) fails.
103164         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
103165         to make it a bit faster and (I hope) clearer.
103166         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
103167         Fix bug in formats like %2N.
103169         * lib/verify.h: New file.
103171 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103173         Sync from coreutils.
103174         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
103176 2005-09-22  Jim Meyering  <jim@meyering.net>
103178         Sync from coreutils.
103180         * m4/lstat.m4 (gl_FUNC_LSTAT):
103181         Use AC_LIBSOURCES to require lstat.c and lstat.h.
103182         Remove obsolete comment.
103183         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
103184         * m4/xstrtod.m4: Likewise.
103186         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
103188 2005-09-22  Jim Meyering  <jim@meyering.net>
103190         Sync from coreutils.
103192         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
103194         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
103195         the .tm_year member, since otherwise gcc-4.0 would now warn about
103196         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
103198         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
103199         order to avoid an unsuppressible warning from gcc on 64-bit systems.
103201         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
103202         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
103203         when run in a time zone for which daylight savings time is in effect
103204         for the starting date.
103206         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
103207         stop us from restricting permissions of just-created absolute-named
103208         directories.
103209         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
103210         to restore initial working directory.
103211         * lib/mkdir-p.c (make_dir_parents): New parameter:
103212         different_working_dir, to tell caller if/when we change the working
103213         directory and are unable to return to the initial one.
103214         * lib/mkdir-p.h (make_dir_parents): Update prototype.
103215         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
103216         `return false'.  This fixes a bug introduced on 2004-07-30.
103218         * lib/openat.c (fdopendir): Be sure to close the supplied
103219         file descriptor before returning.  This makes our replacement
103220         implementation a little closer to Solaris's, where fdopendir
103221         ties the file descriptor to the returned DIR* pointer.
103222         * lib/openat.c (unlinkat): New function.
103223         * lib/openat.h (unlinkat): Add prototype.
103224         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
103225         (openat_restore_fail): Rename from openat_restore_die.
103226         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
103228         Provide an alternative to exiting immediately upon save_cwd or
103229         restore_cwd failure.  Now, an application can arrange e.g.,
103230         to perform a longjump in that case.
103231         * lib/openat.c: Include dirname.h.
103232         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
103233         (rpl_openat, fdopendir, fstatat): Call openat_save_die
103234         and openat_restore_die rather than calling error directly.
103235         Don't include "error.h" or "exitfail.h"; they're no longer needed.
103237         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
103238         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
103239         define.
103241         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
103242         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
103243                             int utc, int nanoseconds);
103244         Background:
103245         date should not have to allocate a megabyte of virtual memory to
103246         handle a format argument like +%1048575T.  When implemented with
103247         strftime, it must allocate such a buffer, use strftime to fill it
103248         in, print it, then free it.
103249         With fprintftime, it simply prints everything and exits.
103250         With no need for memory allocation, that's one fewer way to fail.
103251         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
103252         optional field width, not before, so we accept %9:z, not %:9z.
103253         (my_strftime): Be sure to use L_('x') for literals.
103255         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
103256         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
103257         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
103258         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
103259         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
103260         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
103261         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
103262         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
103263         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
103264         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
103265         * lib/xgethostname.c, lib/xreadlink.c:
103266         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
103268         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
103269         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
103270         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
103271         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
103272         and don't include <sys/file.h>).
103274 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
103276         Sync from coreutils.
103278         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
103279         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
103280         [!LDAV_DONE]: Avoid unused variable warning.
103282 2005-09-21  Bruno Haible  <bruno@clisp.org>
103284         * lib/unicodeio.h (unicode_to_mb): New declaration.
103286 2005-09-20  Derek Price  <derek@ximbiot.com>
103288         * lib/getaddrinfo.c: Don't include <netdb.h> included from
103289         getaddrinfo.h.
103291 2005-09-20  Bruno Haible  <bruno@clisp.org>
103293         * gnulib-tool: Remove trailing slashes from the values specified for
103294         --source-base, --m4-base, --tests-base, --aux-dir.
103295         Suggested by Simon Josefsson <jas@extundo.com>.
103297 2005-09-20  Bruno Haible  <bruno@clisp.org>
103299         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
103300         func_modules_to_filelist, func_import, func_create_testdir): Make all
103301         sorting results locale-independent, so that gnulib-cache.m4 doesn't
103302         change when gnulib-tool is invoked in a different locale.
103304 2005-09-19  Simon Josefsson  <jas@extundo.com>
103306         * m4/socklen.m4: Fix typo.
103308 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103310         Use a consistent style for including <config.h>.
103311         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
103312         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
103313         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
103314         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
103315         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
103316         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
103317         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
103318         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
103319         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
103320         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
103321         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
103322         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
103323         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
103324         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
103325         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
103326         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
103327         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
103328         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
103329         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
103330         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
103331         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
103332         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
103333         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
103334         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
103335         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
103336         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
103337         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
103338         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
103339         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
103340         lib/xstrtoumax.c, lib/yesno.c:
103341         Standardize inclusion of config.h.
103342         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
103343         lib/inttostr.h:  Removed inclusion of config.h from header files.
103344         * lib/inttostr.c:  Adjusted in-tree users.
103345         * lib/timespec.h: Remove superfluous warning to include config.h.
103346         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
103347         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
103348         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
103349         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
103350         config.h with HAVE_CONFIG_H.
103352 2005-09-19  Jim Meyering  <jim@meyering.net>
103354         * modules/pathmax (License): Change to LGPL.
103356 2005-09-19  Derek Price  <derek@ximbiot.com>
103358         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
103360 2005-09-19  Bruno Haible  <bruno@clisp.org>
103362         * gnulib-tool (import): Provide default for --tests-base.
103364 2005-09-19  Bruno Haible  <bruno@clisp.org>
103366         * doc/quote.texi: New file, extracted from gnulib.texi.
103367         * doc/ctime.texi: New file, extracted from gnulib.texi.
103368         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
103369         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
103370         * doc/gnulib.texi: Include them.
103372 2005-09-18  Bruno Haible  <bruno@clisp.org>
103374         Portability fix.
103375         * gnulib-tool (func_readlink): New function.
103376         (func_ln_if_changed): Use it.
103378 2005-09-18  Bruno Haible  <bruno@clisp.org>
103380         * gnulib-tool: Support --with-tests also with --import.
103381         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
103382         (func_import): Use variables $testsbase and $inctests. Emit a
103383         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
103384         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
103385         SUBDIRS += $testsdir.
103386         (func_create_testdir): Update.
103388 2005-09-18  Bruno Haible  <bruno@clisp.org>
103390         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
103391         instead of $dry_run.
103392         (func_cp_if_changed, func_mv_if_changed): Remove functions.
103393         (func_ln_if_changed): Don't handle dry-run here.
103394         (func_import): In dry-run mode, detect more precisely which actions
103395         would be performed, and don't use "...ing" verbs.
103397 2005-09-18  Bruno Haible  <bruno@clisp.org>
103399         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
103400         (func_import): Use join on two temporary files instead of three nested
103401         loops, in order to determine which files are new or old.
103403 2005-09-18  Bruno Haible  <bruno@clisp.org>
103405         * gnulib-tool (func_import): Comment out code that spits out the
103406         new files with --dry-run.
103408 2005-09-18  Bruno Haible  <bruno@clisp.org>
103410         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
103412 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103414         * lib/stat-time.h: New file.
103415         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
103416         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
103417         in a different way.
103418         (timespec_cmp): New function.
103419         * lib/utimecmp.c: Include stat-time.h.
103420         (SYSCALL_RESOLUTION): Depend on whether various struct stat
103421         members exist, not on the obsolescent ST_MTIM_NSEC.
103422         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
103424 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103426         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
103428 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
103430         * MODULES.html.sh (File system functions): Add stat-time.
103431         * modules/stat-time: New file.
103432         * modules/timespec (Files): Remove m4/st_mtim.m4; this
103433         is now done in a different way, by the stat-time module.
103434         * modules/utimecmp (Depends-on): Add stat-time.
103436 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
103438         * m4/st_mtim.m4: Remove.  Superseded by...
103439         * m4/stat-time.m4: New file.
103440         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
103441         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
103443 2005-09-15  Derek Price  <derek@ximbiot.com>
103445         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
103447 2005-09-15  Derek Price  <derek@ximbiot.com>
103449         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
103450         * lib/regex_internal.c: Ditto, using this...
103451         (__GNUC_PREREQ): ...new macro.
103452         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
103453         using...
103454         (__GNUC_PREREQ): ...this new macro.
103456         * lib/strstr.h: Include string.h. Define strstr as a macro here.
103458 2005-09-15  Derek Price  <derek@ximbiot.com>
103459             Paul Eggert  <eggert@cs.ucla.edu>
103461         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
103462         changes, consolidating in...
103463         * lib/regex_internal.h: ...this file.
103465 2005-09-13  Jim Meyering  <jim@meyering.net>
103467         * lib/canon-host.c: Filter through gnu indent and reword comments
103468         slightly.
103469         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
103471 2005-09-13  Derek Price  <derek@ximbiot.com>
103473         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
103474         failure.
103475         Reported by Jim Meyering  <jim@meyering.net>.
103477 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
103479         * lib/base64.c: Typo.
103480         (base64_encode): Put b64str in initialized data section.
103482 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
103484         Merge glibc and coreutils changes into gnulib, plus a few
103485         extra fixes.
103486         * lib/md5.c: Use #error rather than a string.
103487         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
103488         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
103489         (__attribute__): Define to empty for non recent-GCC.
103490         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
103491         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
103492         Renamed from their non-__ counterparts, with new macros replacing
103493         them if not _LIBC.  Add __THROW attribute.
103494         (rol): Remove.
103495         (struct md5_ctx): Align buffer if using GCC.
103496         * lib/sha1.h (struct sha1_ctx): Likewise.
103497         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
103498         The old name was backwards.
103499         (NOTSWAP): Remove; not used.
103500         (rol): New macro, moved here from md5.h.
103501         (sha1_process_block): Remove a FIXME that doesn't make sense.
103503 2005-09-12  Derek Price  <derek@ximbiot.com>
103505         Return usable errors from canon-host.
103506         * lib/canon-host.h: New file.
103507         * lib/canon-host.c (canon_host): Wrap...
103508         (canon_host_r): ...this new function, which now relies exclusively on
103509         getaddrinfo.
103510         (ch_strerror): New function.
103511         (last_cherror): New global.
103512         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
103513         interface.
103514         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
103515         void *.
103516         (freeaddrinfo): Free ai->ai_canonname when set.
103518 2005-09-12  Derek Price  <derek@ximbiot.com>
103520         Make canon-host require getaddrinfo.
103521         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
103522         AC_LIBSOURCE canon-host.h.  Call...
103523         (gl_PREREQ_CANON_HOST): ...this new function, which requires
103524         gl_GETADDRINFO.
103525         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
103527 2005-09-12  Derek Price  <derek@ximbiot.com>
103529         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
103530         LGPL.
103531         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
103533 2005-09-12  Derek Price  <derek@ximbiot.com>
103535         * lib/gai_strerror.c: Include config.h when available.  Include
103536         getaddrinfo.h before other headers to test interface.
103537         Reported by Larry Jones <lawrence.jones@ugs.com>.
103539 2005-09-12  Derek Price  <derek@ximbiot.com>
103540             Paul Eggert  <eggert@cs.ucla.edu>
103542         * modules/glob (Files): Add glob-libc.h.
103544 2005-09-12  Derek Price  <derek@ximbiot.com>
103545             Paul Eggert  <eggert@cs.ucla.edu>
103547         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
103548         glob_.h, glob-libc.h.
103549         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
103551 2005-09-12  Derek Price  <derek@ximbiot.com>
103552             Paul Eggert  <eggert@cs.ucla.edu>
103554         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
103555         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
103556         protecting things that should be done only in gnulib contexts.
103557         * lib/glob_.h: New file, containing only the glob things needed for
103558         gnulib.
103559         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
103560         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
103561         (glob, globfree, glob_pattern_p): Now defined simply in terms of
103562         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
103563         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
103564         and to respect the namespace rules better.
103566 2005-09-08  Simon Josefsson  <jas@extundo.com>
103568         * modules/socklen: New file.
103570 2005-09-08  Simon Josefsson  <jas@extundo.com>
103572         * m4/socklen.m4: New file.
103574 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103576         * modules/utimens (Files): Add m4/utimbuf.m4, since
103577         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
103578         Reported by Sergey Poznyakoff.
103580 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103582         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
103583         definitions, since that's the preferred style in glibc.
103584         Fix a minor spacing issue, and update copyright notice to match
103585         glibc's.
103587 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103589         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
103591 2005-09-06  Simon Josefsson  <jas@extundo.com>
103593         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
103594         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
103596 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
103598         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
103599         warning.
103601 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
103603         * config/srclist.txt: Add glibc bug 1302.
103605 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
103607         Change bitset word type from unsigned int to unsigned long int,
103608         as this has better performance on typical 64-bit hosts.
103609         Port bitset code to hosts with unusual word sizes.
103610         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
103611         (build_collating_symbol):
103612         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
103613         argument is a bitset.  This is merely a style issue, but it makes
103614         it clearer that an entire array is expected.
103615         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
103616         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
103617         Port to the case where bitset_word is not the same as unsigned int.
103618         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
103619         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
103620         Likewise.
103621         * lib/regexec.c (check_dst_limits_calc_pos_1,
103622         check_subexp_matching_top):
103623         (build_trtable, group_nodes_into_DFAstates):
103624         Likewise.
103625         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
103626         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
103627         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
103628         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
103629         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
103630         * lib/regcomp.c (optimize_subexps, lower_subexp):
103631         Work even if bitset_word has holes in its bitwise representation.
103632         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
103633         * lib/regexec.c (check_dst_limits_calc_pos_1,
103634         check_subexp_matching_top):
103635         Likewise.
103636         * lib/regex_internal.c (re_string_reconstruct):
103637         Don't assume UCHAR_MAX == 255.
103638         * lib/regex_internal.h (bitset_set_all): Likewise.
103639         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
103640         All uses changed.
103641         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
103642         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
103643         All uses changed.
103644         (BITSET_WORD_MAX): New macro.
103645         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
103646         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
103647         (bitset_empty, bitset_copy):
103648         Prefer sizeof (bitset) to multiplying it out ourselves.
103649         (bitset_not_merge): Remove; unused.
103650         (bitset_contain): Return bool, not unsigned int with one bit on.
103651         All callers changed.
103652         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
103653         alignment than re_node_set; do this by defining a new internal
103654         type struct dests_alloc and using it to allocate memory.
103656 2005-09-05  Bruno Haible  <bruno@clisp.org>
103658         * gnulib-tool (func_import): Fix comparison in handling of symbolic
103659         links.
103661 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
103663         * modules/size_max (Makefile.am): Add size_max.h
103665 2005-09-04  Derek Price  <derek@ximbiot.com>
103667         * gnulib-tool (func_import): Fix reversed $symbolic logic.
103669 2005-09-03  Simon Josefsson  <jas@extundo.com>
103671         * gnulib-tool: Fix typo.
103673 2005-09-03  Simon Josefsson  <jas@extundo.com>
103675         * config/srclist.txt: Add glibc bug 1293.
103677 2005-09-03  Derek Price  <derek@ximbiot.com>
103679         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
103680         From Larry Jones <lawrence.jones@ugs.com>.
103682 2005-09-02  Simon Josefsson  <jas@extundo.com>
103684         * modules/socklen: New file.
103686 2005-09-02  Simon Josefsson  <jas@extundo.com>
103688         * modules/havelib: New module.
103690         * modules/gettext, modules/iconv, modules/lock, modules/readline:
103691         Use havelib.
103693 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
103695         Check for arithmetic overflow when calculating sizes, to prevent
103696         some buffer-overflow issues.  These patches are conservative, in the
103697         sense that when I couldn't determine whether an overflow was possible,
103698         I inserted a run-time check.
103699         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
103700         macros.
103701         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
103702         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
103703         (re_xnrealloc, re_x2nrealloc): New inline functions.
103704         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
103705         parse_bracket_exp):
103706         (build_equiv_class, build_charclass): Check for arithmetic overflow
103707         in size expression calculations.
103708         * lib/regex_internal.c (re_string_realloc_buffers):
103709         (build_wcs_upper_buffer, re_node_set_add_intersect):
103710         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
103711         (re_dfa_add_node, register_state): Likewise.
103712         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
103713         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
103714         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
103715         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
103717 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
103719         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
103720         m4/ulonglong.m4.  Problem reported by Martin Lambers.
103722 2005-09-02  Bruno Haible  <bruno@clisp.org>
103724         Support for lib vs. lib64 distinction on biarch platforms.
103725         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
103726         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
103727         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
103729 2005-09-02  Bruno Haible  <bruno@clisp.org>
103731         * gnulib-tool (import): In the other first-use case, provide defaults
103732         as well.
103734 2005-09-02  Bruno Haible  <bruno@clisp.org>
103736         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
103737         patches not yet found in the latest gettext release.
103739 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
103741         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
103742         to avoid a collision with bits/local_lim.h in glibc.
103743         All uses changed.  Problem reported by Dmitry V. Levin in
103744         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
103746         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
103747         bugs in int versus size_t comparisons.
103748         (re_string_context_at): Fix bug where the code assumed that
103749         Idx is signed.
103751         Use bool where appropriate.
103752         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
103753         All callers changed.
103754         (calc_eclosure_iter): Likewise, for ROOT arg.
103755         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
103756         (build_charclass_op): Likewise, for NON_MATCH arg.
103757         * lib/regex_internal.c (re_string_allocate, re_string_construct):
103758         (re_string_construct_common): Likewise, for ICASE arg.
103759         * lib/regexec.c (re_search_2_stub, re_search_stub):
103760         Likewise, for RET_LEN arg.
103761         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
103762         (set_regs): Likewise, for FL_BACKTRACK arg.
103763         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
103764         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
103765         (calc_eclosure_iter, parse_bracket_exp):
103766         Use bool for internal variables that are booleans.
103767         * lib/regexec.c (re_search_internal, check_matching,
103768         proceed_next_node):
103769         (set_regs, build_sifted_states, sift_states_bkref):
103770         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
103771         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
103772         (find_collation_sequence_value):
103773         Likewise.
103774         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
103775         (re_node_set_compare):
103776         Return bool, not int. All callers changed.
103777         * lib/regexec.c (check_halt_node_context, check_dst_limits):
103778         (build_trtable, check_node_accept): Likewise.
103779         * lib/regex_internal.h: Include stdbool.h.
103781         Fix bugs uncovered when converting to bool.
103782         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
103783         failure instead of charging ahead blindly.
103784         * lib/regex_internal.c (register_state): Likewise.
103785         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
103786         for freeing internal storage.
103787         (group_nodes_into_DFA_states): Use unsigned int, not int, for
103788         bitset pieces used as boolean, to avoid undefined behavior
103789         on hosts that do int overflow checking.
103791 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
103793         * config/srclist.txt: Add glibc bugs 1285-1287.
103795 2005-09-01  Jim Meyering  <jim@meyering.net>
103797         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
103798         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
103799         Require gl_STAT_MACROS, too.
103801 2005-09-01  Bruno Haible  <bruno@clisp.org>
103803         * gnulib-tool (import): In the first-use case, provide defaults.
103805 2005-09-01  Bruno Haible  <bruno@clisp.org>
103807         * gnulib-tool (func_import): Remove the .tmp files.
103809 2005-09-01  Bruno Haible  <bruno@clisp.org>
103811         * gnulib-tool (func_import): Fix handling of symbolic links.
103813 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103815         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
103816         old glibc regex code mishandles strings longer than 2**31 bytes.
103817         This patch fixes this when the regex code is used in gnulib
103818         (i.e., outside glibc).
103820         This patch should not affect the use of the regex code inside
103821         glibc.  No doubt this problem also needs to be handled for glibc
103822         as well, but the result will be an incompatible change to the
103823         glibc ABI, and the old ABI will have to be supported too.  That
103824         can be the subject for another patch.
103826         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
103827         governing whether the rest of this patch is active.  By default,
103828         the macro is disabled and the patch has no effect.
103829         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
103830         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
103831         (struct re_pattern_buffer, re_search, re_search_2, re_match):
103832         (re_match_2, re_set_registers): Use the new types.
103833         * lib/regex_internal.h (Idx, re_hashval_t): New types.
103834         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
103835         New macros.
103836         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
103837         (re_string_context_at, bin_tree_t, re_dfastate_t):
103838         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
103839         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
103840         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
103841         (re_string_char_size_at, re_string_wchar_at):
103842         (re_string_elem_size_at):
103843         Use the new types and macros to port to 64-bit hosts.
103844         Use unsigned types for internal values, so that the code
103845         mostly works even for arrays larger than SSIZE_MAX.
103846         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
103847         (search_duplicated_node, calc_eclosure_iter, fetch_number):
103848         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
103849         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
103850         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
103851         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
103852         (calc_inveclosure, parse_dup_op, build_range_exp):
103853         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
103854         (fetch_number, create_token_tree, mark_opt_subexp):
103855         Likewise.
103856         * lib/regex_internal.c (re_string_construct_common,
103857         create_ci_newstate):
103858         (create_cd_newstate, re_string_allocate, re_string_construct):
103859         (re_string_realloc_buffers, build_wcs_upper_buffer):
103860         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
103861         (re_string_reconstruct, re_string_peek_byte_case):
103862         (re_string_fetch_byte_case, re_string_context_at):
103863         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
103864         (re_node_set_init_copy, re_node_set_add_intersect):
103865         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
103866         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
103867         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
103868         (re_acquire_state, re_acquire_state_context, register_state):
103869         Likewise.
103870         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
103871         search_cur_bkref_entry):
103872         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
103873         (re_search_internal, re_search_2_stub, re_search_stub)
103874         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
103875         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
103876         (update_cur_sifted_state, check_dst_limits):
103877         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
103878         (check_subexp_limits, sift_states_bkref, merge_state_array):
103879         (check_subexp_matching_top, get_subexp, get_subexp_sub):
103880         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
103881         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
103882         (expand_bkref_cache, check_node_accept_bytes):
103883         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
103884         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
103885         (acquire_init_state_context, check_halt_node_context):
103886         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
103887         (sift_states_backward, clean_state_log_if_needed):
103888         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
103889         (find_recover_state, transit_state_sb, transit_state_mb):
103890         (transit_state_bkref, build_trtable, match_ctx_clean):
103891         Likewise.
103892         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
103893         to work around an assumption that REG_MISSING is negative.
103895         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
103896         (seek_collating_symbol_entry) [defined _LIBC]:
103897         (lookup_collation_sequence_value) [defined _LIBC]:
103898         (build_range_exp, build_collating_symbol) [defined _LIBC]:
103899         Use prototypes rather than old-style function definitions.
103900         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
103901         (transit_state_sb) [0]:
103902         (find_collation_sequence_value) [defined _LIBC]: Likewise.
103904         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
103905         rm_eo.
103907         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
103908         (optimize_subexps, lower_subexp):
103909         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
103910         since the signed shift might overflow.  Use 1u<<31 instead.
103911         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
103912         Likewise.
103913         * lib/regexec.c (check_dst_limits_calc_pos_1,
103914         check_subexp_matching_top): Likewise.
103916         * lib/regcomp.c (optimize_subexps, lower_subexp):
103917         Use CHAR_BIT rather than 8, for clarity.
103918         * lib/regexec.c (check_dst_limits_calc_pos_1):
103919         (check_subexp_matching_top): Likewise.
103920         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
103921         have to worry about portability issues when shifting it left.
103922         Remove no-longer-needed test for table_size > 0.
103923         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
103924         in a word, as the resulting behavior is undefined.
103925         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
103926         in one case, a <= should have been an <, and in another case the
103927         whole test was missing.
103928         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
103929         the standard name CHAR_BIT.
103930         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
103931         this is not true on one's complement and signed-magnitude hosts.
103933         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
103934         next_last_offset.
103935         (struct re_dfa_t): Remove unused member states_alloc.
103936         * lib/regcomp.c (init_dfa): Don't initialize unused members.
103938 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103940         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
103941         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
103942         and large-file glibc and in 32-bit large-file Solaris.
103944 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103946         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
103947         lengths fit in regoff_t; this isn't true if regoff_t is the same
103948         width as size_t.
103949         * lib/regex.c (re_search_internal): 5th arg is LAST_START
103950         (= START + RANGE) instead of RANGE.  This avoids overflow
103951         problems when regoff_t is the same width as size_t.
103952         All callers changed.
103953         (re_search_2_stub): Check for overflow when adding the
103954         sizes of the two strings.
103955         (re_search_stub): Check for overflow when adding START
103956         to RANGE; if it occurs, substitute the extreme value.
103958 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103960         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
103962 2005-08-31  Jim Meyering  <jim@meyering.net>
103964         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
103965         a pointer-to-const.
103966         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
103967         (register_state): Likewise.
103968         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
103969         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
103970         (group_nodes_into_DFAstates): Likewise.
103972 2005-08-31  Jim Meyering  <jim@meyering.net>
103974         * check-module: Add a FIXME comment.
103976 2005-08-31  Eric Blake  <ebb9@byu.net>
103978         * modules/unistd-safer (Files): Add unistd--.h.
103979         * modules/stdio-safer (Files): Add stdio--.h.
103981 2005-08-31  Derek Price  <derek@ximbiot.com>
103983         * lib/getdelim.c (getdelim): Return EOF on EOF.
103984         Reported by Larry Jones <lawrence.jones@ugs.com>.
103986 2005-08-31  Bruno Haible  <bruno@clisp.org>
103988         Avoid unnecessary diffs in the generated lib/Makefile.am.
103989         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
103990         the generated files.
103991         (func_import): Don't set cmd.
103993 2005-08-31  Bruno Haible  <bruno@clisp.org>
103995         * lib/strstr.c: Include <stddef.h>, for NULL.
103996         * lib/strcasestr.c: Likewise.
103997         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
103999 2005-08-31  Bruno Haible  <bruno@clisp.org>
104001         * gnulib-tool: New option --macro-prefix.
104002         (func_import): Use macro_prefix.
104003         (import): Handle option --macro-prefix.
104005 2005-08-31  Bruno Haible  <bruno@clisp.org>
104007         * gnulib-tool (import): Rename most ac_* variables to cached_*.
104008         Also use new variables cached_lgpl, cached_libtool.
104010 2005-08-31  Bruno Haible  <bruno@clisp.org>
104012         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
104013         always instantiating them.
104015 2005-08-31  Bruno Haible  <bruno@clisp.org>
104017         * gnulib-tool (func_import): Read the previous cached settings
104018         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
104019         earlier added by gnulib but are now dropped. Warn when a gnulib file
104020         overwrites a non-gnulib file.
104022 2005-08-31  Bruno Haible  <bruno@clisp.org>
104024         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
104025         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
104026         projects that don't keep autogenerated files in CVS. Put into
104027         actioncmd only the specified modules, not the transitive closure.
104029 2005-08-31  Bruno Haible  <bruno@clisp.org>
104031         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
104032         Create directories that shall be filled.
104033         (import): Don't look for gl_* macros in configure.ac. Recurse across
104034         all directories containing a gnulib-cache.m4 files, if meaningful.
104036 2005-08-31  Bruno Haible  <bruno@clisp.org>
104038         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
104039         (import): Set seen_libtool when we see gl_LIBTOOL.
104041 2005-08-31  Bruno Haible  <bruno@clisp.org>
104043         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
104044         declaration macro definitions from generated gnulib.m4.
104046 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
104048         * lib/iconvme.h: Add prototype for iconv_alloc.
104050 2005-08-29  Simon Josefsson  <jas@extundo.com>
104052         * lib/iconvme.c: Fix errno.
104054 2005-08-29  Bruno Haible  <bruno@clisp.org>
104056         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
104057         that it works when the directory contains spaces.
104059 2005-08-29  Bruno Haible  <bruno@clisp.org>
104061         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
104063 2005-08-29  Bruno Haible  <bruno@clisp.org>
104065         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
104066         Emit more advice.
104068 2005-08-29  Bruno Haible  <bruno@clisp.org>
104069         and Stepan Kasal  <kasal@ucw.cz>
104071         * check-module: If more parameters are given, check each of them
104072         separately; add more exceptions, as noted by Jim Meyering.
104073         (check_module): New procedure.
104074         (%exempt_header): Now contains all exceptions.
104076 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
104078         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
104080 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
104082         * lib/iconvme.c: Split iconv_string into iconv_alloc.
104084 2005-08-28  Bruno Haible  <bruno@clisp.org>
104086         * m4/gnulib-tool.m4: New file.
104088 2005-08-27  Jim Meyering  <jim@meyering.net>
104090         * modules/unistd-safer (Files): Add pipe-safer.c.
104091         * modules/fcntl-safer (Files): Add creat-safer.c.
104093 2005-08-27  Jim Meyering  <jim@meyering.net>
104095         * m4/stdlib-safer.m4: New file.  From coreutils.
104096         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
104097         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
104098         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
104099         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
104100         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
104102 2005-08-27  Jim Meyering  <jim@meyering.net>
104104         * lib/fopen-safer.c: Merge minor changes from coreutils.
104105         * lib/dup-safer.c: Likewise.
104106         * lib/fd-safer.c: Likewise.
104108         Merge from coreutils.
104109         * lib/stdio--.h: New file.
104110         * lib/stdlib--.h: New file.
104111         * lib/mkstemp-safer.c: New file.
104113         GNU tar needs these.
104114         * lib/pipe-safer.c: New file.
104115         * lib/creat-safer.c: New file.
104116         * lib/fcntl--.h (creat): Define to creat_safer.
104117         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
104118         * lib/unistd--.h (pipe): Define to pipe_safer.
104119         * lib/unistd-safer.h: Declare pipe_safer.
104121 2005-08-26  Simon Josefsson  <jas@extundo.com>
104123         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
104124         Haible <bruno@clisp.org>.
104126 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
104128         * lib/regex_internal.h: Remove all references to
104129         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
104130         or better.
104131         (bitset_not, bitset_merge, bitset_not_merge):
104132         (bitset_mask, re_string_allocate, re_string_construct):
104133         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
104134         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
104135         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
104136         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
104137         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104138         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104139         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
104140         (re_acquire_state_context):
104141         Remove unnecessary forward decls.
104142         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
104143         Put __attribute at function definition,
104144         now that the function decl has been removed.
104145         * lib/regex_internal.c (re_string_peek_byte_case):
104146         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
104147         Likewise.
104149 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
104151         * m4/regex.m4: Add AC_PREREQ(2.50).
104152         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
104154 2005-08-25  Simon Josefsson  <jas@extundo.com>
104156         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
104157         __fsetlocking.
104159 2005-08-25  Simon Josefsson  <jas@extundo.com>
104161         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
104162         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
104163         GLIBC specific code.
104165 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104167         Make regex safe for g++.  This fixes one real bug (an "err"
104168         that should have been "*err").  g++ problem reported by
104169         Sam Steingold.
104170         * lib/regex_internal.h (re_calloc): New macro, consistent with
104171         re_malloc etc.  All callers of calloc changed to use re_calloc.
104172         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
104173         not int.  All callers changed.
104174         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
104175         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
104176         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
104177         (find_recover_state): Change "err" to "*err"; this fixes what
104178         appears to be a real bug.
104179         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
104180         versus int.
104182 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104184         * modules/regex (Depends-on): Add malloc, since the code
104185         assumes that !malloc(0) means failure.
104187 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104189         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
104191         alloca modernization/simplification for regex.
104192         * lib/regex.c: Remove portability cruft for alloca.  This no longer
104193         needs to be at the start of the file, and can be moved into
104194         regex_internal.h and simplified.
104195         * lib/regex_internal.h: Include <alloca.h>.
104196         (__libc_use_alloca) [!defined _LIBC]: New macro.
104197         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
104198         now works outside glibc.
104200 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104202         * config/srclist.txt: Add glibc bugs 1241, 1245.
104204 2005-08-25  Jim Meyering  <jim@meyering.net>
104206         * lib/open-safer.c: Include <config.h>.
104207         Otherwise, we'd lose LARGEFILE support in any file using
104208         e.g. "fcntl--.h"
104210 2005-08-25  Bruno Haible  <bruno@clisp.org>
104212         * m4/minmax.m4: Require autoconf 2.52.
104213         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
104214         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
104215         alternatives of translit over the alphabet.
104216         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
104218 2005-08-24  Simon Josefsson  <jas@extundo.com>
104220         * tests/test-getpass.c: New file.
104222 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104224         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
104225         for GNU regex features.
104227 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104229         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
104230         * lib/regex.h (regerror): Likewise.
104232         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
104233         requires this.  (The code never needed it.)
104235         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
104236         All uses of recently-renamed identifiers changed to use the new,
104237         POSIX-compliant names.  The code will build and run just fine
104238         without these changes, but it's better to eat our own dog food
104239         and use the standard-conforming names.
104241         * lib/regex.h: Fix a multitude of POSIX name space violations.
104242         These changes have an effect only for programs that define
104243         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
104244         do not change anything for programs compiled in the normal way.
104245         Also, there is no effect on the ABI.
104247         (_REGEX_SOURCE): New macro.
104248         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
104249         defined and _GNU_SOURCE is not; this fixes a name space violation.
104251         Rename the following macros to obey POSIX requirements.
104252         The old names are still visible as macros if _REGEX_SOURCE is defined.
104253         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
104254         RE_BACKSLASH_ESCAPE_IN_LISTS.
104255         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
104256         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
104257         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
104258         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
104259         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
104260         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
104261         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
104262         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
104263         (REG_INTERVALS): renamed from RE_INTERVALS.
104264         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
104265         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
104266         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
104267         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
104268         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
104269         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
104270         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
104271         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
104272         RE_UNMATCHED_RIGHT_PAREN_ORD.
104273         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
104274         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
104275         (REG_DEBUG): renamed from RE_DEBUG.
104276         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
104277         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
104278         unusual, since we can't clash with the POSIX REG_ICASE.
104279         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
104280         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
104281         (REG_NO_SUB): renamed from RE_NO_SUB.
104282         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
104283         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
104284         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
104285         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
104286         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
104287         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
104288         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
104289         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
104290         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
104291         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
104292         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
104293         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
104294         RE_SYNTAX_POSIX_MINIMAL_BASIC.
104295         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
104296         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
104297         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
104298         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
104299         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
104300         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
104301         (REG_FIXED): Renamed from REGS_FIXED.
104302         (REG_NREGS): Renamed from RE_NREGS.
104304         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
104305         of other REG_* macros, since POSIX says the user is allowed to
104306         #undef these macros selectively.
104308         (reg_errcode_t): Update comment stating what other tables need
104309         to be consistent.
104311         Rename the following enum values to obey POSIX requirements.
104312         The old names are still visible as macros.
104313         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
104314         is not defined, since GNU is supposed to be a superset of POSIX as
104315         much as possible, and since we want reg_errcode_t to be a signed
104316         type for implementation consistency.
104317         (_REG_NOERROR): Renamed from REG_NOERROR.
104318         (_REG_NOMATCH): Renamed from REG_NOMATCH.
104319         (_REG_BADPAT): Renamed from REG_BADPAT.
104320         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
104321         (_REG_ECTYPE): Renamed from REG_ECTYPE.
104322         (_REG_EESCAPE): Renamed from REG_EESCAPE.
104323         (_REG_ESUBREG): Renamed from REG_ESUBREG.
104324         (_REG_EBRACK): Renamed from REG_EBRACK.
104325         (_REG_EPAREN): Renamed from REG_EPAREN.
104326         (_REG_EBRACE): Renamed from REG_EBRACE.
104327         (_REG_BADBR): Renamed from REG_BADBR.
104328         (_REG_ERANGE): Renamed from REG_ERANGE.
104329         (_REG_ESPACE): Renamed from REG_ESPACE.
104330         (_REG_BADRPT): Renamed from REG_BADRPT.
104331         (_REG_EEND): Renamed from REG_EEND.
104332         (_REG_ESIZE): Renamed from REG_ESIZE.
104333         (_REG_ERPAREN): Renamed from REG_ERPAREN.
104334         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
104335         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
104336         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
104337         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
104339         (_REG_RE_NAME, _REG_RM_NAME): New macros.
104340         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
104341         changed.  But support the old name if the new one is not defined
104342         and if _REGEX_SOURCE.
104344         Change the following member names in struct re_pattern_buffer.
104345         The old names are still supported if !_REGEX_SOURCE.
104346         The new names are always supported, regardless of _REGEX_SOURCE.
104347         (re_buffer): Renamed from buffer.
104348         (re_allocated): Renamed from allocated.
104349         (re_used): Renamed from used.
104350         (re_syntax): Renamed from syntax.
104351         (re_fastmap): Renamed from fastmap.
104352         (re_translate): Renamed from translate.
104353         (re_can_be_null): Renamed from can_be_null.
104354         (re_regs_allocated): Renamed from regs_allocated.
104355         (re_fastmap_accurate): Renamed from fastmap_accurate.
104356         (re_no_sub): Renamed from no_sub.
104357         (re_not_bol): Renamed from not_bol.
104358         (re_not_eol): Renamed from not_eol.
104359         (re_newline_anchor): Renamed from newline_anchor.
104361         Change the following member names in struct re_registers.
104362         The old names are still supported if !_REGEX_SOURCE.
104363         The new names are always supported, regardless of _REGEX_SOURCE.
104364         (rm_num_regs): Renamed from num_regs.
104365         (rm_start): Renamed from start.
104366         (rm_end): Renamed from end.
104368         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
104369         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
104370         Prepend __ to parameter names.
104372         Undo yesterday's changes.
104374 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104376         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
104377         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
104378         lib/regex.c.
104380 2005-08-24  Jim Meyering  <jim@meyering.net>
104382         Sync from coreutils.
104383         * m4/fcntl-safer.m4: New file.
104385         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
104386         and object files for this module.
104388 2005-08-24  Jim Meyering  <jim@meyering.net>
104390         Sync from coreutils.
104391         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
104393 2005-08-24  Jim Meyering  <jim@meyering.net>
104395         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
104396         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
104398 2005-08-24  Jim Meyering  <jim@meyering.net>
104400         * modules/fcntl-safer: New module.
104401         * modules/fts (Depends-on): Add fcntl-safer.
104402         * MODULES.html.sh (File descriptor based Input/Output):
104403         Add fcntl-safer.
104405 2005-08-24  Bruno Haible  <bruno@clisp.org>
104407         Support for unit test modules.
104408         * modules/README: Mention tests modules.
104409         * modules/TEMPLATE-TESTS: New file.
104410         * gnulib-tool: New options --extract-tests-module, --with-tests and
104411         --tests-base (unused for the moment).
104412         (testsbase, inctests): New variables.
104413         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
104414         (func_verify_module): Exclude TEMPLATE-TESTS.
104415         (func_verify_nontests_module, func_verify_tests_module): New functions.
104416         (func_get_dependencies): Add implicit dependency for tests modules.
104417         (func_get_tests_module): New function.
104418         (func_modules_transitive_closure): When --with-tests was specified,
104419         include the unit tests as well, unless explicitly avoided.
104420         (func_emit_lib_Makefile_am): Ignore the tests modules here.
104421         (func_emit_tests_Makefile_am): New function.
104422         (func_create_testdir): When --with-tests was specified, emit a
104423         tests/ directory.
104424         * MODULES.html.sh (Future developments): Update.
104426 2005-08-24  Bruno Haible  <bruno@clisp.org>
104428         * modules/tls-tests: New file.
104429         * tests/test-tls.c: New file, from GNU gettext.
104431 2005-08-24  Bruno Haible  <bruno@clisp.org>
104433         * modules/lock-tests: New file.
104434         * tests/test-lock.c: New file, from GNU gettext.
104436 2005-08-24  Bruno Haible  <bruno@clisp.org>
104438         * lib/lock.h: Add multiple inclusion guard.
104439         * lib/tls.h: Add multiple inclusion guard.
104441 2005-08-24  Bruno Haible  <bruno@clisp.org>
104443         * gnulib-tool: Add support for the --aux-dir option to
104444         --create-testdir, --create-megatestdir, --test, --megatest.
104445         (func_create_testdir, func_create_megatestdir): Optionally emit a
104446         AC_CONFIG_AUX_DIR directive.
104447         (create-testdir, create-megatestdir, test, megatest): Provide a
104448         default value for $auxdir.
104450 2005-08-24  Bruno Haible  <bruno@clisp.org>
104452         * gnulib-tool (import): Use compound statement instead of subshell
104453         where possible.
104455 2005-08-24  Bruno Haible  <bruno@clisp.org>
104457         * gnulib-tool (import): Change --aux-dir default to "build-aux".
104459 2005-08-24  Bruno Haible  <bruno@clisp.org>
104461         * gnulib-tool (func_version): Update.
104463 2005-08-24  Bruno Haible  <bruno@clisp.org>
104465         * gnulib-tool (func_import, func_create_testdir,
104466         func_create_megatestdir): Quote all autoconf macro arguments.
104468 2005-08-24  Bruno Haible  <bruno@clisp.org>
104470         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
104471         option --force, because --force causes the aclocal.m4 of each
104472         subdirectory to be newer than the corresponding config.h.in.
104474 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104476         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
104477         All contents moved to gl_REGEX.
104478         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
104479         assume that it does.
104481 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104483         * lib/regex.h (REG_NOSYS)
104484         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
104485         Define, since POSIX requires it as of 2001.
104486         (_REG_ENOSYS)
104487         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
104488         New private symbol, used to keep the enum signed in all cases.
104489         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
104490         Youngman in
104491         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
104493         * lib/regex_internal.c (re_string_skip_chars, register_state):
104494         (calc_state_hash):
104495         Remove forward decls; no longer needed now that we use prototypes.
104496         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
104497         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
104498         (clean_state_log_if_needed): Likewise.
104500 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
104502         * config/srclist.txt: Add glibc bugs 1231-1233.
104504 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104506         Fix problems reported by Sam Steingold in
104507         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
104508         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
104509         assumed that reg_errcode_t is a signed type, which is not
104510         necessarily true if _XOPEN_SOURCE is not defined.
104511         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
104512         since some compilers warn about it otherwise.
104514 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104516         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
104517         (init_word_char, create_initial_state, duplicate_node_closure):
104518         (fetch_token, peek_token_bracket, build_range_exp):
104519         (build_collating_symbol): Remove forward decls; no longer needed
104520         now that we use prototypes.
104522         * lib/regcomp.c:
104523         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
104524         (re_compile_fastmap_iter, regcomp, regerror, regfree):
104525         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
104526         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
104527         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
104528         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
104529         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
104530         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
104531         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
104532         (build_range_exp, build_collating_symbol, parse_bracket_exp):
104533         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
104534         (build_charclass, build_charclass_op, fetch_number, create_tree):
104535         (create_token_tree, mark_opt_subexp, duplicate_tree):
104536         Use prototypes rather than old-style definitions.
104538         * lib/regex_internal.c:
104539         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
104540         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
104541         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104542         (re_string_reconstruct, re_string_peek_byte_case):
104543         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
104544         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104545         (re_node_set_init_copy, re_node_set_add_intersect):
104546         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104547         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104548         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104549         (re_acquire_state, re_acquire_state_context, register_state):
104550         (create_ci_newstate, create_cd_newstate, free_state):
104551         Likewise.
104552         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
104553         re_search_2):
104554         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
104555         (re_search_internal, prune_impossible_nodes):
104556         (acquire_init_state_context, check_matching, static):
104557         (check_halt_node_context, check_halt_state_context, proceed_next_node):
104558         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
104559         (update_regs, sift_states_backward, build_sifted_states):
104560         (clean_state_log_if_needed, merge_state_array):
104561         (update_cur_sifted_state, add_epsilon_src_nodes):
104562         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
104563         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
104564         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
104565         (find_recover_state, check_subexp_matching_top, transit_state_mb):
104566         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
104567         (check_arrival, check_arrival_add_next_nodes):
104568         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104569         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104570         (check_node_accept_bytes, check_node_accept, extend_buffers):
104571         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
104572         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
104573         (sift_ctx_init):
104574         Likewise.
104576         * lib/regex_internal.h:
104577         (re_string_allocate, re_string_construct, re_string_reconstruct):
104578         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
104579         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
104580         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
104581         (re_string_context_at, re_string_peek_byte_case):
104582         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
104583         is defined, since we now use prototypes always.
104585         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
104586         C89 or better.  All uses removed.
104588 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104590         * config/srclist.txt: Add glibc bugs 1220-1227.
104592 2005-08-20  Jim Meyering  <jim@meyering.net>
104594         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
104595         of unused local, dfa.
104597 2005-08-20  Bruno Haible  <bruno@clisp.org>
104599         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
104601 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104603         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
104604         (re_node_set_insert_last, re_dfa_add_node):
104605         Rename local variables to avoid GCC shadowing warnings.
104607 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104609         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
104610         [defined lint]: Suppress bogus uninitialized-variable warnings.
104612         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
104613         and let the caller return REG_ESPACE if out of space.  This
104614         removes an uninitialied-variable warning with GCC 4.0.1, and also
104615         avoids taking the address of a local variable.  All callers
104616         changed.
104618 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104620         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
104621         $LIBCSRC/posix/regexec.c.
104622         Add glibc bug 1217 for regcomp.c.
104624 2005-08-19  Jim Meyering  <jim@meyering.net>
104626         * lib/regexec.c (proceed_next_node): Redo local variables to
104627         avoid GCC shadowing warnings.
104629 2005-08-18  Bruno Haible  <bruno@clisp.org>
104631         * lib/strstr.c (strstr): Fix return value in multibyte case.
104632         * lib/strcasestr.c (strcasestr): Likewise.
104634 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
104636         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
104638 2005-08-17  Jim Meyering  <jim@meyering.net>
104640         Make the %s format (seconds since the epoch) work for a negative
104641         number and when used with a zero-padded field width, e.g. %015s.
104643         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
104644         label so that it precedes the code to set `digits'.  Otherwise,
104645         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
104646         print `00-22'.  Now, it prints `-0022', as it should.
104648 2005-08-17  Bruno Haible  <bruno@clisp.org>
104650         * modules/strstr (Files): Add m4/mbrtowc.m4.
104651         (Depends-on): Add mbuiter.
104653 2005-08-17  Bruno Haible  <bruno@clisp.org>
104655         * modules/strcasestr: New file.
104656         * MODULES.html.sh (String handling, based on ANSI C 89): Add
104657         strcasestr.
104659 2005-08-17  Bruno Haible  <bruno@clisp.org>
104661         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
104663 2005-08-17  Bruno Haible  <bruno@clisp.org>
104665         * modules/mbuiter: New file.
104666         * MODULES.html.sh (Extended multibyte and wide character utilities):
104667         Add mbuiter.
104669 2005-08-17  Bruno Haible  <bruno@clisp.org>
104671         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
104672         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
104674 2005-08-17  Bruno Haible  <bruno@clisp.org>
104676         * m4/strcasestr.m4: New file.
104678 2005-08-17  Bruno Haible  <bruno@clisp.org>
104680         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
104681         * lib/strstr.c: Completely rewritten, with multibyte locale support.
104683 2005-08-17  Bruno Haible  <bruno@clisp.org>
104685         * lib/strcasestr.h: New file.
104686         * lib/strcasestr.c: New file.
104688 2005-08-17  Bruno Haible  <bruno@clisp.org>
104690         * lib/strcasecmp.c: Use mbuiter.h.
104692 2005-08-17  Bruno Haible  <bruno@clisp.org>
104694         * lib/mbuiter.h: New file.
104696 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
104698         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
104699         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
104700         and gl_GETOPT are both invoked via different paths (as happens
104701         with GNU tar CVS because it uses both argp and getopt), the former
104702         wins.
104704 2005-08-16  Bruno Haible  <bruno@clisp.org>
104706         * modules/tls: New file.
104707         * MODULES.html.sh (Multithreading): Add tls.
104709 2005-08-16  Bruno Haible  <bruno@clisp.org>
104711         * modules/strnlen1: New file.
104712         * MODULES.html.sh (String handling): Add strnlen1.
104714 2005-08-16  Bruno Haible  <bruno@clisp.org>
104716         * modules/strcase (Files): Add m4/mbrtowc.m4.
104717         (Depends-on): Add strnlen1, mbchar.
104719 2005-08-16  Bruno Haible  <bruno@clisp.org>
104721         * modules/mbiter: New file.
104722         * MODULES.html.sh (Extended multibyte and wide character utilities):
104723         Add mbiter.
104725 2005-08-16  Bruno Haible  <bruno@clisp.org>
104727         * modules/mbfile: New file.
104728         * MODULES.html.sh (Extended multibyte and wide character utilities):
104729         Add mbfile.
104731 2005-08-16  Bruno Haible  <bruno@clisp.org>
104733         * modules/mbchar: New file.
104734         * MODULES.html.sh (Extended multibyte and wide character utilities):
104735         New section.
104737 2005-08-16  Bruno Haible  <bruno@clisp.org>
104739         * m4/tls.m4: New file, from GNU gettext.
104741 2005-08-16  Bruno Haible  <bruno@clisp.org>
104743         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
104744         always.
104745         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
104747 2005-08-16  Bruno Haible  <bruno@clisp.org>
104749         * m4/mbiter.m4: New file.
104751 2005-08-16  Bruno Haible  <bruno@clisp.org>
104753         * m4/mbfile.m4: New file.
104755 2005-08-16  Bruno Haible  <bruno@clisp.org>
104757         * m4/mbchar.m4: New file.
104759 2005-08-16  Bruno Haible  <bruno@clisp.org>
104761         * lib/tls.h: New file, from GNU gettext.
104762         * lib/tls.c: New file, from GNU gettext.
104764 2005-08-16  Bruno Haible  <bruno@clisp.org>
104766         * lib/strnlen1.h: New file.
104767         * lib/strnlen1.c: New file.
104769 2005-08-16  Bruno Haible  <bruno@clisp.org>
104771         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
104772         (mbi_init): Update.
104773         (mbi_avail, mbi_advance): Let the iteration end before the terminating
104774         NUL byte, not after it.
104776 2005-08-16  Bruno Haible  <bruno@clisp.org>
104778         * lib/strcase.h (strcasecmp): Add note in comments.
104779         * lib/strncasecmp.c: Use code from strcasecmp.c.
104780         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
104781         (strcasecmp): Work correctly in multibyte locales.
104783 2005-08-16  Bruno Haible  <bruno@clisp.org>
104785         * lib/mbiter.h: New file.
104787 2005-08-16  Bruno Haible  <bruno@clisp.org>
104789         * lib/mbfile.h: New file.
104791 2005-08-16  Bruno Haible  <bruno@clisp.org>
104793         * lib/mbchar.h: New file.
104794         * lib/mbchar.c: New file.
104796 2005-08-16  Bruno Haible  <bruno@clisp.org>
104798         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
104799         the valid ones. Makes the comparison operations transitive:
104800         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
104801         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
104803 2005-08-15  Simon Josefsson  <jas@extundo.com>
104805         * modules/ssize_t (License): Change to 'unlimited'.
104807         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
104809 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
104811         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
104812         Add comments for each pending glibc patch.
104814 2005-08-15  Bruno Haible  <bruno@clisp.org>
104816         * lib/regex.h (__restrict_arr): Don't define to __restrict if
104817         __cplusplus is defined.
104819 2005-08-14  Jim Meyering  <jim@meyering.net>
104821         Sync from coreutils.
104823         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
104824         Use the hash-table-based cycle-detection code not just when
104825         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
104826         Reported by James Youngman in
104827         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
104828         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
104829         FTS_TIGHT_CYCLE_CHECK.
104830         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
104831         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
104832         once again.
104833         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
104834         * lib/fts.c (fd_safer): Remove decl.
104835         Include fcntl--.h rather than unistd-safer.h
104836         (fts_safe_changedir): Don't call fd_safer; no longer needed
104837         now that we include fcntl--.h.
104839 2005-08-12  Simon Josefsson  <jas@extundo.com>
104841         * modules/getndelim2: Use ssize_t module.
104842         * modules/getnline: Likewise.
104843         * modules/safe-read: Likewise.
104844         * modules/xreadlink: Likewise.
104846         * modules/ssize_t: New file.
104848 2005-08-12  Simon Josefsson  <jas@extundo.com>
104850         * m4/readline.m4: Look for termcap, curses or ncurses if required.
104852 2005-08-12  Simon Josefsson  <jas@extundo.com>
104854         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104855         ssize_t.
104857 2005-08-12  Simon Josefsson  <jas@extundo.com>
104859         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
104860         readline, getdelim and check_version.
104861         (Support for systems lacking ISO C 99: Sizes of integer types):
104862         Add size_max.
104864 2005-08-12  Bruno Haible  <bruno@clisp.org>
104866         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
104868 2005-08-11  Simon Josefsson  <jas@extundo.com>
104870         * modules/readline: New file.
104872         * modules/strnlen (Files): Add strnlen.h.
104874 2005-08-11  Simon Josefsson  <jas@extundo.com>
104876         * m4/readline.m4: New file.
104878 2005-08-11  Simon Josefsson  <jas@extundo.com>
104880         * lib/readline.h, readline.c: New file.
104882 2005-08-11  Simon Josefsson  <jas@extundo.com>
104884         * doc/gnulib.texi (Initial import, Finishing touches): Mention
104885         gl_AVOID.
104887 2005-08-11  Bruno Haible  <bruno@clisp.org>
104889         * lib/strnlen.h (strnlen): Change parameter name to match comment.
104891 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
104893         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
104895 2005-08-10  Simon Josefsson  <jas@extundo.com>
104897         * tests/test-iconvme.c: New file.
104899 2005-08-10  Simon Josefsson  <jas@extundo.com>
104901         * m4/strnlen.m4: New file.
104903         * m4/strndup.m4: Don't check for strnlen declaration, done in
104904         strnlen.m4.
104906 2005-08-10  Simon Josefsson  <jas@extundo.com>
104908         * lib/strndup.c: Use strnlen.h.
104910         * lib/strnlen.h: New file.
104912 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
104914         * README: Typos.
104916 2005-08-02  Simon Josefsson  <jas@extundo.com>
104918         * modules/readline: New file.
104920 2005-08-02  Simon Josefsson  <jas@extundo.com>
104922         * modules/getdelim: New file.
104924         * modules/getline: Rewrite, don't use getndelim2.
104926 2005-08-02  Simon Josefsson  <jas@extundo.com>
104928         * m4/getline.m4: Separate out getdelim stuff into separate module.
104930         * m4/getdelim.m4: New file.
104932 2005-08-02  Simon Josefsson  <jas@extundo.com>
104934         * lib/getline.h, getline.c: Rewrite.
104936         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
104938 2005-07-31  Bruno Haible  <bruno@clisp.org>
104940         * lib/lock.h (gl_lock_initializer): New macro.
104941         (gl_lock_define_initialized): Use it.
104942         (gl_rwlock_initializer): New macro.
104943         (gl_rwlock_define_initialized): Use it.
104944         (gl_recursive_lock_initializer): New macro.
104945         (gl_recursive_lock_define_initialized): Use it.
104947 2005-07-30  Karl Berry  <karl@gnu.org>
104949         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
104950         Report from Ben Pfaff, regarding getopt.
104952 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
104954         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
104955         normal way.
104956         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
104957         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
104958         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
104959         (gl_GETOPT): Use the new macros.  Most of the implementation
104960         is moved to the new macros.  This is for programs like Emacs
104961         that don't want all the functionality of gl_GETOPT.
104963 2005-07-26  Bruno Haible  <bruno@clisp.org>
104965         * m4/lock.m4: Update from GNU gettext.
104967 2005-07-26  Bruno Haible  <bruno@clisp.org>
104969         * lib/lock.h: Update from GNU gettext.
104970         * lib/lock.c: Update from GNU gettext.
104972 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
104974         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
104975         obsolescent AC_TRY_RUN.  Include the default includes files, for
104976         'exit'.
104978 2005-07-24  Bruno Haible  <bruno@clisp.org>
104980         * modules/visibility: New file.
104981         * MODULES.html.sh (Misc): Add visibility.
104983 2005-07-24  Bruno Haible  <bruno@clisp.org>
104985         * m4/visibility.m4: New file.
104987 2005-07-24  Bruno Haible  <bruno@clisp.org>
104989         * doc/visibility.texi: New file.
104991 2005-07-22  Bruno Haible  <bruno@clisp.org>
104993         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
104994         $(ALLOCA_H), redundant through BUILT_SOURCES.
104995         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
104996         redundant through BUILT_SOURCES.
104997         * modules/byteswap (Makefile.am): Remove explicit dependency on
104998         $(BYTESWAP_H), redundant through BUILT_SOURCES.
104999         * modules/fnmatch (Makefile.am): Remove explicit dependency on
105000         $(FNMATCH_H), redundant through BUILT_SOURCES.
105001         * modules/getopt (Makefile.am): Remove explicit dependency on
105002         $(GETOPT_H), redundant through BUILT_SOURCES.
105003         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
105004         redundant through BUILT_SOURCES.
105005         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
105006         redundant through BUILT_SOURCES.
105007         * modules/stdbool (Makefile.am): Remove explicit dependency on
105008         $(STDBOOL_H), redundant through BUILT_SOURCES.
105009         * modules/stdint (Makefile.am): Remove explicit dependency on
105010         $(STDINT_H), redundant through BUILT_SOURCES.
105011         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
105012         Remove explicit dependency on $(SYSEXITS_H).
105013         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
105015 2005-07-18  Simon Josefsson  <jas@extundo.com>
105017         * lib/check-version.c (check_version): Accept identical versions too.
105019 2005-07-18  Bruno Haible  <bruno@clisp.org>
105021         * modules/lock: New file.
105022         * MODULES.html.sh (Multithreading): New section.
105024 2005-07-18  Bruno Haible  <bruno@clisp.org>
105026         * m4/lock.m4: New file, from GNU gettext.
105028 2005-07-18  Bruno Haible  <bruno@clisp.org>
105030         * lib/lock.h: New file, from GNU gettext.
105031         * lib/lock.c: New file, from GNU gettext.
105033 2005-07-18  Bruno Haible  <bruno@clisp.org>
105035         * lib/lock.h (gl_once_t): New type.
105036         (gl_once_define, gl_once): New macros.
105037         * lib/lock.c (fresh_once): New variable.
105038         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
105039         functions.
105041 2005-07-16  Simon Josefsson  <jas@extundo.com>
105043         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
105044         workaround, suggested by Bruno.
105046 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105048         * modules/xalloc (Depends-on): Add xalloc-die.
105049         * modules/xvasprintf (Depends-on): Add xalloc-die.
105051 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105053         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
105054         with a minor change.
105056 2005-07-15  Bruno Haible  <bruno@clisp.org>
105058         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
105059         When using lib/poll.c, define poll as rpl_poll.
105061 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
105063         * modules/argp (Depends-on): Remove unlocked-io.
105065 2005-07-14  Derek Price  <derek@ximbiot.com>
105067         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
105068         for glob symlink bug.
105070 2005-07-14  Bruno Haible  <bruno@clisp.org>
105072         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
105073         Instead, test for *_unlocked function declarations directly.
105075 2005-07-11  Simon Josefsson  <jas@extundo.com>
105077         * modules/size_max: New file.
105079         * modules/xsize: Depend on size_max module for size_max.m4.
105081 2005-07-11  Simon Josefsson  <jas@extundo.com>
105083         * lib/size_max.h: New file.
105085 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
105087         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
105088         copyright symbol and the year.
105089         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
105090         (version_etc_va): Use parameterized copyright notice.
105091         Reword to conform to the current GNU coding standards.
105093 2005-07-11  Karl Berry  <karl@gnu.org>
105095         * doc/gnulib.texi (Quoting): new node.
105096         (Initial import): more info, from Patrice.
105098 2005-07-11  Bruno Haible  <bruno@clisp.org>
105100         * gnulib-tool (func_usage): Document option --avoid.
105101         (Command line options): Handle --avoid.
105102         (func_acceptable): New function.
105103         (func_modules_transitive_closure): Use it.
105105 2005-07-11  Bruno Haible  <bruno@clisp.org>
105107         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
105108         Reported by Jim Meyering.
105110 2005-07-10  Bruno Haible  <bruno@clisp.org>
105112         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
105113         Needed when size_t is smaller than 'unsigned int'.
105114         Reported by Paul Eggert.
105116 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105118         * modules/argp (Depends-on): Add unlocked-io
105120 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105122         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
105123         block of defines.
105125 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
105127         * config/srclist.txt: Comment out regcomp.c, since we have a porting
105128         fix now.
105130 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
105131         and Paul Eggert  <eggert@cs.ucla.edu>
105133         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
105134         in wint_t, not wchar_t.  Remove now-unnecessary cast.
105136 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105138         * modules/regex (Files): Add lib/regex_internal.c,
105139         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
105140         (Depends-on): Add extensions.
105141         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
105143 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105145         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
105146         pathconf.
105147         * m4/same.m4 (gl_SAME): Likewise.
105148         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
105150         * m4/regex.m4: Adjust to new libc regex implementation.
105151         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
105152         all the .c and .h parts of (the new) regex.
105153         Quote the m4 stuff better.
105154         Check for RE_ICASE bug of old gnulib.
105155         Check for REG_STARTEND of recent libc.
105156         Rename local variables from jm_* to gl_*.
105157         Quote operand of "test -f".
105158         Say "recent enough" version of libc, not "version 2".
105159         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
105160         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
105161         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
105162         Remove check for btowc, isascii.
105163         Require AM_LANGINFO_CODESET.
105165 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105167         * lib/regex.c, regex.h: Sync from libc.
105168         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
105169         * lib/regexec.c:
105170         New files, synced from libc, except that regex_internal.h
105171         currently has a small porting fix.
105173 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105175         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
105176         regex_internal.c, regexec.c.
105177         Add regex_internal.h too, but as a comment, since the libc version
105178         is currently broken in gnulib mode.
105180 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105182         Support programs like Emacs that use gnulib but not gettext.
105183         * MODULES.html.sh (Internationalization functions): Add gettext-h.
105184         * modules/gettext-h: New file.
105185         * modules/gettext (Files): Remove lib/gettext.h.
105186         (Depends-on): Add gettext-h.
105187         (Makefile.am): Remove lib_SOURCES.
105188         * modules/argmatch, modules/c-stack, modules/closeout:
105189         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
105190         * modules/execute, modules/file-type, modules/getaddrinfo:
105191         * modules/getopt, modules/human, modules/javacomp:
105192         * modules/javaexec, modules/mkdir-p, modules/obstack:
105193         * modules/openat, modules/pagealign_alloc, modules/pipe:
105194         * modules/quotearg, modules/regex, modules/rpmatch:
105195         * modules/unicodeio, modules/userspec, modules/version-etc:
105196         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
105197         * modules/xsetenv:
105198         Depend on gettext-h, not gettext.
105200 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105202         * gnulib-tool (func_import): Add support for 'public domain' license.
105203         * modules/alloca, modules/atexit, modules/memmove:
105204         Now public domain, not GPL.
105205         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
105206         * modules/realloc, modules/strerror, modules/strtod:
105207         Now LGPL, not GPL.
105209 2005-07-05  Bruno Haible  <bruno@clisp.org>
105211         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
105212         autoconf CVS. Needed for mingw.
105214 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105216         Remove the dependency of the strftime module on the tzset module.
105217         * modules/strftime (Depends-on): Remove dependency on tzset.
105219 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105221         Remove the dependency of the strftime module on the tzset module.
105222         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
105223         gl_FUNC_TZSET_CLOBBER.
105225 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105227         Remove the dependency of the strftime module on the tzset module.
105228         * lib/strftime.c (my_strftime)
105229         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
105230         Copy the input structure, to work around some of the bug with
105231         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
105232         Solaris releases, you should also use the tzset module, but we won't
105233         require it as a dependency any more since we don't want LGPLed code
105234         to depend on GPLed code.
105236 2005-07-02  Jim Meyering  <jim@meyering.net>
105238         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
105239         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
105240         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
105241         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
105243 2005-07-02  Jim Meyering  <jim@meyering.net>
105245         * lib/backupfile.c (backup_args): Change a `0' to NULL.
105247 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105249         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
105250         declares only 'struct timespec;' (!).
105252 2005-07-01  Jim Meyering  <jim@meyering.net>
105254         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
105255         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
105256         * lib/save-cwd.c, tempname.c:
105257         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
105258         and don't include <sys/file.h>).
105260 2005-06-29  Jim Meyering  <jim@meyering.net>
105262         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
105263         type name.  Use the variable name instead.
105264         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
105265         Likewise.
105267 2005-06-28  Simon Josefsson  <jas@extundo.com>
105269         * modules/check-version (Files): Add check-version.m4.
105271 2005-06-28  Simon Josefsson  <jas@extundo.com>
105273         * m4/check-version.m4: New file, suggested by Jim Meyering
105274         <jim@meyering.net>.
105276 2005-06-28  Simon Josefsson  <jas@extundo.com>
105278         * lib/check-version.h, lib/check-version.c: New files.
105280 2005-06-28  Simon Josefsson  <jas@extundo.com>
105282         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
105283         collision with global variable.  Better indentation.  Don't
105284         increment buffer pointer beyond buffer end.  Based on comments
105285         from Paul Eggert <eggert@cs.ucla.edu>.
105287         * lib/base64.h: Indent.
105289 2005-06-28  Simon Josefsson  <jas@extundo.com>
105291         * doc/gnulib.texi (Library version handling): New section.
105293 2005-06-28  Jim Meyering  <jim@meyering.net>
105295         * check-module (find_included_lib_files): Hard-code another
105296         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
105297         but modules/fts-lgpl (correctly) does not list those files.
105299         * modules/canonicalize (Files): Add lib/pathmax.h.
105301 2005-06-25  Simon Josefsson  <jas@extundo.com>
105303         * modules/check-version: New file.
105305 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
105307         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
105308         initializer of struct addrinfo, as an indication that we don't
105309         care how many members the structure has.
105311 2005-06-24  Derek Price  <derek@ximbiot.com>
105312         and Bruno Haible  <bruno@clisp.org>
105314         Remove stat module & update lstat.
105315         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
105316         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105317         * m4/stat.m4: Remove this file.
105319 2005-06-24  Derek Price  <derek@ximbiot.com>
105320         and Bruno Haible  <bruno@clisp.org>
105322         Remove stat module & update lstat.
105323         * lib/stat.c: Remove this file...
105324         (slash_aware_lstat): ...moving this content and its support...
105325         * lib/lstat.c (rpl_lstat): ...into here.
105326         * lib/lstat.h: New file.
105328 2005-06-24  Derek Price  <derek@ximbiot.com>
105329         and Bruno Haible  <bruno@clisp.org>
105331         Remove stat module & update lstat.
105332         * config/srclist.txt (libc sources): Remove stat.
105334 2005-06-24  Derek Price  <derek@ximbiot.com>
105335         and Bruno Haible  <bruno@clisp.org>
105337         Remove stat module & update lstat.
105338         * MODULES.html.sh (stat): Remove.
105339         * MODULES.html: Regenerated.
105340         * modules/lstat (Description): Correct function name.
105341         (Files): Add "lstat.h".
105342         (Depends-on): Remove stat, add xalloc, stat-macros.
105343         * modules/stat: Remove this file.
105344         (Include): Add "lstat.h", remove <sys/stat.h>.
105346 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
105348         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
105349         (ranged_convert): Don't save conversion in a temporary struct.
105350         This causes a warning with GCC 4.0.0, and anyway in the typical
105351         case it's not worth the extra 100 bytes or so of code.
105352         (ranged_convert, __mktime_internal): When calling a function via a
105353         pointer P, use P () rather than (*P) (), as we now assume C89 or
105354         better.
105356 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
105358         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
105359         "who -r" failed to give output.  Problem reported by Tim Waugh.
105361         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
105362         (xcalloc): Use it to avoid needless tests.
105363         Problem reported by Jim Meyering.
105365 2005-06-20  Derek Price  <derek@ximbiot.com>
105367         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
105368         unnecessary for Autoconfs > 2.59c.
105370 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105372         * lib/argp.h (__option_is_short): Check upper limit of
105373         __key. Isprint() requires its argument to have the value
105374         of an unsigned char or EOF.
105376 2005-06-16  Jim Meyering  <jim@meyering.net>
105378         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
105379         when either N or S is zero.
105381 2005-06-16  Derek Price  <derek@ximbiot.com>
105383         * m4/bison.m4: Declare YACC & YFLAGS precious.
105385 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
105387         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
105388         multibyte string or pattern, fall back on unibyte matching.
105389         Problem reported by James Youngman.
105391 2005-06-08  Bruno Haible  <bruno@clisp.org>
105393         * modules/csharpcomp: New file.
105394         * MODULES.html.sh (C#): Add csharpcomp.
105396 2005-06-08  Bruno Haible  <bruno@clisp.org>
105398         * m4/csharpcomp.m4: New file, from GNU gettext.
105400 2005-06-08  Bruno Haible  <bruno@clisp.org>
105402         * lib/csharpcomp.h: New file, from GNU gettext.
105403         * lib/csharpcomp.c: New file, from GNU gettext.
105404         * lib/csharpcomp.sh.in: New file, from GNU gettext.
105406 2005-06-08  Bruno Haible  <bruno@clisp.org>
105408         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
105409         warning on mingw.
105411 2005-06-07  Derek Price  <derek@ximbiot.com>
105413         Sync from CVS.
105414         * lib/glob_.h: Indent nested #ifdef.
105416 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105418         Sync from coreutils.
105419         Use "file name" when talking about file names, instead of "filename"
105420         or "path", as per the GNU coding standards.
105421         * lib/mkdir-p.c: Renamed from makepath.c.
105422         (make_dir_parents): Renamed from make_path.  All callers changed.
105423         * lib/mkdir-p.h: Likewise.  All includers changed.
105424         * lib/filenamecat.c: Renamed from path-concat.c.
105425         (file_name_concat): Renamed from path_concat.  All callers changed.
105426         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
105427         * lib/filenamecat.h: Likewise.  All includers changed.
105428         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
105429         in comments or local variable names.
105430         * lib/basename.c: Likewise.
105431         * lib/canonicalize.c, canonicalize.h: Likewise.
105432         * lib/dirname.c, dirname.h: Likewise.
105433         * lib/euidaccess.c: Likewise.
105434         * lib/exclude.c: Likewise
105435         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
105436         * lib/fsusage.c, fsuage.h: Likewise.
105437         * lib/fts.c, fts_.h: Likewise.
105438         * lib/getcwd.c: Likewise.
105439         * lib/getloadavg.c: Likewise.
105440         * lib/mkstemp.c: Likewise.
105441         * lib/mountlist.c, mountlist.h: Likewise.
105442         * lib/openat.c, openat.h: Likewise.
105443         * lib/readlink-stub.c: Likewise.
105444         * lib/readutmp.c, readutmp.h: Likewise.
105445         * lib/rename.c: Likewise.
105446         * lib/rmdir.c: Likewise.
105447         * lib/same.c: Likewise.
105448         * lib/savedir.c: Likewise.
105449         * lib/stripslash.c: Likewise.
105450         * lib/tempname.c: Likewise.
105451         * lib/xreadlink.c: Likewise.
105452         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
105453         All uses changed.
105454         * lib/exclude.h: Likewise.
105456         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
105457         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105458         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
105459         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105460         * lib/pathmax.h: Include <limits.h> unconditionally, since other
105461         files have been getting away with it for years (MORE/BSD 4.3
105462         is extinct now).
105463         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
105464         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
105466         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
105467         Define to 256, not 255, as per modern POSIX.
105469 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105471         Sync from coreutils.
105472         Use "file name" when talking about file names, instead of "filename"
105473         or "path", as per the GNU coding standards.
105474         * MODULES.html.sh: mkdir-p renamed from makepath.
105475         filenamecat renamed from path-concat.
105476         * modules/filenamecat: Renamed from modules/path-concat.
105477         (Files): filenamecat.h and filenamecat.c renamed from
105478         path-concat.h and path-concat.c.
105479         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
105480         (Include): filenamecat.h, not path-concat.h.
105481         * modules/mkdir-p: Renamed from modules/makepath.
105482         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
105483         makepath.c.
105484         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
105485         (Include): mkdir-p.h, not makepath.h.
105487 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
105489         Sync from coreutils.
105490         * m4/mkdir-p.m4: Renamed from makepath.m4.
105491         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
105492         Rename files from makepath.c to mkdir-p.c, and from
105493         makepath.h to mkdir-p.h.
105494         * m4/filenamecat.m4: Renamed from path-concat.m4.
105495         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
105496         Rename files from path-concat.c to filenamecat.c,
105497         and from path-concat.h to filenamecat.h.
105498         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
105499         "file name" in local variables or comments.
105500         * m4/rename.m4: Likewise.
105502 2005-06-01  Bruno Haible  <bruno@clisp.org>
105504         * modules/csharpexec: New file.
105505         * MODULES.html.sh (C#): New section.
105507 2005-06-01  Bruno Haible  <bruno@clisp.org>
105509         * m4/csharp.m4: New file, from GNU gettext.
105510         * m4/csharpexec.m4: New file, from GNU gettext.
105512 2005-06-01  Bruno Haible  <bruno@clisp.org>
105514         * lib/csharpexec.h: New file, from GNU gettext.
105515         * lib/csharpexec.c: New file, from GNU gettext.
105516         * lib/csharpexec.sh.in: New file, from GNU gettext.
105518 2005-05-31  Derek Price  <derek@ximbiot.com>
105519             Paul Eggert  <eggert@cs.ucla.edu>
105521         Sync from cvs.
105522         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105524 2005-05-31  Derek Price  <derek@ximbiot.com>
105525             Paul Eggert  <eggert@cs.ucla.edu>
105527         Sync from cvs.
105528         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
105530 2005-05-29  Derek Price  <derek@ximbiot.com>
105532         * config/srclist.txt (glob_.h, glob.c): Add these files.
105534 2005-05-29  Derek Price  <derek@ximbiot.com>
105536         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
105537         * modules/glob: New file.
105538         * modules/getlogin_r: Add link to POSIX spec in description.
105540 2005-05-29  Derek Price  <derek@ximbiot.com>
105541             Paul Eggert  <eggert@cs.ucla.edu>
105543         * m4/glob.m4: New file.
105545 2005-05-29  Derek Price  <derek@ximbiot.com>
105546             Paul Eggert  <eggert@cs.ucla.edu>
105548         * lib/glob_.h, lib/glob.c: New files.
105550 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105552         * modules/fts (Files): Remove m4/inttypes-pri.m4.
105553         * modules/fts-lgpl (Depends-on): Remove gettext.
105555 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105557         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
105558         and don't require gt_INTTYPES_PRI.
105560 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
105562         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
105564         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
105565         the configuration hassle isn't worth it.
105566         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
105567         (LONGEST_MODIFIER, PRIuMAX): Remove.
105569 2005-05-27  Bruno Haible  <bruno@clisp.org>
105571         * lib/getlogin_r.h: Remove second include of <stddef.h>.
105573 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
105575         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
105576         _POSIX_PTHREAD_SEMANTICS for Solaris.
105578 2005-05-25  Derek Price  <derek@ximbiot.com>
105580         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
105582 2005-05-25  Derek Price  <derek@ximbiot.com>
105583             Paul Eggert  <eggert@cs.ucla.edu>
105585         * modules/getlogin_r, m4/getlogin_r.m4: New files.
105586         * lib/getlogin_r.c, getlogin_r.h: New files.
105588 2005-05-25  Bruno Haible  <bruno@clisp.org>
105589             Derek Price  <derek@ximbiot.com>
105591         * lib/getlogin_r.h: Simplify API documentation.
105593 2005-05-23  Derek Price  <derek@ximbiot.com>
105595         * modules/minmax (Files): Add m4/minmax.m4.
105596         (configure.ac): Add gl_MINMAX.
105598 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
105600         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
105601         so that unistd-safer.h (GPL'ed code) need not be included.
105603 2005-05-22  Bruno Haible  <bruno@clisp.org>
105605         * m4/minmax.m4: New file.
105606         Based on a patch by Derek Price <derek@ximbiot.com>.
105608 2005-05-22  Bruno Haible  <bruno@clisp.org>
105610         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
105611         (INT64_MIN): Fix definition.
105612         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
105614         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
105615         NEED_SIGNED_INT_TYPES.
105617         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
105618         HAVE_SYSTEM_INTTYPES.
105620 2005-05-22  Bruno Haible  <bruno@clisp.org>
105622         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
105623         Also include <sys/param.h> if it defines MIN, MAX.
105624         Based on a patch by Derek Price <derek@ximbiot.com>.
105626 2005-05-21  Jim Meyering  <jim@meyering.net>
105628         * modules/fts (Files): Add m4/inttypes-pri.m4.
105629         (Depends-on): Add lstat and remove gettext.  Alphabetize.
105631 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105633         New fts module.
105634         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
105635         (setup_dir, free_dir): New functions.
105636         (enter_dir, leave_dir): Define trivial
105637         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
105638         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
105639         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
105640         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
105641         Move to fts-cycle.c.
105642         (fts_open): Use setup_dir.
105643         (fts_close): Use free_dir.
105644         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
105645         This adds a label and some gotos, but the alternatives were messier.
105646         Check for memory allocation failure when entering a dir.
105647         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
105648         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
105649         (FTS): New member fts_cycle, that is a union that contains the
105650         old active_dir_ht and cycle_state.  All uses changed to mention
105651         fts_cycle.ht and fts_cycle.state.
105652         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
105653         fts.c, with the following changes:
105654         (setup_dir, free_dir): New functions.
105655         (enter_dir): Now returns bool.  Return true if successful, false
105656         if memory exhausted.  All callers changed.
105657         Do not bother partly cleaning up on
105658         memory allocation failure; that is free_dir's job.
105659         However, free ad if hash_insert fails, to avoid memory leak.
105660         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
105661         fts->fts_options to see which union member to use.
105663 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105665         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
105666         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
105668 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
105670         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
105672 2005-05-20  Jim Meyering  <jim@meyering.net>
105674         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
105675         Now a macro, to pacify GCC.
105677 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
105679         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
105680         of -1.
105682 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
105684         * lib/chown.c (rpl_chown): Return -1 on failure.
105686 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
105688         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
105689         Don't check for stddef.h.
105690         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
105691         don't use its results.
105692         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
105693         since we include them unconditionally.  Don't require
105694         AM_STDBOOL_H, since stdbool is a prerequisite.
105695         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
105696         since we assume C89 or better.
105697         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
105698         as we don't use their results.
105699         Don't check for fchdir, memmove, memset, strrchr, as we use
105700         them unconditionally.
105701         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
105702         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
105704 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
105706         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
105707         Include <stddef.h> unconditionally, since we assume C89 now.
105708         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
105709         * lib/fts.c: Include fts_.h first, to check interface.
105710         Do not include intprops.h; no longer needed.
105711         Include cycle-check.h and hash.h, since fts_.h no longer does.
105712         Remove unnecessary casts of closedir to void.
105713         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
105714         decide whether to decrement nlinks.
105715         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
105716         (FTS): Use struct hash_table * instead of Hash_table, so that
105717         we no longer need to include hash.h here.
105719 2005-05-18  Jim Meyering  <jim@meyering.net>
105721         * modules/dirfd (License): Change to LGPL.  Most of the code
105722         is already in the public domain.
105724 2005-05-18  Jim Meyering  <jim@meyering.net>
105726         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
105727         Reported by Yoann Vandoorselaere.
105729 2005-05-17  Jim Meyering  <jim@meyering.net>
105731         * m4/fts.m4: New file, from coreutils.
105733 2005-05-17  Jim Meyering  <jim@meyering.net>
105735         * lib/fts.c, lib/fts_.h: New files, from coreutils.
105737 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
105739         Sync from coreutils.
105740         * m4/unlinkdir.m4: New file.
105742 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
105744         Sync from coreutils.
105745         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
105746         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
105747         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
105748         White space changes only.
105749         * lib/makepath.c (make_path): Port to hosts where leading "//" is
105750         special.
105751         * lib/yesno.c: Include getline.h, not ctype.h.
105752         (yesno): Don't remove leading white space; POSIX doesn't allow it.
105753         Use getline to remove arbitrary restriction on response length.
105755 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
105757         * config/srclist-update: Spell out "Street" in FSF postal
105758         mail address; this is the style the FSF seems to prefer.
105760         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
105761         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
105762         this updates FSF postal mail address.
105764         Sync from coreutils.
105765         * modules/unlinkdir: New file.
105766         * modules/yesno (Depends-on): Add getline.
105767         * MODULES.html.sh (File system functions): Add unlinkdir.
105769 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105771         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
105772         lib/strsep.h:
105773         Change the initial comment to refer to GPL, not LGPL.
105774         gnulib-tool will change it to LGPL as needed.
105776         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
105777         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
105778         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
105779         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
105780         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
105781         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
105782         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
105783         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
105784         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
105785         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
105786         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
105787         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
105788         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
105789         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
105790         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
105791         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
105792         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
105793         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
105794         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
105795         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
105796         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
105797         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
105798         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
105799         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
105800         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
105801         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
105802         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
105803         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
105804         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
105805         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
105806         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
105807         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
105808         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
105809         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
105810         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
105811         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
105812         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
105813         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
105814         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
105815         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
105816         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
105817         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
105818         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
105819         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
105820         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
105821         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
105822         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
105823         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
105824         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
105825         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
105826         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
105827         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
105828         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
105829         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
105830         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
105831         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
105832         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
105833         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
105834         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
105835         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
105836         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
105837         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
105838         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
105839         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
105840         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
105841         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
105842         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
105843         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
105844         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
105845         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
105846         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
105847         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
105848         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
105849         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
105850         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
105851         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
105852         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
105853         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
105854         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
105855         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
105856         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
105857         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
105858         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
105859         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
105860         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
105861         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
105862         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
105863         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
105864         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
105865         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
105866         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
105867         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
105868         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
105869         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
105870         lib/yesno.c, lib/yesno.h:
105871         Update FSF postal mail address.
105873 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
105875         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
105876         tests/test-memmem.c, tests/test-stpncpy.c:
105877         Update FSF postal mail address.
105879 2005-05-13  Bruno Haible  <bruno@clisp.org>
105881         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
105882         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
105883         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
105884         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
105885         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
105886         Add support for 64-bit integers in the MSVC compiler.
105888 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105890         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
105892 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
105894         * gnulib-tool (func_import): Sort and uniquify recommended includes.
105896 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
105898         * doc/getdate.texi (General date syntax): Don't say that date
105899         date --iso-8601=ns generates acceptable dates; it doesn't yet.
105900         Problem reported by Nic Ferrier.
105902 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105904         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
105905         specified in ai_socktype. Fix invalid ai_protocol
105906         check. ai_protocol is usually set to 0 or depending on
105907         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
105908         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
105909         ai_socktype / ai_protocol in the returned addrinfo structure.
105911 2005-05-10  Simon Josefsson  <jas@extundo.com>
105913         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
105914         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
105916 2005-05-10  Karl Berry  <karl@gnu.org>
105918         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
105919         (from http://www.gnu.org/licenses).
105920         * doc/COPYING.LIB: also rename to COPYING.LESSER.
105921         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
105922         fdl.texi suffices.
105924 2005-05-10  Karl Berry  <karl@gnu.org>
105926         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
105927         (COPYING.DOC): remove.
105929         * config/srclist-update: new FSF address.
105931 2005-05-10  Derek Price  <derek@ximbiot.com>
105933         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
105934         possible.
105936 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105937             Bruno Haible  <bruno@clisp.org>
105939         * modules/inet_ntop: New file.
105940         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105941         inet_ntop.
105943 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105944             Bruno Haible  <bruno@clisp.org>
105946         * m4/inet_ntop.m4: New file.
105948 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105949             Bruno Haible  <bruno@clisp.org>
105951         * lib/inet_ntop.h: New file.
105952         * lib/inet_ntop.c: New file, from glibc with modifications.
105954 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
105956         * modules/time_r (License): Change to LGPL.
105957         * modules/extensions (License): Change to LGPL.  Actually,
105958         the license is more permissive than that, but currently gnulib-tool
105959         doesn't know how to handle more-permissive licenses.
105961         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
105962         Problem reported by Dave Love.
105964 2005-05-08  Jim Meyering  <jim@meyering.net>
105966         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
105967         blank.
105969 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
105971         * modules/argmatch (Depends-on): Add stdbool.
105972         * modules/backupfile (Depends-on): Likewise.
105973         * modules/chdir-long (Depends-on): Likewise.
105974         * modules/closeout (Depends-on): Likewise.
105975         * modules/cycle-check (Depends-on): Likewise.
105976         * modules/dirname (Depends-on): Likewise.
105977         * modules/fnmatch (Depends-on): Likewise.
105978         * modules/fsusage (Depends-on): Likewise.
105979         * modules/fwriteerror (Depends-on): Likewise.
105980         * modules/getcwd (Depends-on): Likewise.
105981         * modules/getloadavg (Depends-on): Likewise.
105982         * modules/hard-locale (Depends-on): Likewise.
105983         * modules/makepath (Depends-on): Likewise.
105984         * modules/mountlist (Depends-on): Likewise.
105985         * modules/nanosleep (Depends-on): Likewise.
105986         * modules/posixtm (Depends-on): Likewise.
105987         * modules/quotearg (Depends-on): Likewise.
105988         * modules/readtokens (Depends-on): Likewise.
105989         * modules/readtokens0 (Depends-on): Likewise.
105990         * modules/readutmp (Depends-on): Likewise.
105991         * modules/save-cwd (Depends-on): Likewise.
105992         * modules/strftime (Depends-on): Likewise.
105993         * modules/userspec (Depends-on): Likewise.
105994         * modules/utimecmp (Depends-on): Likewise.
105995         * modules/xgetcwd (Depends-on): Likewise.
105996         * modules/xnanosleep (Depends-on): Likewise.
105997         * modules/xstrtod (Depends-on): Likewise.
105998         * modules/yesno (Depends-on): Likewise.
106000 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
106002         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
106003         needless checks.
106005 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106007         Merge from coreutils.  Among other things,
106008         add bulletproofing for cases where stdin, stdout, or stderr are closed.
106009         * lib/fd-safer.c: New file.
106010         * lib/fcntl-safer.h, open-safer.c: Remove.
106011         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
106012         * lib/dup-safer.c: Include unistd-safer.h first.
106013         Don't include errno.h.
106014         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
106015         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
106016         * lib/file-type.c: Rely on file-type.h change.
106017         * lib/getloadavg.c: Include unistd-safer.h.
106018         (getloadavg): Use safer open.
106019         * lib/getusershell.c: Include "stdio-safer.h".
106020         (getusershell): Use safer fopen.
106021         * lib/long-options.c (long_options): Use NULL rather than 0.
106022         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
106023         'free'.
106024         * lib/modechange.c: Likewise.
106025         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
106026         (MODE_DONE): New constant.
106027         (struct mode_change): Remove 'next' member.
106028         (make_node_op_equals): New function; like the old one of the
106029         same name, except it allocates an array.
106030         (mode_compile, mode_create_from_ref): Use it.
106031         (mode_compile): Allocate result as an array, not a linked list.
106032         Parse octal string ourself, so that we catch mistakes like "+0".
106033         (mode_adjust): Arg is an array, not a linked list.
106034         * lib/modechange.c: Include stat-macros.h, xalloc.h.
106035         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
106036         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
106037         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
106038         Remove.  This is now stat-macros.h's job.
106039         (talloc): Remove.  All callers replaced by xalloc, so that
106040         our invokers don't have to worry about reporting memory failures.
106041         (make_node_op_equals): Remove.
106042         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106043         New constants.
106044         (struct mode_change): Moved here from modechange.h.
106045         (mode_append_entry): Remove.
106046         (mode_compile): Remove MASKED_OPS arg, since it encouraged
106047         apps to have incorrect behavior.  Use simpler algorithm for head
106048         and tail.  Don't futz with umask; that's now the job of mode_adjust.
106049         Detect more invalid usages rather than having somewhat-random behavior.
106050         Don't insert an "a=" action, as that leads to incorrect behavior.
106051         (mode_compile, mode_create_from_ref): Return NULL on error instead
106052         of an enum, since now there's only one way to have an error.  All
106053         callers changed.
106054         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
106055         at the correct time.  Simplify calculation of "+u" and its ilk.
106056         Don't mishandle "+X".
106057         (mode_free): Remove "register" and localize decls.
106058         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106059         (struct mode_change): Move to modechange.c; callers don't
106060         need to see this stuff.
106061         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
106062         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
106063         (mode_change, mode_adjust): Reflect the new signatures noted above.
106064         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
106065         that might redefine system include files.
106066         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
106067         (my_usleep): Use NULL rather than (void *) 0.
106068         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
106069         Use siginterrupt to specify that system calls should be interrupted.
106070         (rpl_nanosleep): Move initialization of suspended closer to call of
106071         my_usleep.
106072         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
106073         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
106074         (desirable_utmp_entry): New function.
106075         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
106076         using x2nrealloc, to simplify logic.
106077         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
106078         size calculation.  Do not assume utmp file is a regular file.
106079         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
106080         (READ_UTMP_CHECK_PIDS): New constant.
106081         * lib/save-cwd.c: Include unistd-safer.h.
106082         (save_cwd): Use fd_safer.
106083         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
106084         [!_LIBC] Include "stat-macros.h" instead.
106085         * lib/unistd-safer.h (fd_safer): New decl.
106087 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106089         * modules/getloadavg (Depends-on): Add unistd-safer.
106090         * modules/getusershell (Depends-on): Add stdio-safer.
106091         * modules/lstat (Depends-on): Remove xalloc.
106092         * modules/mkstemp (Depends-on): Add stat-macros.
106093         * modules/modechange (Depends-on): Remove xstrtol.
106094         Add stat-macros, xalloc.
106095         * modules/save-cwd (Depends-on): Add unistd-safer.
106096         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
106097         * modules/unistd-safer (Files): Add lib/fd-safer.c
106098         (Makefile.am): Remove lib_SOURCES.
106100         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
106101         Remove fcntl-safer; unistd-safer supersedes it.
106103 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106105         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
106106         AC_HEADER_STAT.
106107         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
106108         (gl_PREREQ_CHOWN): Remove.
106109         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
106110         it.  Don't require AC_HEADER_STAT.
106111         (gl_PREREQ_LSTAT): Remove.
106112         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
106113         Don't require AC_HEADER_STAT.
106114         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
106115         (gl_PREREQ_RMDIR): Remove.
106116         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
106117         mention stat-macros.h or AC_HEADER_STAT, since we'll make
106118         the stat-macros module a prerequisite.
106119         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
106120         * m4/filemode.m4 (gl_FILEMODE): Likewise.
106121         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
106122         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
106123         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
106124         variable names.
106125         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
106126         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
106127         variable prefixes.
106128         * m4/fcntl-safer.m4: Remove.
106129         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
106130         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
106131         Invoke gl_PREREQ_FD_SAFER.
106132         (gl_PREREQ_FD_SAFER): New macro.
106133         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
106134         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
106135         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
106136         Remove duplicate call to AC_LIBOBJ(readutmp).
106137         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
106139         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
106140         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
106142 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106144         * MODULES.html.sh (Misc): Add byteswap.
106146 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106148         * modules/getcwd (Depends-on): Add extensions.
106149         * modules/openat (Depends-on): Likewise.
106151 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106153         * modules/byteswap: New file.
106155 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106157         * m4/byteswap.m4: New file.
106159 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106161         * lib/byteswap_.h: New file.
106163 2005-04-25  Karl Berry  <karl@gnu.org>
106165         * m4/gettext.m4: Update from GNU gettext 0.14.4.
106167 2005-04-25  Albert Chin  <china@thewrittenword.com>
106169         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
106170         Toolkit C bug.
106172 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
106174         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
106175         (func_ln_if_changed): Remove forcibly for no error message
106176         in case file does not exist.
106178 2005-04-19  Simon Josefsson  <jas@extundo.com>
106180         * gnulib-tool (Options): Make --symlink mean --symbolic.
106182 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
106184         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
106186 2005-04-16  Simon Josefsson  <jas@extundo.com>
106188         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
106190 2005-04-15  Simon Josefsson  <jas@extundo.com>
106192         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
106194 2005-04-15  Simon Josefsson  <jas@extundo.com>
106196         * gnulib-tool: Rename --symlink to --symbolic.
106198 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
106200         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
106201         symbolic links to files instead of copying/moving.  Add --aux-dir,
106202         specifying directory relative --dir where auxiliary build tools
106203         are placed.
106205 2005-04-14  Bruno Haible  <bruno@clisp.org>
106207         * modules/allocsa (License): Change to LGPL.
106208         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
106210 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
106212         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
106213         that "UTC +1 second" continues to work.  Problem reported
106214         by Dmitry V. Levin.
106215         (relunit_snumber): New rule.
106216         (relunit): Use it.
106218 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
106220         * lib/getdate.y (universal_time_zone_table): New constant.
106221         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
106222         universal_time_zone_table.
106223         (lookup_zone): Prefer universal_time_zone_table to
106224         local_time_zone_table, so that "GMT" time stamps are allowed in
106225         London during the summer.  Problem reported by Ian Abbott.
106227 2005-04-12  Jim Meyering  <jim@meyering.net>
106229         * lib/human.c (humblock): Set *options even when returning due to
106230         xstrtoumax conversion failure.  Thanks to a used-uninitialized
106231         warning from gcc-4.
106233 2005-04-09  Jim Meyering  <jim@meyering.net>
106235         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
106236         -Wuninitialized: initialize tm0.tm_year.
106238 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106240         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
106241         count, since there's no maximum.  All uses changed.
106242         Add member dsts_seen.
106243         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
106244         not being INT_MAX.
106245         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
106246         Use pc_rels_seen to decide whether a date is absolute.
106248         * lib/getdate.y (number): Don't overwrite year.
106249         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
106250         check.
106252 2005-04-02  Simon Josefsson  <jas@extundo.com>
106254         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
106255         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
106257 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
106259         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
106260         where no absolute path name can be longer than PATH_MAX.
106262 2005-03-27  Jim Meyering  <jim@meyering.net>
106264         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
106266 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
106268         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
106269         "one's complement" -> "ones' complement" in comment, as per Knuth.
106270         "value of type" -> "type or expression" in comment.
106271         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
106273 2005-03-26  Jim Meyering  <jim@meyering.net>
106275         Comment nits.
106276         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
106277         Correct typos: s/or/of/.
106279 2005-03-26  Jim Meyering  <jim@meyering.net>
106281         * modules/check-include-files: Move to ../ and rename to...
106282         * check-module: ...this.
106284 2005-03-25  Jim Meyering  <jim@meyering.net>
106286         * modules/xvasprintf (Files): Add xalloc.h.
106288 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106290         * modules/gettext (Files): config/config.rpath ->
106291         build-aux/config.rpath
106292         * modules/iconv (Files): Likewise.
106293         Problem reported by Oskar Liljeblad.
106295 2005-03-23  Jim Meyering  <jim@meyering.net>
106297         * modules/check-include-files: New script to check for
106298         missing dependencies, multiple includes, etc.
106300         * modules/c-strtold (Depends-on): Add xalloc.
106301         * modules/c-strtod (Depends-on): Add xalloc.
106302         * modules/hash (Depends-on): Add xalloc.
106303         (Files): Remove lib/xalloc.h.
106305         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
106306         * modules/userspec (Files): Add lib/inttostr.h.
106308 2005-03-23  Jim Meyering  <jim@meyering.net>
106310         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
106312 2005-03-22  Jim Meyering  <jim@meyering.net>
106314         * modules/stat-macros: New module.
106315         * modules/canonicalize, modules/euidaccess, modules/file-type,
106316         * modules/filemode, modules/lchown, modules/makepath,
106317         * modules/rmdir, modules/stat: Depend on new stat-macros module
106318         rather than listing lib/stat-macros.h manually.
106319         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
106321 2005-03-22  Jim Meyering  <jim@meyering.net>
106323         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
106325 2005-03-22  Bruno Haible  <bruno@clisp.org>
106327         * config/srclist.txt: Replace target directory 'config' with
106328         'build-aux'.
106329         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
106330         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
106331         ../build-aux/.
106333 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
106335         * modules/chdir-long (Depends-on): Add mempcpy.
106337         * modules/acl, modules/backupfile, modules/c-strtod,
106338         modules/c-strtold, modules/canon-host, modules/canonicalize,
106339         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
106340         modules/exclude, modules/exitfail, modules/file-type,
106341         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
106342         modules/getdate, modules/getline, modules/getpagesize,
106343         modules/getpass, modules/getugroups, modules/group-member,
106344         modules/hard-locale, modules/hash, modules/human, modules/idcache,
106345         modules/inttostr, modules/long-options, modules/makepath,
106346         modules/md5, modules/memcasecmp, modules/memcoll,
106347         modules/modechange, modules/mountlist, modules/path-concat,
106348         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
106349         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
106350         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
106351         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
106352         modules/strftime, modules/strndup, modules/strverscmp,
106353         modules/timespec, modules/unlocked-io, modules/userspec,
106354         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
106355         modules/yesno:
106356         Remove lib_SOURCES line from Makefile.am section, as this is now
106357         done automatically by the corresponding Autoconf macro.
106359 2005-03-21  Jim Meyering  <jim@meyering.net>
106361         Changes imported from coreutils.
106363         * lib/cycle-check.c: Don't include xalloc.h.
106365         * lib/path-concat.c: Don't include assert.h.
106366         (path_concat): Remove assertion that would have triggered
106367         for ABASE starting with more than one slash.
106368         Reported by Andreas Schwab.
106370         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
106371         properly when ABASE is an absolute file name.
106372         Correct the description of this function.
106373         Include <assert.h>.
106374         Add an assertion and a test driver.
106375         This fixes a bug introduced on 2004-07-02.
106376         Andreas Schwab reported the resulting failure of cp --parents:
106377         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
106379 2005-03-21  Jim Meyering  <jim@meyering.net>
106381         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
106382         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
106384 2005-03-21  Jim Meyering  <jim@meyering.net>
106385         and  Paul Eggert  <eggert@cs.ucla.edu>
106387         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
106388         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
106389         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
106390         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
106391         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
106392         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
106393         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
106394         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
106395         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
106396         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
106397         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
106398         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
106399         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
106400         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
106401         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
106402         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
106403         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
106404         for these modules.
106406 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
106408         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
106409         (which shouldn't happen), generate nothing instead of returning 0
106410         immediately, so that nstrftime (NULL, ...) doesn't return 0.
106412 2005-03-16  Bruno Haible  <bruno@clisp.org>
106414         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
106415         HAVE_LONGLONG_64BIT.
106417 2005-03-16  Bruno Haible  <bruno@clisp.org>
106419         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
106420         HAVE_LONGLONG_64BIT.
106422 2005-03-16  Bruno Haible  <bruno@clisp.org>
106424         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
106425         HAVE_LONGLONG_64BIT.
106427 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106429         * lib/strftime.c (my_strftime): Prepend space to format so that we can
106430         reliably distinguish strftime failure from empty output on POSIX
106431         hosts.
106433 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
106435         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
106436         (iconv_string): Don't guess a size-zero buffer, as that might cause
106437         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
106438         result would be 'too large', where 'too large' is (heuristically)
106439         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
106440         overflow concerns.  This will prevent some unwanted malloc failures
106441         when the inputs are very large.
106443 2005-03-15  Karl Berry  <karl@gnu.org>
106445         * config/srclist.txt (config.rpath): from gettext.
106446         * config/config.rpath: update.
106448 2005-03-15  Bruno Haible  <bruno@clisp.org>
106450         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
106451         to 'negate'.
106453         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
106454         variable.
106456         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
106457         results.
106459 2005-03-14  Simon Josefsson  <jas@extundo.com>
106461         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
106462         <fx@gnu.org>.
106464 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
106466         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
106467         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
106468         intprops.h.
106469         * lib/strtol.c: Likewise.
106471 2005-03-14  Jim Meyering  <jim@meyering.net>
106473         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
106474         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
106475         to be nonzero so that we (and caller) can detect the difference
106476         between a valid zero-length expansion and an error return, even
106477         when the underlying strftime fails before writing anything into
106478         that location.
106480 2005-03-14  Bruno Haible  <bruno@clisp.org>
106482         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
106483         Update from GNU gettext 0.14.3.
106485 2005-03-10  Jim Meyering  <jim@meyering.net>
106487         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
106489 2005-03-10  Jim Meyering  <jim@meyering.net>
106491         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
106492         so that this module works on systems without fchdir.
106494 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
106496         Factor int-properties macros into a single file, except for
106497         glibc-related files.
106498         * lib/intprops.h: New file.
106499         * lib/getloadavg.c: Include it instead of limits.h.
106500         (INT_STRLEN_BOUND): Remove.
106501         * lib/human.c: Include intprops.h.
106502         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
106503         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
106504         302/1000.
106505         * lib/inttostr.h: Include intprops.h instead of limits.h.
106506         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
106507         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
106508         for consistency with intprops.h.
106509         (time_t_is_integer, twos_complement_arithmetic): Use them.
106510         * lib/sig2str.h: Include <signal.h>, intprops.h.
106511         (INT_STRLEN_BOUND): Remove.
106512         * lib/strftime.c (TYPE_SIGNED): Remove.
106513         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
106514         * lib/strtol.c: Adjust comments to match intprops.h.
106515         * lib/userspec.c: Include intprops.h.
106516         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
106517         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
106518         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
106519         instead of rolling our own expressions.
106520         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
106522         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
106523         instead of int.
106524         (my_strftime): Do not mishandle years close to INT_MAX, by doing
106525         the right thing even if adding 1900 would overflow.  Similarly
106526         for tm_mon + 1 and tm_yday + 1.
106527         Make %Y always equivalent to %C%y, and similarly for %G and %g.
106528         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
106529         (DO_SIGNED_NUMBER): New macro.
106530         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
106532 2005-03-07  Bruno Haible  <bruno@clisp.org>
106534         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
106536 2005-03-07  Bruno Haible  <bruno@clisp.org>
106538         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
106540 2005-03-04  Derek R. Price  <derek@ximbiot.com>
106542         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
106543         (func_import): Only replace files via --import when they have actually
106544         changed.
106546 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106548         * m4/mmap-anon.m4: New file.
106549         * m4/pagealign_alloc.m4: New file.
106551 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106552             Bruno Haible  <bruno@clisp.org>
106554         * modules/pagealign_alloc: New file.
106555         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
106557 2005-03-03  Derek R. Price  <derek@ximbiot.com>
106558             Bruno Haible  <bruno@clisp.org>
106560         * lib/pagealign_alloc.h: New file.
106561         * lib/pagealign_alloc.c: New file.
106563 2005-03-03  Bruno Haible  <bruno@clisp.org>
106565         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
106566         Use an all-permissive copyright notice, recommended by RMS.
106568 2005-03-02  Bruno Haible  <bruno@clisp.org>
106570         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
106571         of AIX, the replacement has to be done only after <string.h> is
106572         included, therefore not in config.h. stpncpy.h does the replacement,
106573         and stpncpy.c uses it.
106575 2005-03-02  Bruno Haible  <bruno@clisp.org>
106577         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
106578         stpncpy.c uses it.
106580 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106582         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
106583         The workaround isn't strictly needed for POSIX conformance, and
106584         it's too much of a pain to configure and maintain.  We'll ask
106585         people to fix their kernels instead.
106586         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
106587         (NANOSLEEP_BUG_WORKAROUND): Remove.
106588         (xnanosleep): Remove the workaround.
106590 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106592         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
106593         Reported by Derek Price.
106594         (Include): Add "timespec.h".
106596         * modules/xnanosleep (Depends-on): Remove gethrxtime.
106598 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106600         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
106601         to detect nanosleep bug.
106603 2005-03-01  Bruno Haible  <bruno@clisp.org>
106605         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
106607 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
106609         * modules/gethrxtime: New file.
106610         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
106611         (Depends-on): Add gethrxtime.
106612         (configure.ac): Add gl_XNANOSLEEP.
106613         (Makefile.am): Remove lib_SOURCES line.
106615 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106617         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
106618         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
106620 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106622         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
106623         * lib/timespec.h (gettime): Return void, since it always
106624         succeeds now.  All uses changed.
106625         * lib/gettime.c (gettime): Likewise.
106626         [HAVE_NANOTIME]: Prefer nanotime.
106627         Assume gettimeofday succeeds, as POSIX requires.
106628         Assime time () succeeds, since other code already does.
106629         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
106630         (timespec_subtract): Remove.
106631         (NANOSLEEP_BUG_WORKAROUND): New constant.
106632         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
106633         things considerably.  Use it only on GNU/Linux hosts, since the
106634         workaround shouldn't be needed elsewhere.
106636 2005-02-24  Bruno Haible  <bruno@clisp.org>
106638         * modules/gettext (Files): Add m4/glibc2.m4.
106640 2005-02-24  Bruno Haible  <bruno@clisp.org>
106642         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
106643         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
106644         * m4/progtest.m4:
106645         Update from GNU gettext 0.14.2.
106646         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
106648 2005-02-24  Bruno Haible  <bruno@clisp.org>
106650         * lib/localcharset.c: Update from GNU gettext 0.14.2.
106651         * lib/config.charset: Update from GNU gettext 0.14.2.
106653 2005-02-24  Bruno Haible  <bruno@clisp.org>
106655         * lib/gettext.h: Update from GNU gettext 0.14.2.
106657 2005-02-23  Simon Josefsson  <jas@extundo.com>
106659         * m4/iconvme.m4: New file.
106661 2005-02-23  Jim Meyering  <jim@meyering.net>
106663         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
106664         change.
106665         Thanks to Bruno Haible for catching it.
106667 2005-02-22  Simon Josefsson  <jas@extundo.com>
106669         * modules/iconvme: New file.
106671         * MODULES.html.sh: Add iconvme.
106673 2005-02-22  Simon Josefsson  <jas@extundo.com>
106675         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
106677 2005-02-22  Simon Josefsson  <jas@extundo.com>
106679         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
106681 2005-02-22  Jim Meyering  <jim@meyering.net>
106683         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
106684         s/ifndef/ifdef/.
106686 2005-02-20  Neil Conway  <neilc@samurai.com>
106688         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
106689         returned by OSX/Darwin if the specified buffer is not large
106690         enough for the hostname.
106692 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106694         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
106695         pass it to _help, otherwise the latter coredumps trying to
106696         dereference state.root_argp.
106698 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
106700         * modules/chdir-long (Depends-on): Add memrchr.
106701         * modules/memrchr (Files): Add lib/memrchr.h.
106702         (Include): "memrchr.h".
106704 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
106706         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
106708 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
106710         * lib/memrchr.h: New file.
106711         * lib/chdir-long.c: Include it.
106712         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
106713         Don't bother including stddef.h.
106715 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
106717         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
106718         inclusion.
106719         Include <sys/types.h>, for dev_t.
106720         (ME_DUMMY, ME_REMOTE): Move from here....
106721         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
106722         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
106723         Dmitry V. Levin.
106724         Include mountlist.h first, to test the interface.
106726 2005-01-29  Bruno Haible  <bruno@clisp.org>
106728         * lib/progname.c (program_name): Initialize.
106729         Needed when linking statically on MacOS X.
106731 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
106733         Sync from coreutils.
106734         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
106735         (Depends-on): Add c-strtod.
106736         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
106738 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
106740         Sync from coreutils.
106741         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
106743         Remove files that are specific to coreutils.
106744         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
106746 2005-01-28  Bruno Haible  <bruno@clisp.org>
106748         * modules/javacomp: New file.
106749         * MODULES.html.sh (Java): Add javacomp.
106751 2005-01-28  Bruno Haible  <bruno@clisp.org>
106753         * m4/javacomp.m4: New file, from GNU gettext.
106755 2005-01-28  Bruno Haible  <bruno@clisp.org>
106757         * lib/javacomp.sh.in: New file, from GNU gettext.
106758         * lib/javacomp.h: New file, from GNU gettext.
106759         * lib/javacomp.c: New file, from GNU gettext.
106761 2005-01-26  Simon Josefsson  <jas@extundo.com>
106763         * lib/gai_strerror.c: Use GPL in header.
106765 2005-01-26  Bruno Haible  <bruno@clisp.org>
106767         * modules/javaexec: New file.
106768         * MODULES.html.sh (Java): Add javaexec.
106770 2005-01-26  Bruno Haible  <bruno@clisp.org>
106772         * m4/javaexec.m4: New file, from GNU gettext.
106774 2005-01-26  Bruno Haible  <bruno@clisp.org>
106776         * lib/javaexec.sh.in: New file, from GNU gettext.
106777         * lib/javaexec.h: New file, from GNU gettext.
106778         * lib/javaexec.c: New file, from GNU gettext.
106780 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106782         * modules/lchown (Depends-on): Remove lchown.h
106784 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106786         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
106787         must be defined if the header file was not found, in order
106788         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
106790 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106792         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
106793         initializers for struct pentry_state.
106794         (__argp_error): Check return value of __asprintf
106795         (__argp_failure): Translate error message
106797         * lib/argp-parse.c: Removed braces around the expansion of N_()
106799 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106801         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
106802         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
106803         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
106804         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
106805         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
106806         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
106807         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
106808         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
106809         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
106810         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
106811         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
106812         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
106813         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
106814         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
106815         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
106816         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
106817         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
106818         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
106819         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
106820         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
106821         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
106822         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
106823         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
106824         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
106825         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
106826         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
106827         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
106828         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
106829         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
106830         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
106831         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
106832         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
106833         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
106834         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
106835         xstrtol.m4, xstrtoumax.m4, yesno.m4:
106836         Use an all-permissive copyright notice, recommended by RMS.
106838 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
106840         * modules/chdir-long (Depends-on): Remove mempcpy.
106842 2005-01-21  Jim Meyering  <jim@meyering.net>
106844         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
106845         same value as for Solaris 9.
106847         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
106848         component length.  This included changing the parameter to be
106849         of type `char *' rather than `char const *'.
106850         * lib/chdir-long.h (chdir_long): Update prototype.
106852         * lib/openat.c (fdopendir, fstatat): New functions.
106853         * lib/openat.h: Include headers required for use of DIR and struct
106854         stat.
106855         [AT_SYMLINK_NOFOLLOW]: Define.
106856         (fdopendir, fstatat): Add prototypes.
106858 2005-01-21  Bruno Haible  <bruno@clisp.org>
106860         * modules/classpath: New file.
106861         * MODULES.html.sh (Java): Add classpath.
106863 2005-01-21  Bruno Haible  <bruno@clisp.org>
106865         * lib/classpath.h: New file, from GNU gettext.
106866         * lib/classpath.c: New file, from GNU gettext.
106868 2005-01-20  Simon Josefsson  <jas@extundo.com>
106870         * modules/version-etc-fsf: New file.
106872 2005-01-20  Simon Josefsson  <jas@extundo.com>
106874         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
106875         * lib/version-etc.c: Remove version_etc_copyright.
106876         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
106877         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
106879 2005-01-20  Simon Josefsson  <jas@extundo.com>
106881         * lib/base64.h (isbase64): Add.
106883         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
106884         using a unsigned prototype, don't inline.
106885         (base64_decode): Use it.
106887 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
106889         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
106890         it.
106892 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
106894         * lib/save-cwd.c (save_cwd): Remove code to support the case
106895         where fchdir is missing or flaky.
106897 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
106899         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
106901 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
106903         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
106904         AC_LIBSOURCES now does this.
106905         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
106906         with new ullong_max module.
106908 2005-01-19  Bruno Haible  <bruno@clisp.org>
106910         * modules/sh-quote: New file.
106911         * MODULES.html.sh (Executing programs): Add sh-quote.
106913 2005-01-19  Bruno Haible  <bruno@clisp.org>
106915         * lib/sh-quote.h: New file, from GNU gettext.
106916         * lib/sh-quote.c: New file, from GNU gettext.
106918 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
106920         Merge from coreutils.
106921         * m4/ullong_max.m4: New file.
106922         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
106923         (gl_MACROS): Assume localeconv exists.
106925 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
106927         Merge changes from coreutils, as described below in several
106928         changelogs dated today.
106930         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
106931         (O_DIRECTORY): Remove; not needed here, since "." must be
106932         a directory.  All uses removed.
106933         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
106934         universal on Suns, and we also need to test for IRIX.
106935         Revamp code to use 'if' rather than '#if'.
106936         Avoid unnecessary comparison of cwd->desc to 0.
106938         * lib/utimens.c (futimens): Robustify the previous patch, by checking
106939         for known valid error numbers rather than observed invalid ones.
106941 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
106943         * modules/ullong_max: New file.
106945         * modules/chdir-long, modules/openat: New files.
106946         * modules/save-cwd (Depends-on): Depend on chdir-long.
106947         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
106949 2005-01-18  Jim Meyering  <jim@meyering.net>
106951         Merge from coreutils.
106952         * m4/chdir-long.m4, m4/openat.m4: New files.
106953         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
106954         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
106955         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
106956         is sane and DOES follow symlinks.  Besides, testing 20 different
106957         systems found no broken chown implementations.
106958         Prompted by a change in rsync's copy of this macro.
106959         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
106961         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
106963         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
106964         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
106965         NULL-means-set-to-current-time semantics.
106966         Remove temporary file immediately, rather than waiting
106967         for configure's at-exit trap code to do it.
106969 2005-01-18  Jim Meyering  <jim@meyering.net>
106971         * lib/version-etc.c (version_etc_copyright): Update copyright date.
106973         * lib/utimens.c (futimens): Account for the fact that futimes
106974         can also fail with errno == ENOSYS or errno == ENOENT.
106975         Patch from Dmitry V. Levin.
106977         Change the name of the robust chdir function from chdir to chdir_long.
106978         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
106979         (restore_cwd): Use chdir_long, not chdir.
106980         * lib/chdir-long.c: Renamed from chdir.c.
106981         * lib/chdir-long.h: Renamed from chdir.h.
106982         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
106983         Hurd.
106985 2005-01-18  Bruno Haible  <bruno@clisp.org>
106987         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
106988         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
106989         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
106990         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
106991         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
106992         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
106993         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
106994         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
106995         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
106996         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
106997         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
106998         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
106999         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
107000         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
107001         Use an all-permissive copyright notice, recommended by RMS.
107003 2005-01-18  Bob Proulx  <bob@proulx.com>
107005         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
107006         simplify offsetof() macro construct to avoid compile failure with
107007         native HP-UX 11.0 ANSI C compiler.
107009 2005-01-17  Bruno Haible  <bruno@clisp.org>
107011         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
107012         redundant because stpncpy.m4 takes care of it.
107014 2005-01-17  Bruno Haible  <bruno@clisp.org>
107016         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
107018 2005-01-17  Bruno Haible  <bruno@clisp.org>
107020         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
107021         used.
107023 2005-01-17  Bruno Haible  <bruno@clisp.org>
107025         * lib/fwriteerror.h (fwriteerror): Change specification to include
107026         fclose.
107027         * lib/fwriteerror.c: Include <stdbool.h>.
107028         (fwriteerror): At the end, close the file stream. Record whether
107029         stdout was already closed.
107031 2005-01-17  Bruno Haible  <bruno@clisp.org>
107033         * lib/execute.c (environ): Declare if needed.
107034         * lib/pipe.c (environ): Likewise.
107035         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
107037 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107039         * modules/argp: Depend on vsnprintf
107041 2005-01-10  Jim Meyering  <jim@meyering.net>
107043         * modules/closeout (Depends-on): Add atexit.
107045 2005-01-06  Bruno Haible  <bruno@clisp.org>
107047         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
107049 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107051         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
107052         definitions to be after all include files, to avoid collisions.
107053         Problem reported by Bob Proulx.
107055 2005-01-04  Jim Meyering  <jim@meyering.net>
107057         Changes imported from coreutils.
107058         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
107059         as the mkstemp template, use a temporary directory and an
107060         8.3-friendly template to avoid trouble on systems like DJGPP.
107061         Reported by Juan M. Guerrero via Stepan Kasal.
107062         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
107063         close. Remove the temporary directory right away, rather than waiting
107064         for configure's at-exit trap code to do it.
107065         Suggestion from Stepan Kasal.
107067 2005-01-01  Simon Josefsson  <jas@extundo.com>
107069         * gnulib-tool: Print #include directives when --import'ing.
107071 2004-12-28  Simon Josefsson  <jas@extundo.com>
107073         * tests/test-base64.c: Include required header files.  Remove
107074         unused variables.
107076 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107078         * modules/error (Depends-on): Remove gettext.
107080 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107082         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
107083         not needed.  This removes a dependency on the gettext module.
107084         [defined _LIBC]: Do not include <libintl.h>; not needed.
107086 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107088         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
107089         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
107091 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107093         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
107094         HAVE_DECL_STRTOLD.
107096 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107098         * modules/getdate (Depends-on): Remove alloca-opt.
107100 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107102         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
107104 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107106         * lib/argp-parse.c: Include <stddef.h>.
107107         (alignof, alignto): New macros.
107108         (parser_init): Don't assume that void * is aligned sufficiently
107109         for struct option.
107111         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
107112         need to extend the stack.
107113         (YYINITDEPTH): New macro, so that the initial stack isn't overly
107114         large.
107116 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107118         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
107120 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107122         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
107123         (2004-10-24) change.  Apparently this was a false alarm.
107125         * modules/getdate: Depend on alloca-opt, not alloca.
107127 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107129         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
107130         Remove now-obsolete comment about AIX.
107131         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
107132         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
107133         (YYMAXDEPTH): New macro.
107135 2004-12-18  Simon Josefsson  <jas@extundo.com>
107137         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
107139 2004-12-18  Bruno Haible  <bruno@clisp.org>
107141         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
107143 2004-12-18  Bruno Haible  <bruno@clisp.org>
107145         * lib/fatal-signal.c (fatal_signals): Make non-const.
107146         (init_fatal_signals): New function.
107147         (uninstall_handlers, install_handlers): Ignore signals that were set to
107148         SIG_IGN.
107149         (at_fatal_signal): Call init_fatal_signals.
107150         (init_fatal_signal_set): Likewise. Ignore signals that were set to
107151         SIG_IGN.
107152         Reported by Paul Eggert.
107154 2004-12-18  Bruno Haible  <bruno@clisp.org>
107156         * doc/alloca.texi: New file.
107157         * doc/alloca-opt.texi: New file.
107159 2004-12-17  Jim Meyering  <jim@meyering.net>
107161         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
107162         Otherwise, install-sh could exit with improper exit status when
107163         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
107165 2004-12-16  Simon Josefsson  <jas@extundo.com>
107167         * tests/test-base64.c: Add license.
107169 2004-12-15  Stepan Kasal  <address@hidden>
107171         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
107173 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
107175         * modules/getcwd (Files): Add m4/d-ino.m4.
107176         Suggested by Mark D. Baushke.
107178 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107180         * lib/getdate.y (textint): New member "negative".
107181         (time_zone_hhmm): New function.
107182         Expect 14 shift-reduce conflicts, not 13.
107183         (o_colon_minutes): New rule.
107184         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
107185         (yylex): Set the "negative" member of signed numbers.
107187 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107189         * doc/getdate.texi (Time of day items, Time zone items):
107190         Describe new formats +00:00, UTC+00:00.
107192 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107194         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
107195         spurious "-l"s.  Problem reported by Stepan Kasal.
107197 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
107199         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
107200         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
107202 2004-12-04  Simon Josefsson  <jas@extundo.com>
107204         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
107205         Vandoorselaere <yoann@prelude-ids.org>.
107207 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107209         Changes imported from coreutils.
107210         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
107211         exist.
107212         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
107214 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107216         Changes imported from coreutils.
107217         * lib/hard-locale.c: Assume <locale.h> exists.
107218         Include "strdup.h".
107219         (GLIBC_VERSION): New macro.
107220         (hard_locale): Assume setlocale exists.
107221         Rewrite to avoid #ifdef.
107222         Use strdup rather than malloc + strcpy.
107223         * lib/human.c: Assume <locale.h> exists.
107224         (human_readable): Assume localeconv exists.
107226 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107228         * modules/hard-locale (Depends-on): Add strdup.
107230 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
107232         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
107233         convert T2, not T.  (Imported from libc.)
107235 2004-11-30  Simon Josefsson  <jas@extundo.com>
107237         * modules/restrict (License): Change to LGPL.
107239 2004-11-30  Simon Josefsson  <jas@extundo.com>
107241         * m4/restrict.m4: Add copyright and copying conditions.
107243 2004-11-30  Simon Josefsson  <jas@extundo.com>
107245         * m4/base64.m4: New file.
107247 2004-11-30  Simon Josefsson  <jas@extundo.com>
107249         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
107250         base64.
107252         * tests/test-base64.c: New file.
107254         * modules/base64: New file.
107256 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107258         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
107259         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
107261         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
107263 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
107265         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
107266         (__getcwd.c): Don't restore errno; glibc doesn't.
107267         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
107268         first, falling back to our code only if its results look suspicious.
107269         Ensure that the resulting buffer is only as large as necessary.
107271         * lib/readutmp.c: Include readutmp.h first.
107272         Include <errno.h>, since readutmp.h no longer does that.
107273         * lib/readutmp.h: Don't include <errno.h>,
107274         <sys/param.h>, <time.h>; not needed to establish interface.
107275         (errno): Remove decl.
107276         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
107277         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
107278         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
107280 2004-11-28  Simon Josefsson  <jas@extundo.com>
107282         * lib/base64.h, base64.c: New file.
107284 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107286         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
107288 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107290         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
107291         (Depends-on): Remove pathmax, same.  Add mempcpy.
107292         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
107293         (Makefile.am): Append getcwd.h to lib_SOURCES.
107294         (Include): Add getcwd.h.
107295         (Maintainer): Change from Jim Meyering to "all, glibc",
107296         since getdate now uses intended-for-glibc code.
107297         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
107298         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
107300 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107302         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
107303         HP's ANSI C compiler.
107304         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
107305         Declaring int functions causes warnings on some modern systems and
107306         shouldn't be needed to compile on ancient ones.
107307         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
107308         defined.
107310         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
107311         with the following changes.
107312         (__set_errno): Parenthesize properly.
107313         Include <stdbool.h>.
107314         (MIN, MAX, MATCHING_INO): New macros.
107315         (__getcwd): Define with prototype, not K&R form.
107316         Use heuristics to allocate default buffer on stack if possible.
107317         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
107318         behavior, and to avoid the PATH_MAX limit when computing
107319         ../../../../...
107320         Use MATCHING_INO to compare inode number to file.
107321         Check for arithmetic overflow in size calculations.
107322         Fix bug in reallocation of dot array that caused getcwd to fail
107323         on directories nested deeper than 75.
107324         Be more careful about saving errno on error.
107325         Do not use realloc; use only free+malloc, as this is a bit
107326         more flexible and avoids a needless copy operation.
107327         Do not inspect st_dev and st_ino for symbolic links; POSIX
107328         doesn't specify the latter.
107329         Check for closedir errors.
107330         Avoid needless casts.
107331         Use "#ifdef weak_alias" around weak_alias, to be like other
107332         glibc code.
107333         The following changes to getcwd.c have effect only when used in
107334         gnulib; they have no effect inside glibc proper.
107335         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
107336         as alloca isn't used.
107337         (alloca, __alloca): Likewise.
107338         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
107339         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
107340         unconditionally, as gnulib assumes C89 or better.
107341         Do not include <sys/param.h>.
107342         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
107343         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
107344         better.
107345         (NULL) [!defined NULL]: Remove; we assume C89 or better.
107346         Include <dirent.h> in a way that is compatible with modern Autoconf.
107347         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
107348         New macros, if not already defined.
107349         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
107350         Use "_LIBC", not "defined _LIBC", for consistency.
107351         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
107352         a mempcpy module.
107353         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
107354         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
107355         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
107356         credit only to Jim Meyering and adjust the copyright dates.
107357         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
107358         <stdlib.h>, <unistd.h>, "pathmax.h".
107359         Instead, include "xgetcwd.h" (first) and "getcwd.h".
107360         (INITIAL_BUFFER_SIZE): Remove.
107361         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
107363 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
107365         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
107366         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
107367         Use the _ONCE methods, for efficiency.
107368         Check for fcntl.h.  In test program, include <errno.h>
107369         and <fcntl.h> if available.  Remove old K&R cruft from
107370         test program.  Check for common errors in GNU/Linux,
107371         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
107372         don't do AC_LIBOBJ, as that's getcwd.m4's job.
107373         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
107374         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
107375         name accordingly.
107376         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
107377         accommodate new getcwd.c.
107378         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
107379         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
107380         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
107381         that's all we need now.
107383 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107385         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
107386         argp-parse.c depends on getopt internals, that means we should
107387         always use our getopt, to be on the safe side.
107388         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
107389         order not to spoil the result of an eventual previous invocation
107390         of gl_GETOPT_SUBSTITUTE.
107392 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107394         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
107395         redefinition warnings. To avoid them, include the defines
107396         in `#if !defined __need_getopt ... #endif'. The only place
107397         where __getopt_argv_const is used is in definitions
107398         of getopt_long and getopt_long_only below, which are as well
107399         protected by `#ifndef __need_getopt'.
107400         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
107401         __need_getopt after including <stdio.h> and <unistd.h> These
107402         headers might have defined it.
107404 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107406         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
107408 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
107410         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
107411         (futimens): New function, which uses futimes if available.
107412         (futimens, utimens): Support timespec==NULL, with same semantics
107413         as utime and utimens.
107414         * lib/utimens.h (futimens): New decl.
107416 2004-11-23  Jim Meyering  <jim@meyering.net>
107418         * lib/getopt_.h: Remove trailing blanks.
107420 2004-11-23  Jim Meyering  <jim@meyering.net>
107422         * lib/__fpending.c: Add comment.
107424 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
107426         * modules/canonicalize (Depends-on): Add xreadlink.
107427         Problem reported by James Youngman.
107429 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107431         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
107432         New macros.
107433         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
107434         optopt): Use them instead of invoking ## directly; otherwise, the
107435         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
107437 2004-11-19  Bruno Haible  <bruno@clisp.org>
107439         * lib/strtok_r.c: Move comments from here...
107440         * lib/strtok_r.h: ... to here.
107442 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107444         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
107445         implementations that mishandle size_t overflow.
107447 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107449         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
107450         might fail.  Problem reported by Yoann Vandoorselaere.
107451         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
107452         implementations that mishandle size_t overflow.
107454 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107456         * modules/canon-host (Depends-on): Add strdup.
107458 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107460         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
107462 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107464         * lib/canon-host.c: Include "strdup.h".
107465         (canon_host): Use getaddrinfo if available, so that IPv6 works.
107466         Use strdup instead of malloc/strcpy to duplicate strings.
107468         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
107469         (human_space_before_unit): New constant.
107470         * lib/human.c (human_readable): Support it.
107472         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
107473         (xgetcwd): Set errno correctly when failing.
107474         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
107475         the failure is actually due to a PATH_MAX problem.
107477         Further getopt changes to make it more likely that glibc will
107478         buy the changes back.
107479         * lib/getopt.c (POSIXLY_CORRECT): New constant.
107480         (getopt): Use it, so to preserve glibc semantic
107481         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
107482         when compiling for libc.
107483         * lib/getopt_.h (__getopt_argv_const): Bring it back.
107484         (getopt_long, getopt_long_only): Use it.
107486         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107487         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
107488         (getopt): Argv is now char * const *, as per standard.
107489         (_getopt_internal_r, _getopt_internal): Argv is now char **,
107490         not char *__getopt_argv_const *.
107491         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107492         _getopt_long_only_r): Likewise.
107493         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
107494         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107495         _getopt_long_r, _getopt_long_only_r): Likewise.
107496         * lib/getopt_.h (__getopt_argv_const): Remove.
107497         (getopt): Argv is now char * const *, as per standard.
107499         * lib/getdate.y (tORDINAL): New token.
107500         (day, relunit): Allow it for relative times.
107501         (relative_time_table): Use tORDINAL for ordinals.
107503 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107505         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
107506         Document that "second" isn't allowed as an ordinal number.
107508 2004-11-16  Jim Meyering  <jim@meyering.net>
107510         * modules/closeout (Depends-on): Add fpending.
107512 2004-11-15  Jim Meyering  <jim@meyering.net>
107514         * lib/closeout.c: Include "__fpending.h" once again.
107515         Include <stdbool.h>.
107516         (close_stdout): Don't fail just because stdout was closed initially,
107517         since some programs don't write to stdout in the normal course of
107518         operation (other than --version and --help), and we don't want this
107519         function to make e.g. `touch file >&-' fail.
107520         But do fail if it was closed and someone has tried to write to it.
107521         E.g., `printf foo >&-' must fail.
107523 2004-11-13  Jim Meyering  <jim@meyering.net>
107525         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
107527 2004-11-12  Simon Josefsson  <jas@extundo.com>
107529         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
107530         small doc fix is still pending.
107532 2004-11-11  Simon Josefsson  <jas@extundo.com>
107534         * modules/strtok_r: New file.
107536         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107537         strtok_r.
107539 2004-11-11  Simon Josefsson  <jas@extundo.com>
107541         * m4/strtok_r.m4: New file.
107543         * m4/getopt.m4: Replace opterr.
107545 2004-11-11  Simon Josefsson  <jas@extundo.com>
107547         * lib/strtok_r.h, strtok_r.c: New file.
107549 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107551         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
107552         of replacing opterr, getopt, etc.  This should handle the
107553         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
107555 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
107557         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
107558         we can stop lying to compilers about the constness of argv when we
107559         are compiled outside glibc.
107560         (getopt, getopt_long, getopt_long_only): Use it.
107561         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
107562         _getopt_internal, getopt): Likewise.
107563         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
107564         _getopt_long_only_r): Likewise.
107565         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
107566         _getopt_long_r, _getopt_long_only_r): Likewise.
107568         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
107569         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
107570         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
107571         the other external symbols.
107572         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
107573         declaration, since the above renaming now works around collisions.
107575 2004-11-11  Jim Meyering  <jim@meyering.net>
107577         * lib/linebreak.c: Remove trailing blanks.
107578         * lib/alloca_.h: Likewise.
107579         * lib/acosl.c: Likewise.
107580         * lib/euidaccess.c: Likewise.
107581         * lib/allocsa.h: Likewise.
107583 2004-11-10  Simon Josefsson  <jas@extundo.com>
107585         * m4/getaddrinfo.m4: New file.
107587 2004-11-10  Simon Josefsson  <jas@extundo.com>
107589         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
107591 2004-11-10  Simon Josefsson  <jas@extundo.com>
107593         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107594         getaddrinfo.
107596         * modules/getaddrinfo: New file.
107598 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107600         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
107602 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
107604         * lib/mktime.c (SHR): New macro, which is a portable
107605         substitute for >> that should work even on Crays.
107606         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
107607         Problem reported by Mark D. Baushke in
107608         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
107609         * lib/getdate.y (SHR): Likewise.
107610         (tm_diff): Use it.
107611         * lib/strftime.c (SHR): Likewise.
107612         (tm_diff): Use it.
107613         * lib/quotearg.c (struct quoting_options): Use unsigned int for
107614         quote_these_too, so that right shifts are well defined.  All uses
107615         changed.
107617 2004-11-10  Jim Meyering  <jim@meyering.net>
107619         Ensure that no close failure goes unreported.
107620         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
107621         return early when it seems there's nothing to flush.
107622         Don't include __fpending.h.
107624 2004-11-10  Jim Meyering  <jim@meyering.net>
107626         * modules/closeout (Depends-on): Remove fpending.
107628 2004-11-10  Jim Meyering  <jim@meyering.net>
107630         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
107632 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107634         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
107635         gl_FUNC_STRFTIME.
107636         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
107637         and AC_REQUIRE when possible, to avoid duplicate checks.
107638         Check for <wchar.h>.
107640 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107642         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
107644 2004-11-09  Bruno Haible  <bruno@clisp.org>
107646         * m4/sockpfaf.m4: New file.
107648 2004-11-05  Bruno Haible  <bruno@clisp.org>
107650         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
107651         Reported by Mark D. Baushke <mdb@cvshome.org>.
107653 2004-11-04  Bruno Haible  <bruno@clisp.org>
107655         2004-09-11  Bruno Haible  <bruno@clisp.org>
107656                 * allocsa.valgrind: New file.
107657         2004-02-06  Bruno Haible  <bruno@clisp.org>
107658                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
107659                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
107660                 Reported by Christopher Seip <chris.seip@hp.com>.
107662 2004-11-04  Bruno Haible  <bruno@clisp.org>
107664         * modules/allocsa (Files): Add lib/allocsa.valgrind.
107665         (Makefile.am): Distribute it.
107667 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
107669         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
107670         with errno == ERANGE if the buffer is too small.
107671         Problem reported by Mark D. Baushke.
107673 2004-11-03  Albert Chin  <china@thewrittenword.com>
107674             Paul Eggert  <eggert@cs.ucla.edu>
107676         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
107677         equivalent, substitute $ac_type for equivalent type rather than
107678         blindly using uint32_t *always* which won't work if uint32_t is not
107679         available.  Define _UINT32_T to work around typedef of uint32_t if
107680         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
107681         2.5.1.
107683 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107685         * m4/jm-macros.m4: Sync from coreutils.
107686         (gl_MACROS): Check for mbrlen, for pathchk.
107687         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
107689 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107691         * lib/xreadlink.c (MAXSIZE): New macro.
107692         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
107693         size does not exceed MAXSIZE.  Avoid cast.
107694         As suggested by Mark D. Baushke in
107695         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
107696         if readlink fails with buffer size just under MAXSIZE, try again
107697         with MAXSIZE.
107699 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
107701         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
107703 2004-11-02  Derek R. Price  <derek@ximbiot.com>
107704         and  Paul Eggert  <eggert@cs.ucla.edu>
107706         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
107707         (get_date): Overparenthesize to avoid GCC warning.
107709 2004-11-02  Bruno Haible  <bruno@clisp.org>
107711         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
107712         returns void.
107714 2004-11-02  Bruno Haible  <bruno@clisp.org>
107716         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
107717         function returns void.
107719 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
107721         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
107722         fflush_unlocked, flockfile, funlockfile, funlockfile,
107723         fputs_unlocked, putc_unlocked.
107725 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
107727         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
107728         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
107729         already declared.
107731 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
107733         * modules/getdate (Files): Add doc/getdate.texi.
107734         (Depends-on): Add setenv, xalloc.
107736 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
107738         * lib/getdate.y: Add support for TZ="foo" within a date string.
107739         Fix some bugs near time_t boundaries.  Reject dates with
107740         out-of-range components, e.g., "Sept 31".
107741         Include <stdlib.h>, "setenv.h", "xalloc.h".
107742         (ISDIGIT_LOCALE): Remove; unused.
107743         Note that the TZ and time functions used here are not reentrant.
107744         (mktime_ok, get_tz): New functions.
107745         (TZBUFSIZE): New constant.
107746         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
107747         This requires that we sometimes generate our own TZ="XXX..." setting.
107749 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
107751         * doc/getdate.texi: New file, from coreutils with modifications for
107752         the new TZ parsing.
107754 2004-10-27  Derek R. Price  <derek@ximbiot.com>
107756         * lib/mktime.c (not_equal_tm): Remove redundant check.
107758 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107760         * modules/regex (lib_SOURCES): Add regex.c.
107761         Reported by James Youngman in
107762         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
107764 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107766         * lib/getdate.y: Use Bison 1.875 features, and some minor
107767         code cleanups.  This change does not affect semantics.
107768         Don't include <stdlib.h>; no longer needed.
107769         Don't include unlocked-io.h; only the "#if TEST" code uses
107770         stdio, and performance isn't crucial there.
107771         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
107772         Bison 1.875 features as described below.
107773         All uses of "PC." replaced by "pc->".
107774         (YYSTYPE): Add a forward declaration.
107775         (yylex, yyerror): Use full prototypes in forward decls.
107776         Use "%pure-parser" rather than obsolescent "%pure_parser".
107777         Use %parse-param and %lex-param instead of obsolescent
107778         YYPARSE_PARAM and YYLEX_PARAM.
107779         (meridian_table, month_and_day_table, time_units_table,
107780         relative_time_table, time_zone_table, military_table,
107781         lookup_zone, lookup_word, get_date):
107782         Use NULL instead of 0 where appropriate.
107783         (to_hour): Avoid abort (), to avoid a dependency on
107784         stdlib.h.
107785         (yyerror, yylex): Now accepts parser_control * arg.
107786         (main) [TEST]: Use '\0' rather than 0 for char.
107788 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
107790         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
107792 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
107794         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
107795         It's now the caller's responsibility to handle the case where
107796         !HAVE_GETPAGESIZE && !defined getpagesize.
107798         * lib/mktime.c (leapyear): Arg is long int, not int.
107800 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
107802         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
107804 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
107806         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
107807         missing.  Problem reported by James Youngman.
107809 2004-10-16  Simon Josefsson  <jas@extundo.com>
107811         * gnulib-tool: Fix comments.  Fix parse problem.
107812         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
107814 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
107816         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
107817         implementation of getopt_long.  Problem reported by Alexander Taler in:
107818         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
107820 2004-10-15  Bruno Haible  <bruno@clisp.org>
107822         * gnulib-tool: Untabify. Initialize supplied_libname.
107823         (func_usage): More homogenous output.
107824         (func_modules_transitive_closure, func_modules_to_filelist,
107825         func_emit_lib_Makefile_am): New functions.
107826         (func_import): New function, extracted from big case statement. Use
107827         func_get_license, func_modules_transitive_closure,
107828         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
107829         opt_lgpl. Don't use test -a, as it's not portable.
107830         (func_create_testdir): Use func_modules_transitive_closure,
107831         func_modules_to_filelist, func_emit_lib_Makefile_am.
107833 2004-10-15  Bruno Haible  <bruno@clisp.org>
107835         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
107837 2004-10-15  Bruno Haible  <bruno@clisp.org>
107839         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
107840         the portions belonging to each module.
107841         Suggested by Derek Robert Price <derek@ximbiot.com>.
107843 2004-10-12  Simon Josefsson  <jas@extundo.com>
107845         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
107846         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
107847         to real functions.
107849 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107851         * modules/vsnprintf: New file.
107853 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107855         * m4/vsnprintf.m4: New file.
107857 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107859         * lib/vsnprintf.h: New file.
107860         * lib/vsnprintf.c: New file.
107862 2004-10-11  Bruno Haible  <bruno@clisp.org>
107864         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
107865         vsnprintf.
107867 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
107869         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
107871 2004-10-07  Bruno Haible  <bruno@clisp.org>
107873         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
107874         fits into the provided buffer.
107876 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
107878         * lib/diacrit.c, diacrit.h: Add GPL notice.
107880         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
107881         notice.
107882         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
107883         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
107884         This avoids a potential constant-folding bug.
107886 2004-10-05  Bruno Haible  <bruno@clisp.org>
107888         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
107889         for the declaration of strsep.
107891 2004-10-05  Bruno Haible  <bruno@clisp.org>
107893         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
107895 2004-10-04  Simon Josefsson  <jas@extundo.com>
107897         * modules/memmem: New file.
107898         * tests/test-memmem.c: New file.
107899         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
107901 2004-10-04  Simon Josefsson  <jas@extundo.com>
107903         * m4/memmem.m4: New file.
107905 2004-10-04  Simon Josefsson  <jas@extundo.com>
107907         * lib/memmem.h: New file.
107908         * lib/memmem.c: New file, taken from glibc.
107910 2004-10-04  Simon Josefsson  <jas@extundo.com>
107912         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
107913         '#ifdef USE_UNLOCKED_IO'.
107915 2004-10-04  Simon Josefsson  <jas@extundo.com>
107917         * config/srclist.txt: Add memmem from glibc.
107919 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
107921         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
107923         * modules/argmatch, modules/argp, modules/closeout, modules/error,
107924         modules/exclude, modules/getdate, modules/getline,
107925         modules/getndelim2, modules/getpass, modules/getpass-gnu,
107926         modules/getusershell, modules/linebuffer, modules/md5,
107927         modules/mountlist, modules/posixtm, modules/readtokens,
107928         modules/readutmp, modules/regex, modules/sha1,
107929         modules/version-etc, modules/yesno:
107930         Remove dependency on unlocked-io.
107932 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
107934         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
107936         * m4/unlocked-io.m4: Add copyright notice.
107937         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
107939 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
107941         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
107942         * lib/xmalloc.c (xmemdup): Likewise.
107943         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
107944         XFREE): Remove these long-obsolescent macros.
107945         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
107946         * lib/xstrdup.c: Remove.
107948         * lib/regex.c (re_comp): Cast gettext return value to char *,
107949         Problem reported by Martin Neitzel via Mark D. Baushke.
107951 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
107953         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
107954         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
107955         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
107956         regex.c, sha1.c, version-etc.c, yesno.c:
107957         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
107958         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
107959         the includer's responsibility.
107961         Sync from coreutils.
107963         * lib/modechange.c (mode_compile): Don't decrement a pointer that
107964         points to the start of a string, as the C Standard says the
107965         resulting behavior is undefined.
107967         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
107968         simple -> simple_backups, numbered_existing ->
107969         numbered_existing_backups, numbered -> numbered_backups
107970         to avoid shadowing problems.  All uses changed.
107971         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
107972         * lib/backupfile.c (check_extension, numbered_backup):
107973         Rename locals to avoid shadowing 'basename'.
107974         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
107975         once.
107977         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
107978         * lib/.cvsignore: Add getopt.h.
107980 2004-10-04  Bruno Haible  <bruno@clisp.org>
107982         * modules/README: New file.
107983         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
107984         not a module.
107986 2004-10-02  Jim Meyering  <jim@meyering.net>
107988         * lib/dirfd.h, getpagesize.h: Add copyright notice.
107990 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107992         * modules/strsep: New file.
107994 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107996         * m4/strsep.m4: New file.
107998 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108000         * lib/strsep.h: New file.
108001         * lib/strsep.c: New file.
108003 2004-10-01  Simon Josefsson  <jas@extundo.com>
108005         * lib/snprintf.c (snprintf): Handle size==0.
108007 2004-10-01  Simon Josefsson  <jas@extundo.com>
108008             Bruno Haible  <bruno@clisp.org>
108010         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
108011         (snprintf): Declare 'args'.
108013 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
108015         * lib/snprintf.c: Remove comments as to why each header is needed.
108017 2004-10-01  Bruno Haible  <bruno@clisp.org>
108019         * MODULES.html.sh: Add strsep.
108021 2004-09-30  Simon Josefsson  <jas@extundo.com>
108023         * modules/snprintf: New file.
108025 2004-09-30  Simon Josefsson  <jas@extundo.com>
108027         * m4/snprintf.m4: New file.
108029 2004-09-30  Simon Josefsson  <jas@extundo.com>
108031         * lib/snprintf.h, lib/snprintf.c: New files.
108033 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108035         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
108036         (hol_entry_help): Never translate an empty string.
108037         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
108038         * lib/argp.h (OPTION_NO_TRANS): New option.
108040 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108042         * modules/argp (Maintainer): Replace Simon Josefsson
108043         by Sergey Poznyakoff.
108045 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108047         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
108048         changes merged back into glibc.
108050 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108052         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
108054 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
108056         * lib/xvasprintf.c: Include xalloc.h.
108057         (xvasprintf): Use xalloc_die, not xmalloc_die.
108059 2004-09-29  Bruno Haible  <bruno@clisp.org>
108061         * modules/alloca-opt: New file, derived from modules/alloca.
108062         * modules/allocsa: Depend on alloca-opt instead of alloca.
108063         * modules/setenv: Likewise.
108064         * modules/vasnprintf: Likewise.
108065         * MODULES.html.sh: Add alloca-opt.
108067 2004-09-28  Simon Josefsson  <jas@extundo.com>
108069         * gnulib-tool: New parameter --lgpl, to asseert that modules are
108070         LGPL, and to replace license template from GPL to LGPL.
108072 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108074         * modules/dummy: Change license to LGPL.
108076 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108078         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
108080 2004-09-24  Simon Josefsson  <jas@extundo.com>
108082         * modules/minmax (License): Change from GPL to LGPL.
108084 2004-09-23  Simon Josefsson  <jas@extundo.com>
108086         * gnulib-tool (--import): Typo.
108088 2004-09-23  Simon Josefsson  <jas@extundo.com>
108090         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
108092 2004-09-22  Bruno Haible  <bruno@clisp.org>
108094         * modules/*: Add 'License' field.
108095         * gnulib-tool: Accept --extract-license option.
108096         (func_get_license): New function.
108098 2004-09-21  Bruno Haible  <bruno@clisp.org>
108100         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
108101         Reported by Simon Josefsson.
108103 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108105         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
108106         gl_AC_TYPE_LONG_LONG.
108108 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108110         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
108112 2004-09-18  Simon Josefsson  <jas@extundo.com>
108113         and  Paul Eggert  <eggert@cs.ucla.edu>
108115         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
108116         calls with autoreconf.  Define GL_LIB.
108118 2004-09-14  Karl Berry  <karl@gnu.org>
108120         * config/srclist.txt: unsync setenv.c, sigh.
108122 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108124         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
108125         Problem reported by Bruno Haible in:
108126         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
108128 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108130         * config/srclist.txt: Comment out argp-pvh.c.
108132 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
108134         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
108135         in case some system header has #define'd it.  Problem reported by
108136         Soeren D. Schulze in
108137         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
108139 2004-09-09  Karl Berry  <karl@gnu.org>
108141         * regex.[ch]: delete from the root.  These were supposed to be
108142                 synced with emacs cvs, but this has not happened for about
108143                 a year, and anyway nothing else uses emacs regex.[ch].
108144                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
108145                 lib/regex[.ch] is untouched.
108147 2004-09-09  Bruno Haible  <bruno@clisp.org>
108149         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
108151 2004-09-09  Bruno Haible  <bruno@clisp.org>
108153         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
108154         modifications.
108155         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
108157 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108159         * modules/xvasprintf: New file.
108160         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
108162 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108164         * lib/xvasprintf.h: New file.
108165         * lib/xvasprintf.c: New file.
108166         * lib/xasprintf.c: New file.
108168 2004-09-08  Bruno Haible  <bruno@clisp.org>
108170         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
108172 2004-09-08  Bruno Haible  <bruno@clisp.org>
108174         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
108175         length is > INT_MAX.
108176         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
108177         more.
108179 2004-09-08  Bruno Haible  <bruno@clisp.org>
108181         * lib/stdint_.h: New file, taken from GNU clisp.
108183 2004-09-08  Bruno Haible  <bruno@clisp.org>
108184             Oskar Liljeblad  <oskar@osk.mine.nu>
108186         * modules/stdint: New file.
108187         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
108189 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108191         Import from coreutils.
108192         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
108193         strings on unbounded length.  alloca's performance benefits aren't
108194         that important here.
108195         (V_STRDUP): Remove.
108196         (parse_with_separator): New function, with most of the internals
108197         of the old parse_user_spec.  Allow user to omit both user and group,
108198         for compatibility with FreeBSD.
108199         Clone only the user name, not the entire spec.
108200         Do not set *uid, *gid unless entirely successful.
108201         Avoid memory leak in some failing cases.
108202         Fix regression for USER.GROUP reported by Dmitry V. Levin in
108203         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
108204         (parse_user_spec): Rewrite to use parse_with_separator.
108206 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108208         * modules/userspec: Don't depend on alloca.
108210 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108212         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
108214 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108216         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
108217         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
108218         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
108220 2004-08-16  Simon Josefsson  <jas@extundo.com>
108222         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
108223         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
108224         Add --dry-run for --import.
108225         Let user provided command line parameters override configure.ac
108226         settings.
108228 2004-08-12  Simon Josefsson  <jas@extundo.com>
108230         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
108231         as discussed with Paul Eggert in threads rooted at
108232         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
108233         and
108234         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
108235         Before, the test was empty, and relied on ELIDE_CODE in source
108236         code.)
108237         (gl_PREREQ_GETOPT): New macro.
108238         (gl_GETOPT): Use them.
108240 2004-08-12  Simon Josefsson  <jas@extundo.com>
108242         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
108243         * lib/getopt_.h: Renamed from getopt.h.
108245 2004-08-12  Simon Josefsson  <jas@extundo.com>
108247         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
108248         Change default library name from libfoo to libgnu.
108249         Now, if you have a configure.ac that says:
108250                 gl_SOURCE_BASE(gl)
108251                 gl_M4_BASE(gl/m4)
108252                 gl_MODULES(error getopt etcetera)
108253                 gl_INIT
108254         you can import all you need by running:
108255                 ../gnulib/gnulib-tool --import
108257         * modules/getopt (Files): Rename getopt.h to getopt_.h.
108258         (Makefile.am): Rewrite, use logic from argz.
108259         (Include): Use <getopt.h> instead of "getopt.h".
108261 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108263         * modules/argp (Files): Add m4/unlocked-io.m4.
108264         (Depends-on): Add extensions.
108266 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108268         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
108269         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
108270         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
108271         Check for program_invocation_name, program_invocation_short_name,
108272         flockfile, funlockfile, features.h, _getopt_long_only_r.
108274 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108276         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
108277         its complicated substitute.
108278         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
108279         and program_invocation_name.
108280         (__argp_basename) [!_LIBC]: Remove; the only use was
108281         replaced by its body.
108282         (__argp_short_program_name): Change condition from
108283         !defined __argp_short_program_name to
108284         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
108285         to match argp-namefrob.h.
108286         (__argp_failure): Don't assume strerror_r returns char *.
108287         * lib/argp-parse.c (N_): Define unconditionally.
108288         (argp_default_options): Fill out initializers with 0 to avoid
108289         gcc warnings.
108291 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
108293         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
108294         getopt1.c.
108296 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108298         Merge from coreutils.
108300         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
108302         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
108303         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
108305 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108307         Merge from coreutils.
108309         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
108310         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
108311         for Reliant Unix 5.43.
108313         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
108314         (union fooround): Use uintmax_t, not long int.
108315         The rest is a merge from libc:
108316         [defined _LIBC]: Include <shlib-compat.h>.
108317         (_obstack) [defined _LIBC]: Remove after 2.3.4.
108319         * lib/settime.c (settime): Recode to avoid warning with
108320         Sun Forte C 6U2.
108322         * lib/strverscmp.c: Convert to UTF-8.
108324 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
108326         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
108327         m4/uintmax_t.m4.
108329 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108331         * modules/xalloc-die: New file.
108332         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
108334         * modules/md5 (Files): Add m4/uint32_t.m4.
108335         * modules/sha1: Renamed from modules/sha.
108336         (Files):
108337         Rename lib/sha.h to lib/sha1.h.
108338         Rename lib/sha.c to lib/sha1.c.
108339         Rename m4/sha.m4 to m4/sha1.m4.
108340         (lib_SOURCES): Likewise.
108341         (configure.ac): Rename gl_SHA to gl_SHA1.
108342         (Include): sha.h -> sha1.h.
108344 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108346         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
108347         * m4/sha1.m4: Renamed from sha.m4.
108348         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
108350 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
108352         * lib/obstack.h (obstack_empty_p):
108353         Don't assume that chunk->contents is suitably aligned.
108354         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
108355         Likewise. Problem reported by Benno in
108356         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
108358         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
108359         readable.  This could be improved further but it'd take some work.
108361 2004-08-08  Simon Josefsson  <jas@extundo.com>
108363         * modules/xgethostname (Depends-on): Remove exit and error (not
108364         used).
108366         * modules/getpass-gnu: Add getpass.h.
108367         (Depends-on): Add stdbool.
108368         * modules/getpass: Add getpass.h.
108370 2004-08-08  Simon Josefsson  <jas@extundo.com>
108372         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
108373         Check getpass declaration.
108375 2004-08-08  Simon Josefsson  <jas@extundo.com>
108377         * lib/xgethostname.c: Don't include error.h (not used).
108379         * lib/getpass.h: Add.
108380         * lib/getpass.c: Include getpass.h first.
108382 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
108384         * lib/xalloc-die.c: New file.
108385         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
108386         All uses removed.
108387         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
108388         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
108389         xalloc-die.c.
108390         (_, N_, xalloc_die): Move to xalloc-die.c.
108391         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
108392         so that we needn't mess with xalloc_msg_memory_exhausted.
108394         * lib/sha1.h: Renamed from sha.h.
108395         (SHA1_H): Renamed from _SHA_H.
108396         (sha1_ctx): Renamed from sha_ctx.
108397         (sha1_init_ctx): Renamed from sha_init_ctx.
108398         (sha1_process_block): Renamed from sha_process_block.
108399         (sha1_process_bytes): Renamed from sha_process_bytes.
108400         (sha1_finish_ctx): Renamed from sha_finish_ctx.
108401         (sha1_read_ctx): Renamed from sha_read_ctx.
108402         (sha1_stream): Renamed from sha_stream.
108403         (sha1_buffer): Renamed from sha_buffer.
108404         * lib/sha1.c: Likewise; renamed from sha.c.
108405         Do not include <sys/types.h>.
108406         Include <stddef.h> rather than <stdlib.h>.
108408 2004-08-08  Bruno Haible  <bruno@clisp.org>
108410         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
108411         FILESYSTEM_PREFIX_LEN.
108412         * lib/progreloc.c: Likewise.
108413         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
108415 2004-08-06  Simon Josefsson  <jas@extundo.com>
108417         * modules/progname (Depends-on): Don't depend on stdbool.
108419 2004-08-06  Simon Josefsson  <jas@extundo.com>
108421         * modules/getsubopt: New file.
108422         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108423         getsubopt.
108425 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108427         More merge from coreutils.
108429         * m4/utimens.m4, m4/utimecmp.m4: New files.
108430         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
108431         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
108432         prereq.m4, sha.m4: Import changes from coreutils.
108434 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108436         More merge from coreutils.
108437         * modules/raise, modules/readtokens0, modules/utimens:
108438         * modules/utimecmp, module/xnanosleep: New files.
108439         * modules/strftime: Add lib/strftime.h.
108440         Change include from <time.h> to "strftime.h".
108441         * modules/yesno: Add lib/yesno.h.
108442         * modules/backupfile: Remove lib/addext.c.
108443         * modules/euidaccess: Add stat-macros.h.
108444         * modules/canonicalize, modules/euidaccess,
108445         modules/filemode, modules/lchown, modules/makepath,
108446         modules/rmdir, modules/stat: Likewise.
108448 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
108450         Merge from tar.
108451         * lib/argp-help.c (make_hol, hol_append): Don't assume that
108452         SIZE_MAX is a valid preprocessor constant.
108453         (__argp_basename): Change from "#ifndef _LIBC"
108454         to "#ifndef __argp_short_program_name", so that
108455         we don't compile these functions for tar.
108457         More merges from coreutils.
108458         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
108459         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
108460         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
108461         * lib/addext.c: Remove; no longer needed.
108462         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
108463         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
108464         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
108465         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
108466         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
108467         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
108468         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
108469         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
108470         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
108471         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
108472         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
108473         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
108474         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
108475         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
108476         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
108477         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
108478         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
108479         Import changes from coreutils.
108481 2004-08-05  Simon Josefsson  <jas@extundo.com>
108483         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
108485 2004-08-05  Simon Josefsson  <jas@extundo.com>
108487         * m4/getsubopt.m4: New file.
108489 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108491         Merge from coreutils.
108493         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
108494         * m4/getcwd-path-max.m4: New files.
108496         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
108497         FILESYSTEM_PREFIX_LEN ->
108498         FILE_SYSTEM_PREFIX_LEN.
108499         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
108500         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
108501         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
108502         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
108504         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
108505         prerequisite modules now handle the DOS stuff.
108506         Don't check for unistd.h.
108508 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108510         Merge from coreutils.
108512         * lib/.gdb-history: Remove; this doesn't belong here.
108514         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
108515         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
108516         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
108517         * lib/getcwd.c: New files.
108519         * lib/dirname.h: Include <stdbool.h>.
108520         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
108521         for consistency with POSIX terminology.  All uses changed.
108522         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
108523         (strip_trailing_slashes): Use bool for booleans.
108524         * lib/stripslash.c (strip_trailing_slashes): Likewise.
108526         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
108527         sometimes returns a positive errno value even when it succeeds.
108528         (print_errno_message) [!LIBC]: Fall back on strerror if
108529         __strerror_r fails.
108531         * lib/path-concat.c (mempcpy): Don't define if a system header defines
108532         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
108533         (longest_relative_suffix): New function.
108534         (path_concat): Use it.  Assume first argument is not NULL.
108535         Port to DOS.  Omit redundant separators.
108536         Report an error instead of returning NULL.
108537         Use mempcpy instead of memcpy.
108538         (xpath_concat): Remove: not declared or used.
108540         * lib/same.h: Include <stdbool.h>
108541         (same_name): Return bool, not int.
108542         * lib/same.c (same_name): Likewise.
108543         (errno): Don't declare; we assume C89 or better now.
108545         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
108546         if not already defined.
108548         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
108549         * lib/dup-safer.c (errno): Likewise.
108551 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
108553         Merge from coreutils.
108554         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
108555         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
108556         * modules/path-concat: Don't depend on strdup.
108558 2004-08-03  Simon Josefsson  <jas@extundo.com>
108560         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
108561         * lib/progname.h: Don't include stdbool.h.
108563 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108565         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
108566         * MODULES.html.sh (func_all_modules): Remove fatal.
108568 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108570         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
108572 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
108574         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
108575         working.
108577 2004-08-02  Simon Josefsson  <jas@extundo.com>
108579         * lib/getsubopt.h: New file, with comments from Bruno Haible.
108580         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
108581         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
108583 2004-08-01  Simon Josefsson  <jas@extundo.com>
108585         * lib/xgetdomainname.c: Include stdlib.h, for free().
108587 2004-07-19  Bruno Haible  <bruno@clisp.org>
108589         * MODULES.html.sh (func_all_modules): Add dummy.
108591 2004-07-16  Simon Josefsson  <jas@extundo.com>
108593         * modules/dummy: New file.
108595 2004-07-16  Simon Josefsson  <jas@extundo.com>
108597         * lib/dummy.c: New file.
108599 2004-07-16  Bruno Haible  <bruno@clisp.org>
108601         * lib/backupfile.h: Add extern "C" for C++.
108602         * lib/closeout.h: Likewise.
108603         * lib/copy-file.h: Likewise.
108604         * lib/findprog.h: Likewise.
108605         * lib/full-write.h: Likewise.
108606         * lib/pathname.h: Likewise.
108607         * lib/progname.h: Likewise.
108608         * lib/stpcpy.h: Likewise.
108609         * lib/stpncpy.h: Likewise.
108610         * lib/strcase.h: Likewise.
108611         * lib/strstr.h: Likewise.
108612         * lib/xalloc.h: Likewise.
108614         * lib/mbswidth.h: Add extern "C" for C++.
108615         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
108617 2004-07-13  Robert Millan  <robertmh@gnu.org>
108619         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
108621 2004-07-09  Simon Josefsson  <jas@extundo.com>
108623         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
108624         failed without this.)
108626 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
108628         * modules/chown (Files): Add lib/fchown-stub.c, since
108629         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
108631 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
108633         * lib/fchown-stub.c: New file.
108635 2004-06-24  Jim Meyering  <jim@meyering.net>
108637         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
108639 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108641         * modules/argz: Omit "#include".
108643         * MODULES.html.sh (func_all_modules): Add calloc, to match
108644         2004-06-01 addition of calloc module.
108646 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108648         * m4/argz.m4: New file, which is autoupdated from libtool.
108650 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108652         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
108653         libtool.
108655 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
108657         * config/srclist-update: Don't insist on "USA." before the
108658         close-comment, as libtool omits the period and puts the */ on a
108659         separate line.
108660         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
108661         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
108663 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
108665         * modules/argz: New file.
108666         * MODULES.html.sh (func_all_modules): Add argz.
108668 2004-06-12  Jim Meyering  <jim@meyering.net>
108669         and  Paul Eggert  <eggert@cs.ucla.edu>
108671         * modules/hash (Files): Add lib/xalloc.h.
108672         * modules/pipe (Depends-on): Add wait-process.
108673         * modules/stat (Depends-on): Add xalloc.
108674         * modules/userspec (Files): Add lib/userspec.h.
108675         * modules/xstrto
108677         Upgrade from gettext-0.13.
108678         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
108679         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
108680         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
108682 2004-06-10  Jim Meyering  <jim@meyering.net>
108684         * lib/calloc.c: New file.
108686 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
108688         * lib/getdate.y (yylex): Allow space between sign and number.
108689         Problem reported by Dan Jacobson.
108691 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
108693         Merge from coreutils CVS.
108695         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
108696         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
108697         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
108698         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
108699         xstrtol.m4: Fix copyright date and/or serial number.
108701         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
108702         See if we need an fchown replacement.
108703         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
108704         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
108705         and use the replacement function if we detect either defect.
108707         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
108708         gl_UTIMECMP.
108710 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
108711         and  Jim Meyering  <jim@meyering.net>
108713         Merge from coreutils CVS.
108715         * lib/stat-macros.h: New file, with contents from file-type.h
108716         and coreutils' system.h.
108717         * lib/file-type.c: Include "stat-macros.h".
108718         * lib/file-type.h (file_type): Move all macro definitions to new file,
108719         stat-macros.h.
108721         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
108722         Wrap old code with this conditional.
108723         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
108724         function that does not dereference symlinks.
108725         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
108727         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
108728         dependency problems.
108729         (xreadlink): Accept new arg SIZE, for efficiency.
108730         All decls and uses changed.
108731         * lib/xreadlink.h: Include <stddef.h>, for size_t.
108733         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
108734         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
108736         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
108737         sysexits.h.
108739 2004-06-01  Jim Meyering  <jim@meyering.net>
108741         * m4/calloc.m4: New file.
108743 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
108745         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
108746         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
108747         Also, fix a typo in a diagnostic.
108749 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
108751         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
108752         or AC_FUNC_REALLOC.
108754 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
108756         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
108757         macros to be defined.
108758         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
108759         the allocator returns NULL because the requested size is zero.
108761 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
108763         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
108764         var.  Add comment explaining why libc still defines it.  This
108765         merges the following patch from glibc:
108766         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
108768 2004-05-20  Andreas Schwab  <schwab@suse.de>
108770         * m4/free.m4: Replace free if it not known to work, not the other
108771         way round.
108773 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
108775         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
108776         present in glibc since revision 1.1 of this file.
108777         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
108778         obstack_alignment_mask, obstack_alloc, obstack_base,
108779         obstack_blank, obstack_blank_fast, obstack_chunk_size,
108780         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
108781         obstack_grow0, obstack_init, obstack_int_grow,
108782         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
108783         obstack_next_free, obstack_object_size, obstack_ptr_grow,
108784         obstack_ptr_grow_fast, obstack_room): Remove declarations of
108785         nonexistent functions.
108787 2004-05-18  Karl Berry  <karl@gnu.org>
108789         * config/srclist.txt: break link for vasnprintf.c.
108791 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
108793         Port obstack to the AS/400, where pointers are 16 bytes wide and
108794         you cannot cast an integer to a valid pointer.  This patch is
108795         currently waiting to be integrated into glibc; see
108796         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
108798         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
108799         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
108800         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
108801         (struct obstack): temp member is now a union of a pointer and
108802         an integer, instead of an integer.  All integer uses changed.
108803         This does not affect the physical layout of struct obstack,
108804         except on hosts (like the AS/400) where the size or alignment of
108805         void * is greater than that of ptrdiff_t.
108806         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
108807         __STDC__)]: Store temporary in pointer member of union, not
108808         integer member.
108809         * lib/obstack.c: Include <stddef.h>, for offsetof.
108810         (struct fooalign): Remove; it doesn't need a name.
108811         (union fooround): Change double to long double, and add void *.
108812         (DEFAULT_ALIGNMENT): Use offsetof to compute.
108813         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
108814         not a macro.  Hence the values are always int; so remove all
108815         casts-to-int in uses.
108817 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
108819         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
108820         we can get this patch merged into glibc.
108822 2004-05-17  Derek R. Price  <derek@ximbiot.com>
108823             Paul Eggert  <eggert@cs.ucla.edu>
108825         * m4/argp: Depend on alloca.
108827 2004-05-17  Derek R. Price  <derek@ximbiot.com>
108828             Paul Eggert  <eggert@cs.ucla.edu>
108830         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
108831         freecoding.
108833 2004-05-17  Bruno Haible  <bruno@clisp.org>
108835         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
108836         precision that consists of a '.' followed by an empty digit string.
108837         Patch by Tor Lillqvist <tml@iki.fi>.
108839 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
108841         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
108842         for backward compatibility with older code.  We need our own
108843         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
108844         it under some other name, and our alloca.h will define it.
108846 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
108847             Derek Price  <derek@ximbiot.com>
108849         * lib/alloca.c: Include <alloca.h>, to get our interface.
108850         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
108851         include <alloca.h> first.  Use C89 prototype for alloca; this
108852         requires including <stddef.h> for size_t.  Use extern "C" if C++.
108853         Use #elif for simplicity, since we can assume C89 now.
108854         Don't try to source the system alloca.h since it will not be found
108855         and to prevent recursively including its replacement.
108856         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
108857         * lib/regex.c: Likewise.
108859 2004-05-16  Derek Price  <derek@ximbiot.com>
108860             Paul Eggert  <eggert@cs.ucla.edu>
108862         getline cleanup.  This changes the getndelim2 API: both order of
108863         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
108864         no delimiter).
108866         * lib/getline.c: Don't include stddef.h or stdio.h, since our
108867         interface does that.
108868         (getline): Always use getdelim, so that we don't have two
108869         copies of this code.
108870         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
108871         if available.
108872         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
108873         (GETNDELIM2_MAXIMUM): New macro.
108874         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
108875         instead of the old practice of delim2==0.  All callers changed.
108876         Return -1 on overflow, instead of returning junk.
108877         Do not set *linesize unless allocation succeeds.
108878         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
108879         that we include sys/types.h.
108880         * lib/getnline.h: Likewise.
108881         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
108882         (getndelim2): Reorder arguments.
108883         * lib/getnline.c (getnline, getndelim):
108884         Don't discard the NMAX argument.
108885         (getnline): Invoke getndelim, to avoid code duplication.
108886         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
108887         of (size_t) -1 by callers of the getnline family.
108889 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
108891         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
108892         Check for gettimeofday.
108893         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
108894         Check for settimeofday, stime.
108896 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
108898         * lib/nanosleep.c (suspended): Change its type from int to
108899         sig_atomic_t volatile.
108900         (first_call): Make it private to rpl_nanosleep, and have it
108901         be zero initially as that's a bit faster.
108902         (my_usleep): Round up fractional times instead of truncating them,
108903         as this is the usual meaning for 'sleep'.
108905         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
108906         doesn't work.
108907         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
108908         (ENOSYS): Define if not defined.
108909         (settime): Fall back on stime if it exists and settimeofday fails.
108910         But don't bother with fallbacks if a method fails with errno == EPERM.
108912 2004-05-11  Jim Meyering  <jim@meyering.net>
108914         Prior to this change, the save_cwd caller required read access to the
108915         current directory on most systems (ones with the fchdir function).
108917         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
108918         fails, try write-only, and finally, resort to using xgetcwd.
108920 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
108922         * lib/obstack.c, obstack.h: Import changes from libc.
108924 2004-04-28  Bruno Haible  <bruno@clisp.org>
108926         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
108927         also implicitly appends .exe to executables.
108928         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
108929         accepts Windows pathnames.
108930         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
108931         Treat Cygwin like Windows, since it now accepts Windows pathnames.
108932         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
108933         Treat Cygwin like Windows, since it now accepts Windows pathnames.
108934         Reported by Derek Robert Price <derek@ximbiot.com>.
108936 2004-04-21  Karl Berry  <karl@gnu.org>
108938         * config/srclist.txt (localcharset.c): break sync.
108940 2004-04-20  Paul Eggert  <eggert@twinsun.com>
108942         * m4/host-os.m4: Add a copyright notice.
108944 2004-04-20  Jim Meyering  <jim@meyering.net>
108946         Change UTILS_ to gl_ in AC_DEFINE'd names.
108947         Change utils_- and jm_-prefixed variables, too.
108948         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
108949         UTILS_FUNC_MKDIR_TRAILING_SLASH.
108950         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
108952         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
108953         Don't emit trailing blanks.
108954         Also rename jm_-prefixed variables to have gl_ prefix.
108956         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
108957         Also rename jm_-prefixed variables to have gl_ prefix.
108959         * m4/jm-macros.m4: Reflect the renamings.
108960         * m4/prereq.m4: Likewise.
108962 2004-04-20  Jim Meyering  <jim@meyering.net>
108964         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
108965         memory.
108967 2004-04-20  Jim Meyering  <jim@meyering.net>
108968             Bruno Haible  <bruno@clisp.org>
108970         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
108971         memory when realloc fails.
108973 2004-04-19  Jim Meyering  <jim@meyering.net>
108975         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
108976         now that readutmp.c may call `free (0)'.
108978 2004-04-19  Bruno Haible  <bruno@clisp.org>
108980         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
108981         * m4/inttypes_h.m4: Likewise.
108982         * m4/stdint_h.m4: Likewise.
108983         * m4/intmax_t.m4: Likewise.
108984         * m4/uintmax_t.m4: Likewise.
108986 2004-04-18  Jim Meyering  <jim@meyering.net>
108988         * m4/prereq.m4: Don't forbid jm_ prefix.
108990         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
108991         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
108992         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
108993         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
108994         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
108995         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
108996         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
108997         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
108998         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
108999         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
109000         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
109001         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
109002         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
109003         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
109004         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
109005         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
109006         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
109007         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
109008         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
109010 2004-04-18  Jim Meyering  <jim@meyering.net>
109012         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
109013         failure, don't leak memory and do call END_UTMP_ENT.
109015 2004-04-16  Jim Meyering  <jim@meyering.net>
109017         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
109018         coreutils' stat program.
109019         (gl_PREREQ): Don't require jm_PREREQ_STAT.
109021 2004-04-11  Paul Eggert  <eggert@twinsun.com>
109023         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
109024         C89.
109025         (CHAR_BIT): Remove, since we assume C89.
109026         Include <stdint.h> if available, as per current Autoconf CVS advice.
109028 2004-03-31  Jim Meyering  <jim@meyering.net>
109030         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
109031         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
109032         * m4/xalloc.m4: Likewise.
109034 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109036         Merge from coreutils.
109038         * m4/inttostr.m4: New file.
109039         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
109040         Require AM_STDBOOL_H and gl_TIMESPEC instead.
109041         Require gl_CLOCK_TIME.
109042         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
109044 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109046         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
109047         not bool, to be more consistent with Unix conventions.
109048         Suggested by Bruno Haible.
109050         Merge from coreutils.
109052         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
109053         * lib/umaxtostr.c: New files.
109055         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
109056         the usual <time.h> dance.
109057         (get_date): Change signature to support fractional time stamps.
109058         All callers changed.
109059         * lib/getdate.y: Include "getdate.h" first, as we can now
109060         assume C89 and don't need to worry about 'const'.
109061         Similarly, include "unlocked-io.h" near start, not in middle.
109062         Include <limits.h>.
109063         (textint.value): Use long int rather than int.
109064         (textint.digits): Use size_t rather than int.
109065         (BILLION, LOG10_BILLION): New constants.
109066         (parser_control): New member rel_ns.  Members day_ordinal,
109067         time_zone, month, day, hour, minutes, rel_year, rel_month,
109068         rel_day, rel_hour, rel_minutes, rel_seconds
109069         are now long int, not int.  Member seconds is now struct timespec,
109070         not int.  New member timespec_seen.  Members dates_seen, days_seen,
109071         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
109072         not int.
109073         (%union.intval): Now long int, not int.
109074         New member timespec.
109075         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
109076         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
109077         (spec): Now is a timespec or an item list.
109078         (timespec, items): New nonterminals.
109079         (time, rel, relunit, number, get_date):
109080         Add support for fractional seconds.
109081         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
109082         (gmtime, localtime, mktime): Remove decls; not needed with C89.
109083         (to_hour): First arg is now long int, not int.
109084         (to_year): Returns long int, not int.
109085         Don't treat year -70 like 70.
109086         (tm_diff): Returns long int, not int.
109087         (lookup_word): Use bool instead of int when appropriate.
109088         (yylex): Use size_t for count, not int.
109089         Detect overflow when parsing large integer constants.
109090         Add support for fractions.
109091         (get_date): Make pointers 'const' if possible.
109092         Use more-portable code to detect integer overflow.
109093         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
109094         Don't use ctime; it's not reliable if the year has >4 digits.
109096         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
109097         This is for compatibility with BSD.
109099         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
109100         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
109101         From coreutils' system.h.
109103         * lib/userspec.c: Don't include "posixver.h".
109104         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
109105         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
109106         compatible extension.  Simplify code by removing a boolean int
109107         that was always nonzero if a string was nonnull.
109109 2004-03-30  Jim Meyering  <jim@meyering.net>
109111         Merge from coreutils.
109113         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
109114         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
109115         on some systems one must include <grp.h> before it.
109116         Reported by Christian Krackowizer.
109118 2004-03-30  Jim Meyering  <jim@meyering.net>
109120         Merge from coreutils.
109122         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
109124         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
109125         an empty input stream.
109127         * lib/readtokens.c: Include <stdbool.h>.
109128         (readtoken): Use `size_t' rather than int/long.
109129         All callers adjusted.
109130         Use `bool' rather than `int' where appropriate.
109131         Use memset rather than an explicit loop.
109132         Use x2nrealloc rather than xrealloc.
109133         Allow the use of `\0' as a delimiter.
109134         (readtokens): Likewise.
109135         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
109137 2004-03-30  Jim Meyering  <jim@meyering.net>
109139         * m4/realloc.m4: Remove file, since now it does no more than
109140         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
109141         the `configure.ac' section of module/realloc.
109142         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
109144 2004-03-30  Bruno Haible  <bruno@clisp.org>
109146         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
109147         nonnull.
109149 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109151         Merge changes to getloadavg.c from coreutils and Emacs.
109153         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
109154         Define to an expression, not to the empty string.
109155         Include cloexec.h and xalloc.h.
109156         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
109157         Use set_cloexec_flag rather than rolling our own.
109158         * lib/cloexec.c, lib/cloexec.h: New files.
109160 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109162         * m4/cloexec.m4: New file.
109164 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109166         * lib/getopt.h: Sync with libc CVS.
109168 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109169             Bruno Haible  <bruno@clisp.org>
109171         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
109172         mbswidth.
109174 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109175             Bruno Haible  <bruno@clisp.org>
109177         * lib/mbswidth.h: Include <wchar.h> only if
109178         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
109179         <wchar.h>.
109180         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
109182 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109184         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
109185         Sync with libc CVS.
109186         * lib/getopt_int.h: New file, also synced from libc.
109188 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109190         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
109191         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
109192         Bring back getopt.c, getopt.h, getopt1.c.
109194 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109196         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
109197         All uses changed.  Check for sa_sigaction member; this fixes
109198         a bug first reported by Jason Andrade in
109199         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109201 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109203         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
109204         '#if' expressions.  Unlike the code it replaces, it does not
109205         depend on (defined _SC_PAGESIZE).  However, it does depend on
109206         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
109207         first reported by Jason Andrade in
109208         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109210 2004-02-25  Simon Josefsson  <jas@extundo.com>
109212         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
109214 2004-02-25  Simon Josefsson  <jas@extundo.com>
109216         * lib/strdup.h: New file.
109217         * lib/strdup.c: Include it.
109218         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
109219         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
109221 2004-02-23  Karl Berry  <karl@gnu.org>
109223         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
109224         (from fencepost.gnu.org:/gd/gnuorg).
109226 2004-02-23  Karl Berry  <karl@gnu.org>
109228         * config/srclistvars.sh (GNUORG) [karl]: redefine.
109229         * config/srclist.txt: add maintain/standards documents.
109231 2004-02-18  Bruno Haible  <bruno@clisp.org>
109233         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
109234         Reported by Derek Robert Price <derek@ximbiot.com>.
109236 2004-02-16  Karl Berry  <karl@gnu.org>
109238         * config/mkinstalldirs, install-sh: update from automake.
109240 2004-02-06  Karl Berry  <karl@gnu.org>
109242         * m4/po.m4: update from gettext 0.14.1.
109244 2004-02-06  Karl Berry  <karl@gnu.org>
109246         * lib/config.charset: update from gettext 0.14.1.
109248 2004-02-05  Paul Eggert  <eggert@twinsun.com>
109250         Add comments and code, prompted by suggestions from Bruno Haible
109251         for sh-quote.
109252         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
109253         describing the enum quoting_style values.
109254         * lib/quotearg.c (quotearg_alloc): New function.
109255         (quotearg_buffer_restyled): Treat lone { and } as special.
109256         Treat = as special.  Work around bug with older shells
109257         that "see" a '\' that is really the 2nd byte of a multibyte char.
109258         Quote empty string with shell_quoting_style.
109260 2004-02-03  Bruno Haible  <bruno@clisp.org>
109262         * m4/pipe.m4: New file, from GNU gettext.
109264 2004-02-03  Bruno Haible  <bruno@clisp.org>
109266         * lib/pipe.h: New file, from GNU gettext.
109267         * lib/pipe.c: New file, from GNU gettext.
109269 2004-01-27  Bruno Haible  <bruno@clisp.org>
109271         * m4/execute.m4: New file, from GNU gettext.
109273 2004-01-27  Bruno Haible  <bruno@clisp.org>
109275         * lib/execute.h: New file, from GNU gettext.
109276         * lib/execute.c: New file, from GNU gettext.
109277         * lib/w32spawn.h: New file, from GNU gettext.
109279 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109281         Merge from diffutils.
109283         * lib/file-type.c (file_type): Add typed memory objects.
109284         * lib/file-type.h (S_TYPEISTMO): New macro.
109286         * lib/c-stack.h (c_stack_action): Remove argv argument.
109287         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
109288         (die): Don't calculate message unless segv_action returns.
109289         (get_stack_location, min_address_from_argv, max_address_from_argv,
109290         volatile stack_base, volatile_stack_size): Remove.
109291         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
109292         that every segmentation violation is a stack overflow.  (Ouch!)
109293         See Debian bug 136249 (still outstanding) for more info about why
109294         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
109296 2004-01-24  Paul Eggert  <eggert@twinsun.com>
109298         Exit-status fix from coreutils.
109300         Use exit_failure consistently in place of EXIT_FAILURE,
109301         so that program exit statuses are consistent on failure.
109303         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
109304         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
109305         * lib/argmatch.h: Comment fix to match the above.
109306         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
109307         Now a macro referring to exit_failure, instead of a separate
109308         variable.  Include "exitfail.h" to get it.
109309         * lib/xstrtol.h: Include "exitfail.h".
109310         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
109312         * lib/long-options.c (parse_long_options): Use prototype
109313         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
109314         for clarity.
109316 2004-01-21  Jim Meyering  <jim@meyering.net>
109318         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
109319         so as not to conflict with a different-sized __mktime_internal
109320         function in GNU libc.
109321         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
109322         Problem building statically-linked `ls' reported by Michael Brunnbauer.
109324 2004-01-20  Karl Berry  <karl@gnu.org>
109326         * config/config.guess: update from config.
109328         * config/srclistvars.sh: GNUWWWLICENSES for karl.
109330 2004-01-20  Bruno Haible  <bruno@clisp.org>
109332         Safer stack allocation.
109333         * lib/setenv.c: Include allocsa.h.
109334         (alloca): Remove fallback definition.
109335         (freea): Remove macro.
109336         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
109337         instead of freea.
109339 2004-01-20  Bruno Haible  <bruno@clisp.org>
109341         * m4/eealloc.m4: New file, from GNU gettext.
109343 2004-01-20  Bruno Haible  <bruno@clisp.org>
109345         * m4/allocsa.m4: New file, from GNU gettext.
109347 2004-01-20  Bruno Haible  <bruno@clisp.org>
109349         * lib/xallocsa.h: New file, from GNU gettext.
109350         * lib/xallocsa.c: New file, from GNU gettext.
109352 2004-01-20  Bruno Haible  <bruno@clisp.org>
109354         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
109356 2004-01-20  Bruno Haible  <bruno@clisp.org>
109358         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
109359         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
109360         specially.
109362 2004-01-20  Bruno Haible  <bruno@clisp.org>
109364         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
109365         patch.
109367 2004-01-20  Bruno Haible  <bruno@clisp.org>
109369         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
109371 2004-01-20  Bruno Haible  <bruno@clisp.org>
109373         * lib/eealloc.h: New file.
109375 2004-01-20  Bruno Haible  <bruno@clisp.org>
109377         * lib/binary-io.h: Avoid warnings on Cygwin.
109379 2004-01-20  Bruno Haible  <bruno@clisp.org>
109381         * lib/allocsa.h: New file, from GNU gettext.
109382         * lib/allocsa.c: New file, from GNU gettext.
109384 2004-01-18  Karl Berry  <karl@gnu.org>
109386         * doc/gpl.texi, doc/lgpl.texi: new files.
109388 2004-01-18  Karl Berry  <karl@gnu.org>
109390         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
109391         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
109393 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109395         Merge from coreutils.
109397         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
109398         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
109399         (gl_DEFAULT_POSIX2_VERSION): Move
109400         the documentation from 'configure' into 'config.hin',
109401         so that 'configure --help' isn't burdened by it and
109402         we don't have to worry about its formatting there.
109403         Reword the documentation so that it's more succinct
109404         and can be run together into a single paragraph.
109405         * m4/same.m4 (gl_SAME): Check for pathconf.
109407 2004-01-15  Paul Eggert  <eggert@twinsun.com>
109409         Merge from coreutils.
109411         * lib/posixver.c: Include posixver.h.
109413         * lib/same.c: Include <stdbool.h>, <limits.h>.
109414         (_POSIX_NAME_MAX): Define if not defined.
109415         (MIN): New macro.
109416         (same_name): If file names are silently truncated, report
109417         that the file names are the same if they are the same after
109418         the silent truncation.
109420         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
109421         conversion function.
109422         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
109423         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
109424         longer needed.
109426 2004-01-15  Jim Meyering  <jim@meyering.net>
109428         Merge from coreutils.
109430         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
109431         if no library is required.
109432         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
109433         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
109434         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
109435         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
109436         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
109437         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
109438         value, $ac_cv_search_crypt, if it's "none required".
109439         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
109440         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
109441         not gl_FUNC_GETLOADAVG.
109442         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
109443         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
109445 2004-01-15  Jim Meyering  <jim@meyering.net>
109447         Merge from coreutils.
109449         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
109450         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
109451         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
109453         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
109454         optional configure-time default.
109456         * lib/version-etc.c (version_etc_copyright): Update copyright date.
109458         * lib/xreadlink.c (xreadlink): Correct outdated comment.
109460 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
109462         Merge from coreutils.
109464         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
109465         value, $ac_cv_search_nanosleep, if it's "none required".
109467 2004-01-14  Paul Eggert  <eggert@twinsun.com>
109469         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
109470         with like-named macro in fnmatch.c.
109471         (EXT): Use an internal constant instead.
109473         Merge fnmatch patches from glibc.
109474         * lib/fnmatch.c (mbsinit): Remove define.
109475         Add libc_hidden_ver (__fnmatch, fnmatch).
109476         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
109477         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
109479 2004-01-14  Karl Berry  <karl@gnu.org>
109481         * config/install-sh: update from automake.
109483 2004-01-13  Karl Berry  <karl@gnu.org>
109485         * config/install-sh: update from automake.
109487 2004-01-09  Karl Berry  <karl@gnu.org>
109489         * config/install-sh: update from automake.
109491 2004-01-05  Karl Berry  <karl@gnu.org>
109493         * config/config.{sub,guess}: update from config.
109495 2003-12-31  Karl Berry  <karl@gnu.org>
109497         * config/depcomp: update from automake.
109499 2003-12-14  Karl Berry  <karl@gnu.org>
109501         * lib/config.charset: update from gettext-runtime.
109503 2003-12-03  Paul Eggert  <eggert@twinsun.com>
109505         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
109506         Bug reported by Alfred M. Szmidt.
109508 2003-12-03  Bruno Haible  <bruno@clisp.org>
109510         * m4/gettext.m4: Upgrade from gettext-0.13.
109511         * m4/po.m4: Upgrade from gettext-0.13.
109512         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
109513         * m4/intmax.m4: New file, from gettext-0.13.
109514         * m4/printf-posix.m4: New file, from gettext-0.13.
109516 2003-11-29  Karl Berry  <karl@gnu.org>
109518         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
109520 2003-11-25  Paul Eggert  <eggert@twinsun.com>
109521             Bruno Haible  <bruno@clisp.org>
109523         * lib/printf-parse.h: Don't include sys/types.h.
109524         (ARG_NONE): New macro.
109525         (char_directive): Change type of *arg_index fields to size_t.
109526         * lib/printf-parse.c: Don't include sys/types.h.
109527         (SSIZE_MAX): Remove macro.
109528         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
109529         Remove unnecessary overflow check.
109530         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
109531         fields.
109533 2003-11-25  Bruno Haible  <bruno@clisp.org>
109535         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
109537 2003-11-25  Bruno Haible  <bruno@clisp.org>
109539         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
109540         gt_TYPE_SSIZE_T.
109542 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109544         * modules/alloca: Remove dependency on xalloc.
109546 2003-11-24  Paul Eggert  <eggert@twinsun.com>
109548         * lib/alloca.c: Remove dependency on xalloc module.
109549         (xalloc_die): Remove.
109550         (memory_full) [!defined emacs]: New macro.
109551         [!defined emacs]: Don't include xalloc.h.
109552         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
109553         address arithmetic overflows.  Change datatypes a bit to avoid
109554         unnecessary casts.
109556 2003-11-22  Jim Meyering  <jim@meyering.net>
109558         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
109559         s/size/size_t/.
109561 2003-11-21  Karl Berry  <karl@gnu.org>
109563         * config/config.{sub,guess}: update from config.
109565 2003-11-18  Karl Berry  <karl@gnu.org>
109567         * config/config.{sub,guess}: update from config.
109569         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
109571 2003-11-17  Paul Eggert  <eggert@twinsun.com>
109573         * README: Mention that S+T cannot overflow if S is the size of
109574         an existing object and T is sufficiently small.
109576 2003-11-17  Jim Meyering  <jim@meyering.net>
109578         On systems without utime and without a utimes function capable of
109579         dealing with a NULL struct utimbuf* argument, this utime replacement
109580         could -- in unusual circumstances -- leak a file descriptor.
109581         * lib/utime.c: Include <unistd.h> and <errno.h>.
109582         (utime_null): Be sure to close `fd' and to preserve errno.
109583         Reported by Geoff Collyer via Arnold Robbins.
109585 2003-11-17  Bruno Haible  <bruno@clisp.org>
109587         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
109588         (Depends-on): Add xsize.
109590 2003-11-17  Bruno Haible  <bruno@clisp.org>
109592         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
109594 2003-11-17  Bruno Haible  <bruno@clisp.org>
109596         * lib/vasnprintf.c (alloca): Remove fallback definition.
109597         (freea): Remove definition.
109598         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
109599         Reported by Paul Eggert.
109601 2003-11-16  Paul Eggert  <eggert@twinsun.com>
109602             Bruno Haible  <bruno@clisp.org>
109604         Protect against address arithmetic overflow.
109605         * lib/printf-args.h: Include stddef.h.
109606         (arguments): Change type of field 'count' to size_t.
109607         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
109608         'unsigned int' where appropriate.
109609         * lib/printf-parse.h: Include sys/types.h.
109610         (char_directive): Change type of *arg_index fields to ssize_t.
109611         (char_directives): Change type of fields 'count', max_*_length to
109612         size_t.
109613         * lib/printf-parse.c: Include sys/types.h and xsize.h.
109614         (SSIZE_MAX): Define fallback value.
109615         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
109616         instead of 'int' where appropriate. Check a_allocated, d_allocated
109617         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
109618         * lib/vasnprintf.c: Include xsize.h.
109619         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
109620         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
109621         overflow. Avoid wraparound when converting a width or precision from
109622         decimal to binary.
109624 2003-11-16  Bruno Haible  <bruno@clisp.org>
109626         Update from GNU gettext.
109627         * lib/printf-parse.c: Generalize to it can be compiled for wide
109628         strings.
109629         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
109630         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
109631         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
109632         SNPRINTF): New macros.
109633         Don't include <alloca.h> if the file is used inside libintl.
109634         (local_wcslen): New function, for Solaris 2.5.1.
109635         (VASNPRINTF): Use it instead of wcslen.
109637 2003-11-16  Bruno Haible  <bruno@clisp.org>
109639         * lib/xsize.h (xmax): New function.
109640         (xsum, xsum3, xsum4): Declare as "pure" functions.
109642 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109644         * modules/xalloc (Files): Undo latest change, since xalloc.h
109645         no longer needs SIZE_MAX or PTRDIFF_MAX.
109647 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109649         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
109650         gl_PTRDIFF_MAX.
109652 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109654         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
109655         "return", to pacify some unknown compiler.  Problem reported
109656         by Joerg Schilling.
109658 2003-11-12  Paul Eggert  <eggert@twinsun.com>
109660         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
109661         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
109662         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
109663         heuristic is just as accurate as far as we know, and it removes a
109664         dependency on size_max.m4 and ptrdiff_max.m4.
109666 2003-11-11  Bruno Haible  <bruno@clisp.org>
109668         * modules/xsize (Files): Add m4/size_max.m4.
109669         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
109671 2003-11-11  Bruno Haible  <bruno@clisp.org>
109673         * m4/size_max.m4: New file.
109674         * m4/ptrdiff_max.m4: New file.
109675         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
109676         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
109677         (gl_XALLOC): Invoke it.
109679 2003-11-11  Bruno Haible  <bruno@clisp.org>
109681         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
109682         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
109683         defined.
109685 2003-11-10  Paul Eggert  <eggert@twinsun.com>
109687         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
109688         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
109689         rejected some allocations of exactly SIZE_MAX - 2 bytes.
109690         From Bruno Haible.
109691         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
109692         not (size_t) -1, since it's defined here.
109694 2003-11-09  Karl Berry  <karl@gnu.org>
109696         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
109698 2003-11-06  Paul Eggert  <eggert@twinsun.com>
109700         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
109701         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
109702         Reject sizes of exactly SIZE_MAX bytes.
109703         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
109704         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
109706 2003-11-05  Bruno Haible  <bruno@clisp.org>
109708         * lib/xsize.h: Include limits.h, to avoid a possible collision with
109709         SIZE_MAX defined in <limits.h> on Solaris.
109711 2003-11-04  Jim Meyering  <jim@meyering.net>
109713         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
109714         variable names, rather than @VAR@.
109715         * modules/poll: Likewise.
109717 2003-11-04  Bruno Haible  <bruno@clisp.org>
109719         * modules/xsize: New file.
109720         * modules/linebreak: Depend on xsize.
109721         * MODULES.html.sh (func_all_modules): Add xsize.
109723 2003-11-04  Bruno Haible  <bruno@clisp.org>
109725         * m4/xsize.m4: New file.
109727 2003-11-04  Bruno Haible  <bruno@clisp.org>
109729         * lib/xsize.h: New file.
109730         * lib/linebreak.c: Include xsize.h.
109731         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
109732         argument for overflow.
109733         Suggested by Paul Eggert.
109735 2003-11-03  Karl Berry  <karl@gnu.org>
109737         * config/config.{guess,sub}: update from config.
109739 2003-11-03  Jim Meyering  <jim@meyering.net>
109741         * modules/userspec (lib_SOURCES): Add userspec.h.
109742         (Include): Add "userspec.h".
109743         Improve description.
109745 2003-11-03  Jim Meyering  <jim@meyering.net>
109747         * lib/userspec.c: Include "userspec.h".
109748         * lib/userspec.h: New file.
109750 2003-11-03  Bruno Haible  <bruno@clisp.org>
109752         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
109754 2003-11-03  Bruno Haible  <bruno@clisp.org>
109756         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
109757         available, to avoid (extremely rare) race condition.
109758         Suggested by Paul Eggert.
109760 2003-11-02  Karl Berry  <karl@gnu.org>
109762         * config/srclist.txt (vasprintf.c): sync broken, sigh.
109764 2003-10-31  Paul Eggert  <eggert@twinsun.com>
109766         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
109767         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
109768         (read_filesystem_list): Set and use me_type_malloced.
109769         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
109770         whatever the type happens to be), for brevity and consistency.
109771         Check for size calculation overflow on Alphas running OSF/1.
109773 2003-10-31  Jim Meyering  <jim@meyering.net>
109775         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
109777         * lib/linebuffer.c: Include <string.h> for declaration of memset.
109779 2003-10-30  Paul Eggert  <eggert@twinsun.com>
109780             Bruno Haible  <bruno@clisp.org>
109782         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
109783         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
109785 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
109787         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
109788         netbsd*-gnu*.  Suggested by Robert Millan.
109790 2003-10-29  Paul Eggert  <eggert@twinsun.com>
109792         * modules/group-member: Depend on stdbool.
109794 2003-10-29  Paul Eggert  <eggert@twinsun.com>
109796         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
109798 2003-10-29  Paul Eggert  <eggert@twinsun.com>
109800         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
109801         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
109802         after the 'gnu' in these cases.  This fixes some bugs in the
109803         previous change, and is based on suggestions by Robert Millan.
109805 2003-10-29  Paul Eggert  <eggert@twinsun.com>
109807         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
109808         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
109809         no longer needed.
109810         * lib/quotearg.c (quotearg_n_options): Use it.
109811         * lib/group-member.c: Include <stdbool.h>.
109812         (free_group_info): Arg is now const *; don't free arg.
109813         (get_group_info): Now returns bool and accepts struct group_info *,
109814         rather than returning a malloc'ed struct group_info *.
109815         All uses changed.  Check for overflow in internal size calculation.
109817         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
109818         rather than xmalloc/xrealloc.
109819         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
109820         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
109821         conformance bug: the old code used a pointer after freeing the
109822         storage that it addressed.
109823         * lib/hash.c (hash_initialize): Simplify the code by using
109824         xalloc_oversized rather than doing it by hand.
109825         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
109826         the buffer preserved.  Use free and xmalloc instead.
109827         * lib/quotearg.c (quotearg_n_options): Likewise.
109828         Use a simpler test for size overflow.  Don't use xalloc_oversized
109829         because unsigned int might be wider than size_t (!); this suggests
109830         that we should switch from unsigned int to size_t for slot numbers.
109832 2003-10-28  Paul Eggert  <eggert@twinsun.com>
109834         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
109835         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
109836         NetBSD kernels.  Requested by Richard Stallman.
109838 2003-10-27  Paul Eggert  <eggert@twinsun.com>
109840         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
109841         to allocate the returned structure.  Do not allocate a subarray,
109842         as x2nrealloc will do that.
109843         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
109844         instead of xnrealloc.
109845         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
109847 2003-10-27  Bruno Haible  <bruno@clisp.org>
109849         * lib/stdbool_.h: Better support for BeOS.
109851 2003-10-26  Paul Eggert  <eggert@twinsun.com>
109853         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
109854         now uses inline.
109856 2003-10-26  Paul Eggert  <eggert@twinsun.com>
109858         * lib/xalloc.h (xalloc_oversized): New static inline function, for
109859         callers that want to do their own size-overflow checking.  Include
109860         <stdbool.h>, since xalloc_oversized returns bool.
109861         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
109862         to use xalloc_oversized.
109864         Add two functions x2realloc, x2nrealloc, for programs that grow
109865         arrays dynamically by doubling their sizes.
109866         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
109867         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
109868         New functions.
109870         Port to C99 semantics for 'inline' of external functions.
109871         Bug reported by Bruno Haible.
109872         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
109873         with the old contents of xnmalloc.
109874         (xnmalloc, xmalloc): Use it.
109875         (xnrealloc_inline): New static inline function,
109876         with the old contents of xnrealloc.
109877         (xnrealloc, xrealloc): Use it.
109879         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
109880         that.
109882 2003-10-26  Karl Berry  <karl@gnu.org>
109884         * config/srclist.txt (COPYING.DOC): no longer available from
109885         /gd/gnuorg; don't know where the ultimate source is.
109887 2003-10-25  Paul Eggert  <eggert@twinsun.com>
109889         Fix several address-calculation bugs in the hash modules,
109890         plus some minor code cleanup.
109892         * lib/hash.h: Include <stdbool.h>, for bool.
109893         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
109894         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
109895         hash_get_n_entries, hash_get_max_bucket_length,
109896         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
109897         hash_rehash): Use size_t rather than unsigned.
109898         * lib/hash.c (struct hash_table, hash_get_n_buckets,
109899         hash_get_n_buckets_used, hash_get_n_entries,
109900         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
109901         hash_get_entries, hash_do_for_each, hash_string, is_prime,
109902         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
109903         Likewise.
109904         (SIZE_MAX): Define if not defined.
109905         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
109906         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
109907         hash_print):
109908         Use const * when possible.
109909         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
109910         (check_tuning): Fix bug: if tuning parameters were very close to
109911         0 or 1, rounding errors could have caused subscript violations.
109912         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
109913         (hash_initialize): Add 'fail:' label
109914         to free table and return NULL, and use it to simplify code.
109915         Use calloc rather than clearing the storage ourself.
109916         (hash_initialize, hash_rehash): Check for arithmetic overflow in
109917         buffer size calculations.
109918         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
109919         Include <stddef.h>, for size_t.
109920         * lib/hash-pjw.c (hash_pjw): Likewise.
109921         Switch to method described by Bruno Haible.
109922         Include <limits.h>, for CHAR_BIT.
109923         (SIZE_BITS): New macro.
109925 2003-10-23  Paul Eggert  <eggert@twinsun.com>
109927         * m4/getline.m4 (AM_FUNC_GETLINE):
109928         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
109929         hosts.  Problem reported by Derek Robert Price in
109930         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
109931         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
109932         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
109934 2003-10-21  Paul Eggert  <eggert@twinsun.com>
109936         * lib/getndelim2.c (getndelim2): When size calculation overflows,
109937         ceiling the allocation at NMAX bytes rather than silently
109938         discarding input bytes before NMAX is reached.  This makes
109939         a difference only if NMAX exceeds SIZE_MAX / 2.
109941         * lib/obstack.c: Merge from glibc.
109942         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
109943         Add libc_hidden_def (_obstack_newchunk).
109944         (_obstack_free) [! defined _LIBC]: Remove.
109945         [defined _LIBC]: Make a strong alias from obstack_free, rather than
109946         a clone of the function body.
109947         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
109948         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
109950         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
109951         glibc.
109952         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
109953         arg to memcpy.
109955         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
109956         (obstack_ptr_grow_fast, obstack_int_grow_fast):
109957         Don't use lvalue casts, as GCC plans to remove support for them
109958         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
109959         was also present in the non-GCC version, indicating that this
109960         code had always been buggy and had never been widely used.
109961         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
109962         Use the fast variant of each macro, rather than copying the
109963         definiens of the fast variant; that way, we'll be more likely to
109964         catch future bugs in the fast variants.
109966 2003-10-20  Bruno Haible  <bruno@clisp.org>
109968         * modules/wait-process: New file.
109969         * MODULES.html.sh (func_all_modules): Add wait-process.
109971 2003-10-20  Bruno Haible  <bruno@clisp.org>
109973         * m4/wait-process.m4: New file.
109975 2003-10-20  Bruno Haible  <bruno@clisp.org>
109977         * lib/wait-process.h: New file, from GNU gettext.
109978         * lib/wait-process.c: New file, from GNU gettext.
109980 2003-10-19  Jim Meyering  <jim@meyering.net>
109982         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
109983         HPUX 10.20.
109985 2003-10-18  Karl Berry  <karl@gnu.org>
109987         * config/config.guess: update from config.
109989 2003-10-16  Paul Eggert  <eggert@twinsun.com>
109991         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
109992         (getgroups): First arg is int, not size_t.
109993         Don't let 'free' mangle errno.
109995 2003-10-16  Paul Eggert  <eggert@twinsun.com>
109997         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
109999 2003-10-16  Karl Berry  <karl@gnu.org>
110001         * config/config.{guess,sub}: update from config.
110003 2003-10-16  Jim Meyering  <jim@meyering.net>
110005         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
110006         memcpy.
110008 2003-10-15  Paul Eggert  <eggert@twinsun.com>
110010         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
110011         (SIZE_MAX): Remove.
110012         (new_exclude, add_exclude_file): Initial size no longer needs to
110013         be a power of 2.
110014         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
110015         our own address arithmetic overflow checking.
110017         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
110018         (fnmatch): Do not alloca more than 2000 wide characters;
110019         instead, use malloc for large buffers.
110020         Check for address arithmetic overflow, and return -1
110021         with errno set to ENOMEM in that case.
110022         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
110023         (NEW_PATTERN): Do not alloca more than 8000 bytes;
110024         instead, return -1.  Check for address arithmetic overflow.
110026 2003-10-14  Paul Eggert  <eggert@twinsun.com>
110028         Handle invalid suffixes and overflow independently, so that
110029         callers can treat them independently as needed.  Fix some bugs in
110030         suffix handling, e.g., "100k@" was not diagnosed as an invalid
110031         suffix for a human-readable blocksize.  The major caller-visible
110032         change is the addition of a new
110033         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
110034         that both overflow and suffix chars were found.
110036         * lib/human.c (humblock): Don't check separately for invalid suffix
110037         char; that is xstrtoumax's job (now that its bug is fixed).
110038         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
110039         INTMAX_MAX]: New macros.
110040         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
110041         TYPE_MAXIMUM): New macros.
110042         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
110043         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
110044         if overflow occurs, as it's what __strtol does and it's more useful
110045         in practice.
110046         (__xstrtol): If __strtol reports some error other than ERANGE,
110047         reflect it to the caller as LONGINT_INVALID.  If it reports
110048         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
110049         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
110050         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
110051         value.
110052         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
110053         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
110054         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
110055         [defined UINTMAX_MAX]: New macros.
110057 2003-10-14  Bruno Haible  <bruno@clisp.org>
110059         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
110061 2003-10-14  Bruno Haible  <bruno@clisp.org>
110063         * m4/sig_atomic_t: New file, from GNU gettext.
110064         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
110066 2003-10-14  Bruno Haible  <bruno@clisp.org>
110068         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
110069         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
110070         Also use volatile where needed.
110072 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110074         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
110075         Change maintainer from Bruno Haible to 'all'.
110077 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110079         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
110081 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110083         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
110084         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
110085         and define in terms of the other primitives.
110086         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
110087         (SIZE_MAX): Define if not already defined.
110088         (array_size_overflow): New function.
110089         (xalloc_die): Abort instead of exiting if 'error' returns.
110090         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
110091         (xmalloc, xrealloc): Use them.
110092         (xcalloc): Check for address arithmetic overflow.
110093         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
110094         a bit faster than strcpy.
110096 2003-10-10  Simon Josefsson  <jas@extundo.com>
110098         * modules/argp (Depends-on): Add restrict and strcase.
110100 2003-10-10  Simon Josefsson  <jas@extundo.com>
110102         * m4/argp.m4: Add AC_C_INLINE.
110104 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110106         Merge getpass from libc, plus a few fixes.
110108         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
110109         Include <stdbool.h>.
110110         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
110111         __fsetlocking to empty.
110112         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
110113         do include <bits/libc-lock.h>.
110114         Do not include <fcntl.h>; not needed.
110115         [_LIBC]: Include <wchar.h>.
110116         (NOTCANCEL_MODE): New macro.
110117         (flockfile, funlockfile) [_LIBC]: New macros.
110118         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
110119         [!_LIBC]: New macros.
110120         (call_fclose): New function.
110121         (getpass): Use it.  Save tty stream separately; this simplifies the
110122         code and makes it more reliable if stdin happens to equal stdout.
110123         Invoke __fsetlocking on tty.
110124         Handle thread cancellation if needed.
110125         Namespace cleanup (use __tcgetattr, __getline).
110126         Use bool for Booleans.
110127         [USE_IN_LIBIO]: Handle wide streams.
110128         [!_LIBC]: Unconditionally do the fseek, since we don't know what
110129         stream might go where.
110131         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
110132         doesn't have to include <stdio.h> before us.
110133         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
110134         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
110135         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
110136         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
110137         if not declared, so that we can use getpass.c code from libc without
110138         rewriting it.
110139         (flockfile, ftrylockfile, funlockfile): New macros.
110141 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110143         * modules/getpass: Depend on stdbool.
110145 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110147         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
110149 2003-10-07  Karl Berry  <karl@gnu.org>
110151         * config/config.{guess,sub}: update from config.
110153 2003-10-06  Jim Meyering  <jim@meyering.net>
110154             Bruno Haible  <bruno@clisp.org>
110156         This lets translators provide better translations for the
110157         "Written by ..." part of --version output.
110158         * lib/version-etc.h: Include stdarg.h.
110159         (version_etc_copyright): Declare as readonly.
110160         (version_etc): Make this function variadic with a NULL-terminated list
110161         of author name strings.
110162         (version_etc_va): New declaration.
110163         * lib/version-etc.c: Include stdarg.h, stdlib.h.
110164         (version_etc_copyright): Declare as readonly.
110165         (version_etc_va): New function. Provide a different translatable string
110166         for each possible number of authors < 10. Abbreviate when there are 10
110167         authors or more.
110168         (version_etc): Make this function variadic. Call version_etc_va.
110169         Suggestion from Gary V. Vaughan.
110171         * lib/long-options.h (parse_long_options): Change prototype: the
110172         authors string is moved to the end and becomes variadic.
110173         * lib/long-options.c: Include stdarg.h.
110174         (parse_long_options): Make this function variadic, too.
110175         Call version_etc_va, not version_etc.
110177 2003-10-06  Bruno Haible  <bruno@clisp.org>
110179         * modules/version-etc-2: Remove file.
110180         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
110182 2003-10-06  Bruno Haible  <bruno@clisp.org>
110184         * modules/fatal-signal: New file.
110185         * MODULES.html.sh (func_all_modules): Add fatal-signal.
110187 2003-10-06  Bruno Haible  <bruno@clisp.org>
110189         * m4/fatal-signal.m4: New file.
110190         * m4/signalblocking.m4: New file, from GNU gettext.
110192 2003-10-06  Bruno Haible  <bruno@clisp.org>
110194         * lib/version-etc-2.h: Remove file.
110195         * lib/version-etc-2.c: Remove file.
110197 2003-10-06  Bruno Haible  <bruno@clisp.org>
110199         * lib/fatal-signal.h: New file, from GNU gettext.
110200         * lib/fatal-signal.c: New file, from GNU gettext.
110202 2003-10-05  Paul Eggert  <eggert@twinsun.com>
110204         * README: Rework advice for preventing empty .o files.
110205         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
110206         not <sys/types.h>.
110208 2003-10-04  Karl Berry  <karl@gnu.org>
110210         * lib/argp*: update from libc.
110212 2003-10-04  Karl Berry  <karl@gnu.org>
110214         * config/config.{guess,sub}: update from config.
110216 2003-10-02  Bruno Haible  <bruno@clisp.org>
110218         * modules/lchown (Include): Add lchown.h.
110219         * modules/time_r (Include): Use "..." syntax.
110220         * modules/xgetdomainname (Include): Add xgetdomainname.h.
110222 2003-10-01  Simon Josefsson  <jas@extundo.com>
110224         * MODULES.html.sh (func_all_modules): Move gethostname from section
110225         'based on' to section 'lacking' POSIX:2001.
110227 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
110229         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
110230         to output mode on the same stream.
110232 2003-09-29  Paul Eggert  <eggert@twinsun.com>
110234         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
110235         Fix arg typo in previous patch.
110237 2003-09-28  Jim Meyering  <jim@meyering.net>
110239         * lib/error.c: Correct cpp indentation.
110241 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110243         * modules/free: New file.
110245 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110247         * m4/free.m4: New file.
110249 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110251         * lib/minmax.h (MIN, MAX)
110252         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
110253         Omit the special code that used __typeof__, since we worry that
110254         it could be more trouble than it's worth.  See:
110255         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
110256         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
110258         * lib/free.c: New file.
110260 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
110262         Trivial fixes to Makefile.am parts of module listings.
110263         * modules/strstr: Append strstr.h to lib_SOURCES.
110264         * modules/strcase: Likewise, for strcase.h.
110266 2003-09-27  Karl Berry  <karl@gnu.org>
110268         * config/mkinstalldirs: update from automake.
110270 2003-09-26  Paul Eggert  <eggert@twinsun.com>
110272         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
110273         (error_tail): Do not loop, reallocating temporary buffer, since
110274         the output cannot contain more wide characters than the input
110275         contains bytes, the size must be big enough already.  This avoids
110276         one potential size overflow calculation.  Check for size overflow
110277         when calculating temporary buffer size.  Free temporary buffer
110278         when done, if it was allocated with malloc; this plugs a memory
110279         leak.  Remove casts from void * to pointers, that are no longer
110280         needed now that we're assuming C89 or better.
110282         Merge error changes from glibc.
110284         * lib/error.c, error.h: Update copyright notice header to match glibc.
110285         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
110286         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
110287         Disable cancellation while printing error.
110288         * lib/error.h: Prepend __ to parameter names.
110290 2003-09-26  Jim Meyering  <jim@meyering.net>
110292         * lib/error.c (error_tail): Move some declarations
110293         into inner scope where the local variables are used.
110295 2003-09-26  Bruno Haible  <bruno@clisp.org>
110297         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
110298         stpncpy().
110299         Don't define stpncpy through config.h; it's now done through stpncpy.h.
110301 2003-09-26  Bruno Haible  <bruno@clisp.org>
110303         * lib/stpncpy.h (gnu_stpncpy): New declaration.
110304         (stpncpy): Define as alias for gnu_stpncpy.
110305         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
110307 2003-09-25  Simon Josefsson  <jas@extundo.com>
110309         * lib/xgetdomainname.h: New file.
110310         * lib/xgetdomainname.c: New file.
110312 2003-09-25  Simon Josefsson  <jas@extundo.com>
110313             Bruno Haible  <bruno@clisp.org>
110315         * modules/getdomainname: New file.
110316         * modules/xgetdomainname: New file.
110317         * MODULES.html.sh (func_all_modules): Add getdomainname,
110318         xgetdomainname.
110320 2003-09-25  Simon Josefsson  <jas@extundo.com>
110321             Bruno Haible  <bruno@clisp.org>
110323         * m4/getdomainname.m4: New file.
110325 2003-09-25  Simon Josefsson  <jas@extundo.com>
110326             Bruno Haible  <bruno@clisp.org>
110328         * lib/getdomainname.h: New file.
110329         * lib/getdomainname.c: New file.
110331 2003-09-25  Karl Berry  <karl@gnu.org>
110333         * lib/argp-fmtstream.c, argp-help.c: update from libc.
110335 2003-09-25  Karl Berry  <karl@gnu.org>
110337         * config/install-sh: update from automake.
110339 2003-09-25  Bruno Haible  <bruno@clisp.org>
110341         * modules/version-etc-2: New file, from modules/version-etc with
110342         modifications.
110343         * MODULES.html.sh (func_all_modules): Add version-etc-2.
110345 2003-09-25  Bruno Haible  <bruno@clisp.org>
110347         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
110348         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
110350 2003-09-24  Simon Josefsson  <jas@extundo.com>
110352         * modules/xgethostname: Add xgethostname.h.
110354 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110356         * lib/linebuffer.c (freebuffer): Don't free the argument, just
110357         the buffer associated with the argument.  Bug reported by
110358         Simon Josefsson.
110360 2003-09-24  Paul Eggert  <eggert@twinsun.com>
110362         * README: Document assumptions that 'int' is at least 32 bits
110363         wide, that integer arithmetic is 2's complement without overflow,
110364         that there are no holes in integer values, that adding sizes of
110365         two nonoverlapping objects can't overflow, and that all-bits-zero
110366         yields scalar zero.  Fix spelling and capitalization typos.
110368 2003-09-19  Karl Berry  <karl@gnu.org>
110370         * lib/argp.h: update from libc.
110372 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110374         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
110375         to avoid spurious warnings like "AC_RUN_IFELSE was called before
110376         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
110378 2003-09-17  Paul Eggert  <eggert@twinsun.com>
110380         * gnulib-tool: Use "test -h", not "test -L", for portability
110381         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
110382         (tags_regexp): Remove, since \| doesn't conform to POSIX.
110383         (sed_extract_prog): Issue s commands one-by-one, rather than
110384         using \| in one s command.
110386 2003-09-16  Paul Eggert  <eggert@twinsun.com>
110388         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
110389         input error, instead of returning NULL the next time we are called
110390         (and therefore losing track of errno).
110392 2003-09-16  Bruno Haible  <bruno@clisp.org>
110394         * gnulib-tool (func_create_testdir): Warn about duplicated
110395         dependencies.
110397 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110399         * modules/argmatch, modules/fatal, modules/obstack,
110400         modules/xalloc, modules/xgethostname: Sort dependencies by
110401         importance, not alphabetically.
110403 2003-09-15  Paul Eggert  <eggert@twinsun.com>
110405         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
110406         fails, so that the caller gets the proper errno.
110408         * lib/readutmp.c (read_utmp): Likewise.
110409         Check for fstat error.  Close stream and free storage
110410         when failing.
110412 2003-09-14  Karl Berry  <karl@gnu.org>
110414         * config/srclist.txt (strdup.c): disable for c89 changes.
110416 2003-09-14  Jim Meyering  <jim@meyering.net>
110418         * lib/getloadavg.c: Correct cpp indentation.
110419         * lib/strdup.c: Likewise.
110420         * lib/vasnprintf.c: Likewise.
110422 2003-09-14  Bruno Haible  <bruno@clisp.org>
110424         * modules/fwriteerror: New file.
110425         * MODULES.html.sh (func_all_modules): Add fwriteerror.
110427 2003-09-14  Bruno Haible  <bruno@clisp.org>
110429         * lib/fwriteerror.h: New file.
110430         * lib/fwriteerror.c: New file.
110432 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110434         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
110435         modules/xgethostname, modules/xalloc: Depend on exit.
110437 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110439         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
110441         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
110442         and AC_MINIX, too, so that their extensions are available.
110444         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
110445         This macro has been superseded by gl_BACKUPFILE.
110447         More patches to assume C89 or better.
110449         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
110451         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
110452         unconditionally.
110453         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
110454         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
110455         Include <string.h>, <stdlib.h> unconditionally.
110456         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
110457         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
110458         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
110459         headers or for string.h.
110460         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
110461         or strtoul.
110463         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
110464         headers.
110465         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
110466         * m4/userspec.m4 (gl_USERSPEC): Likewise.
110467         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
110468         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
110469         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110470         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
110471         memcpy, memset.
110472         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
110473         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
110474         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
110475         strtol.
110476         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
110477         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
110478         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
110479         strtoul.
110481 2003-09-12  Paul Eggert  <eggert@twinsun.com>
110483         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
110484         * lib/obstack.c [!defined _LIBC]: Likewise.
110485         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
110486         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
110487         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
110489         More changes to assume C89 or better.
110491         * lib/error.c (error_tail): Assume vprintf.
110493         * lib/argmatch.c (getenv): Remove decl.
110494         * lib/progreloc.c (get_full_program_name): Define via prototype.
110495         * lib/setenv.c (clearenv): Likewise.
110496         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
110497         needed.
110498         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
110499         (malloc, memcpy): Remove decls.
110500         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
110501         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
110502         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110503         (memcpy): Remove macro.
110504         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
110505         (__P): Remove.  All uses removed.
110506         (PTR): Remove.  All uses changed to void *.
110507         (CHAR_BIT, NULL): Remove.
110508         (spaces, zeros, memset_space, memset_zero)
110509         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
110510         Remove.
110511         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
110512         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
110513         Define with prototype.
110514         Remove now-unnecessary prototype decl.
110515         (extra_args_spec): Assume ANSI C.  All uses changed.
110516         (extra_args_spec_iso): Remove.
110517         (my_strftime, emacs_strftimeu): Define via prototype.
110518         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
110519         unconditionally.
110520         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
110521         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
110522         (strtoul, strtol): Remove decls.
110523         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
110524         LONG_MAX): Remove.
110525         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
110526         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
110527         (LOCALE_PARAM_PROTO): New macro.
110528         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
110529         (INTERNAL (strtol), strtol): Define with a prototype.
110530         (PARAMS): Remove.  All uses removed.
110531         * lib/tempname.c: Include <string.h> unconditionally.
110532         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
110533         * lib/xgethostname.c (main): Define with a prototype.
110534         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
110535         Include <stdlib.h> unconditionally.
110536         (calloc, malloc, realloc, free): Remove decls.
110537         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
110538         Include <stdlib.h> unconditionally.  Sort include file names.
110539         (strtod): Remove.
110540         (xstrtod): Define with a prototype.
110541         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
110542         (strtol, strtoul): Remove decls.
110544 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110546         More patches to assume C89 or better.
110547         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
110548         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
110549         string.h, memchr, STDC_HEADERS.
110551 2003-09-11  Paul Eggert  <eggert@twinsun.com>
110553         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
110554         Include <stdlib.h>, <string.h> unconditionally.
110555         Remove now-unnecessary cast to char *.
110556         * lib/strnlen.c: Include <string.h> unconditionally.
110557         * lib/yesno.c (yesno): Define with a prototype.
110559 2003-09-11  Bruno Haible  <bruno@clisp.org>
110561         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
110563 2003-09-10  Jim Meyering  <jim@meyering.net>
110565         * lib/error.c: Correct indentation of cpp directives.
110567 2003-09-10  Bruno Haible  <bruno@clisp.org>
110569         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
110570         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
110571         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
110572         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
110573         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
110574         <stdlib.h> and <string.h> checks.
110575         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
110576         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
110578 2003-09-10  Bruno Haible  <bruno@clisp.org>
110580         * lib/strcspn.c: Include <string.h> unconditionally.
110581         * lib/strpbrk.c: Include <string.h> unconditionally.
110582         * lib/strstr.c: Include <string.h> unconditionally.
110583         * lib/unicodeio.c: Include <string.h> unconditionally.
110584         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
110585         * lib/unsetenv.c: Likewise.
110586         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
110587         * lib/yesno.c: Include <stdlib.h> unconditionally.
110588         (rpmatch): Add prototype.
110590 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110592         More patches to assume C89 or better.
110593         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
110594         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
110595         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
110596         or for string.h.
110597         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
110598         stdlib.h.
110599         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
110600         C headers.
110601         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
110602         string.h.
110603         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
110604         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
110605         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
110606         or for string.h.
110607         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
110608         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
110609         C headers.
110610         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
110611         memcpy.
110612         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
110613         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
110614         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
110615         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
110616         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
110617         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
110618         string.h, free.
110619         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
110620         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
110621         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
110622         C headers, or for string.h.
110623         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
110624         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
110625         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
110626         headers, memory.h, stdlib.h, string.h, strings.h.
110627         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
110628         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
110629         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
110630         strchr.
110631         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
110632         headers, memory.h, string.h.
110633         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
110634         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
110635         free.
110636         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
110637         headers.
110638         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
110639         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
110640         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
110641         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
110642         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
110644 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110646         More K&R removal.
110648         * lib/acosl.c (main): Use a prototype.
110649         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
110650         tanl.c: Likewise.
110652         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
110654         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
110655         (getopt, etopt_long, getopt_long_only, _getopt_internal)
110656         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
110657         with a prototype.
110658         * lib/getopt.c (const): Remove macro.
110659         Include <string.h> unconditionally.
110660         (my_index): Remove; all uses changed to strchr.
110661         (strlen): Remove decl.
110662         (exchange): Remove forward decl; no longer needed.
110663         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
110664         Define with prototype.
110665         * lib/getopt1.c (const): Remove macro.
110666         (getopt_long, getopt_long_only, main): Define with prototype.
110668         * lib/getugroups.c: Include <string.h> unconditionally.
110670         * lib/getusershell.c: Include <stdlib.h> unconditionally.
110671         (getusershell, setusershell, endusershell, readname, main):
110672         Define with prototypes.
110674         * lib/group-member.c: Include group-member.h first.
110675         Include <stdlib.h> unconditionally.
110677         * lib/hard-locale.c: Include hard-locale.h first.
110678         Include <stdlib.h>, <string.h> unconditionally.
110680         * lib/hash.c (free, malloc): Remove decls.
110681         Include <stdlib.h> unconditionally.
110683         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
110684         (getenv): Do not declare.
110686         * lib/idcache.c: Include <string.h> unconditionally.
110688         * lib/long-options.c: Include long-options.h first, to test interface.
110689         Include <stdlib.h> unconditionally.
110691         * lib/makepath.c: Include makepath.h first, to test interface.
110692         Include <stdlib.h> and <string.h> unconditionally.
110694         * lib/linebuffer.c: Include <stdlib.h>.
110695         (free): Remove decl.
110697         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
110698         stddef.h. rpl_malloc returns void *, not char *.
110699         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
110700         prototype.
110702         * lib/md5.h: Include <limits.h> unconditionally.
110703         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
110704         (__P): Remove; all uses removed.
110705         * lib/md5.c: Include "md5.h" first.
110706         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
110707         md5_buffer, md5_process_bytes, md5_process_block):
110708         Define with prototypes.
110709         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
110710         * lib/sha.c: Include "sha.h" first.
110711         Include <stdlib.h>, <string.h> unconditionally.
110713         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
110714         * lib/memcmp.c (__ptr_t): Likewise.
110715         * lib/memrchr.c (__ptr_t): Likewise.
110716         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
110717         Include <string.h> unconditionally.
110718         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
110719         * lib/memchr.c: Include <stdlib.h> unconditionally.
110720         * lib/memchr.c (LONG_MAX): Remove.
110721         * lib/memrchr.c (LONG_MAX): Likewise.
110722         * lib/memchr.c (__memchr): Define via a prototype.
110723         * lib/memrchr.c (__memrchr): Likewise.
110724         * lib/memcmp.c (__P): Remove, and remove all uses.
110725         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
110726         Remove forward decls; no longer needed.
110727         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
110728         Use types required by C89 in prototype.
110730         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
110731         * lib/savedir.c: Likewise.
110732         * lib/mkdir.c (free): Remove decl.
110733         * lib/rmdir.c (rmdir): Define with a prototype.
110734         * lib/savedir.c: Include savedir.h first, to test interface.
110736         * lib/mktime.c (STDC_HEADERS): Remove.
110737         Include <stdlib.h>, <string.h> unconditionally.
110739         * lib/modechange.c: Include <stdlib.h> unconditionally.
110740         (malloc): Remove decl.
110742         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
110743         (free): Remove decl.
110745         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
110746         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
110747         (This type really should be intptr_t, but that's a C99ism.)
110748         (_obstack_memcpy): Remove: all uses changed to memcpy.
110749         Include <string.h> unconditionally.
110750         (struct obstack): Assume __STDC__ for types of members
110751         chunkfun, freefun, extra_arg.
110752         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
110753         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
110754         obstack_begin, obstack_specify_allocation,
110755         obstack_specify_allocation_with_arg, obstack_chunkfun,
110756         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
110757         Remove unprototyped decls and the macros that use them.
110758         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
110759         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
110760         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
110761         (defined __STDC__ && __STDC__)]:
110762         Remove nonprototyped code.
110763         Include <stdlib.h> unconditionally.
110764         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
110765         _obstack_allocated_p, _obstack_free, obstack_free,
110766         _obstack_memory_used, print_and_abort):
110767         Define using prototypes.
110768         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
110769         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
110770         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
110771         obstack_next_free, obstack_object_size, obstack_room) [0]:
110772         Remove unused, unprototyped code.
110774         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
110776         * lib/physmem.c (physmem_total, physmem_available, main): Define
110777         with prototypes.
110779         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
110780         (main): Define with a prototype.
110782         * lib/posixver.c (getenv): Remove decl.
110784         * lib/putenv.c (malloc): Returns void *, not char *.
110785         Include <string.h> unconditionally.
110786         (strchr, memcpy, NULL): Do not define.
110788         * lib/readtokens.c: Include readtokens.h first, to test interface.
110789         Include <stdlib.h>, <string.h> unconditionally.
110790         (init_tokenbuffer): Define with a prototype.
110792         * lib/regex.c (PARAMS): Remove.  All uses removed.
110793         All uses of _RE_ARGS removed, too.
110794         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
110795         unconditionally.
110796         (bzero): Assume memset exists.
110797         (memcmp, memcpy, NULL): Remove.
110798         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
110799         char, or assignments to local vars of type signed char.
110800         (init_syntax_once, PREFIX(extract_number_and_incr),
110801         PREFIX(print_partial_compiled_pattern),
110802         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
110803         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
110804         PREFIX(regex_grow_registers), PREFIX(regex_compile),
110805         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
110806         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
110807         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
110808         wcs_compile_range, byte_compile_range, truncate_wchar,
110809         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
110810         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
110811         count_mbs_length, wcs_re_match_2_internal,
110812         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
110813         PREFIX(alt_match_null_string_p),
110814         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
110815         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
110816         regfree, PREFIX(extract_number)): Define with prototype.  Remove
110817         now-unnecessary declaration, if any.
110818         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
110819         regcomp, regexec):
110820         Remove now-unnecessary casts among pointer types.
110821         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
110823         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
110824         (free): Remove decl.
110826         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
110828         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
110829         (free): Remove decl.
110831         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
110832         * lib/xgetcwd.c: Likewise.
110834         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
110835         (free): Remove decl.
110837         * lib/strchrnul.c (strchrnul): Define with a prototype.
110838         Fix bug: c_in was not converted to char before searching.
110840         The following changes are not K&R related:
110842         * lib/group-member.h: Include <sys/types.h>, so that this file is
110843         self-contained.
110844         * lib/makepath.h: Likewise.
110846         * lib/getusershell.c (readname, default_index, line_size, readname):
110847         Use size_t, not int, for sizes.
110848         (readname): If the size overflows, report an error instead of
110849         looping forever.
110851 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110853         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
110854         libc.
110856 2003-09-09  Paul Eggert  <eggert@twinsun.com>
110858         * README: New section: portability guidelines.
110860 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
110862         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
110863         C89 spec.
110865 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
110867         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
110869 2003-09-08  Paul Eggert  <eggert@twinsun.com>
110871         Assume C89 or better; remove K&R cruft.
110872         A few of these changes were first proposed by Derek Robert Price
110873         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
110875         * lib/addext.c: Include <string.h> unconditionally.
110876         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
110877         Don't declare getenv or malloc.
110879         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
110880         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
110881         (NULL): Remove.
110882         (find_stack_direction, alloca): Use prototypes.
110884         * lib/atexit.c (atexit): Define using a prototype.
110886         * lib/basename.c, dirname.c, stripslash.c:
110887         Include <string.h> unconditionally.
110889         * lib/bcopy.c: Include <stddef.h>.
110890         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
110892         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
110894         * lib/error.h (error, error_at_line, error_print_progname)
110895         [! (defined (__STDC__) && __STDC__)]: Remove decls.
110896         * lib/error.c: Include error.h first, to check interface.
110897         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
110898         (VA_START): Remove; all uses changeed to va_start.
110899         (exit, strerror): Remove decls.
110900         (error_print_progname): Prototype uncondionally.
110901         Don't include <errno.h>; no longer needed.
110902         (private_strerror): Remove.
110903         (error_tail): Always define.
110904         (error, error_at_line): Assume C89 or better; always use prototypes.
110905         * lib/fatal.c: Include "fatal.h" first, to test interface.
110906         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
110907         (VA_START): Remove; all uses changed to va_start.
110908         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
110909         this case.
110910         (exit): Remove decl.
110911         (fatal): Prototype unconditionally.  Assume va_start works.
110912         Abort at end, to pacify gcc.
110914         * lib/euidaccess.c (main): Define with a prototype.
110916         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
110918         * lib/exitfail.c: Include <stdlib.h> unconditionally.
110920         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
110921         prototypes.
110922         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
110923         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
110924         (getenv): Remove decl.
110925         (fnmatch): Define using a prototype.
110926         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
110927         (FCT): Define using a prototype.
110929         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
110931         * lib/gethostname.c: Include <stddef.h>.
110932         (gethostname): Define with prototype.  Length is size_t, not int.
110934 2003-09-08  Paul Eggert  <eggert@twinsun.com>
110936         Assume C89 or better; remove K&R cruft.
110937         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
110938         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
110939         string.h, getenv, malloc.
110940         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
110941         headers.
110942         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
110943         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
110944         do not check for strerror.
110945         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
110946         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
110947         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
110948         do not check for doprnt or vprintf.
110949         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
110950         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
110952 2003-09-08  Paul Eggert  <eggert@twinsun.com>
110954         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
110955         getversion.c should have been removed then, but was accidentally
110956         preserved.
110958         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
110959         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
110961 2003-09-08  Karl Berry  <karl@gnu.org>
110963         * config/config.sub, config.guess, srclistvars.sh: update from savannah
110964                 config, forget about prep.
110966         * config/depcomp, missing: update from automake.
110968 2003-09-07  Paul Eggert  <eggert@twinsun.com>
110970         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
110971         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
110973 2003-09-07  Paul Eggert  <eggert@twinsun.com>
110975         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
110976         copy_tm_result.  Bug reported by Simon Josefsson in
110977         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
110979 2003-09-06  Paul Eggert  <eggert@twinsun.com>
110981         * m4/time_r.m4: New file.
110982         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
110983         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
110984         is. Check for timegm declaration.
110985         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
110986         Do not check for gmtime_r.
110987         Replace mktime if __mktime_internal does not exist and if mktime
110988         hasn't been replaced already.
110990 2003-09-06  Paul Eggert  <eggert@twinsun.com>
110992         * lib/time_r.c, lib/time_r.h: New files.
110994         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
110995         __localtime_r.
110996         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
110997         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
110999         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
111000         __gmtime_r.
111001         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
111002         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
111003         Include <time_r.h>.
111005         * lib/timegm.c: Switch to glibc implementation, with the following
111006         changes:
111007         [defined HAVE_CONFIG_H]: Include <config.h>.
111008         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
111009         (__mktime_internal) [!defined _LIBC]: New decl.
111010         (__gmtime_r) [!defined _LIBC]: New macro and function.
111011         (timegm): Use a prototype, since gnulib assumes C89.
111012         Do not bother declaring tmp to be const, as it's not really usefu.
111013         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
111014         (timegm): Declare only if HAVE_DECL_TIMEGM.
111016 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111018         * MODULES.html.sh (func_all_modules): Add time_r.
111019         * modules/time_r: New file.
111020         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
111021         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
111023 2003-09-03  Paul Eggert  <eggert@twinsun.com>
111025         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
111026         Bug reported by Lute Kamstra in
111027         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
111029         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
111030         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
111031         course with correspondingly smaller numbers for tomorrow and
111032         yesterday.  From Tadayoshi Funaba.  Originally installed into
111033         sh-utils on 1999-08-07, but the patch got lost (I guess during the
111034         coreutils merge?).
111036 2003-08-31  Simon Josefsson  <jas@extundo.com>
111038         * modules/timegm: New file.
111039         * MODULES.html.sh (func_all_modules): Add timegm.
111041 2003-08-31  Simon Josefsson  <jas@extundo.com>
111043         * m4/timegm.m4: New file.
111045 2003-08-31  Simon Josefsson  <jas@extundo.com>
111047         * lib/timegm.h: New file.
111048         * lib/timegm.c: New file.  Based on
111049         wget-1.8.2/src/http.c:mktime_from_utc.
111051 2003-08-31  Karl Berry  <karl@gnu.org>
111053         * lib/argp.h: update from libc.
111055 2003-08-28  Bruno Haible  <bruno@clisp.org>
111057         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
111058         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
111059         followed by '#define fnmatch fnmatch_posix' gives an error.
111061 2003-08-28  Bruno Haible  <bruno@clisp.org>
111063         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
111064         warning on QNX, which defines O_BINARY to 000000.
111066 2003-08-27  Jim Meyering  <jim@meyering.net>
111068         * m4/mkstemp.m4: Require that the system mkstemp be able to create
111069         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
111070         would fail after 32.  Reported by Danny Levinson.  Details here:
111071         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
111073 2003-08-24  Bruno Haible  <bruno@clisp.org>
111075         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
111076         MSVC7 <stdio.h> is included later.
111078 2003-08-22  Simon Josefsson  <jas@extundo.com>
111080         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
111082 2003-08-20  Karl Berry  <karl@gnu.org>
111084         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
111086 2003-08-20  Bruno Haible  <bruno@clisp.org>
111088         * modules/progname: New file.
111089         * MODULES.html.sh (func_all_modules): Add progname.
111091 2003-08-20  Bruno Haible  <bruno@clisp.org>
111093         * lib/progname.h: New file, from GNU gettext.
111094         * lib/progname.c: New file, from GNU gettext.
111095         * lib/progreloc.c: New file, from GNU gettext.
111097 2003-08-19  Jim Meyering  <jim@meyering.net>
111099         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
111100         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
111102 2003-08-19  Bruno Haible  <bruno@clisp.org>
111104         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
111105         more.
111107 2003-08-19  Bruno Haible  <bruno@clisp.org>
111109         * lib/xstrdup.c: Assume <string.h> exists.
111111 2003-08-18  Paul Eggert  <eggert@twinsun.com>
111113         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
111114         in makefile rules.
111116 2003-08-18  Jim Meyering  <jim@meyering.net>
111118         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
111119         * m4/lib-ld.m4: Likewise.
111121 2003-08-18  Jim Meyering  <jim@meyering.net>
111123         * lib/setenv.h: Indent nested cpp directive.
111124         * lib/vasnprintf.c: Remove trailing blanks.
111126 2003-08-17  Simon Josefsson  <jas@extundo.com>
111128         * modules/xstrndup: New file.
111129         * MODULES.html.sh (func_all_modules): Add xstrndup.
111131 2003-08-17  Simon Josefsson  <jas@extundo.com>
111133         * modules/argp: Fix autoconf macro name. Add more dependencies.
111135 2003-08-17  Simon Josefsson  <jas@extundo.com>
111137         * m4/xstrndup.m4: New file.
111139 2003-08-17  Simon Josefsson  <jas@extundo.com>
111141         * m4/argp.m4: New file.
111143 2003-08-17  Simon Josefsson  <jas@extundo.com>
111144             Bruno Haible  <bruno@clisp.org>
111146         * lib/xstrndup.h: New file.
111147         * lib/xstrndup.c: New file.
111149 2003-08-17  Bruno Haible  <bruno@clisp.org>
111151         * modules/strndup (Files, Include): Add lib/strndup.h.
111153 2003-08-17  Bruno Haible  <bruno@clisp.org>
111155         * modules/euidaccess (Files): Add lib/euidaccess.h.
111157 2003-08-17  Bruno Haible  <bruno@clisp.org>
111159         * lib/strndup.h: New file.
111161 2003-08-17  Bruno Haible  <bruno@clisp.org>
111163         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
111164         like AC_GNU_SOURCE.
111165         * modules/extensions (configure.ac): Comment out the invocation of
111166         gl_USE_SYSTEM_EXTENSIONS.
111168 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111170         Merges from coreutils, etc.
111171         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
111172         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
111173         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
111174         fixing a typo.
111175         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
111176         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
111178 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111180         Document merge from coreutils.
111181         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
111182         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
111183         * modules/utime: Add m4/utimes-null.m4.
111185 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111187         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
111188         space, undoing this 2003-08-12 change:
111189         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111191 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111193         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
111194         strtoul.c from libc, undoing this 2003-08-12 change:
111195         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111197 2003-08-16  Jim Meyering  <jim@meyering.net>
111199         Merges from coreutils.
111200         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
111201         prefix.  Adjust cache variables similarly.  Create 500 rather than
111202         just 300 files, to exercise bug on Darwin6.5, too.
111203         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
111204         $missing_dir.
111205         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
111206         AM_SYS_POSIX_TERMIOS.
111207         Reported by mkc@mathdogs.com.
111208         Also change use of $am_cv_sys_posix_termios
111209         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
111210         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
111211         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
111212         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
111213         in /proc/mounts until it finds one with matching device number.  This
111214         is unnecessary when the FILE argument *is* a mount point.  No stat call
111215         is necessary in that case.  So, disable the statvfs-testing code on
111216         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
111217         as RedHat bug# 84846.
111218         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111219         to 1MB, so as not to render systems with no stack size limit (e.g.,
111220         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111221         Include <unistd.h>.  On some systems,
111222         it is required for the definition of _SC_PAGESIZE.
111224 2003-08-16  Jim Meyering  <jim@meyering.net>
111226         Merge from coreutils.
111227         * lib/xstrtoimax.c: #else #if -> #elif.
111228         * lib/xstrtoumax.c: Likewise.
111230 2003-08-16  Jim Meyering  <jim@meyering.net>
111232         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
111233         * m4/utimes.m4: Removed.
111234         * m4/utimes-null.m4: Renamed from utimes.m4.
111236         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111237         to 1MB, so as not to render systems with no stack size limit (e.g.,
111238         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111239         Include <unistd.h>.  On some systems,
111240         it is required for the definition of _SC_PAGESIZE.
111242 2003-08-16  Jim Meyering  <jim@meyering.net>
111243         and Paul Eggert  <eggert@cs.ucla.edu>
111245         Merges from coreutils, etc.
111247         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
111248         using the latest version from cvs.  This avoids problems with #line
111249         directives using a vendor (Sun) compiler.
111250         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
111251         Don't set GETGROUPS_LIB here; now it's
111252         done via getgroups.m4's wrapper function.
111253         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
111254         rather than just in sh-util/configure.in, so that the
111255         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
111256         same.
111257         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
111258         AC_FUNC_GETLOADAVG where to find getloadavg.c.
111259         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
111260         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
111261         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
111262         Remove code that is now done by the newly-required macros.
111263         Append $(EXEEXT) to DF_PROG.
111264         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
111265         Do not invoke or require the following here,
111266         since prereq.m4 or some gnulib .m4 now does this for us:
111267         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
111268         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
111269         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
111270         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
111271         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
111272         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
111273         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
111274         AC_FUNC_OBSTACK.
111275         Do not replace the following functions, as this is now the job
111276         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
111277         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
111278         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
111279         atexit getpass, strdup, getpagesize.
111280         Replace 'raise'.
111281         Do not check for the following functions, as this is now the job
111282         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
111283         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
111284         setregid.
111285         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
111286         Check for sys/sysctl.h.
111287         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
111288         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
111289         of checking for ssize_t ourselves.
111291         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
111292         Require every macro that gnulib/modules/* suggests for us.
111293         (jm_PREREQ_ADDEXT): New macro.
111294         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
111295         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
111297         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
111298         (gl_PHYSMEM): Use it.
111299         Also check for `table' function.
111300         Check for new headers and functions.
111301         Add check for sys/sysmp.h.
111302         With suggestions from Kaveh Ghazi.
111303         Ignore headers that are present but cannot be compiled.  This
111304         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
111305         C 5.4.
111307 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111309         Document merge from coreutils.
111310         * modules/userspec: Depend on posixver.
111311         * modules/strftime: Depend on tzset.
111313 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111315         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
111316         rather than tab, after '#' in shell-script copyright notices.
111317         Suggested by Bruno Haible.
111319 2003-08-15  Paul Eggert  <eggert@twinsun.com>
111321         * config/srclist-update: Use three spaces, rather than tab, after '#'
111322         in shell-script copyright notices.  Suggested by Bruno Haible.
111323         Remove unnecessary parenthesization in regular expression.
111325 2003-08-15  Jim Meyering  <jim@meyering.net>
111327         Merge from coreutils.
111328         * lib/xgethostname.c: Include <stdlib.h>.
111329         (xghostname): Don't exit for anything other than memory-related
111330         failure; just return NULL.
111331         * lib/userspec.c: Include "posixver.h".
111332         (parse_user_spec): Accept `.' as a separator only
111333         in pre-POSIX-200112 mode.
111334         * lib/strtoimax.c: Use #elif rather than #else #if.
111335         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
111336         Remove function, now that we can rely on a working tzset function.
111337         [!_LIBC]: Ensure that the required autoconf test has been run.
111338         [!defined _NL_CURRENT && HAVE_STRFTIME]:
111339         Use underlying_strftime for %r.
111340         * lib/sha.c: Merge in some clean-up and optimization changes from
111341         glibc.
111342         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
111343         Ensure that it is a multiple of 64.
111344         Rearrange loop exit tests so as to avoid performing an
111345         additional fread after encountering an error or EOF.
111346         * lib/realloc.c: Update copyright date.
111348 2003-08-15  Jim Meyering  <jim@meyering.net>
111349         and Paul Eggert  <eggert@twinsun.com>
111351         Merge from coreutils.
111352         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
111353         member but strut utmpx does not.  Needed for AIX 4.3.3.
111354         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
111356 2003-08-15  Jim Meyering  <jim@meyering.net>
111357         and Paul Eggert  <eggert@cs.ucla.edu>
111359         Merges from coreutils, etc.
111360         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
111361         Require gl_FUNC_TZSET_CLOBBER.
111362         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
111363         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
111364         members.
111366 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111368         Help the merge from coreutils.
111369         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
111370         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
111371         * m4/tzset.m4: Use it too.
111373 2003-08-14  Paul Eggert  <eggert@twinsun.com>
111375         * modules/tzset: New file.
111377 2003-08-14  Jim Meyering  <jim@meyering.net>
111379         Merges from coreutils.
111380         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
111381         variable names, rather than @FNMATCH_H@.
111382         * modules/alloca: Likewise for $(ALLOCA_H).
111384         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
111385         the three copies of the literal target, `fnmatch.h'.
111386         * modules/alloca (alloca.h): Likewise.
111388 2003-08-14  Jim Meyering  <jim@meyering.net>
111390         Merge from coreutils.
111391         * m4/tzset.m4: New file.
111392         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
111393         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
111394         otherwise, AIX 5.1 systems would end up using the latter.
111395         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
111396         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
111397         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
111398         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
111400 2003-08-14  Jim Meyering  <jim@meyering.net>
111402         Merge from coreutils.
111403         * lib/obstack.h: Whitespace changes.
111404         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
111405         and xcalloc return values.
111406         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
111407         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
111408         hang on OSF/1 5.1 for DIR on both local and remote file systems.
111409         Reported by (and fix confirmed by) Nelson H. F. Beebe.
111410         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
111411         error from mntctl.
111412         Use mntctl's return value to drive the entry-processing loop, since
111413         we can't rely on the value of the vmt_length member in the last
111414         entry.  On some systems doing so could result in exhausting
111415         virtual memory.  Based in part on a patch from Mike Jetzer.
111417 2003-08-14  Jim Meyering  <jim@meyering.net>
111418         and Paul Eggert  <eggert@twinsun.com>
111420         Merges from coreutils, plus other fixes.
111421         * lib/physmem.c: Merge in portability changes from gcc/libiberty
111422         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
111423         for credits and details.  Thanks to Kaveh Ghazi for helping
111424         to keep these files in sync.
111425         (ARRAY_SIZE): Define it.
111426         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
111427         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
111428         (memcasecmp): Don't assume size_t fits in unsigned int.
111429         Remove casts and duplicate code.
111430         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
111431         (memcpy): Remove definition.
111432         Merge in some clean-up and optimization changes from glibc.
111433         [BLOCKSIZE]: Move definition to top of file.
111434         Ensure that it is a multiple of 64.
111435         Rearrange loop exit tests so as to avoid performing an
111436         additional fread after encountering an error or EOF.
111437         * lib/md5.h (md5_uintptr): Define.
111438         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
111439         return to the initial working directory.  Preserve errno
111440         for caller.
111441         * lib/idcache.c: Include "xalloc.h".
111442         (xmalloc, xrealloc): Remove decls.
111443         (getuser): Remove casts no longer required in C89.
111444         * lib/human.c: Include stdio.h, for sprintf.
111445         * lib/group-member.c: Include "xalloc.h".
111446         (xmalloc, xrealloc): Remove decls.
111447         (get_group_info): Remove casts no longer required in C89.
111448         * lib/getusershell.c (readname): Remove casts no longer required in
111449         C89.
111450         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
111451         * lib/getline.c: Whitespace fix, from coreutils.
111453 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111455         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
111456         Check for isascii.
111458         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111459         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111460         Undo previous (whitespace-only) change.
111462 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111464         * lib/exclude.c: Include <ctype.h>
111465         (IN_CTYPE_DOMAIN): New macro.
111466         (is_space): New fn.
111467         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
111468         and empty lines.
111470         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111471         Undo previous (whitespace-only) change.
111473 2003-08-13  Paul Eggert  <eggert@twinsun.com>
111475         * config/srclist-update: Change update back to the old behavior,
111476         leaving whitespace alone.  Use one 'sed' command rather than a
111477         pipeline.
111478         (fixlicense): Now a variable, not a function.
111479         (remove_trailing_blanks): Remove.
111480         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
111481         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111482         Undo previous (whitespace-only) change.
111484 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111486         Merge from coreutils.
111487         * modules/euidaccess: Add lib_SOURCES, include for new
111488         file euidaccess.h
111490 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111492         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
111493         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
111494         Normalize leading white space and remove trailing white space.
111496         Merge from coreutils
111497         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
111499         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
111500         0.12.1.  These files are now being upgraded automatically by
111501         ../config/srclist-update.
111503 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111505         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
111506         Normalize leading white space and remove trailing white space.
111507         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
111508         notice, as per ../config/srclist-update.
111510         Merge from coreutils.
111511         * lib/euidaccess.h: New file.
111512         * lib/euidaccess.c: Include it.
111513         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
111514         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
111515         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
111517 2003-08-12  Paul Eggert  <eggert@twinsun.com>
111519         * config/srclist-update: Add copyright notice.
111520         (remove_id_lines, remove_trailing_blanks): New constants.
111521         (fixfile): Use them to normalize spacing a bit in copied files.
111522         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
111523         Normalize leading white space and remove trailing white space.
111525         * config/texinfo.tex: Sync with texinfo.
111527         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
111528         strtoul.c from libc, to merge coreutils whitespace changes.
111530         * config/srclist.txt: Get the following m4 files from gettext:
111531         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
111532         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
111533         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
111534         wint_t.m4.
111536 2003-08-12  Karl Berry  <karl@gnu.org>
111538         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
111539         been made.
111541 2003-08-11  Paul Eggert  <eggert@twinsun.com>
111543         * modules/gnu-source, m4/gnu-source.m4:
111544         Remove; we're assuming Autoconf 2.54 or later now.
111545         Suggested by Bruno Haible.
111546         * MODULES.html.sh (func_all_modules): Remove gnu-source.
111548 2003-08-11  Bruno Haible  <bruno@clisp.org>
111550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
111552 2003-08-11  Bruno Haible  <bruno@clisp.org>
111554         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
111555         (vasnprintf): Use it instead of wcslen.
111557 2003-08-11  Bruno Haible  <bruno@clisp.org>
111559         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
111560         value to ensure that _Bool promotes to int. Use #define for _Bool when
111561         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
111563 2003-08-10  Karl Berry  <karl@gnu.org>
111565         * lib/regex.h: update from libc (whitespace fix).
111567 2003-08-09  Paul Eggert  <eggert@twinsun.com>
111569         Merge some files from coreutils.  These changes were
111570         originally made by Jim Meyering.
111571         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
111572         many older Unixes require this.
111573         * lib/alloca.c (alloca): Remove cast to argument of free;
111574         no longer needed in C89.
111575         * lib/alloca_.h, regex.h: Fix white space to match
111576         what GNU indent does.
111578 2003-08-09  Paul Eggert  <eggert@twinsun.com>
111580         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
111581         apparently Emacs's Unicode mode got confused before my 2003-08-05
111582         checkin.
111584 2003-08-08  Paul Eggert  <eggert@twinsun.com>
111586         * m4/extensions.m4: New file.
111587         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
111588         Require gl_USE_SYSTEM_EXTENSIONS.
111589         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
111590         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
111592 2003-08-08  Paul Eggert  <eggert@twinsun.com>
111594         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
111595         * modules/extensions, modules/gnu-source: New files.
111596         * modules/timespec, modules/unlocked-io: Depend on extensions.
111598 2003-08-07  Paul Eggert  <eggert@twinsun.com>
111600         * modules/restrict: New file.
111601         * MODULES.html.sh (func_all_modules): Add restrict.
111602         * modules/regex: Depend on restrict.
111604 2003-08-07  Paul Eggert  <eggert@twinsun.com>
111606         * m4/restrict.m4: New file.
111607         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
111609 2003-08-07  Bruno Haible  <bruno@clisp.org>
111611         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
111612         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
111614 2003-08-07  Bruno Haible  <bruno@clisp.org>
111616         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
111617         makes the module 'getndelim2' compatible with the module 'getline'.
111619 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111621         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
111622         byte with "\201" to avoid glitches when editing that source file
111623         with multi-gnome-terminal.
111625 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111627         * lib/bumpalloc.h: Remove.
111629 2003-08-05  Paul Eggert  <eggert@twinsun.com>
111631         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
111632         * modules/bumpalloc: Remove.
111634 2003-08-04  Paul Eggert  <eggert@twinsun.com>
111636         * lib/getloadavg.c: Change copyright notice and spacing to conform to
111637         GNU coding style.
111639         Merge from coreutils.
111640         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
111641         1. From glibc.
111642         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
111643         from Karl Berry, implemented by Jim Meyering.
111644         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
111645         from Dmitry V. Levin.
111646         Remove anachronistic cast of xrealloc.
111647         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
111648         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
111649         type. Otherwise, it wouldn't compile with at least /bin/cc on
111650         ymp-cray-unicos9.0.2.X.
111651         Combine two mostly-identical uses of alloca into one.
111652         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
111654 2003-08-04  Dave Love  <d.love@dl.ac.uk>
111656         [From Emacs.]
111658         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
111659         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
111660         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
111661         obsolete NLIST_NAME_UNION.
111662         [__GNU__]: Undef BSD and FSCALE.
111663         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
111665 2003-08-03  Paul Eggert  <eggert@twinsun.com>
111667         * lib/stdbool_.h (_Bool): Make it signed char, instead of
111668         an enum type, so that it's guaranteed to promote to int.  See:
111669         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
111671 2003-08-03  Karl Berry  <karl@gnu.org>
111673         * config/depcomp: update from automake.
111675 2003-07-31  Paul Eggert  <eggert@twinsun.com>
111677         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
111678         (strerror): Don't assume that a printable int fits in 14 bytes.
111680 2003-07-31  Bruno Haible  <bruno@clisp.org>
111682         * modules/getpass-gnu: New file.
111683         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
111685 2003-07-31  Bruno Haible  <bruno@clisp.org>
111687         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
111689 2003-07-24  Karl Berry  <karl@gnu.org>
111691         * config/missing: update from automake.
111693 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
111694             Bruno Haible  <bruno@clisp.org>
111696         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
111697         * lib/getline.c (getline, getdelim): Likewise.
111698         Remove _GNU_SOURCE define; now it's defined in config.h through
111699         m4/getline.m4.
111701 2003-07-23  Karl Berry  <karl@gnu.org>
111703         * config/config.sub: update from prep.
111705 2003-07-22  Paul Eggert  <eggert@twinsun.com>
111707         * modules/xalloc (Depends-on): Add exitfail.
111708         * modules/xmemcoll: Likewise.
111710 2003-07-22  Paul Eggert  <eggert@twinsun.com>
111712         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
111713         over-parenthesization in macros.
111715         Sync with coreutils.
111717         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
111718         required by C99.
111720         Use `exit_failure' for xalloc and xmemcoll instead of their own
111721         private exit-failure variables.
111722         * lib/xalloc.h (xalloc_exit_failure): Remove.
111723         * lib/xmalloc.c: Likewise.  Include exitfail.h.
111724         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
111725         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
111726         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
111727         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
111729 2003-07-20  Jim Meyering  <jim@meyering.net>
111731         * modules/closeout (Depends-on): Add exitfail.
111732         Suggestion from Bruno Haible.
111734 2003-07-19  Karl Berry  <karl@gnu.org>
111736         * config/config.sub: update from prep.
111738 2003-07-18  Paul Eggert  <eggert@twinsun.com>
111740         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
111741         Remove.
111742         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
111743         to test that it can stand by itself.  Include "exitfail.h".
111744         Clients should set exit_failure instead.
111745         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
111747 2003-07-18  Bruno Haible  <bruno@clisp.org>
111749         * modules/getndelim2: New file.
111750         * modules/getline: Share files with module getndelim2.
111751         * modules/getnline: Depend on getndelim2 instead of sharing files with
111752         it. Add getnline.c to lib_SOURCES.
111753         * MODULES.html.sh (func_all_modules): Add getndelim2.
111755 2003-07-18  Bruno Haible  <bruno@clisp.org>
111757         * m4/getndelim2.m4: New file.
111758         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
111759         invoke gl_PREREQ_GETNDELIM2.
111760         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
111761         gl_PREREQ_GETNDELIM2.
111762         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
111763         gl_GETNDELIM2.
111765 2003-07-18  Bruno Haible  <bruno@clisp.org>
111767         * lib/getndelim2.h: New file.
111768         * lib/getndelim2.c: Make into a module of its own. Include config.h,
111769         getndelim2.h.
111770         (getndelim2): Make non-static. Change return type to ssize_t.
111771         * lib/getline.h: Change argument names.
111772         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
111773         * lib/getnline.c: Include getndelim2.h.
111775 2003-07-18  Andreas Schwab  <schwab@suse.de>
111777         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
111779 2003-07-17  Karl Berry  <karl@gnu.org>
111781         * config/config.sub: update from prep.
111783 2003-07-17  Bruno Haible  <bruno@clisp.org>
111785         * modules/getnline: New file.
111786         * modules/getline: Add lib/getndelim2.c to source file list.
111787         * MODULES.html.sh (func_all_modules): Add getnline.
111789 2003-07-17  Bruno Haible  <bruno@clisp.org>
111791         * m4/getnline.m4: New file.
111793 2003-07-17  Bruno Haible  <bruno@clisp.org>
111795         * m4/Makefile.am.in: Remove file.
111796         * m4/Makefile.am: Remove file.
111797         * m4/Makefile.in: Remove file.
111799 2003-07-17  Bruno Haible  <bruno@clisp.org>
111801         * lib/getnline.h: New file.
111802         * lib/getnline.c: New file.
111803         * lib/getndelim2.c: New file, extracted from getline.c.
111804         (getndelim2): Renamed from getdelim2, with added nmax argument.
111805         * lib/getline.c: Include getndelim2.c.
111806         (getdelim2): Moved out to getndelim2.c.
111807         (getline, getdelim): Update.
111809 2003-07-17  Bruno Haible  <bruno@clisp.org>
111811         * lib/Makefile.am: Remove file.
111812         * lib/Makefile.in: Remove file.
111814 2003-07-17  Bruno Haible  <bruno@clisp.org>
111816         * configure.in: Remove file.
111817         * Makefile.in: Remove file.
111819 2003-07-17  Bruno Haible  <bruno@clisp.org>
111821         * MODULES.html.sh: Put the </BODY> right before </HTML>.
111823 2003-07-16  Karl Berry  <karl@gnu.org>
111825         * config/srclist-update: was running fixlicense twice, which caused
111826                 texinfo.tex to be nullified for some reason.  Simplify,
111827                 $gplsrc is no longer needed as far as I can see?
111829 2003-07-16  Jim Meyering  <jim@meyering.net>
111831         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
111833 2003-07-15  Paul Eggert  <eggert@twinsun.com>
111835         * config/srclist.txt: Get the following files from gettext-runtime/intl
111836         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
111837         ref-del.sin.  From Bruno Haible.
111838         * config/srclist-update (fixfile): Change grep pattern again, since the
111839         previous fix didn't work (there was another trailing $).  Use
111840         '[$]' to escape the $s.
111842 2003-07-15  Karl Berry  <karl@gnu.org>
111844         * lib/vasnprintf.c: update from gettext.
111846 2003-07-15  Karl Berry  <karl@gnu.org>
111848         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
111849         gets expanded when surrounded by '$'.
111851 2003-07-15  Jim Meyering  <jim@meyering.net>
111853         * modules/save-cwd: Don't depend on error.  From Derek Price.
111855 2003-07-15  Jim Meyering  <jim@meyering.net>
111857         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
111859 2003-07-14  Simon Josefsson  <jas@extundo.com>
111861         * modules/mempcpy: New file.
111862         * MODULES.html.sh (func_all_modules): Add mempcpy.
111864 2003-07-14  Simon Josefsson  <jas@extundo.com>
111866         * m4/mempcpy.m4: New file.
111868 2003-07-14  Simon Josefsson  <jas@extundo.com>
111870         * lib/mempcpy.h: New file.
111871         * lib/mempcpy.c: New file.
111873 2003-07-14  Paul Eggert  <eggert@twinsun.com>
111875         * modules/getdate, modules/posixtm: Depend on mktime.
111877 2003-07-14  Paul Eggert  <eggert@twinsun.com>
111879         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
111880         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
111881         unicodeio.c, unicodeio.h, unlocked-io.h:
111882         Switch from LGPL to GPL.
111884 2003-07-14  Paul Eggert  <eggert@twinsun.com>
111886         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
111887         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
111888         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
111889         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
111890         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
111891         updated automatically by ../config/srclist-update.  This changes
111892         their license from LPGL to GPL.
111894 2003-07-14  Paul Eggert  <eggert@twinsun.com>
111896         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
111897         assumed to refer to the root of the most recent stable gettext version.
111898         * config/srclistvars.sh: Add defaults for eggert.
111899         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
111900         Match "This program" as well as "The program".  This is needed
111901         for gettext.
111903 2003-07-14  Jim Meyering  <jim@meyering.net>
111905         Don't emit diagnostics.  Let callers do that.
111906         * lib/save-cwd.c: Don't include "error.h".
111907         (save_cwd): Don't call error.  Ensure that errno is valid
111908         when returning nonzero.
111910         * lib/save-cwd.h (restore_cwd): Update prototype.
111911         * lib/save-cwd.c (restore_cwd): Remove two parameters.
111912         Simplify.  Don't call error upon failure.  Let callers do that.
111913         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
111914         when auditing is enabled.  But don't bother updating the #if.
111916 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
111918         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
111919         it breaks C++ compilation.
111920         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
111922 2003-07-10  Simon Josefsson  <jas@extundo.com>
111924         * modules/strchrnul (Makefile.am): Add strchrnul.h.
111926 2003-07-10  Jim Meyering  <jim@meyering.net>
111928         * m4/clock_time.m4: Remove trailing blank.
111929         * m4/intmax_t.m4: Likewise.
111931 2003-07-10  Jim Meyering  <jim@meyering.net>
111933         * lib/vasnprintf.c: Remove trailing blanks.
111934         Make cpp indentation consistent.
111936 2003-07-09  Paul Eggert  <eggert@twinsun.com>
111938         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
111939         posixver.c, strftime.c, strnlen.c, strverscmp.c:
111940         Switch from LGPL to GPL.
111942 2003-07-09  Paul Eggert  <eggert@twinsun.com>
111944         * config/srclist.txt: Sort sublists.  Add
111945         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
111946         that differ from gnulib for one reason or another; we'd like this list
111947         to be smaller but for now let's document what we have.
111949 2003-07-08  Paul Eggert  <eggert@twinsun.com>
111951         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
111952         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
111953         and sweeter "eval x=$x".
111954         * config/srclist.txt: Get lib/argp* from glibc.
111956 2003-07-07  Paul Eggert  <eggert@twinsun.com>
111958         * lib/mktime.c: Fix some boundary cases and remove need for floating
111959         point.
111961         Issue a compile-time diagnostic if time_t is floating point, or if
111962         two's complement arithmetic is not in effect, or if arithmetic
111963         right shift does not propagate the sign.  These assumptions were
111964         all in the original code but they weren't checked.
111966         (TIME_T_MIDPOINT, verify): New macros.
111967         (__isleap): Remove; it has integer overflow problems.
111968         (leapyear): New function, without those problems.
111969         (ydhms_tm_diff): Remove; splitting into two parts.
111970         (ydhms_diff): New function, containing the arithmetic part of
111971         the old ydhms_tm_diff function.  Issue a compile-time
111972         diagnostic if we are not using C99 integer division.
111973         Avoid casts when possible.
111974         (guess_time_tm): New function, containing the checking part of
111975         the old ydhms_tm_diff function.  Return the new value, rather than
111976         the difference between it and the old.  Accept a new argument T
111977         so that *T specifies the old value.  Check for overflow in the result.
111979         (__mktime_internal): Use a time_t offset, not a long int offset.
111980         This undoes the 2003-06-04 change, which is no longer needed now
111981         that we have better overflow checking.
111982         (localtime_offset): Likewise.
111984         (__mktime_internal): Avoid harmful overflow on hosts where time_t
111985         and long are 64-bit but int is only 32-bit.
111986         (ydhms_diff): Use long int to store year1 and yday1.
111987         Issue a compile-time diagnostic if long int is not wide enough.
111989         (__mktime_internal): Use long int to store adjusted year and yday.
111990         Use plain C rather than preprocessor commands, if that doesn't
111991         affect efficiency.
111992         Check for overflow (and try to repair) after each probe
111993         rather than checking only at the very end.  This avoids some bugs
111994         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
111995         does not equal GMT offset at maximum time).
111996         Use integer to check for overflow rather than floating point; this
111997         is more portable to non-IEEE hosts, and is a tad faster.
111998         When we detect that we are oscillating between two values,
111999         don't check whether tm_isdst has the requested value, since
112000         we already know the answer.  When tm_isdst has the wrong value,
112001         use a different heuristic to find the right one, based on the
112002         extreme values actually observed in practice in tz2003a,
112003         rather than the (overly optimistic) "previous 3 calendar quarters".
112005         (not_equal_tm, print_tm, check_result): Use "const T" rather than
112006         "T const" to accommodate glibc style.
112007         (check_result): Use less-confusing report format.  "long" -> "long int.
112008         (main): Likewise.
112009         Don't loop if the iteration overflows time_t.
112010         Allow a negative step in the iteration.
112012 2003-07-06  Karl Berry  <karl@gnu.org>
112014         * config/depcomp: update from automake.
112015         * config/config.sub: update from prep.
112017 2003-07-03  Karl Berry  <karl@gnu.org>
112019         * config/config.guess: update from prep.
112021 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112023         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
112024         xreadlink.c now includes it unconditionally.
112026 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112028         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
112029         having it depend on HAVE_SYS_TYPES_H.
112031 2003-07-01  Bruno Haible  <bruno@clisp.org>
112033         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
112034         <sys/types.h> should be sufficient.
112035         Reported by Paul Eggert.
112037 2003-06-26  Karl Berry  <karl@gnu.org>
112039         * config/depcomp: update from automake.
112041 2003-06-26  Bruno Haible  <bruno@clisp.org>
112043         * modules/human: Depend on module stdbool.
112045 2003-06-25  Bruno Haible  <bruno@clisp.org>
112047         * modules/readlink: New file.
112048         * modules/xreadlink: Depend on it.
112049         * MODULES.html.sh (func_all_modules): Add readlink.
112051 2003-06-25  Bruno Haible  <bruno@clisp.org>
112053         * m4/readlink.m4: New file.
112055 2003-06-25  Bruno Haible  <bruno@clisp.org>
112057         * lib/readlink.c: New file.
112059 2003-06-22  Karl Berry  <karl@gnu.org>
112061         * config/srclist.txt: update mkinstalldirs from automake.
112062         * config/mkinstalldirs: update.
112064 2003-06-22  Bruno Haible  <bruno@clisp.org>
112066         Portability to mingw32.
112067         * m4/ssize_t.m4: New file, from GNU gettext.
112068         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
112069         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
112071 2003-06-22  Bruno Haible  <bruno@clisp.org>
112073         * modules/safe-read: Add m4/ssize_t.m4.
112074         * modules/xreadlink: Add m4/ssize_t.m4.
112076 2003-06-20  Bruno Haible  <bruno@clisp.org>
112078         Assume C89, so PARAMS isn't needed.
112079         * lib/unicodeio.h (PARAMS): Remove.
112080         * lib/unicodeio.c: Don't use PARAMS.
112082 2003-06-18  Karl Berry  <karl@gnu.org>
112084         * config/config.{guess,sub}: update from prep.
112086 2003-06-18  Jim Meyering  <jim@meyering.net>
112088         Merge changes from coreutils.
112089         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
112090         Remove explicit declarations of xmalloc and realloc.
112091         Include xalloc.h.
112092         (read_utmp): Remove anachronistic cast of xmalloc.
112094 2003-06-17  Paul Eggert  <eggert@twinsun.com>
112096         Assume C89, so PARAMS isn't needed.
112097         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
112098         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
112099         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
112100         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
112101         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
112102         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
112103         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
112104         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
112105         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
112106         lib/xstrtod.h, lib/xstrtol.h: Likewise.
112107         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
112108         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
112109         no longer needed. Anyway, config.h should always be included before any
112110         other file.
112112 2003-06-11  Simon Josefsson  <jas@extundo.com>
112114         * modules/sysexits: New file.
112115         * MODULES.html.sh (func_all_modules): Add sysexits.
112117 2003-06-11  Simon Josefsson  <jas@extundo.com>
112119         * lib/sysexit_.h: New file.
112121 2003-06-11  Derek Price  <derek@ximbiot.com>
112123         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
112124         necessary.
112126 2003-06-11  Bruno Haible  <bruno@clisp.org>
112128         * m4/sysexits.m4: New file.
112130 2003-06-10  Simon Josefsson  <jas@extundo.com>
112132         * lib/argp.h: New file, from glibc.
112133         * lib/argp-ba.c: New file, from glibc.
112134         * lib/argp-eexst.c: New file, from glibc.
112135         * lib/argp-fmtstream.c: New file, from glibc.
112136         * lib/argp-fmtstream.h: New file, from glibc.
112137         * lib/argp-fs-xinl.c: New file, from glibc.
112138         * lib/argp-help.c: New file, from glibc.
112139         * lib/argp-namefrob.h: New file, from glibc.
112140         * lib/argp-parse.c: New file, from glibc.
112141         * lib/argp-pv.c: New file, from glibc.
112142         * lib/argp-pvh.c: New file, from glibc.
112143         * lib/argp-xinl.c: New file, from glibc.
112145 2003-06-10  Simon Josefsson  <jas@extundo.com>
112147         * modules/strchrnul: New file.
112149 2003-06-10  Simon Josefsson  <jas@extundo.com>
112151         * modules/argp: New file.
112153 2003-06-10  Simon Josefsson  <jas@extundo.com>
112155         * m4/strchrnul.m4: New file.
112157 2003-06-10  Simon Josefsson  <jas@extundo.com>
112159         * lib/strchrnul.h: New file.
112160         * lib/strchrnul.c: New file.
112162 2003-06-10  Bruno Haible  <bruno@clisp.org>
112164         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
112166 2003-06-07  Karl Berry  <karl@gnu.org>
112168         * config/config.{guess,sub}: update from prep.
112170 2003-06-07  Jim Meyering  <jim@meyering.net>
112172         * modules/strtod: Use $(...) notation, not @...@ for
112173         AC_REPLACE'd variables.
112174         * modules/localcharset: Likewise.
112176 2003-06-07  Jim Meyering  <jim@meyering.net>
112178         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
112179         in place of my name in the copyright comment.
112180         Remove definition and uses of __P.
112182         From coreutils.
112183         * lib/stat.c: Don't declare xmalloc explicitly.
112184         Instead, include "xalloc.h".
112185         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
112186         xrealloc, and xcalloc return values.
112187         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
112188         Improve comment.
112189         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
112191 2003-06-07  Bruno Haible  <bruno@clisp.org>
112193         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
112194         avoid AC_CONFIG_LINKS.
112195         * modules/fnmatch (Makefile.am): Use explicit creation rule for
112196         fnmatch.h, to avoid AC_CONFIG_LINKS.
112197         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
112199 2003-06-07  Bruno Haible  <bruno@clisp.org>
112201         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
112202         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
112203         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112204         directory.
112205         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
112206         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112207         directory.
112209 2003-06-06  Jim Meyering  <jim@meyering.net>
112211         Merge from coreutils.
112212         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
112213         Consolidate declarations and initializations of *_base* locals.
112215         Merge from coreutils.
112216         This avoids a core dump on systems without GNU putenv,
112217         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
112218         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
112219         (unsetenv): New static function, from GNU libc.
112220         (rpl_putenv): Use it.
112222         * lib/modechange.c: Remove trailing blanks.
112224         Merge from coreutils.
112225         * lib/fsusage.c: Remove declaration of statfs.
112226         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
112228         * lib/posixtm.c: Include <stdbool.h> unconditionally.
112230 2003-06-06  Jim Meyering  <jim@meyering.net>
112232         * lib/stdbool_.h: Renamed from stdbool.h.in.
112234 2003-06-06  Jim Meyering  <jim@meyering.net>
112235             Bruno Haible  <bruno@clisp.org>
112237         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
112238         Adjust Makefile.am snippet not to redirect directly to target.
112239         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
112241 2003-06-05  Paul Eggert  <eggert@twinsun.com>
112243         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
112244         mismatch, look in future quarters as well as past.  This fixes a
112245         bug when processing fall-backwards gaps immediately after a long
112246         period of daylight-saving time.
112248         * lib/mktime.c: Assume freestanding C89 or better.
112249         (HAVE_LIMITS_H): Remove.  Assume it's 1.
112250         (__P): Remove; not used.
112251         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
112252         (mktime, not_equal_tm, print_tm, check_result,
112253         main): Use prototypes.  Use const * where appropriate.
112254         (main): Fix typo in testing code that uncovered by above changes.
112255         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
112257 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112259         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
112260         locale.h, localeconv.  This merges changes from coreutils.
112262         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
112263         It can be removed after the next Autoconf is released.
112264         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
112265         needed.
112267 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112269         * lib/mktime.c: Fix Debian bug 177940
112270         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
112271         (localtime_offset): Now long int, not time_t, because we want it
112272         to be guaranteed to be signed.  All uses changed.
112273         (__mktime_internal): If overflow would occur when adding offset,
112274         don't add it.
112276         Merge 'human' changes from coreutils.  Rewrite to support
112277         locale-specific notations like thousands separators.
112278         * lib/human.c: Simplify authorship notice.
112279         Include human.h immediately after config.h.
112280         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
112281         <limits.h>: Do not include, since human.h does.
112282         (SIZE_MAX, UINTMAX_MAX): New macros.
112283         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
112284         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
112285         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
112286         (power_letter): Renamed from suffixes.
112287         (generate_suffix_backwards): Remove.
112288         (adjust_value): Now takes int style (because of human.h changes)
112289         and long double value (for greater precision on some platforms).
112290         (group_number): New function.
112291         (human_readable): Use it.  Use integer options, not enum.
112292         Put the options before the sizes in the arg list.
112293         Support all the new options.
112294         The old human_readable function has been removed;
112295         use inttostr.h instead.
112296         (human_readable, default_block_size, humblock):
112297         Use uintmax_t, not int, for block sizes.
112298         (human_readable_inexact, block_size_types): Remove.
112299         (block_size_opts): New constant.
112300         (human_options): Renamed from human_block_size, with new signature
112301         that allows block sizes up to UINTMAX_MAX.  All callers changed.
112302         * lib/human.h: Add copyright and authorship notice.
112303         Include <limits.h> and <stdbool.h> unconditionally.
112304         (PARAMS): Remove.  All uses removed.
112305         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
112306         (enum human_inexact_style): Remove tag; now a nameless enum.
112307         (human_floor, human_ceiling, human_round_to_even): Now have
112308         values 2, 0, 1 rather than -1, 1, 0.
112309         (human_group_digits, human_suppress_point_zero, human_autoscale,
112310         human_base_1024, human_SI, human_B): New constants.
112311         (human_readable_inexact, human_block_size): Remove.
112312         (human_readable): Size args are now uintmax_t, not int.
112313         (human_options): New decl.
112315         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
112316         unnecessary now that we assume C89 or better.  This change
112317         imported from coreutils.
112319         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112320         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
112321         in the 2003-05-30 sync from glibc.
112323         .h files should stand alone, but we shouldn't include <sys/types.h>
112324         if we can get away with just <stddef.h>.
112326         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
112327         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
112328         rather than <sys/types.h>, as we merely need size_t.
112329         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
112330         to get size_t.
112331         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
112332         Include <stdio.h>, to get FILE.
112333         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
112334         memcasecmp.h has included <stddef.h> and all we need is size_t.
112335         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
112336         our interface, instead of including <sys/types.h>
112338 2003-06-04  Paul Eggert  <eggert@twinsun.com>
112340         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
112341         now, as glibc mktime is buggy on non-glibc systems.
112343 2003-06-03  Karl Berry  <karl@gnu.org>
112345         * config/config.sub: update from prep.
112347 2003-06-02  Paul Eggert  <eggert@twinsun.com>
112349         [from coreutils]
112350         Fix some minor time-related bugs with POSIX time arguments.
112351         Some valid time stamps were being rejected (notably -1, and
112352         time stamps before 1900 on 64-bit hosts).  And some invalid
112353         time stamps were being accepted, e.g. September 31.
112355         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
112356         that we can return (time_t) -1 successfully.
112357         * lib/posixtm.c: Likewise.
112358         [HAVE_STDBOOL_H]: Include <stdbool.h>.
112359         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
112360         (t): Remove static var.
112361         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
112362         of static var.  All uses changed.
112363         (year): Do not reject years before 1900; they can occur with
112364         64-bit time_t.
112365         (posix_time_parse): Do not check for out-of-range components;
112366         that is now the caller's responsibility, since our checks were
112367         only approximations.
112368         (posixtime): Use mktime to check for out-of-range components,
112369         since it knows them exactly.
112370         If mktime returns (time_t) -1, check whether an error actually occurred
112371         by invoking localtime on -1.
112372         (main) [TEST_POSIXTIME]: Check for input data errors, and report
112373         posixtime failures better.
112374         Improve the test data (in comments only).
112376 2003-06-02  Karl Berry  <karl@gnu.org>
112378         * config/mkinstalldirs (version): new variable.
112379         (--version): new option.
112380         (usage): improve message.
112382 2003-05-30  Karl Berry  <karl@gnu.org>
112384         * lib/mktime.c: update from libc.
112386 2003-05-30  Bruno Haible  <bruno@clisp.org>
112388         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
112389         * config/config.rpath: Upgrade to gettext-0.12.1.
112391 2003-05-30  Bruno Haible  <bruno@clisp.org>
112393         * m4/gettext.m4: Upgrade to gettext-0.12.1.
112394         * m4/nls.m4: New file, from gettext-0.12.1.
112395         * m4/po.m4: New file, from gettext-0.12.1.
112396         * m4/progtest.m4: Upgrade to gettext-0.12.1.
112398 2003-05-30  Bruno Haible  <bruno@clisp.org>
112400         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
112401         * lib/localcharset.h: Likewise.
112402         * lib/localcharset.c: Likewise.
112404 2003-05-29  Karl Berry  <karl@gnu.org>
112406         * config/config.rpath: update from gettext.
112408 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112410         Assume the headers required for C89 freestanding compilers.
112411         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
112412         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
112413         * m4/human.m4 (gl_HUMAN): Likewise.
112414         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
112415         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
112416         * m4/userspec.m4 (gl_USERSPEC): Likewise.
112417         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
112418         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112419         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
112421 2003-05-28  Paul Eggert  <eggert@twinsun.com>
112423         Assume the headers required for C89 freestanding compilers.
112424         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
112425         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
112426         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
112427         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
112428         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
112429         define, since <limits.h> is guaranteed to do that.
112430         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
112431         * lib/exclude.c: Include <stdbool.h> unconditionally.
112432         * lib/tempname.c: Include <stddef.h> unconditionally.
112433         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
112434         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
112435         <stddef.h> does that.
112436         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
112437         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
112438         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
112439         needed.
112440         * lib/xstrtol.c: Likewise.
112441         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
112442         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
112444         * lib/addext.c (addext): Use assignment rather than cast, to avoid
112445         warnings on some platforms.
112447         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
112448         arbitrarily.
112450 2003-05-26  Jim Meyering  <jim@meyering.net>
112452         Merge in a change from coreutils:
112453         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
112454         that is guaranteed to be `no'.  Use `no_such_member' to indicate
112455         that condition, rather than `-1' which is slightly misleading.
112456         Change the name of the cache variable to have the gl_ prefix.
112457         Prompted by a patch from Richard Dawe for DJGPP.
112459 2003-05-24  Karl Berry  <karl@gnu.org>
112461         * config/config.guess: update from prep.
112463 2003-05-22  Karl Berry  <karl@gnu.org>
112465         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
112467 2003-05-20  Karl Berry  <karl@gnu.org>
112469         * config/config.guess: update from prep.
112471 2003-05-18  Karl Berry  <karl@gnu.org>
112473         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
112474         might actually be set by the user.
112476         * config/depcomp, install-sh, mdate-sh: update from automake.
112478 2003-05-17  Bruno Haible  <bruno@clisp.org>
112480         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
112481         invalid expansion for AC_EGREP_CPP.
112482         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
112483         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
112484         Suggested by Akim Demaille <akim@epita.fr> in
112485         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
112487 2003-05-12  Jim Meyering  <jim@meyering.net>
112489         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
112490         the space-padded-by-default conversion specifiers, %e, %k, %l.
112492 2003-05-12  Bruno Haible  <bruno@clisp.org>
112494         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
112495         the string is longer than 4 KB.
112497 2003-05-11  Karl Berry  <karl@gnu.org>
112499         * config/config.{guess,sub}: update from prep.
112501 2003-05-09  Bruno Haible  <bruno@clisp.org>
112503         * modules/error: Add m4/strerror_r.m4 to file list.
112505 2003-05-03  Bruno Haible  <bruno@clisp.org>
112507         Upgrade to Unicode-4.0.
112508         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
112509         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
112510         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
112511         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
112512         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
112513         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
112514         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
112515         Change width of U+E0100..U+E01EF from 1 to 0.
112517 2003-04-25  Jim Meyering  <jim@meyering.net>
112519         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
112520         of type size_t, not int.
112522 2003-04-25  Bruno Haible  <bruno@clisp.org>
112524         * lib/copy-file.c: Include <stddef.h>, for size_t.
112526 2003-04-21  Paul Eggert  <eggert@twinsun.com>
112528         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
112529         code which expansion is under static control.  Patch imported from
112530         Akim Demaille's patch to Bison; see
112531         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
112533 2003-04-14  Bruno Haible  <bruno@clisp.org>
112535         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
112537 2003-04-11  Jim Meyering  <jim@meyering.net>
112539         Merge changes from Coreutils.
112541         2003-03-22  Jim Meyering  <jim@meyering.net>
112543         * lib/strftime.c (widen): Cast alloca return value to proper type.
112545         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
112547         From GNU libc.
112548         * lib/strftime.c (my_strftime): Handle very large width
112549         specifications for numeric values correctly.  Improve checks for
112550         overflow.
112552         2003-01-19  Jim Meyering  <jim@meyering.net>
112554         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
112555         definitions.
112556         (nl_get_alt_digit) [! defined my_strftime]: Define.
112557         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
112558         _nl_get_alt_digit and _nl_get_walt_digit.
112560         * lib/strftime.c (my_strftime): Merge in locale-related changes from
112561         libc. These changes have no effect outside of _LIBC.
112563 2003-04-10  Bruno Haible  <bruno@clisp.org>
112565         * modules/findprog: New file.
112566         * MODULES.html.sh (func_all_modules): Add it.
112568 2003-04-10  Bruno Haible  <bruno@clisp.org>
112570         * m4/findprog.m4: New file.
112571         * m4/eaccess.m4: New file.
112573 2003-04-10  Bruno Haible  <bruno@clisp.org>
112575         * lib/findprog.h: New file, from GNU gettext.
112576         * lib/findprog.c: New file, from GNU gettext.
112578 2003-04-05  Jim Meyering  <jim@meyering.net>
112580         Merge changes from Coreutils.
112582         * lib/exclude.h (PARAMS): Remove definition and uses.
112583         * lib/exclude.c: Remove uses of `PARAMS'.
112585         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
112586         Add test-cases for DOS filenames. Declare program_name.
112587         (main): Set up program_name.  Patch by Rich Dawe.
112589         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
112590         error from mntctl.
112591         Use mntctl's return value to drive the entry-processing loop, since
112592         we can't rely on the value of the vmt_length member in the last
112593         entry.  On some systems doing so could result in exhausting
112594         virtual memory.  Based in part on a patch from Mike Jetzer.
112596 2003-04-04  Bruno Haible  <bruno@clisp.org>
112598         * modules/linebreak: New file.
112599         * MODULES.html.sh (func_all_modules): Add it.
112601 2003-04-04  Bruno Haible  <bruno@clisp.org>
112603         * m4/linebreak.m4: New file.
112605 2003-04-04  Bruno Haible  <bruno@clisp.org>
112607         * lib/linebreak.h: New file, from GNU gettext.
112608         * lib/linebreak.c: New file, from GNU gettext with slight
112609         modifications.
112610         * lib/lbrkprop.h: New file, from GNU gettext.
112612 2003-04-03  Bruno Haible  <bruno@clisp.org>
112614         * modules/utf8-ucs4: New file.
112615         * modules/utf16-ucs4: New file.
112616         * modules/ucs4-utf8: New file.
112617         * modules/ucs4-utf16: New file.
112618         * MODULES.html.sh (func_all_modules): Add them.
112620 2003-04-03  Bruno Haible  <bruno@clisp.org>
112622         * m4/utf-ucs4.m4: New file.
112623         * m4/ucs4-utf.m4: New file.
112625 2003-04-03  Bruno Haible  <bruno@clisp.org>
112627         * lib/utf8-ucs4.h: New file, from GNU gettext.
112628         * lib/utf16-ucs4.h: New file, from GNU gettext.
112629         * lib/ucs4-utf8.h: New file, from GNU gettext.
112630         * lib/ucs4-utf16.h: New file, from GNU gettext.
112632 2003-04-02  Bruno Haible  <bruno@clisp.org>
112634         * modules/binary-io: New file.
112635         * MODULES.html.sh (func_all_modules): Add it.
112637 2003-04-02  Bruno Haible  <bruno@clisp.org>
112639         * lib/binary-io.h: New file, from GNU gettext.
112641 2003-04-01  Bruno Haible  <bruno@clisp.org>
112643         * modules/pathname: New file.
112644         * MODULES.html.sh (func_all_modules): Add it.
112646 2003-04-01  Bruno Haible  <bruno@clisp.org>
112648         * lib/pathname.h: New file, from GNU gettext.
112649         * lib/concatpath.c: New file, from GNU gettext.
112651 2003-03-30  Bruno Haible  <bruno@clisp.org>
112653         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
112655 2003-03-30  Bruno Haible  <bruno@clisp.org>
112657         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
112658         function chown() doesn't exist.
112660 2003-03-28  Bruno Haible  <bruno@clisp.org>
112662         * modules/copy-file: New file.
112663         * MODULES.html.sh (func_all_modules): Add it.
112665 2003-03-28  Bruno Haible  <bruno@clisp.org>
112667         * m4/copy-file.m4: New file.
112669 2003-03-28  Bruno Haible  <bruno@clisp.org>
112671         * lib/copy-file.h: New file, from GNU gettext.
112672         * lib/copy-file.c: New file, from GNU gettext.
112674 2003-03-18  Jim Meyering  <jim@meyering.net>
112676         * lib/quote.c (quote_n): Fix typo in comment.
112678 2003-03-18  Bruno Haible  <bruno@clisp.org>
112680         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
112681         checking.
112682         * m4/onceonly_2_57.m4: Likewise.
112684 2003-03-17  Bruno Haible  <bruno@clisp.org>
112686         * m4/onceonly.m4: Require autoconf 2.54 or newer.
112687         (m4_quote): Remove macro.
112688         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
112690 2003-03-14  Jim Meyering  <jim@meyering.net>
112692         Merge changes from Coreutils.
112693         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
112694         to be const, in order to avoid warnings.
112695         (obstack_room): Likewise.
112696         (obstack_empty_p): Likewise.
112698 2003-03-14  Bruno Haible  <bruno@clisp.org>
112700         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
112701         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
112703 2003-03-13  Paul Eggert  <eggert@twinsun.com>
112705         Merge changes from Bison.
112706         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
112707         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
112708         when compiling Bison 1.875's `bitset bset = obstack_alloc
112709         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
112710         * lib/hash.c: Include <stdbool.h> unconditionally.
112712 2003-03-13  Paul Eggert  <eggert@twinsun.com>
112714         * m4/onceonly.m4 (m4_quote): New macro.
112715         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
112716         Quote AC_FOREACH variable-expansions properly.
112718 2003-03-13  Paul Eggert  <eggert@twinsun.com>
112720         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
112722 2003-03-09  Paul Eggert  <eggert@twinsun.com>
112724         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
112725         Reported by Bruce Becker; see:
112726         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
112728 2003-03-03  Paul Eggert  <eggert@twinsun.com>
112729             Bruno Haible  <bruno@clisp.org>
112731         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
112732         Reported by John Hughes, see
112733         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
112735 2003-02-20  Bruno Haible  <bruno@clisp.org>
112737         * MODULES.html.sh (func_all_modules): Add poll.
112739 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
112741         * modules/poll: New file.
112743 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
112745         * lib/poll_.h: New file.
112746         * lib/poll.c: New file.
112748 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
112750         * m4/poll.m4: New file.
112752 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
112754         * modules/mathl: New file.
112756 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
112758         * lib/mathl.h: New file.
112759         * lib/acosl.c: New file.
112760         * lib/asinl.c: New file.
112761         * lib/atanl.c: New file.
112762         * lib/ceill.c: New file.
112763         * lib/cosl.c: New file.
112764         * lib/expl.c: New file.
112765         * lib/floorl.c: New file.
112766         * lib/frexpl.c: New file.
112767         * lib/ldexpl.c: New file.
112768         * lib/logl.c: New file.
112769         * lib/sincosl.c: New file.
112770         * lib/sinl.c: New file.
112771         * lib/sqrtl.c: New file.
112772         * lib/tanl.c: New file.
112773         * lib/trigl.c: New file.
112774         * lib/trigl.h: New file.
112776 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
112778         * m4/mathl.m4: New file.
112780 2003-02-18  Bruno Haible  <bruno@clisp.org>
112782         * MODULES.html.sh (func_all_modules): Add mathl.
112784 2003-02-17  Bruno Haible  <bruno@clisp.org>
112786         * modules/mkdtemp: New module.
112787         * MODULES.html.sh (func_all_modules): Add it.
112789 2003-02-17  Bruno Haible  <bruno@clisp.org>
112791         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
112793 2003-02-17  Bruno Haible  <bruno@clisp.org>
112795         * lib/mkdtemp.h: New file, from GNU gettext.
112796         * lib/mkdtemp.c: New file, from GNU gettext.
112798 2003-02-02  Jim Meyering  <jim@meyering.net>
112800         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
112801         e.g. glibc-2.2.93.
112803 2003-01-31  Bruno Haible  <bruno@clisp.org>
112805         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
112806         'rpl_rename'.
112807         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
112808         'rpl_strnlen'.
112809         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
112810         'rpl_strtod'.
112811         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
112812         'rpl_utime'.
112814 2003-01-31  Bruno Haible  <bruno@clisp.org>
112816         * lib/rename.c: #undef rename before defining rpl_rename.
112817         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
112819 2003-01-30  Bruno Haible  <bruno@clisp.org>
112821         * modules/vasnprintf, modules/vasprintf: New modules.
112822         * MODULES.html.sh (func_all_modules): Add them.
112824 2003-01-30  Bruno Haible  <bruno@clisp.org>
112826         * m4/signed.m4: New file, from GNU gettext.
112827         * m4/longdouble.m4: New file, from GNU gettext.
112828         * m4/wchar_t.m4: New file, from GNU gettext.
112829         * m4/wint_t.m4: New file, from GNU gettext.
112830         * m4/vasnprintf.m4: New file.
112831         * m4/vasprintf.m4: New file.
112833 2003-01-30  Bruno Haible  <bruno@clisp.org>
112835         * lib/printf-args.h: New file, from GNU gettext.
112836         * lib/printf-args.c: New file, from GNU gettext.
112837         * lib/printf-parse.h: New file, from GNU gettext.
112838         * lib/printf-parse.c: New file, from GNU gettext.
112839         * lib/vasnprintf.h: New file, from GNU gettext.
112840         * lib/vasnprintf.c: New file, from GNU gettext.
112841         * lib/asnprintf.c: New file, from GNU gettext.
112842         * lib/vasprintf.h: New file, from GNU gettext with modifications.
112843         * lib/vasprintf.c: New file, from GNU gettext.
112844         * lib/asprintf.c: New file, from GNU gettext.
112846 2003-01-29  Bruno Haible  <bruno@clisp.org>
112848         * modules/stpncpy: New module.
112849         * MODULES.html.sh (func_all_modules): Add it.
112851 2003-01-29  Bruno Haible  <bruno@clisp.org>
112853         * m4/stpncpy.m4: New file.
112855 2003-01-29  Bruno Haible  <bruno@clisp.org>
112857         * lib/stpncpy.h: New file, from GNU gettext with modifications.
112858         * lib/stpncpy.c: New file, from GNU gettext with modifications.
112860 2003-01-28  Bruno Haible  <bruno@clisp.org>
112862         * modules/c-ctype: New module.
112863         * MODULES.html.sh (func_all_modules): Add it.
112865 2003-01-28  Bruno Haible  <bruno@clisp.org>
112867         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
112868         Paul Eggert.
112869         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
112870         Paul Eggert.
112872 2003-01-27  Bruno Haible  <bruno@clisp.org>
112874         * modules/xsetenv: New module.
112875         * MODULES.html.sh (func_all_modules): Add it.
112877 2003-01-27  Bruno Haible  <bruno@clisp.org>
112879         * lib/xsetenv.h: New file, from GNU gettext.
112880         * lib/xsetenv.c: New file, from GNU gettext.
112882 2003-01-23  Jim Meyering  <jim@meyering.net>
112884         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
112885         from working on systems without dirfd (at least Irix and OSF1/Tru64).
112887 2003-01-23  Bruno Haible  <bruno@clisp.org>
112889         * modules/minmax: New module.
112890         * MODULES.html.sh (func_all_modules): Add it.
112892 2003-01-23  Bruno Haible  <bruno@clisp.org>
112894         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
112895         Eggert.
112897 2003-01-22  Bruno Haible  <bruno@clisp.org>
112899         * modules/exit: New module.
112900         * MODULES.html.sh (func_all_modules): Add it.
112902 2003-01-22  Bruno Haible  <bruno@clisp.org>
112904         * lib/exit.h: New file, from GNU gettext.
112906 2003-01-19  Bruno Haible  <bruno@clisp.org>
112908         * gnulib-tool: Recognize option --extract-maintainer.
112909         (func_get_maintainer): New function.
112910         * modules/*: Add Maintainer entry.
112912 2003-01-16  Jim Meyering  <jim@meyering.net>
112914         * m4/regex.m4: The `regex' struct is both input and output.
112915         Initialize it before each use.  Patch by Tim Waugh.
112917 2003-01-16  Bruno Haible  <bruno@clisp.org>
112919         * MODULES.html.sh: Add a table of contents. Add the module name as
112920         leftmost column. Add hyperlinks.
112922 2003-01-15  Bruno Haible  <bruno@clisp.org>
112924         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
112926 2003-01-15  Bruno Haible  <bruno@clisp.org>
112928         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
112929         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
112930         suffix.
112932 2003-01-15  Bruno Haible  <bruno@clisp.org>
112934         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
112936 2003-01-15  Bruno Haible  <bruno@clisp.org>
112938         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
112939         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
112941 2003-01-14  Jim Meyering  <jim@meyering.net>
112943         * lib/same.c (same_name): Tweak a comment.
112945 2003-01-14  Bruno Haible  <bruno@clisp.org>
112947         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
112948         when a string comparison is sufficient.
112950 2003-01-14  Bruno Haible  <bruno@clisp.org>
112952         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
112953         'unsigned int'.
112955 2003-01-14  Bruno Haible  <bruno@clisp.org>
112957         * lib/hash-pjw.c: Add comment about low quality of this function.
112959 2003-01-13  Bruno Haible  <bruno@clisp.org>
112961         * modules/stpcpy: Distribute lib/stpcpy.h.
112962         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
112964 2003-01-13  Bruno Haible  <bruno@clisp.org>
112966         * modules/*: Add a description.
112967         * modules/strpbrk: Fix Makefile.am snippet.
112968         * modules/strtoimax: Fix dependencies.
112969         * modules/strtoumax: Likewise.
112971 2003-01-13  Bruno Haible  <bruno@clisp.org>
112973         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
112974         * modules/alloca (Makefile.am): All object files depend on alloca.h.
112975         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
112977 2003-01-13  Bruno Haible  <bruno@clisp.org>
112979         * gnulib-tool (func_create_testdir): Store config/* files in the main
112980         directory.
112981         * config.rpath: Move to ...
112982         * config/config.rpath: ... here.
112983         * modules/gettext: Contains config/config.rpath, not config.rpath.
112984         * modules/iconv: Likewise.
112986 2003-01-12  Paul Eggert  <eggert@twinsun.com>
112988         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
112989         to avoid collisions with libcurses and libreadline.
112991         * m4/getstr.m4: Remove.
112992         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
112994 2003-01-12  Paul Eggert  <eggert@twinsun.com>
112996         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
112997         to avoid collisions with libcurses and libreadline.
112999         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
113000         * lib/getstr.h, getstr.c: Remove.
113001         * lib/getline.c: Include "getline.h", to check interface.
113002         Move body of old getstr.c here: this defines MIN_CHUNK and
113003         declares getdelim2, which is renamed from getstr.
113004         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
113006         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
113007         All uses changed.
113008         * lib/linebuffer.h: Likewise.
113009         (readline): Remove backward-compatibility macro.
113011 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113013         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113014         to avoid collisions with libcurses and libreadline.
113015         * getstr: Remove.
113016         * MODULES.html.sh: Remove getstr.
113017         * modules/getline: Depend on unlocked-io, not getstr.
113019 2003-01-12  Jim Meyering  <jim@meyering.net>
113021         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
113023 2003-01-10  Bruno Haible  <bruno@clisp.org>
113025         * modules/alloca: Change Makefile.am requirements. Simplify Include
113026         requirements. Add lib/alloca_.h to file list.
113028 2003-01-10  Bruno Haible  <bruno@clisp.org>
113030         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
113032 2003-01-10  Bruno Haible  <bruno@clisp.org>
113034         * lib/alloca_.h: New file.
113035         * lib/getdate.y: Unconditionally include alloca.h.
113036         * lib/makepath.c: Likewise.
113037         * lib/setenv.c: Likewise.
113038         * lib/userspec.c: Likewise.
113040 2003-01-09  Karl Berry  <karl@gnu.org>
113042         * MODULES.html.sh: include `dirname $0` in PATH, to find
113043         gnulib-tool.
113045 2003-01-09  Bruno Haible  <bruno@clisp.org>
113047         * modules/stdbool: Change configure.ac, Makefile.am requirements.
113048         Simplify Include requirements. Add lib/stdbool.h.in to file list.
113050 2003-01-09  Bruno Haible  <bruno@clisp.org>
113052         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
113054 2003-01-09  Bruno Haible  <bruno@clisp.org>
113056         * lib/stdbool.h.in: New file.
113058 2003-01-09  Bruno Haible  <bruno@clisp.org>
113060         * gnulib-tool (func_all_modules): Ignore files ending in ~.
113061         * MODULES.html.sh: Likewise.
113063 2003-01-08  Jim Meyering  <jim@meyering.net>
113065         * lib/full-write.c: Undefine and define-away `const' after inclusion
113066         of errno.h, not before.  Suggestion from Bruno Haible.
113068 2003-01-08  Bruno Haible  <bruno@clisp.org>
113070         * modules/full-read: Depend on full-write.
113072 2003-01-08  Bruno Haible  <bruno@clisp.org>
113074         * lib/safe-read.c: Include specification header first, to ensure its
113075         selfcontainedness.
113076         * lib/full-write.c: Likewise.
113078 2003-01-07  Jim Meyering  <jim@meyering.net>
113080         * lib/full-write.c: Rework so that it may serve to define full_read,
113081         too.
113082         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
113084 2003-01-07  Bruno Haible  <bruno@clisp.org>
113086         * lib/strtoimax.c: Include <stdint.h> as an alternative to
113087         <inttypes.h>.
113088         * lib/xstrtol.h: Likewise.
113089         * lib/xstrtoimax.c: Likewise.
113090         * lib/xstrtoumax.c: Likewise.
113091         * lib/human.h: Likewise.
113093         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
113094         on systems that have <inttypes.h> but not <stdint.h>.
113096 2003-01-07  Bruno Haible  <bruno@clisp.org>
113098         * MODULES.html.sh: Add copyright notice.
113099         (missed_files): Omit CVS directory entries.
113100         (func_module): Make it work with sed-3.02.
113101         * MODULES.txt: Remove file.
113103 2003-01-06  Jim Meyering  <jim@meyering.net>
113105         * lib/version-etc.c: Update year in translatable copyright string.
113107 2003-01-03  Karl Berry  <karl@gnu.org>
113109         * config/config.{guess,sub}: update from prep.
113111 2003-01-02  Karl Berry  <karl@gnu.org>
113113         * doc/COPYING.DOC: belatedly updated to 1.2.
113115 2003-01-01  Karl Berry  <karl@gnu.org>
113117         * gnulib-tool (func_verify_module): report module name $module in
113118         error message, not $1.
113119         * gnulib-tool (create-testdir): don't complain if destdir couldn't
113120         be created, only if it doesn't exist.
113121         * gnulib-tool (last_checkin_date): don't expand the $Date here.
113123 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113125         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
113127 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113129         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
113130         memcmp if strcoll doesn't work.
113132 2002-12-31  Bruno Haible  <bruno@clisp.org>
113134         * lib/utime.c (utime_null): No need to call ftruncate if the file was
113135         nonempty.
113137 2002-12-31  Bruno Haible  <bruno@clisp.org>
113139         * lib/memcoll.c (STRCOLL): New macro.
113140         (memcoll): Use it.
113142 2002-12-31  Bruno Haible  <bruno@clisp.org>
113144         * lib/localcharset.h: New file.
113145         * lib/localcharset.c: Include it.
113146         * lib/unicodeio.c: Likewise.
113148 2002-12-31  Bruno Haible  <bruno@clisp.org>
113150         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
113151         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
113153 2002-12-31  Bruno Haible  <bruno@clisp.org>
113155         * lib/getline.h: Include <stddef.h>, for size_t.
113157         * lib/unicodeio.h: Include <stddef.h>, for size_t.
113158         * lib/unicodeio.c: Don't include <stddef.h>.
113160 2002-12-31  Bruno Haible  <bruno@clisp.org>
113162         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
113163         HAVE_TM_ZONE.
113165 2002-12-24  Karl Berry  <karl@gnu.org>
113167         * config/config.guess: update from prep.
113169 2002-12-24  Bruno Haible  <bruno@clisp.org>
113171         General infrasructure.
113172         * m4/README: Rewritten.
113173         * m4/onceonly.m4: New file.
113174         * m4/onceonly_2_57.m4: New file.
113176         Module atexit.
113177         * m4/atexit.m4: New file.
113179         Module strtod.
113180         * m4/strtod.m4: New file.
113182         Module strtol.
113183         * m4/strtol.m4: New file.
113185         Module strtoul.
113186         * m4/strtoul.m4: New file.
113188         Module memchr.
113189         * m4/memchr.m4: New file.
113191         Module memcmp.
113192         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
113193         (jm_FUNC_MEMCMP): Invoke it.
113195         Module memcpy.
113196         * m4/memcpy.m4: New file.
113198         Module memmove.
113199         * m4/memmove.m4: New file.
113201         Module memset.
113202         * m4/memset.m4: New file.
113204         Module strcspn.
113205         * m4/strcspn.m4: New file.
113207         Module strpbrk.
113208         * m4/strpbrk.m4: New file.
113210         Module strstr.
113211         * m4/strstr.m4: New file.
113213         Module strerror.
113214         * m4/strerror.m4: New file.
113216         Module mktime.
113217         * m4/mktime.m4: Renamed from jm-mktime.m4.
113218         (gl_PREREQ_MKTIME): New macro.
113219         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
113221         Module malloc.
113222         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
113223         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
113224         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
113226         Module realloc.
113227         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
113228         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
113229         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
113231         Module strftime.
113232         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
113233         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
113234         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
113235         gl_TM_GMTOFF.
113236         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
113238         Module xalloc.
113239         * m4/xalloc.m4: New file.
113241         Module alloca.
113242         * m4/alloca.m4: New file.
113244         Module putenv.
113245         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
113246         (jm_FUNC_PUTENV): Invoke it.
113248         Module setenv.
113249         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
113250         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
113251         when invoked twice.
113252         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
113253         gt_FUNC_SETENV.
113255         Module memrchr.
113256         * m4/memrchr.m4: New file.
113258         Module stpcpy.
113259         * m4/stpcpy.m4: New file.
113261         Module strcase.
113262         * m4/strcase.m4: New file.
113264         Module strdup.
113265         * m4/strdup.m4: New file.
113267         Module strnlen.
113268         * m4/strnlen.m4: New file.
113270         Module strndup.
113271         * m4/strndup.m4: New file.
113273         Module xstrtod.
113274         * m4/xstrtod.m4: New file.
113276         Module xstrtol.
113277         * m4/xstrtol.m4: New file.
113279         Module getdate.
113280         * m4/getdate.m4: New file.
113282         Module unlocked-io.
113283         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
113284         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
113285         * m4/jm-glibc-io.m4n: Remove file.
113287         Module long-options.
113288         * m4/long-options.m4: New file.
113290         Module md5.
113291         * m4/md5.m4: New file.
113293         Module sha.
113294         * m4/sha.m4: New file.
113296         Module getstr.
113297         * m4/getstr.m4: New file.
113299         Module getline.
113300         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
113301         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
113302         <sys/types.h>, for size_t. Use the function name gnu_getline, not
113303         simply getline. Infoke gl_PREREQ_GETLINE.
113305         Module obstack.
113306         * m4/obstack.m4: New file.
113308         Module hash.
113309         * m4/hash.m4: New file.
113311         Module readtokens.
113312         * m4/readtokens.m4: New file.
113314         Module strverscmp.
113315         * m4/strverscmp.m4: New file.
113317         Module stdbool.
113318         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
113319         OSF/1.
113321         Module strtoll.
113322         * m4/strtoll.m4: New file.
113324         Module strtoull.
113325         * m4/strtoull.m4: New file.
113327         Module strtoimax.
113328         * m4/strtoimax.m4: New file.
113330         Module strtoumax.
113331         * m4/strtoumax.m4: New file.
113333         Module xstrtoimax.
113334         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
113335         jm_AC_PREREQ_XSTRTOIMAX.
113336         Moved the strtol prerequisites to strtol.m4.
113337         Moved the strtoll prerequisites to strtoll.m4.
113338         Moved the strtoimax prerequisites to strtoimax.m4.
113340         Module xstrtoumax.
113341         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
113342         jm_AC_PREREQ_XSTRTOUMAX.
113343         Moved the strtoul prerequisites to strtoul.m4.
113344         Moved the strtoull prerequisites to strtoull.m4.
113345         Moved the strtoumax prerequisites to strtoumax.m4.
113347         Module chown.
113348         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
113349         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
113351         Module dup2.
113352         * m4/dup2.m4: New file.
113354         Module ftruncate.
113355         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
113356         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
113358         Module getgroups.
113359         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
113360         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
113362         Module gettimeofday.
113363         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
113364         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
113365         gl_PREREQ_GETTIMEOFDAY.
113367         Module mkdir.
113368         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
113369         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
113371         Module mkstemp.
113372         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
113373         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
113374         jm_AC_TYPE_UINTMAX_T.
113375         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
113377         Module stat.
113378         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
113379         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
113381         Module lstat.
113382         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
113383         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
113385         Module timespec.
113386         * m4/timespec.m4 (gl_TIMESPEC): New macro.
113387         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
113388         * m4/st_mtim.m4: Indentation.
113390         Module nanosleep.
113391         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
113392         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
113393         gl_PREREQ_NANOSLEEP.
113395         Module regex.
113396         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
113397         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
113398         (gl_REGEX): New macro.
113400         Module rename.
113401         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
113402         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
113404         Module rmdir.
113405         * m4/rmdir.m4: New file.
113407         Module utime.
113408         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
113409         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
113410         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
113412         Module dirname.
113413         * m4/dirname.m4: New file.
113415         Module getopt.
113416         * m4/getopt.m4: New file.
113418         Module unistd-safer.
113419         * m4/unistd-safer.m4: New file.
113421         Module fnmatch.
113422         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
113423         declaration.
113424         (gl_PREREQ_FNMATCH_EXTRA): New macro.
113425         (gl_FUNC_FNMATCH_POSIX): New macro.
113426         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
113427         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
113428         simply fnmatch.
113430         Module exclude.
113431         * m4/exclude.m4: New file.
113433         Module human.
113434         * m4/human.m4: New file.
113436         Module acl.
113437         * m4/acl.m4: Nop.
113439         Module backupfile.
113440         * m4/backupfile.m4: New file.
113441         * m4/d-ino.m4: Indentation.
113443         Module fsusage.
113444         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
113445         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
113446         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
113448         Module dirfd.
113449         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
113450         requirements.
113452         Module euidaccess.
113453         * m4/euidaccess.m4: New file.
113455         Module file-type.
113456         * m4/file-type.m4: New file.
113458         Module fileblocks.
113459         * m4/fileblocks.m4: New file.
113461         Module filemode.
113462         * m4/filemode.m4: New file.
113464         Module isdir.
113465         * m4/isdir.m4: New file.
113467         Module lchown.
113468         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
113469         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
113471         Module makepath.
113472         * m4/makepath.m4: New file.
113474         Module modechange.
113475         * m4/modechange.m4: New file.
113477         Module mountlist.
113478         * m4/mountlist.m4: New file.
113479         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
113480         Indentation.
113482         Module path-concat.
113483         * m4/path-concat.m4: New file.
113485         Module pathmax.
113486         * m4/pathmax.m4: New file.
113488         Module same.
113489         * m4/same.m4: New file.
113491         Module save-cwd.
113492         * m4/save-cwd.m4: New file.
113494         Module savedir.
113495         * m4/savedir.m4: New file.
113497         Module xgetcwd.
113498         * m4/xgetcwd.m4: New file.
113499         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
113501         Module xreadlink.
113502         * m4/xreadlink.m4: New file.
113504         Module safe-read.
113505         * m4/safe-read.m4: New file.
113507         Module safe-write.
113508         * m4/safe-write.m4: New file.
113510         Module closeout.
113511         * m4/closeout.m4: New file.
113513         Module stdio-safer.
113514         * m4/stdio-safer.m4: New file.
113516         Module getpass.
113517         * m4/getpass.m4: New file.
113519         Module getugroups.
113520         * m4/getugroups.m4: New file.
113522         Module group-member.
113523         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
113524         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
113526         Module idcache.
113527         * m4/idcache.m4: New file.
113529         Module userspec.
113530         * m4/userspec.m4: New file.
113532         Module gettime.
113533         * m4/clock_time.m4: New file.
113534         * m4/gettime.m4: New file.
113536         Module settime.
113537         * m4/settime.m4: New file.
113539         Module posixtm.
113540         * m4/posixtm.m4: New file.
113542         Module gethostname.
113543         * m4/gethostname.m4: New file.
113545         Module canon-host.
113546         * m4/canon-host.m4: New file.
113548         Module gettext.
113549         * m4/codeset.m4: New file, from gettext-0.11.5.
113550         * m4/gettext.m4: New file, from gettext-0.11.5.
113551         * m4/glibc21.m4: New file, from gettext-0.11.5.
113552         * m4/iconv.m4: New file, from gettext-0.11.5.
113553         * m4/intdiv0.m4: New file, from gettext-0.11.5.
113554         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
113555         * m4/inttypes.m4: New file, from gettext-0.11.5.
113556         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
113557         * m4/isc-posix.m4: New file, from gettext-0.11.5.
113558         * m4/lcmessage.m4: New file, from gettext-0.11.5.
113559         * m4/lib-ld.m4: New file, from gettext-0.11.5.
113560         * m4/lib-link.m4: New file, from gettext-0.11.5.
113561         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
113562         * m4/progtest.m4: New file, from gettext-0.11.5.
113563         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
113564         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
113565         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
113567         Module localcharset.
113568         * m4/localcharset.m4: New file.
113570         Module hard-locale.
113571         * m4/hard-locale.m4: New file.
113573         Module mbswidth.
113574         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
113575         onceonly macros.
113576         * m4/mbrtowc.m4: Add comment.
113578         Module memcasecmp.
113579         * m4/memcasecmp.m4: New file.
113581         Module memcoll.
113582         * m4/memcoll.m4: New file.
113584         Module unicodeio.
113585         * m4/unicodeio.m4: New file.
113587         Module rpmatch.
113588         * m4/rpmatch.m4: New file.
113590         Module yesno.
113591         * m4/yesno.m4: New file.
113593         Module exitfail.
113594         * m4/exitfail.m4: New file.
113596         Module c-stack.
113597         * m4/c-stack.m4 (gl_C_STACK): New macro.
113598         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
113600         Module error.
113601         * m4/error.m4 (gl_ERROR): New macro.
113602         (jm_PREREQ_ERROR): Use onceonly macros.
113604         Module fatal.
113605         * m4/fatal.m4: New file.
113607         Module getloadavg.
113608         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
113609         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
113611         Module getpagesize.
113612         * m4/getpagesize.m4: New file.
113614         Module getusershell.
113615         * m4/getusershell.m4: New file.
113617         Module physmem.
113618         * m4/physmem.m4: New file.
113620         Module posixver.
113621         * m4/posixver.m4: New file.
113623         Module quotearg.
113624         * m4/quotearg.m4: New file.
113626         Module quote.
113627         * m4/quote.m4: New file.
113629         Module readutmp.
113630         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
113632         Module sig2str.
113633         * m4/sig2str.m4: New file.
113635         Other.
113636         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
113637         ulonglong.m4.
113638         * m4/intmax_t.m4: New file.
113639         * m4/d-type.m4: Indentation.
113640         * m4/jm-macros.m4: Update.
113641         * m4/prereq.m4 (jm_PREREQ): Update.
113642         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
113643         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
113644         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
113645         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
113646         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
113647         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
113648         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
113649         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
113650         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
113651         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
113652         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
113653         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
113654         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
113655         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
113656         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
113657         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
113658         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
113659         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
113660         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
113662 2002-12-24  Bruno Haible  <bruno@clisp.org>
113664         * MODULES.txt: Update according to m4/ changes.
113666         Module gettext.
113667         * config.rpath: New file, from gettext-0.11.5.
113669         * modules/*: New module descriptions.
113670         * gnulib-tool: New file.
113671         * MODULES.html.sh: New file.
113673 2002-12-21  Karl Berry  <karl@gnu.org>
113675         * doc/fdl.texi: update to version 1.2.
113677 2002-12-19  Karl Berry  <karl@gnu.org>
113679         * config/config.guess: update from prep.
113681 2002-12-18  Bruno Haible  <bruno@clisp.org>
113683         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
113684         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
113686 2002-12-17  Bruno Haible  <bruno@clisp.org>
113688         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
113689         stdlib.h, string.h.
113691 2002-12-17  Bruno Haible  <bruno@clisp.org>
113693         * lib/canon-host.c (strdup): Remove unused declaration.
113695         * lib/fsusage.c: Include full_read.h.
113696         (get_fs_usage): Use full_read instead of safe_read.
113698         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
113700 2002-12-12  Karl Berry  <karl@gnu.org>
113702         * config/config.guess: update from prep.
113704 2002-12-11  Bruno Haible  <bruno@clisp.org>
113706         * m4/setenv.m4: New file, from gettext-0.11.5.
113708 2002-12-11  Bruno Haible  <bruno@clisp.org>
113710         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
113711         not unsetenv().
113712         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
113713         modifications:
113715         2002-12-11  Bruno Haible  <bruno@clisp.org>
113717                 * setenv.c (alloca): Fall back to malloc.
113718                 (freea): New macro.
113719                 (setenv): Use freea() to free memory allocated with alloca().
113721         2002-11-13  Bruno Haible  <bruno@clisp.org>
113723                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
113724                 function declarations.
113725                 * unsetenv.c (unsetenv): Likewise.
113727         2002-03-04  Bruno Haible  <bruno@clisp.org>
113729                 Portability to AIX 4.3.3.
113730                 * unsetenv.c: New file, extracted from setenv.c.
113731                 * setenv.c: Move the unsetenv() function to unsetenv.c.
113733         2001-12-20  Bruno Haible  <bruno@clisp.org>
113735                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
113736                 use malloc instead. For SunOS 4.
113738         2001-12-11  Bruno Haible  <bruno@clisp.org>
113740                 * setenv.c: Declare alloca.
113741                 (compar_fn_t): New typedef.
113742                 (KNOWN_VALUE, STORE_VALUE): Use it.
113744         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
113745         setenv.h.
113747 2002-12-10  Paul Eggert  <eggert@twinsun.com>
113749         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
113750         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
113751         Choose values that are less likely to collide with system fnmatch
113752         options.
113753         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
113754         defined (e.g., a pure POSIX system).
113755         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
113756         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
113758 2002-12-06  Paul Eggert  <eggert@twinsun.com>
113760         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
113761         a pain in practice to deal with generated m4 files.  This change
113762         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
113764         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
113765         and jm-glibc-io.m4, as they are no longer a special case.
113766         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
113767         kludge and the auto-generation stuff.  Check only whether the
113768         functions are declared, not whether they exist, since older hosts
113769         that don't declare the functions can't use the optimization anyway.
113771 2002-12-06  Jim Meyering  <jim@meyering.net>
113773         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
113775         Merge in changes from libc's misc/error.c, in preparation
113776         for the merge of gnulib's changes back into libc.
113778         * lib/error.c (_): Define only if not already defined.
113779         Move definition to follow all #include directives.
113780         Include unlocked-io.h only if !_LIBC.
113781         [_LIBC]: Include <libio/libioP.h>.
113782         [USE_IN_LIBIO]: Include <libio/iolibio.h>
113783         (fflush): Tweak definition to use INTUSE.
113784         (putc): Define.
113786 2002-12-05  Paul Eggert  <eggert@twinsun.com>
113788         * lib/alloca.c [defined emacs]: Include "lisp.h".
113789         (xalloc_die) [defined emacs]: New macro.
113790         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
113791         [! defined emacs]: Include <xalloc.h>.
113792         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
113793         (pointer): Typedef to POINTER_TYPE *.
113794         (malloc): Remove decl; we now always use xmalloc.
113795         (alloca): Use old-style definition, since Emacs needs this.
113796         Check for arithmetic overflow when computing combined size.
113798 2002-12-04  Paul Eggert  <eggert@twinsun.com>
113800         Do not generate unlocked-io.h automatically, since it's easier to
113801         maintain it by hand.
113803         * lib/unlocked-io.h: New file, from GNU diffutils,
113804         but with proper copyright notice and attribution.
113805         * lib/gen-uio: Remove.
113806         * lib/Makefile.am: Add copyright notice.
113807         (libfetish_a_SOURCES): Add unlocked-io.h.
113808         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
113809         (DISTCLEANFILES, io_functions): Remove macros.
113810         (EXTRA_DIST): Remove gen_uio.
113811         (unlocked-io.h): Remove rule.
113813 2002-12-04  Jim Meyering  <jim@meyering.net>
113815         Reflect the fact that stat.c and lstat.c are no longer generated.
113816         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
113817         (DISTCLEANFILES): Likewise.
113818         (EXTRA_DIST): Likewise.
113819         (all_local): Don't depend on stat.c or lstat.c.
113820         (stat.c, lstat.c): Remove rules.
113821         (EXTRA_DIST): Remove xstat.in.
113823         * lib/xstat.in: Remove file.  Contents moved into stat.c.
113824         * lib/stat.c: New file.  Contents mostly from xstat.in.
113825         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
113826         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
113828         * lib/safe-read.c: Rework so that it may serve to define safe_write,
113829         too.
113830         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
113832 2002-12-03  Jim Meyering  <jim@meyering.net>
113834         * lib/safe-read.c, safe-write.c: Change variable names and comments,
113835         but not semantics, to minimize the differences between these two files.
113836         (safe_read): Change comment to mention SAFE_READ_ERROR.
113838         * lib/safe-read.c (IS_EINTR): Define.
113839         (safe_read): Use IS_EINTR in place of in-function cpp directives.
113841 2002-12-02  Jim Meyering  <jim@meyering.net>
113843         * lib/safe-read.c (EINTR): Define.
113844         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
113845         (INT_MAX): Provide fallback.
113846         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
113848         * lib/safe-read.h (SAFE_READ_ERROR): Define.
113850 2002-12-02  Bruno Haible  <bruno@clisp.org>
113852         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
113853         Define, taken from safe-read.c.
113854         (INT_MAX): Provide fallback.
113855         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
113856         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
113858         * lib/safe-read.c (EINTR): Remove definition.
113859         (safe_read): Don't use EINTR if it is absent.
113861 2002-12-01  Jim Meyering  <jim@meyering.net>
113863         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
113864         zero.
113865         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
113867 2002-11-27  Paul Eggert  <eggert@twinsun.com>
113869         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
113870         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
113871         with `if (! (value < limit)) abort ();', for readability.
113873 2002-11-26  Karl Berry  <karl@gnu.org>
113875         * lib/strdup.c: copy from libc again, with jim's ok.
113876         * lib/.cppi-disable: re-add strdup.c
113878 2002-11-25  Karl Berry  <karl@gnu.org>
113880         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
113881         instead of "strtol.c".
113883 2002-11-25  Karl Berry  <karl@gnu.org>
113885         * config/install-sh: update from automake for variable quoting, $0 in
113886         error msgs, etc.
113888         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
113889         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
113890         entry.
113892 2002-11-25  Jim Meyering  <jim@meyering.net>
113894         * lib/mktime.c: Sync from libc, now that it has the latest fix.
113896 2002-11-24  Karl Berry  <karl@gnu.org>
113898         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
113899         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
113901 2002-11-24  Jim Meyering  <jim@meyering.net>
113903         Update from coreutils:
113905         * lib/mktime.c: Merge in changes from libc.
113907         Avoid a link-time failure on some Linux systems.
113908         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
113909         (otherwise).
113910         (__mon_yday): Declare with the STATIC attribute.
113911         (__mktime_internal): Likewise.
113912         Based on a report from Greg Schafer.
113914 2002-11-23  Jim Meyering  <jim@meyering.net>
113916         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
113917         Use `unsigned', not `int', as type of index.
113919         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
113921         * lib/fsusage.c: Remove unneeded parentheses around operands of
113922         `defined'.
113924 2002-11-22  Paul Eggert  <eggert@twinsun.com>
113926         * lib/quotearg.h: Allow multiple inclusion by surrounding with
113927         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
113928         so that we can be included first.
113929         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
113930         * lib/quotearg.c: Include quotearg.h immediately after config.h.
113931         No need to include stddef.h or sys/types.h any more.
113932         Surround local include files with "", not "<>".
113933         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
113934         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
113935         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
113936         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
113937         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
113938         (ISPRINT): Remove; no longer needed now that we assume C89.
113940         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
113941         Preserve errno.
113943         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
113944         quotearg_char): Use SIZE_MAX rather than
113945         (size_t) -1 when we are talking about "infinity".
113947         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
113949 2002-11-22  Paul Eggert  <eggert@twinsun.com>
113951         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
113952         hint that one should use `if (! x) abort ();' rather than `assert
113953         (x);', and anyway it's one less thing to worry about configuring.
113954         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
113955         hash_rehash, hash_insert): Use abort rather than assert.
113957 2002-11-22  Bruno Haible  <bruno@clisp.org>
113959         * lib/safe-read.h: Assume C89. Add comments.
113960         (safe_read): Change return type to size_t.
113961         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
113962         byte counts > SSIZE_MAX correctly.
113963         * lib/safe-write.h: New file.
113964         * lib/safe-write.c: New file.
113965         * lib/full-read.h: New file.
113966         * lib/full-read.c: New file.
113967         * lib/full-write.h: Assume C89. Add comments.
113968         * lib/full-write.c: Include safe-write.h.
113969         (full_write): Rewritten to use safe_write.
113970         Suggested by Jim Meyering and Paul Eggert.
113972 2002-11-21  Jim Meyering  <jim@meyering.net>
113974         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
113976         Merge in changes from the coreutils.
113978         2002-09-25  Paul Eggert  <eggert@twinsun.com>
113979         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
113980         <stdint.h>.
113981         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
113982         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
113983         int.  Work more efficiently if X is the same width as uintmax_t.
113984         Do not compare X to -1, to avoid bogus compiler warning.
113985         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
113986         Don't assume that f_frsize and f_bsize are the same type.
113988         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
113989         warning on FreeBSD.
113991         * lib/makepath.c (make_path): Restore umask *before* creating the final
113992         component.
113993         (make_path): Minor reformatting.
113995         * lib/xmalloc.c: Adjust to work with new autoconf macros,
113996         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
113997         HAVE_MALLOC/HAVE_REALLOC.
113999         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
114000         dummy ones.  At least on GNU/Linux systems, `auto' means something
114001         else.
114002         From Michael Stone.
114004 2002-11-21  Bruno Haible  <bruno@clisp.org>
114006         Remove case insensitive option matching.
114007         * lib/argmatch.h (argcasematch): Remove declaration.
114008         (ARGCASEMATCH): Remove macro.
114009         (__xargmatch_internal): Remove case_sensitive argument.
114010         (XARGMATCH): Update.
114011         (XARGCASEMATCH): Remove macro.
114012         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
114013         case_sensitive argument.
114014         (argcasematch): Remove function.
114015         (__xargmatch_internal): Remove case_sensitive argument.
114016         (main): Use XARGMATCH instead of XARGCASEMATCH.
114018         * lib/xmalloc.c: Change compile-time error message. Add comment about
114019         required autoconf version.
114021 2002-11-20  Paul Eggert  <eggert@twinsun.com>
114023         Merge argmatch cleanups from Bison.  Assume C89.
114025         * lib/argmatch.c: Include config.h here, not in argmatch.h.
114026         Include stdlib.h, for EXIT_FAILURE.
114027         Always include <string.h>, since we assume C89.
114028         (EXIT_FAILURE): Remove pre-C89 bug workaround.
114029         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
114030         Include <stddef.h> instead, since it's all we need for size_t.
114031         (PARAMS): Remove.  All uses removed.
114032         (ARRAY_CARDINALITY): Do not bother to #undef.
114033         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
114034         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114035         Remove unnecessary parentheses.
114036         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114037         Insert necessary parentheses.
114038         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
114039         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
114041 2002-11-19  Bruno Haible  <bruno@clisp.org>
114043         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
114044         * lib/mbswidth.h: Include <stddef.h>, for size_t.
114046         * lib/mbswidth.h (PARAMS): Remove macro.
114047         (mbswidth, mbsnwidth): Use ANSI C function declarations.
114048         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
114050         * lib/gcd.h (PARAMS): Remove macro.
114051         (gcd): Use ANSI C function declarations.
114052         * lib/gcd.c (gcd): Likewise.
114054 2002-11-15  Bruno Haible  <bruno@clisp.org>
114056         * lib/strcspn.c: Include <stddef.h>.
114057         (strcspn): Use ANSI C function declaration. Change return type to
114058         size_t. Use NULL.
114059         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
114060         (strpbrk): Use NULL.
114061         * lib/strpbrk.h (PARAMS): Remove macro.
114062         (strpbrk): Use ANSI C function declaration.
114063         * lib/strstr.c: Don't include <sys/types.h>.
114064         * lib/strstr.h (PARAMS): Remove macro.
114065         (strstr): Use ANSI C function declarations.
114067 2002-11-14  Karl Berry  <karl@gnu.org>
114069         * config/mkinstalldirs: `do' on separate line, instead of
114070         `for var; do'.
114072 2002-11-06  Bruno Haible  <bruno@clisp.org>
114074         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
114075         * lib/gcd.c (gcd): Likewise.
114077 2002-11-05  Bruno Haible  <bruno@clisp.org>
114079         * lib/gcd.h: New file, from gettext-0.11.5.
114080         * lib/gcd.c: New file, from gettext-0.11.5.
114082 2002-11-05  Bruno Haible  <bruno@clisp.org>
114084         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114085         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114086         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114087         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114089         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
114090         <libintl.h>.
114091         * lib/makepath.c: Include gettext.h instead of <locale.h> and
114092         <libintl.h>.
114094         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
114095         * lib/human.c: Include gettext.h instead of <libintl.h>.
114096         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
114097         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
114098         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
114099         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
114100         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
114101         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
114102         (textdomain): Remove definition.
114103         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
114105         * lib/long-options.c: Remove include of <libintl.h> and definition of
114106         _.
114107         * lib/same.c: Remove include of <libintl.h> and definition of _.
114109 2002-11-04  Owen Taylor  <otaylor@redhat.com>
114111         * lib/config.charset: A few additions for Solaris.
114113 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114115         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
114116         * lib/localcharset.c (locale_charset): Declare as extern "C".
114118 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114120         * lib/config.charset: msdos in uk_UA uses CP1125.
114122 2002-11-04  Bruno Haible  <bruno@clisp.org>
114124         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
114125         * lib/strcase.h: New file, from GNU gettext-0.11.5.
114126         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
114127         * lib/strstr.h: New file, from GNU gettext-0.11.5.
114128         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
114130 2002-11-04  Bruno Haible  <bruno@clisp.org>
114132         * lib/localcharset.c (locale_charset): Don't return an empty string.
114134 2002-11-04  Bruno Haible  <bruno@clisp.org>
114136         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
114137         aliases.
114139 2002-11-04  Bruno Haible  <bruno@clisp.org>
114141         * lib/config.charset: Update for newest glibc. Add canonical names
114142         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
114144 2002-11-04  Bruno Haible  <bruno@clisp.org>
114146         * lib/config.charset: Add support for NetBSD.
114148 2002-11-04  Bruno Haible  <bruno@clisp.org>
114150         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
114152 2002-11-01  Bruno Haible  <bruno@clisp.org>
114154         * configure.in: Add AC_CONFIG_AUX_DIR call.
114155         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
114156         test/Makefile.
114157         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
114159 2002-09-28  Karl Berry  <karl@gnu.org>
114161         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
114162         installed automake until the next release, since changes have been
114163         made.
114165 2002-09-25  Karl Berry  <karl@gnu.org>
114167         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
114168         * lib/getopt*: copy from libc/posix.
114169         * lib/gettext.h: copy from gettext.
114170         * lib/.cppi-disable: add strdup.c, gettext.h.
114172 2002-09-25  Karl Berry  <karl@gnu.org>
114174         * config/srclist.txt: enable gettext.h check.
114175         * config/config.{guess,sub}: update from prep.
114176         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
114177                 from automake 1.6.3.
114178         See srclist*.
114180 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
114182         * regex.c (PATFETCH): Remove the translating fetch.
114183         (PATFETCH_RAW): Rename to PATFETCH.
114184         (set_image_of_range): New fun.
114185         (SET_RANGE_TABLE_WORK_AREA): Use it.
114186         (regex_compile): Don't translate the pattern chars so eagerly.
114187         Only do it when inserting an `exactn' bytecode or when handling
114188         a char-range.
114189         (mutually_exclusive_p): Avoid empty statement.
114191 2002-07-06  Jim Meyering  <meyering@lucent.com>
114193         * m4/README: Don't mention Makefile.am.in.
114194         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
114196 2002-07-01  Jim Meyering  <meyering@lucent.com>
114198         * lib/c-stack.c: Include sys/time.h.
114199         From Volker Borchert.
114201 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114203         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
114205 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114207         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
114208         New macro.  Use it uniformly instead of
114209         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
114210         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
114211         reported by Vin Shelton.
114213 2002-06-22  Paul Eggert  <eggert@twinsun.com>
114215         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
114216         Do not assume SA_SIGINFO behavior.
114217         Bug reported by Jim Meyering on NetBSD 1.5.2.
114219 2002-06-22  Jim Meyering  <meyering@lucent.com>
114221         * m4/c-stack.m4: New file, from diffutils-2.8.2.
114222         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
114224         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
114225         now that configure.ac uses AC_GNU_SOURCE.
114226         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
114227         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
114229         Update to latest tools.  Suggestions from Paul Eggert.
114230         * m4/stdbool.m4: New file, from diffutils-2.8.2.
114231         * m4/gnu-source.m4: Update from diffutils-2.8.2.
114232         * m4/fnmatch.m4: Likewise.
114233         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
114234         to AC_HEADER_STDBOOL
114236 2002-06-22  Jim Meyering  <meyering@lucent.com>
114238         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
114239         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
114241 2002-06-22  Jim Meyering  <meyering@lucent.com>
114243         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
114245         * lib/exitfail.c, exitfail.h: Likewise.
114246         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
114248         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
114249         of fnmatch.h.
114250         (EXTRA_DIST): Add fnmatch_loop.c.
114251         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
114253         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
114254         * lib/fnmatch.c: Update from diffutils-2.8.2.
114255         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
114256         * lib/fnmatch.h: Remove file.
114258 2002-06-21  Jim Meyering  <meyering@lucent.com>
114260         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
114261         * m4/mbrtowc.m4: Likewise.
114263         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
114264         * m4/mbswidth.m4: Reflect name change:
114265         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
114266         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
114268         * m4/lib-link.m4: Update from gettext-0.11.2.
114269         * m4/gettext.m4: Likewise.
114271         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
114272         From Alfred M. Szmidt.
114274 2002-06-18  Paul Eggert  <eggert@twinsun.com>
114276         * lib/file-type.h: Report an error if neither S_ISREG nor
114277         S_IFREG is defined, instead of using a test specific to glibc
114278         2.2.  This should be safe, since POSIX requires S_ISREG and
114279         Unix Version 7 had S_IFREG.  We don't need to check for
114280         <sys/types.h> since we don't use any symbols that it defines.
114282 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
114284         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
114285         $@-t, so that each temporary file name is unique and valid in the first
114286         8 characters, for operation under DOS.
114288 2002-06-15  Paul Eggert  <eggert@twinsun.com>
114290         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
114292 2002-06-15  Jim Meyering  <meyering@lucent.com>
114294         Work even with DJGPP 2.03, which lacks support for symlinks.
114295         From Richard Dawe.
114296         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
114297         is defined.
114298         * lib/lchown.c (S_ISLNK): Likewise.
114300 2002-06-15  Jim Meyering  <meyering@lucent.com>
114302         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
114303         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
114304         have been included before this file.
114306 2002-06-14  Jim Meyering  <meyering@lucent.com>
114308         * lib/file-type.h: Use the version from diffutils-2.8.2.
114309         * lib/file-type.c: Likewise.
114311 2002-06-07  Jim Meyering  <meyering@lucent.com>
114313         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
114314         They're needed at least for NetBSD 1.5.2.
114315         ($statxfs_includes): Include those same headers.
114316         ($statxfs_includes): Include sys/vfs.h if available.
114317         ($statxfs_includes): Likewise for sys/statvfs.h.
114318         Check for the following members in both structs statfs and statvfs:
114319         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
114321 2002-06-01  Jim Meyering  <meyering@lucent.com>
114323         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
114324         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
114326 2002-05-28  Jim Meyering  <meyering@lucent.com>
114328         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
114329         Reported by Volker Borchert.
114331 2002-05-27  Jim Meyering  <meyering@lucent.com>
114333         Fix a problem seen only on nonconforming systems whereby ls.c's
114334         use of localtime, and then of gettimeofday would cause trouble:
114335         the localtime call used to initialize rpl_gettimeofday's save
114336         mechanism would clobber ls's current local time information so
114337         that in any long listing the first file would always be listed
114338         with date 1970-01-01.  Analysis by Volker Borchert.
114340         * lib/gettimeofday.c (localtime): Undefine.
114341         (rpl_localtime): New function.
114343 2002-05-27  Jim Meyering  <meyering@lucent.com>
114345         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
114346         localtime.
114348         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
114349         use the replacement function; it wouldn't resolve at link time.
114350         Reported by Volker Borchert.
114352 2002-05-22  Jim Meyering  <meyering@lucent.com>
114354         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
114355         file-type.h.
114356         * lib/file-type.h: New file.
114357         * lib/file-type.c (file_type): New file/function.  Extracted from
114358         diffutils.
114360 2002-04-30  Jim Meyering  <meyering@lucent.com>
114362         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
114364 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114366         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
114368 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114370         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
114371         Do not check for alloca.h (no longer used) or stdbool.h (was never
114372         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
114374 2002-04-29  Paul Eggert  <eggert@twinsun.com>
114376         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
114378 2002-04-29  Jim Meyering  <meyering@lucent.com>
114380         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
114381         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
114382         Use AC_FUNC_STRNLEN here instead.
114384         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
114385         With autoconf-2.53a, it's part of AC_PROG_CC.
114387 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114389         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
114390         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
114392 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114394         * lib/sig2str.h, lib/sig2str.c: New files.
114395         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
114397 2002-04-28  Paul Eggert  <eggert@twinsun.com>
114399         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
114400         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
114401         of 127, since 64 is the largest conceivable number for ancient
114402         nonstandard hosts.
114403         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
114405 2002-04-28  Jim Meyering  <meyering@lucent.com>
114407         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
114409 2002-04-24  Jim Meyering  <meyering@lucent.com>
114411         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
114412         (jm_PREREQ): Use it.
114414         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
114415         mach/mach.h fcntl.h.
114416         Check for this function: setlocale.
114418 2002-04-24  Jim Meyering  <meyering@lucent.com>
114420         * lib/gettext.h: New file, from Gettext.
114421         * lib/Makefile.am (INCLUDES): Remove -I../intl.
114422         (libfetish_a_SOURCES): Add gettext.h.
114424 2002-04-16  Jim Meyering  <meyering@lucent.com>
114426         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
114427         ut_pid, ut_id, ut_exit.
114429 2002-04-16  Jim Meyering  <meyering@lucent.com>
114431         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
114432         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
114433         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
114435 2002-04-12  Jim Meyering  <meyering@lucent.com>
114437         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
114438         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
114439         existence of the getmntinfo function.  Needed for Darwin 5.3.
114441         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
114442         This is necessary at least on Darwin 5.3.
114444         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
114445         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
114446         strnlen.o in the library, and that makes some versions of ranlib
114447         object.
114449 2002-04-12  Jim Meyering  <meyering@lucent.com>
114451         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
114453 2002-04-09  Jim Meyering  <meyering@lucent.com>
114455         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
114456         to be more precise.  Rather than saying we're checking whether the
114457         function `works', say what we're testing.
114458         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
114459         Reported by Bruno Haible.
114461 2002-03-10  Jim Meyering  <meyering@lucent.com>
114463         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
114464         Suggestion from Santiago Vila.
114466 2002-03-08  Jim Meyering  <meyering@lucent.com>
114468         * lib/rename.c: Mention that this wrapper is needed also on
114469         mips-dec-ultrix4.4 systems.
114471 2002-03-02  Jim Meyering  <meyering@lucent.com>
114473         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
114474         not HAVE_CLOCK_SETTIME.
114476 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114478         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
114479         Check for clock_settime.
114481 2002-02-27  Paul Eggert  <eggert@twinsun.com>
114483         * lib/nanosleep.h: Rename to....
114484         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
114486         * lib/gettime.c: New file.
114487         * lib/settime.c: New file.
114488         * lib/stime.c: Remove.
114490         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
114491         timespec.h.  Remove nanosleep.h.
114493 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114495         * m4/acl.m4: New file.
114496         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
114497         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
114499 2002-02-25  Paul Eggert  <eggert@twinsun.com>
114501         * lib/acl.c, lib/acl.h: New files.
114502         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
114504 2002-02-24  Jim Meyering  <meyering@lucent.com>
114506         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
114507         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
114508         cause trouble.  Reported by Nelson Beebe.
114510 2002-02-23  Paul Eggert  <eggert@twinsun.com>
114512         * lib/path-concat.c (xpath_concat): Reorder code to pacify
114513         compilers that don't know that xalloc_die never returns.
114515 2002-02-20  Jim Meyering  <meyering@lucent.com>
114517         * lib/getdate.c: Regenerate using bison-1.33.
114519 2002-02-17  Jim Meyering  <meyering@lucent.com>
114521         * config/config.guess (main): Don't use `head -1'; it's no longer
114522         portable. Use `sed 1q' instead.
114524 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
114526         * m4/codeset.m4: Upgrade to gettext-0.11.
114527         * m4/gettext.m4: Upgrade to gettext-0.11.
114528         * m4/glibc21.m4: Upgrade to gettext-0.11.
114529         * m4/iconv.m4: Upgrade to gettext-0.11.
114530         * m4/isc-posix.m4: Upgrade to gettext-0.11.
114531         * m4/lcmessage.m4: Upgrade to gettext-0.11.
114532         * m4/lib-ld.m4: New file, from gettext-0.11.
114533         * m4/lib-link.m4: New file, from gettext-0.11.
114534         * m4/lib-prefix.m4: New file, from gettext-0.11.
114535         * m4/progtest.m4: Upgrade to gettext-0.11.
114537 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114539         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
114540         (jm_PREREQ): Use it.
114542 2002-02-15  Paul Eggert  <eggert@twinsun.com>
114544         * lib/posixver.c, lib/posixver.h: New files.
114545         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
114547 2002-02-02  Paul Eggert  <eggert@twinsun.com>
114548             Bruno Haible  <bruno@clisp.org>
114550         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
114551         (fwrite_success_callback): New declaration.
114552         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
114553         print_unicode_char. Call failure callback instead of error.
114554         (fwrite_success_callback): New function.
114555         (exit_failure_callback): New function.
114556         (fallback_failure_callback): New function.
114557         (print_unicode_char): Call unicode_to_mb.
114559 2002-01-26  Jim Meyering  <meyering@lucent.com>
114561         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
114562         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
114564 2002-01-26  Jim Meyering  <meyering@lucent.com>
114566         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
114568 2002-01-22  Paul Eggert  <eggert@twinsun.com>
114570         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
114572 2002-01-22  Jim Meyering  <meyering@lucent.com>
114574         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
114575         Otherwise, some versions of automake would omit the rule that makes
114576         Makefile from Makefile.in.
114578 2002-01-21  Paul Eggert  <eggert@twinsun.com>
114580         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
114581         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
114582         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
114583         (memcoll): Set errno to zero if there is no error.
114585         * lib/quotearg.c (quotearg_buffer_restyled):
114586         Fix bug with quoting buffers containing NUL when backslashing escapes.
114587         This bug was exposed by the other changes in this patch.
114588         (quotearg_n_options): New arg ARGSIZE.
114589         All callers changed.
114590         (quoting_options_from_style): New function.
114591         (quotearg_n_style): Use it.
114592         (quotearg_n_style_mem): New function.
114594         * lib/quotearg.h (quotearg_n_style_mem): New function.
114596 2002-01-19  Jim Meyering  <meyering@lucent.com>
114598         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
114599         Remove useless quotes: DF_PROG="df".
114600         * m4/strnlen.m4: New file.
114602 2002-01-16  Paul Eggert  <eggert@twinsun.com>
114604         * lib/backupfile.c (ISDIGIT): Comment fix.
114605         * lib/getdate.y (ISDIGIT): Likewise.
114606         * lib/posixtm.c (ISDIGIT, year): Likewise.
114607         * lib/strverscmp.c (ISDIGIT): Likewise.
114608         * lib/userspec.c (ISDIGIT): Likewise.
114610 2002-01-16  Jim Meyering  <meyering@lucent.com>
114612         * lib/getdate.y: Add three semicolons, each just before a closing
114613         brace. Bison (as of version 1.31) no longer papers over that mistake.
114615 2002-01-05  Jim Meyering  <meyering@lucent.com>
114617         * lib/version-etc.c (version_etc_copyright): Update copyright year.
114619 2001-12-19  Paul Eggert  <eggert@twinsun.com>
114621         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
114622         not silently exit merely because the output buffer happens to
114623         have nothing pending.
114625 2001-12-18  Paul Eggert  <eggert@twinsun.com>
114627         See the big note in ../ChangeLog.
114628         * lib/human.c (suffixes): Prefer K to k for 1024.
114629         (generate_suffix_backwards): New function.
114630         (human_readable_inexact): Use it.
114631         * lib/xstrtol.c (__xstrtol): If there is no number but there
114632         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
114633         Accept 'K' as well as 'k'.
114635 2001-12-15  Jim Meyering  <meyering@lucent.com>
114637         * lib/regex.h (__restrict_arr): Update from libc.
114639         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
114640         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
114641         (STREQ): Define.
114643 2001-12-14  Jim Meyering  <meyering@lucent.com>
114645         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
114646         Suggestion from Bruno Haible.
114648 2001-12-10  Jim Meyering  <meyering@lucent.com>
114650         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
114651         xrealloc, Instead, include "xalloc.h".
114652         (initbuffer): Don't cast xmalloc return value to char*.
114653         (readline): Reword comment.
114654         Don't cast xrealloc return value to char*
114655         Return NULL, not 0.
114657 2001-12-09  Jim Meyering  <meyering@lucent.com>
114659         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
114660         about `signed and unsigned type in conditional expression'.
114661         * lib/posixtm.c (posix_time_parse): Likewise.
114663         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
114665         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
114666         to avoid a pedantic warning.
114668         * lib/getstr.c: Don't include assert.h.
114669         (getstr): Remove warning-evoking assertions.
114670         Return -1 if offset parameter is out of bounds.
114671         Change the type of a local from int to size_t.
114673         * lib/strftime.c (my_strftime_localtime_r): Include this function
114674         definition in the `#if ! HAVE_TM_GMTOFF' block.
114676         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
114677         Include xalloc.h instead.
114679 2001-12-02  Jim Meyering  <meyering@lucent.com>
114681         * lib/tempname.c: Don't declare getenv, thus reverting the change of
114682         2001-11-18.  It's no longer necessary, now that stdlib.h is always
114683         included.
114685         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
114686         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
114688 2001-11-30  Akim Demaille  <akim@epita.fr>
114690         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
114691         before being defined.
114693 2001-11-27  Paul Eggert  <eggert@twinsun.com>
114695         * lib/quotearg.h (quotearg_n, quotearg_n_style):
114696         First arg is int, not unsigned.
114697         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
114698         (SIZE_MAX, UINT_MAX): New macros.
114699         (quotearg_n_options): Abort if N is negative.
114700         Avoid overflow check on hosts where size_t is 64 bits and int
114701         is 32 bits, as overflow is impossible there.
114702         Fix off-by-one typo that caused unnecessary reallocation.
114704 2001-11-27  Jim Meyering  <meyering@lucent.com>
114706         * lib/tempname.c: Merge with version from libc.
114707         * lib/regex.c: Likewise.
114709         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
114710         systems for which STDC_HEADERS is 0, it was not included, resulting in
114711         a warning about an integer-to-pointer conversion problem with getenv.
114712         Reported by Volker Borchert.
114714 2001-11-26  Jim Meyering  <meyering@lucent.com>
114716         * lib/gtod.h: Remove file.
114717         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
114718         * lib/gettimeofday.c: Don't include gtod.h.
114719         (GTOD_init): Remove function.
114720         (rpl_gettimeofday): Do its job here instead, rather than aborting.
114721         Suggestion from Volker Borchert.
114723 2001-11-23  Jim Meyering  <meyering@lucent.com>
114725         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
114726         it.
114727         * lib/hash.c (struct hash_table): Define it here instead.
114729 2001-11-22  Jim Meyering  <meyering@lucent.com>
114731         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
114733 2001-11-20  Jim Meyering  <meyering@lucent.com>
114735         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
114736         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
114738 2001-11-19  Jim Meyering  <meyering@lucent.com>
114740         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
114741         directory.  Use "conftestXXXXXX" as the template.
114742         Suggestion from Paul Eggert.
114744         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
114745         immediately, so the test doesn't mistakenly hit the max-open-files
114746         limit.
114748 2001-11-18  Paul Eggert  <eggert@twinsun.com>
114750         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
114751         (TEMPORARIES): New macro.
114752         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
114753         removes an artificial limitation (e.g. HP-UX 10.20, where
114754         TMP_MAX is 17576).
114756 2001-11-18  Jim Meyering  <meyering@lucent.com>
114758         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
114760 2001-11-18  Jim Meyering  <meyering@lucent.com>
114762         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
114763         on SunOS 4.
114765         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
114766         files will be created before anything else.
114768 2001-11-17  Paul Eggert  <eggert@twinsun.com>
114770         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
114771         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
114773 2001-11-17  Jim Meyering  <meyering@lucent.com>
114775         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
114776         Prompted by a report from Bob Proulx.
114778         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
114779         Instead, require UTILS_FUNC_MKSTEMP.
114781 2001-11-17  Jim Meyering  <meyering@lucent.com>
114783         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
114784         Now, that's done as part of AC_FUNC_STRTOD.
114786 2001-11-17  Jim Meyering  <meyering@lucent.com>
114788         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
114789         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
114790         rather than group writable.  Patch by Juan F. Codagnone.
114792         * lib/readtokens.c: Remove explicit declarations of xmalloc and
114793         xrealloc, Instead, include "xalloc.h".
114795         * lib/mountlist.c: Include unlocked-io.h after all system headers.
114796         Remove explicit declarations of xmalloc, xrealloc,
114797         and xstrdup.  Instead, include "xalloc.h".
114799         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
114800         unlocked-io.h.
114801         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
114802         Likewise.
114803         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
114805         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
114806         Reported by Padraig Brady.
114808         * lib/mkstemp.c: #undef mkstemp.
114809         Include config.h.
114810         (rpl_mkstemp): Rename from mkstemp.
114811         Protoize.
114813 2001-11-16  Jim Meyering  <meyering@lucent.com>
114815         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
114816         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
114817         determine the amount of total physical memory, use pstat_getstatic.
114818         HPUX-11 doesn't define _SC_PHYS_PAGES.
114819         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
114820         If sysconf couldn't be used to determine the amount of available
114821         physical memory, use both pstat_getstatic and pstat_getdynamic.
114822         Based on a patch from Bob Proulx.
114824 2001-11-10  Jim Meyering  <meyering@lucent.com>
114826         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
114827         (jm_PREREQ): Use it.
114829 2001-11-09  Jim Meyering  <meyering@lucent.com>
114831         * m4/jm-macros.m4: Require autoconf-2.52f.
114832         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
114833         Use these AC_-prefixed names, not the AM_-prefixed ones.
114835         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
114837 2001-11-05  Jim Meyering  <meyering@lucent.com>
114839         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
114841 2001-11-04  Jim Meyering  <meyering@lucent.com>
114843         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
114844         $DEFS.
114846 2001-11-03  Jim Meyering  <meyering@lucent.com>
114848         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
114849         of AC_DEFUN.
114851         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
114852         know the name of the variable in the macro definition.
114854 2001-11-03  Jim Meyering  <meyering@lucent.com>
114856         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
114857         in argmatch_to_argument call.
114859         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
114860         argument.
114862         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
114863         e.g., a fault due to an attempt to free a NULL pointer.
114865 2001-11-01  Jim Meyering  <meyering@lucent.com>
114867         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
114868         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
114870 2001-11-01  Jim Meyering  <meyering@lucent.com>
114872         * lib/dirfd.c, lib/dirfd.h: New files.
114873         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
114875         * lib/hash.c (hash_print) [TESTING]: Clean up.
114877 2001-10-22  Paul Eggert  <eggert@twinsun.com>
114879         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
114880         to avoid a warning if -Wall.
114882 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
114884         * README: New file
114885         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
114886         (per RMS's instructions, this is now the canonical source)
114887         * lgpl/, gpl/: New directories.
114889 2001-10-21  Paul Eggert  <eggert@twinsun.com>
114891         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
114893 2001-10-21  Jim Meyering  <meyering@lucent.com>
114895         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
114896         this code would end up calling gettext even in packages built
114897         with --disable-nls.
114898         * lib/getopt.c (_): Likewise.
114899         * lib/regex.c (_): Likewise.
114901 2001-10-20  Paul Eggert  <eggert@twinsun.com>
114903         * m4/error.m4 (jm_PREREQ_ERROR):
114904         Do not invoke AC_CHECK_FUNCS with strerror_r, as
114905         AC_FUNC_STRERROR_R does that.
114906         Check for strerror declaration.
114908         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
114909         are supposed to have them these days.
114910         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
114911         Merge changes from latest Autoconf CVS.
114912         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
114913         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
114914         POSIX decided to standardize on the int flavor of strerror_r.
114916 2001-10-20  Paul Eggert  <eggert@twinsun.com>
114918         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
114919         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
114920         Use strerror_r that is only a macro, even if it is not a function.
114921         (strerror): Check for HAVE_DECL_STRERROR before declaring.
114922         (private_strerror): Use prototypes, not old-style function definition.
114923         (print_errno_message): New function.
114924         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
114925         char*-flavored one.
114926         (error_tail, error, error_at_line): Use it.
114928 2001-10-11  Jim Meyering  <meyering@lucent.com>
114930         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
114931         and quote_n (1, ... to avoid clobbering a buffer.
114933 2001-10-05  Jim Meyering  <meyering@lucent.com>
114935         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
114936         hash-pjw.h.
114937         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
114938         * lib/hash-pjw.h: New file.
114940 2001-09-30  Jim Meyering  <meyering@lucent.com>
114942         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
114943         `struct fsstat' has the `f_fstypename' member.
114944         Use that to define FS_TYPE, which is now used to make
114945         the getfsstat link test tighter.
114947 2001-09-30  Jim Meyering  <meyering@lucent.com>
114949         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
114950         Include <sys/ucred.h>, for Apple Darwin.
114951         Include sys/mount.h and sys/fs_types.h only if available.
114952         (FS_TYPE): Define.
114953         (read_filesystem_list): Use FS_TYPE.
114955 2001-09-29  Paul Eggert  <eggert@twinsun.com>
114957         * lib/exclude.c (excluded_filename): 0 -> false, since it's
114958         a boolean context.
114960 2001-09-29  Jim Meyering  <meyering@lucent.com>
114962         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
114963         [one-argument getmntent function]): Include stdio.h before mntent.h.
114964         SunOS 4.1.x needs it for the declaration of `FILE'.
114965         Patch by Volker Borchert.
114967         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
114968         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
114969         sys/fs_types.h, and make the link-test for getfsstat guard #include
114970         directives with appropriate #if HAVE_*_H tests so that we can
114971         detect getfsstat on Apple Darwin1.3.7 systems.
114972         Reported by Nelson Beebe.
114973         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
114975 2001-09-28  Paul Eggert  <eggert@twinsun.com>
114977         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
114978         #defines strtoimax.  Also treat the other strto* functions
114979         like strtoimax.
114981         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
114982         Check for strtoul and strtoumax,
114983         as those declarations are made even in the signed case.
114984         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
114985         Likewise, for strtol and strtoimax.
114987 2001-09-28  Paul Eggert  <eggert@twinsun.com>
114989         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
114990         #defines strtoimax.  Also treat the other strto* functions
114991         like strtoimax.
114993         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
114994         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
114995         (strtoimax, strtoumax): Do not declare if already defined as a macro.
114997 2001-09-26  Jim Meyering  <meyering@lucent.com>
114999         Most macros in unlocked-io.h had the wrong number of arguments.
115000         * lib/gen-uio: New script.
115001         (USE_UNLOCKED_IO): Define to 1 if not already defined.
115002         * lib/unlocked-io.hin: Remove file.
115003         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
115004         rather than trying to embed it here.
115005         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
115006         Reported by Padraig Brady.
115008 2001-09-25  Volker Borchert  <bt@teknon.de>
115010         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
115011         `result'.
115013 2001-09-24  Jim Meyering  <meyering@lucent.com>
115015         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
115017 2001-09-23  Jim Meyering  <meyering@lucent.com>
115019         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
115020         instead of the mere test for existence of mntent.h.  The latter
115021         would get a false-positive on AIX 3.4 systems.
115022         In the outer getmntent if-block, don't die if neither of the getmntent
115023         tests succeeds.  Instead, just fall through and continue with the
115024         remaining tests.
115026 2001-09-23  Jim Meyering  <meyering@lucent.com>
115028         * lib/mountlist.c: Remove useless parentheses in #if directives.
115029         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
115030         the deprecated MOUNTED symbol is no longer defined in mntent.h.
115032 2001-09-22  Jim Meyering  <meyering@lucent.com>
115034         * m4/gettext.m4: New file.  From gettext.
115035         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
115036         * m4/progtest.m4: Likewise
115037         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
115038         * m4/glibc21.m4: Likewise.
115040         * m4/libintl.m4: Remove.  No longer used.
115042 2001-09-22  Jim Meyering  <meyering@lucent.com>
115044         * lib/localcharset.c: Update from latest gettext.
115045         * lib/config.charset: Likewise.
115047 2001-09-20  Jim Meyering  <meyering@lucent.com>
115049         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
115050         strtoimax.
115051         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
115052         strtoumax.
115054 2001-09-20  Jim Meyering  <meyering@lucent.com>
115056         * lib/xstrtol.c (strtoimax): Guard declaration with
115057         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
115058         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
115059         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
115060         (strtoumax): Likewise, for completeness (it wasn't necessary).
115062 2001-09-17  Paul Eggert  <eggert@twinsun.com>
115064         * lib/strtoimax.c (HAVE_LONG_LONG):
115065         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
115066         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
115067         to work around bug in IBM C compiler.
115069 2001-09-17  Jim Meyering  <meyering@lucent.com>
115071         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
115072         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
115073         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
115074         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
115075         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
115076         whenever the right hand side need not be expanded by the shell.
115078 2001-09-16  Paul Eggert  <eggert@twinsun.com>
115080         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
115081         library.  It's not correct, as some older glibcs are buggy.
115082         fnmatch wasn't fixed until glibc 2.2.
115084         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
115085         special shell magic here.
115087 2001-09-16  Jim Meyering  <meyering@lucent.com>
115089         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
115090         * m4/jm-macros.m4: Require it.
115092 2001-09-16  Jim Meyering  <meyering@lucent.com>
115094         * lib/mkdir.c: New file.
115096 2001-09-15  Jim Meyering  <meyering@lucent.com>
115098         * m4/jm-macros.m4: Check for help2man.
115100 2001-09-11  Jim Meyering  <meyering@lucent.com>
115102         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
115103         The body, by Paul Eggert, was moved here from configure.in.
115104         * m4/jm-macros.m4: Require UTILS_HOST_OS.
115106 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115108         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
115109         (jm_PREREQ): Use it.
115111 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115113         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
115114         Use ssize_t, not int, to store result of readlink.
115115         Check for ssize_t overflow as well as size_t overflow,
115116         as POSIX says the result of readlink is implementation-defined
115117         when ssize_t overflows.
115118         Remove unnecessary cast to char*.
115119         Use free+malloc instead of realloc, as the storage doesn't need
115120         to be preserved and it's clearer and can be more efficient that way.
115121         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
115122         * lib/xreadlink.h (xreadlink): Update prototype.
115124 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115126         * lib/xgetcwd.c: Revert some of the previous change; intead,
115127         fix the HAVE_GETCWD_NULL code to behave more like the
115128         !HAVE_GETCWD_NULL code used to.
115130         Include "xalloc.h".
115131         (xgetcwd): Do not return NULL when memory is exhausted; instead,
115132         invoke xalloc_die.
115134 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115136         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
115137         sys/param.h, as pathmax.h includes them.
115139 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115141         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
115142         (jm_PREREQ_XGETCWD): New macro.
115144         * m4/getcwd.m4: New file.
115146 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115148         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
115149         like the HAVE_GETCWD_NULL code.
115150         Include pathmax.h if not HAVE_GETCWD.
115151         Do not include xalloc.h.
115152         (INITIAL_BUFFER_SIZE): New symbol.
115153         Do not use xmalloc / xrealloc, since the caller is responsible for
115154         handling errors.  Preserve errno around `free' during failure.
115155         Do not overrun buffer when using getwd.
115157 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115159         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
115160         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
115161         getcwd (NULL, 0).
115163 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115165         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
115166         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
115167         spotted by Jim Meyering.
115169 2001-09-03  Jim Meyering  <meyering@lucent.com>
115171         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
115172         failure.
115174 2001-09-02  Jim Meyering  <meyering@lucent.com>
115176         * lib/error.c: Update from GNU libc.
115178 2001-09-01  Jim Meyering  <meyering@lucent.com>
115180         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
115181         Used by df.
115183 2001-09-01  Jim Meyering  <meyering@lucent.com>
115185         * lib/xreadlink.c: New file.
115186         * lib/xreadlink.h: New file.
115187         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
115188         xreadlink.h.
115190         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
115191         doesn't conflict with sparc Solaris 7's definition in
115192         /usr/include/sys/int_types.h.
115194         * lib/exclude.c: Use `""', not `<>' to #include non-system header
115195         files.
115196         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
115197         and strncasecmp as r-values.  Unixware didn't have declarations.
115199 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115201         * lib/xstrtol.h: Add copyright notice.
115202         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
115203         LONGINT_INVALID_SUFFIX_CHAR.
115205 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115207         * lib/xstrtol.c (strtoimax): New decl.
115209 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115211         * lib/xgetcwd.c: Don't include pathmax.h.
115212         Include stdlib.h and unistd.h if available.
115213         Include xalloc.h.
115214         (xmalloc, xstrdup, free): Remove decls.
115215         (xgetcwd): Don't assume sizes fit in unsigned.
115216         Check for overflow when computing sizes.
115217         Simplify reallocation code.
115219 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115221         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
115222         a directory's st_size can have an arbitrary value, so the old
115223         usage could waste an arbitrary amount of memory.  All uses
115224         changed.
115225         * lib/savedir.h: Update prototype.
115227 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115229         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
115231         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
115232         old strtoimax.c.
115234         Also, make the following further changes to make this file's
115235         configuration more similar to that of strtol.c:
115236         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
115237         (strtoumax, uintmax_t, strtoull, strtol): Remove.
115238         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
115239         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
115240         changed to signed values.
115242         And make the following changes as well:
115243         Fix copyright notice, as 1999 was missing.
115244         (verify): New macro.
115245         (strtoimax): Check sizes at compile-time, not run-time.
115246         Prefer strtol to strtoll if both work.
115247         (main): Remove; it was not that useful and was a pain to maintain.
115249         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
115251 2001-08-31  Jim Meyering  <meyering@lucent.com>
115253         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
115254         Use an initial, malloc'd, buffer of length 128 rather than
115255         a statically allocated one of length 1024.
115257 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115259         Simplify code, partly by assuming autoconf 2.52 semantics.
115261         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
115263         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
115264         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
115265         All uses removed.
115266         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
115267         Move AC_REQUIRE to next-to-top level, to avoid confusion.
115268         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
115269         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
115270         jm_AC_HEADER_INTTYPES_H.
115271         * m4/jm-macros.m4 (jm_MACROS): Likewise.
115273         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
115275         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115276         Quote first arg of AC_DEFUN.
115277         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
115278         since they are needed to parse the include file even if we need
115279         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
115280         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
115281         but with opposite signedness.
115283 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115285         Merge 'exclude' changes from tar 1.13.22.
115286         This fixes one or two unlikely storage allocation overflow bugs,
115287         but doesn't change user-visible behavior otherwise.
115289 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115291         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
115292         (jm_PREREQ_EXCLUDE): New macro.
115294 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115296         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
115297         tm to be declared.
115299 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115301         * lib/hash.c: Remove '2001' from copyright notice.
115303 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115305         * lib/full-write.h: New file.
115306         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
115307         * lib/full-write.c: Correct credits, as cccp.c no longer
115308         exists and anyway it was so heavily changed from the old cccp
115309         code as to be unrecognizable.  Include full-write.h.
115310         (full_write): Return size_t, with short writes meaning failure.
115311         All callers changed.  This fixes a bug with large buffers
115312         on 64-bit hosts.
115313         * lib/utime.c: Include full-write.h.
115315 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115317         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
115318         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
115319         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
115320         Include if available.
115321         (<xalloc.h>): Include
115322         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
115323         (verify): New macro.  Use it to verify that EXCLUDE macros do not
115324         collide with FNM macros.
115325         (struct patopts): New struct.
115326         (struct exclude): Use it, as exclude patterns now come with options.
115327         (new_exclude): Support above changes.
115328         (new_exclude, add_exclude_file):
115329         Initial size must now be a power of two to simplify overflow checking.
115330         (free_exclude, fnmatch_no_wildcards): New function.
115331         (excluded_filename): No longer requires options arg, as the options
115332         are determined by add_exclude.  Now returns bool, not int.
115333         (excluded_filename, add_exclude):
115334         Add support for the fancy new exclusion options.
115335         (add_exclude, add_exclude_file): Now takes int options arg.
115336         Check for arithmetic overflow when computing sizes.
115337         (add_exclude_file): xrealloc might modify errno, so don't
115338         realloc until after errno might be used.
115340         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
115341         New macros.
115342         (free_exclude): New decl.
115343         (add_exclude, add_exclude_file): Now takes int options arg.
115344         (excluded_filename): No longer requires options arg, as the options
115345         are determined by add_exclude.  Now returns bool, not int.
115347 2001-08-30  Paul Eggert  <eggert@twinsun.com>
115349         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
115351 2001-08-27  Jim Meyering  <meyering@lucent.com>
115353         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
115355         * lib/version-etc.c (N_): Remove definition.
115356         Revert most of last change.
115357         Instead, simply don't mark the `Copyright...' string for translation.
115358         Based on advice from Paul Eggert.
115360         * lib/strtoxmax.c: Tweak comment.
115362 2001-08-26  Jim Meyering  <meyering@lucent.com>
115364         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
115366         * m4/xstrtoimax.m4: New file.
115367         * m4/xstrtoumax.m4: Add comments explaining why we
115368         AC_REPLACE_FUNCS(strtol).
115370 2001-08-26  Jim Meyering  <meyering@lucent.com>
115372         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
115373         of copyright with `%s' so translators don't get an untranslated
115374         message in 2002.
115375         (COPYRIGHT_YEAR): Define.
115376         (version_etc): Use fprintf rather than fputs.
115377         Suggestion from Ulrich Drepper.
115379         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
115381         * lib/strtoll.c: New file, from GNU libc.
115382         * lib/xstrtoimax.c: New file.
115384         * lib/xstrtol.h: Add xstrtoimax.
115385         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
115386         * lib/strtoimax.c: New file.  Likewise, but first define
115387         STRTOUXMAX_SIGNED.
115389         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
115390         ...
115391         * lib/strtoxmax.c: ... then renamed to this.
115393 2001-08-18  Paul Eggert  <eggert@twinsun.com>
115395         * m4/inttypes.m4: Add AC_PREREQ(2.13).
115396         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
115397         (jm_AC_TYPE_INTMAX_T): New macro.
115398         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
115400         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
115402         * m4/longlong.m4: Renamed from ulonglong.m4.
115403         * m4/inttypes.m4: Renamed from inttypes_h.m4.
115404         * m4/uintmax_t.m4: Removed.
115406 2001-08-13  Paul Eggert  <eggert@twinsun.com>
115408         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
115409         Port to Solaris 8, where 'sed' requires a space after the 'r'
115410         command, and where sh dislikes "$/".  Clean up the spacing a bit.
115411         Redirect output to $tmp just once.
115413 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
115415         * lib/addext.c (<errno.h>): Include.
115416         (errno): Declare if not defined.
115417         (addext): Work correctly when pathconf returns -1 and leaves
115418         errno alone because there is no limit.  Also, work even if
115419         pathconf returns a value greater than SIZE_MAX.
115421 2001-08-12  Jim Meyering  <meyering@lucent.com>
115423         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
115424         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
115425         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
115426         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
115427         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
115428         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
115429         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
115430         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
115431         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
115432         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
115433         utime.m4, utimes.m4, xstrtoumax.m4:
115434         Quote the first argument in each use of AC_DEFUN.
115436 2001-08-12  Jim Meyering  <meyering@lucent.com>
115438         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
115439         Simply `return getcwd (NULL, 0);'.
115440         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
115441         Use 1300 as initial value for length, not PATH_MAX.
115443         * lib/pathmax.h: Clean up cpp syntax.
115445 2001-08-12  Jim Meyering  <meyering@lucent.com>
115447         * lib/gettimeofday.c: New file.
115448         * lib/gtod.h: New file.
115449         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
115451 2001-08-05  Jim Meyering  <meyering@lucent.com>
115453         * m4/jm-macros.m4: Require autoconf-2.52.
115455 2001-08-04  Jim Meyering  <meyering@lucent.com>
115457         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
115458         stmt, to get in sync with glibc.
115460 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115462         The following changes are from gettext 0.10.39 as maintained by
115463         Bruno Haible.
115465         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
115466         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
115467         with inverted sense.  All uses changed.
115469         * lib/mbswidth.c: Don't include <limits.h>.
115470         Include <stdlib.h> and <string.h> unconditionally.
115471         (iswcntrl, mbsinit, ISCNTRL): New macros.
115472         (mbsnwidth): Use K&R style function declarations.
115473         Don't bother checking for MB_LEN_MAX == 1, since the compiler
115474         can optimize it when MB_CUR_MAX == 1.
115475         The width of control characters is zero, not 1.
115477 2001-08-03  Paul Eggert  <eggert@twinsun.com>
115479         The following changes are from gettext 0.10.39 as maintained by
115480         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
115482         * m4/codeset.m4: Upgrade to serial AM1.
115483         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
115484         all uses changed.  Quote first arg of AC_DEFUN.
115485         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
115487         * m4/iconv.m4: Upgrade to serial AM2.
115488         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
115489         Add --with-libconv-prefix.
115490         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
115491         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
115492         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
115493         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
115494         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
115496         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
115497         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
115498         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
115499         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
115500         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
115501         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
115502         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
115503         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
115504         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115506         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
115507         string.h any more.
115509         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
115510         not the default value.
115512         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
115513         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
115514         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
115515         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
115516         Also check for iswcntrl, used for wcwidth fallback.
115517         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
115518         to Autoconf 2.13.
115520 2001-08-03  Jim Meyering  <meyering@lucent.com>
115522         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
115523         as it was in the original.  Reported by Paul Eggert.
115525 2001-07-16  Jim Meyering  <meyering@lucent.com>
115527         * m4/gettimeofday.m4: New file.
115528         Prompted by a report from Bernhard Baehr.
115530 2001-07-15  Jim Meyering  <meyering@lucent.com>
115532         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
115533         stuff. Now it's in ../Makefile.cfg.
115535 2001-07-15  Jim Meyering  <meyering@lucent.com>
115537         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
115538         (BUILT_SOURCES): Add unlocked-io.h.
115539         (io_functions): Define.
115540         (unlocked-io.h): New rule.
115541         (DISTCLEANFILES): Add unlocked-io.h.
115542         (all-local): Depend on unlocked-io.h, to ensure it is created.
115544         * lib/unlocked-io.hin: New file
115546         * lib/regex.c: Update from glibc.
115548 2001-07-05  Jim Meyering  <meyering@lucent.com>
115550         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
115551         recommendation.
115552         (libfetish_a_SOURCES): Put all .h files here instead.
115553         Remove a thus-exposed (better checks in automake) duplicate and
115554         two unnecessary .h files.
115556 2001-07-04  Jim Meyering  <meyering@lucent.com>
115558         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
115559         that generates jm-glibc-io.m4 so that it doesn't trigger any make
115560         distcheck failure.
115562 2001-07-02  Jim Meyering  <meyering@lucent.com>
115564         The following changes were prompted by suggestions from Bruno Haible.
115566         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
115567         is now generated.
115568         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
115569         definition of EXTRA_DIST.
115570         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
115571         ensure that the generated file is created/updated whenever the list
115572         of $(unlocked_functions) is changed.
115573         (jm-glibc-io.m4): New rule.
115574         (unlocked-io.h): New rule -- currently unused.
115576 2001-06-24  Jim Meyering  <meyering@lucent.com>
115578         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
115579         unmatched right bracket, rather than kludging it with an extra,
115580         falsely-matching quote in a comment.  Patch by Akim Demaille.
115582 2001-06-11  Jim Meyering  <meyering@lucent.com>
115584         * lib/regex.c: Update from GNU libc.
115586 2001-05-27  Jim Meyering  <meyering@lucent.com>
115588         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
115589         Check for ut_type in struct utmp.
115591 2001-05-27  Jim Meyering  <meyering@lucent.com>
115593         * lib/readutmp.h (UT_TYPE): Define.
115595 2001-05-24  Jim Meyering  <meyering@lucent.com>
115597         * lib/argmatch.c: Include "quote.h".
115598         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
115599         quote function.  Reported by Göran Uddeborg.
115601 2001-05-22  Jim Meyering  <meyering@lucent.com>
115603         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
115604         now that we use the package-supplied version unconditionally.
115605         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
115607 2001-05-21  Jim Meyering  <meyering@lucent.com>
115609         * m4/regex.m4: Change a couple backticks to single quotes to avoid
115610         shell syntax errors.
115612 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
115614         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
115616 2001-05-20  Paul Eggert  <eggert@twinsun.com>
115618         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
115619         Don't bother to check library strftime, since
115620         we'll be using our own my_strftime function anyway.
115621         Define my_strftime instead of strftime.
115623 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
115625         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
115626         which is not yet declared.
115628 2001-05-15  Jim Meyering  <meyering@lucent.com>
115630         * m4/regex.m4: Use proper quoting so brackets appear in the test
115631         program.
115632         Reported by, and with help from, Bruno Haible.
115634 2001-05-13  Jim Meyering  <meyering@lucent.com>
115636         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
115637         undefined.
115639 2001-05-11  Paul Eggert  <eggert@twinsun.com>
115641         dirname code cleanup.  base_name now behaves more compatibly
115642         with POSIX basename when given file names that have trailing
115643         slashes, and similarly for dir_name.  Add new primitives
115644         base_len and dir_len.  Put the directory-name-related decls
115645         into dirname.h.
115647         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
115648         * lib/backupfile.c (base_name): Likewise.
115649         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
115650         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
115651         * lib/makepath.c (strip_trailing_slashes): Likewise.
115652         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
115653         ISSLASH): Likewise.
115654         * lib/rename.c (strip_trailing_slashes): Likewise.
115655         * lib/same.c (base_name): Likewise.
115656         * lib/stripslash.c (ISSLASH): Likewise.
115658         * lib/addext.c: Include <dirname.h> after size_t is defined.
115659         * lib/backupfile.c: Likewise.
115661         * lib/addext.c (addext): Use base_len to trim redundant
115662         trailing slashes instead of doing it ourselves.
115663         But do not trim the last slash if it is not redundant.
115665         * lib/backupfile.c (find_backup_file_name,
115666         max_backup_version): Use base_len instead of rolling it ourselves.
115667         Handle the case of "" and (on DOS) "C:" correctly.
115669         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
115670         needed. Include <string.h>, <dirname.h>.
115671         (base_name): Allow file names ending in slashes, other than names
115672         that are all slashes.  In this case, return the basename followed
115673         by the slashes.  This is more general, and can be used in places
115674         where the original base_name purposely had an assertion failure.
115675         (base_len): New function.
115677         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
115678         Do not include <assert.h>; no longer needed.
115679         Include xalloc.h.
115680         (memrchr): Remove decl.
115681         (dir_name_r): Remove.
115682         (dir_len): Renamed from dirlen.  All callers changed.
115683         Rewrite in terms of base_name, for simplicity and consistency.
115684         (dir_name): Never return NULL.  All callers changed.
115685         Do not include <stdlib.h> in test program; no longer needed.
115686         return 0; is fine for test program.
115688         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
115689         New macros.
115690         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
115692         * lib/path-concat.c (path_concat): Use base_len to compute
115693         base length, not strlen; this means we cannot rely on memcpy
115694         to null-terminate.
115696         * lib/same.c (STREQ): Remove.
115697         (same_name): Handle the case where the basename ends in trailing '/'.
115699         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
115700         a slash was stripped.  Do not strip the last slash after a
115701         file system prefix.
115703 2001-05-11  Paul Eggert  <eggert@twinsun.com>
115705         * lib/Makefile.am (libfetish_a_SOURCES):
115706         Add strftime.c, since we now compile it on all hosts.
115708         * lib/strftime.c (my_strftime):
115709         Define to nstrftime if emacs, but only if my_strftime is not defined.
115710         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
115711         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
115712         Add one more extra argument: a nanoseconds value.
115713         All uses changed.
115714         (ns): New macro.
115715         (my_strftime function): Add %N format.
115716         (emacs_strftimeu): Renamed from emacs_strftime,
115717         with extra ut argument.
115719 2001-05-09  Paul Eggert  <eggert@twinsun.com>
115721         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
115723 2001-04-21  Jim Meyering  <meyering@lucent.com>
115725         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
115726         doesn't interfere.
115728 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
115730         * m4/ftruncate.m4: Check for chsize.
115731         Link with ftruncate.o unconditionally if ftruncate is missing.
115732         This was required when cross-compiling to i586-mingw32msvc.
115734 2001-04-08  Jim Meyering  <meyering@lucent.com>
115736         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
115737         recomputed; that's necessary when the offset spans a DST transition.
115738         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
115740 2001-04-02  Jim Meyering  <meyering@lucent.com>
115742         * lib/regex.h, regex.c: Update from GNU libc.
115744 2001-03-24  Jim Meyering  <meyering@lucent.com>
115746         * m4/jm-macros.m4: Require autoconf-2.49d.
115748 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
115750         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
115752 2001-03-19  Paul Eggert  <eggert@twinsun.com>
115754         * lib/version-etc.c (version_etc_copyright): Update to 2001.
115756 2001-03-17  Jim Meyering  <meyering@lucent.com>
115758         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
115759         now that the version in autoconf is equivalent.
115760         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
115762         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
115763         Suggestion from Akim Demaille.
115765         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
115766         (jm_PREREQ_TEMPNAME): New function.
115768 2001-03-16  Paul Eggert  <eggert@twinsun.com>
115770         * lib/tempname.c (uint64_t): Define to uintmax_t if
115771         not defined, and if UINT64_MAX is not defined.
115772         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
115773         Reported by John David Anglin.
115775 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
115777         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
115778         resolve alias if codeset is empty.
115779         * lib/config.charset (BeOS): Use wildcard syntax.
115781 2001-03-13  Jim Meyering  <meyering@lucent.com>
115783         * lib/path-concat.c (path_concat)
115784         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
115785         concatenating e.g., `C:' and `foo'.
115786         From Bruno Haible.
115788 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
115790         * lib/localcharset.c (locale_charset): Don't use
115791         setlocale(LC_CTYPE,NULL). Don't return NULL.
115792         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
115794 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
115796         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
115797         support for DOS/DJGPP.
115799 2001-03-01  Paul Eggert  <eggert@twinsun.com>
115801         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
115802         lacks mkstemp.  Compile our own tempname.c if we compile our own
115803         mkstemp.c, as mkstemp relies on tempname.
115805 2001-03-01  Jim Meyering  <meyering@lucent.com>
115807         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
115808         AH_VERBATIM really does output its argument verbatim.
115810 2001-02-28  Paul Eggert  <eggert@twinsun.com>
115812         * lib/Makefile.am (libfetish_a_SOURCES):
115813         Add dup-safer.c, fopen-safer.c.
115814         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
115816         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
115817         * lib/unistd-safer.h: New files.
115819 2001-02-25  Paul Eggert  <eggert@twinsun.com>
115821         The mkstemp replacement is taken from glibc 2.2.2, with some
115822         portability fixes for use outside glibc, as follows:
115824         * lib/tempname.c (struct_stat64): New macro.
115825         (direxists, __gen_tempname): Use it.
115826         This avoids a portability problem with Solaris 8.
115828         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
115829         (<stddef.h>, <stdint.h>, <string.h>):
115830         Include only if STDC_HEADERS || _LIBC.
115831         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
115832         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
115833         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
115834         (__set_errno): Define this macro if <errno.h> doesn't.
115835         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
115836         Define these macros if <stdio.h> doesn't.
115837         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
115838         Define these macros if <sys/stat.h>
115839         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
115840         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
115841         __xstat64): Define if not _LIBC.
115842         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
115843         (__gen_tempname): Invoke gettimeofday only if
115844         HAVE_GETTIMEOFDAY || _LIBC;
115845         otherwise, fall back on plain "time".
115846         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
115848         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
115850         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
115852 2001-02-18  Paul Eggert  <eggert@twinsun.com>
115854         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
115856 2001-02-17  Paul Eggert  <eggert@twinsun.com>
115858         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
115859         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
115860         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
115861         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
115863 2001-02-17  Paul Eggert  <eggert@twinsun.com>
115865         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
115866         Remove workaround macros for hosts that have mbrtowc but not
115867         mbstate_t, as we now insist on proper declarations for both
115868         before using mbrtowc.
115870 2001-02-17  Jim Meyering  <meyering@lucent.com>
115872         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
115873         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
115874         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
115875         UnixWare 7.1.1.
115877         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
115878         rather than AC_CACHE_VAL.
115880 2001-02-17  Jim Meyering  <meyering@lucent.com>
115882         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
115883         around included file name.
115885         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
115887         * lib/strftime.c: Update from GNU libc (the only changes were to
115888         comments).
115890 2001-02-17  Jim Meyering  <meyering@lucent.com>
115892         * lib/regex.c: Update from libc.
115894 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
115896         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
115897         clash.
115899 2001-02-16  Paul Eggert  <eggert@twinsun.com>
115901         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
115902         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
115903         Reported by Mark Hounschell via Paul Eggert.
115905 2001-02-07  Jim Meyering  <meyering@lucent.com>
115907         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
115909 2001-02-05  Jim Meyering  <meyering@lucent.com>
115911         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
115912         it includes the patch required for `large file' support with at least
115913         HP-UX's 10.20 /bin/cc.
115915 2001-02-03  Jim Meyering  <meyering@lucent.com>
115917         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
115918         AS_IF, now that it works once again (mysteriously).
115919         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
115921 2001-01-30  Jim Meyering  <meyering@lucent.com>
115923         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
115924         * m4/chown.m4: Rename conftestchown to conftest.chown.
115925         * m4/rename.m4: s/conftestdir/conftest.d1/ and
115926         s/conftestdir2/conftest.d2/.
115927         * m4/utimes.m4: s/conftestdata/conftest.data/
115928         Inspired by Pavel Roskin's change in autoconf.
115930 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
115932         * lib/config.charset: Update for FreeBSD 4.2.
115934 2001-01-27  Jim Meyering  <meyering@lucent.com>
115936         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
115937         a use of AS_IF.
115938         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
115940 2001-01-26  Jim Meyering  <meyering@lucent.com>
115942         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
115943         quotearg.c includes it.
115945 2001-01-26  Jim Meyering  <meyering@lucent.com>
115947         * lib/quotearg.c: Include stddef.h.
115948         * lib/quote.c: Include stddef.h.
115949         Reported by Axel Kittenberger.
115951         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
115952         line in double quotes so that it evokes a better diagnostic.
115953         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
115954         Reported by Axel Kittenberger.
115956 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
115958         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
115959         as if it was a `charset'.
115961 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
115963         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
115964         has const.
115966 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
115968         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
115969         to avoid a warning.  Add back 'const' to inptr.
115971 2001-01-20  Jim Meyering  <meyering@lucent.com>
115973         Be sure that headers are checked before used in code compiled
115974         for the type checks.
115975         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
115976         In place of that, invoke jm_CHECK_ALL_TYPES.
115977         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
115978         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
115979         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
115980         The check for ssize_t was mistakenly run before the test for unistd.h.
115982         The configure-time check for stdbool.h was missing.
115983         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
115984         (jm_PREREQ_HASH): New function.
115986 2001-01-17  Jim Meyering  <meyering@lucent.com>
115988         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
115989         for autoconf-2.49c.
115990         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
115992 2001-01-16  Jim Meyering  <meyering@lucent.com>
115994         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
115995         From Bruno Haible.
115997 2001-01-14  Jim Meyering  <meyering@lucent.com>
115999         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
116000         foo and bar.  Create conftestdir/ in the script, not in the C code.
116001         Remove directories in the script, not in the C code.
116002         Remove conftestdir{,2} before trying to create the directory.
116003         Make the entire configure script fail if the mkdir fails.
116005 2001-01-14  Jim Meyering  <meyering@lucent.com>
116007         * lib/rename.c: New file.  From Volker Borchert.
116008         Include stdlib.h, string.h or strings.h, and xalloc.h.
116009         Use strip_trailing_slashes rather than open-coding it.
116011 2001-01-03  Paul Eggert  <eggert@twinsun.com>
116013         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
116015 2001-01-03  Jim Meyering  <meyering@lucent.com>
116017         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
116018         of local `inptr' to avoid warning with some system declarations of
116019         iconv.
116021 2001-01-02  Volker Borchert  <bt@teknon.de>
116023         * m4/rename.m4: New file.
116024         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
116026 2001-01-01  Jim Meyering  <meyering@lucent.com>
116028         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
116029         even on systems with utmpx.h.  It's necessary for the declaration of
116030         utmp's ut_user member.  Reported by Andreas Jaeger.
116032         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
116033         available. They are required for the declarations of getgrgid and
116034         getpwuid resp.
116035         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
116036         Reported by Andreas Jaeger.
116038 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
116040         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
116041         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
116042         so `make install' also works in VPATH builds.
116044 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
116046         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
116047         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
116048         can be used in subdirectories.
116050 2000-12-29  Paul Eggert  <eggert@twinsun.com>
116052         * lib/modechange.c: Do not assume that mode_t uses the
116053         traditional octal encoding.  E.g. "chmod 1 FOO" should set
116054         the other-execute bit of FOO even if S_IXOTH != 1.
116056         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
116057         WOTH, XOTH, ALLM): New macros.
116058         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
116059          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
116060         Use them.
116061         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
116062         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
116063         (mode_compile):
116064         No need to use uintmax_t; unsigned long is long enough.
116065         Don't bother to get suffix since we don't use it.
116067 2000-12-26  Jim Meyering  <meyering@lucent.com>
116069         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
116070         better with autoheader.
116072 2000-12-24  Jim Meyering  <meyering@lucent.com>
116074         * lib/hash.c (is_prime): Return explicit boolean values.
116075         (hash_get_first): Return NULL to appease Irix5.6's 89.
116076         Reported by Nelson Beebe.
116078 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
116080         * lib/localcharset.c (locale_charset): Add support for Win32.
116082 2000-12-18  Paul Eggert  <eggert@twinsun.com>
116084         * lib/physmem.h, lib/physmem.c: New files.
116086         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
116087         (noinst_HEADERS): Add physmem.h.
116089         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
116090         't' for compatibility with Solaris 8 sort.
116092 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
116094         * lib/config.charset: Add support for BeOS.
116096 2000-12-17  Jim Meyering  <meyering@lucent.com>
116098         * m4/dos.m4 (jm_AC_DOS): New file and macro.
116099         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
116101 2000-12-16  Jim Meyering  <meyering@lucent.com>
116103         This bug had a serious impact on chown: `chown N:M FILE' (for integer
116104         N and M) would have treated it like `chown N:N FILE'.
116106         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
116108 2000-12-16  Jim Meyering  <meyering@lucent.com>
116110         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
116111         SHELLS_FILE to a file name that's useful on djgpp systems.
116112         Include stdlib.h.
116113         (ADDITIONAL_DEFAULT_SHELLS): Define.
116114         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
116115         Based mostly on a patch from Prashant TR.
116117 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
116119         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
116120         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
116121         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
116123 2000-12-08  Andreas Schwab  <schwab@suse.de>
116125         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
116126         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
116128 2000-12-07  Jim Meyering  <meyering@lucent.com>
116130         * lib/stripslash.c (ISSLASH): Define.
116131         (strip_trailing_slashes): Use ISSLASH rather than comparing against
116132         `/'.
116133         From Prashant TR.
116135         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
116136         (dir_name_r): Declare this function as static.
116137         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
116138         manifest itself on a name containing a mix of slashes and
116139         backslashes.
116140         Make this function work with names starting with a DOS-style
116141         drive letter and colon prefix.
116142         (dir_name): Append `.' if necessary.
116143         Based mostly on patches from Prashant TR and Eli Zaretskii.
116145         * lib/dirname.h (dir_name_r): Remove prototype.
116147 2000-12-06  Paul Eggert  <eggert@twinsun.com>
116149         * m4/off_t-format.m4: Remove this file.
116150         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
116152 2000-12-06  Jim Meyering  <meyering@lucent.com>
116154         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
116155         replacement strtoull, we may well need the replacement strtoul, too.
116156         Check for declarations of strtoul and strtoull.
116157         Check for strtol.  Mainly as a cue to cause automake to include
116158         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
116159         Check for limits.h -- strtol.c needs it.
116161 2000-12-05  Jim Meyering  <meyering@lucent.com>
116163         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
116165 2000-12-04  Jim Meyering  <meyering@lucent.com>
116167         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
116168         Also include memory.h, stdlib.h, unistd.h if appropriate.
116169         Reported by Andreas Jaeger (conflicting declaration of malloc).
116171 2000-12-02  Jim Meyering  <meyering@lucent.com>
116173         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
116174         * m4/jm-macros.m4 (jm_MACROS): require it.
116176 2000-12-02  Jim Meyering  <meyering@lucent.com>
116178         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
116180 2000-12-01  Paul Eggert  <eggert@twinsun.com>
116182         * lib/memrchr.c: Include <config.h> before any system include file.
116184 2000-11-30  Jim Meyering  <meyering@lucent.com>
116186         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
116188 2000-11-30  Jim Meyering  <meyering@lucent.com>
116190         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
116192 2000-11-29  Paul Eggert  <eggert@twinsun.com>
116194         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
116196 2000-11-26  Jim Meyering  <meyering@lucent.com>
116198         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
116200 2000-11-22  Paul Eggert  <eggert@twinsun.com>
116202         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
116203         size of (size_t) -1; it's not portable.
116205 2000-11-17  Jim Meyering  <meyering@lucent.com>
116207         * lib/strstr.c: Update from GNU libc.
116209 2000-11-17  Akim Demaille  <akim@epita.fr>
116211         * lib/obstack.h: Formatting changes.
116212         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
116213         prevent type checking.
116214         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
116215         cast the value to (void *): assigning a `foo *' to a `void *'
116216         variable is valid.
116217         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
116219 2000-11-16  Jim Meyering  <meyering@lucent.com>
116221         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
116223 2000-11-11  Jim Meyering  <meyering@lucent.com>
116225         * lib/error.c: Add a couple #includes, merging from GNU libc version.
116227 2000-11-10  Jim Meyering  <meyering@lucent.com>
116229         * lib/obstack.h: Update from GNU libc.
116230         * lib/obstack.c: Likewise.
116232 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
116234         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
116236 2000-11-06  Paul Eggert  <eggert@twinsun.com>
116238         * lib/getusershell.c (setusershell): Use rewind rather than
116239         fseek/fseeko, to avoid configuration hassles with fseeko.
116240         Don't bother opening SHELLS_FILE if shellstream is NULL;
116241         it's not necessary.
116243 2000-11-05  Jim Meyering  <meyering@lucent.com>
116245         * lib/makepath.h (make_dir): Declare.
116246         * lib/makepath.c (make_dir): Remove `static' attribute.
116247         Tweak a comment.
116249 2000-11-04  Jim Meyering  <meyering@lucent.com>
116251         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
116253 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
116255         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
116256         last one in a bucket, advance to the next bucket.
116258 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
116260         * lib/fnmatch.c: Do not comment out all the code if we are using
116261         the GNU C library, because in some cases we are replacing buggy
116262         code in the GNU C library itself.
116264 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
116266         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
116267         (regex_compile): Catch bogus \(\1\).
116269 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116271         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
116272         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
116273         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
116275 2000-10-30  Paul Eggert  <eggert@twinsun.com>
116277         * lib/error.h, getline.h, modechange.h:
116278         Remove "2000" from Copyright line, as the file hasn't been
116279         changed this year other than in the copyright notice.
116281         * lib/xalloc.h: Add "2000" to Copyright line, as this file
116282         was changed this year.
116284 2000-10-29  Jim Meyering  <meyering@lucent.com>
116286         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
116287         renaming.
116288         * m4/ls-mntd-fs.m4: Likewise
116290 2000-10-29  Jim Meyering  <meyering@lucent.com>
116292         * lib/xstat.in: Fix grammar in comment.
116294 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
116296         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
116297         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
116298         doesn't define __restrict_arr.
116300 2000-10-28  Jim Meyering  <meyering@lucent.com>
116302         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
116303         (jm_PREREQ_MEMCHR): New function.
116305 2000-10-28  Jim Meyering  <meyering@lucent.com>
116307         * lib/memchr.c: Update from libc.
116308         Adjust for portability:
116309         [HAVE_STDLIB_H]: Include stdlib.h.
116310         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
116311         Undef __memchr, too.
116312         [!weak_alias]: Define __memchr to memchr.
116314         * lib/regex.c: Update from libc.
116315         * lib/regex.h: Likewise.
116316         * lib/getopt1.c: Likewise.
116317         * lib/memcmp.c: Likewise.
116319         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
116320         Avoid using fseek, when possible -- it's broken by design.
116321         Patch by Ulrich Drepper.
116323 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
116325         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
116326         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
116327         Giving in to popular pressure to shut up the compiler with casts.
116329 2000-10-26  Jim Meyering  <meyering@lucent.com>
116331         * lib/strftime.c: Update from libc.
116333 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
116335         * regex.c: More `unsigned char' -> `re_char' changes.
116336         Also change several `int' into `re_wchar_t'.
116337         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
116338         (PUSH_FAILURE_POINTER): Don't cast any more.
116339         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
116340         We want GCC to complain, since this piece of code makes
116341         re_match non-reentrant, which *should* be fixed.
116342         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
116343         (EXTEND_BUFFER): Use RETALLOC.
116344         (SET_LIST_BIT): Don't cast.
116345         (re_wchar_t): New type.
116346         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
116347         that those two functions will always properly return.
116348         (IMMEDIATE_QUIT_CHECK): Cast to void.
116349         (analyse_first): Use recursion rather than an explicit stack.
116350         (re_compile_fastmap): Can't fail anymore.
116351         (re_search_2): Don't check re_compile_fastmap for failure.
116352         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
116353         Now also sets the new value (passed in a new argument).
116354         (re_match_2_internal): Use it.
116355         Also, use a new var `reg' of type size_t when looping through regs
116356         rather than reuse the inappropriate `mcnt'.
116358 2000-10-25  Jim Meyering  <meyering@lucent.com>
116360         * lib/obstack.c: Update from libc.
116362 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
116364         * regex.c (regex_compile): Change the way of handling a range from
116365         a char less than 256 to a char not less than 256.
116367 2000-10-24  Andrew Innes  <andrewi@gnu.org>
116369         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
116370         NT-Emacs only.
116371         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
116372         so that re_search functions only quit when callers expect them to.
116374 2000-10-23  Jim Meyering  <meyering@lucent.com>
116376         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
116377         wrong.  That set_locale call must not have any side effects.
116378         From Paul Eggert.
116380 2000-10-22  Jim Meyering  <meyering@lucent.com>
116382         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
116383         [CYCLIC]: Remove now-unused definition.
116385         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
116386         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
116387         Suggestion from Ulrich Drepper.
116389 2000-10-21  Jim Meyering  <meyering@lucent.com>
116391         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
116392         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
116393         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
116395 2000-10-21  Jim Meyering  <meyering@lucent.com>
116397         * lib/dirname.c (memrchr): Declare if necessary.
116398         (dir_name): Remove the restriction that there be no
116399         trailing slashes.  Now, this code skips past them, effectively
116400         ignoring them.
116401         [TEST_DIRNAME] (main): New unit tests.
116403         * lib/memrchr.c: New file from GNU libc.
116404         Undef __memrchr, too.
116405         [!weak_alias]: Define __memrchr to memrchr.
116406         Guard weak_alias use with `#ifdef weak_alias'.
116408 2000-10-21  Jim Meyering  <meyering@lucent.com>
116410         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
116411         (dir_name): Use dir_name_r.
116412         * lib/dirname.h (dir_name_r): Declare it.
116414 2000-10-17  Jim Meyering  <meyering@lucent.com>
116416         * lib/quote.h (PARAMS): Define and use.
116417         Reported by Akim Demaille.
116419         * lib/getopt.c: Update from libc.
116421 2000-10-16  Jim Meyering  <meyering@lucent.com>
116423         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
116424         setlocale.
116425         From Jan Fedak.
116427 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
116429         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
116431 2000-09-25  Jim Meyering  <meyering@lucent.com>
116433         * lib/md5.h (rol): Define (from GnuPG).
116435         * lib/sha.c: Give credit (GnuPG) where due.
116436         (M): Use rol rather than open-coding it.
116437         Add a FIXME comment.
116439 2000-09-21  Jim Meyering  <meyering@lucent.com>
116441         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
116442         Reported by Michael Stone.
116444 2000-09-20  Jim Meyering  <meyering@lucent.com>
116446         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
116447         (noinst_HEADERS): Add sha.h.
116448         Based on code from Scott G. Miller and from GnuPG.
116450 2000-09-18  Jim Meyering  <meyering@lucent.com>
116452         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
116453         LIBS. Otherwise, everyone ends up linking with -lelf for some
116454         configurations.
116455         Reported by Mike Stone.
116457 2000-09-15  Jim Meyering  <meyering@lucent.com>
116459         * lib/regex.c: Update from libc.
116461 2000-09-10  Jim Meyering  <meyering@lucent.com>
116463         * lib/getopt.c (_getopt_internal): Update from glibc.
116465 2000-09-09  Jim Meyering  <meyering@lucent.com>
116467         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
116468         think it should be used as a general replacement for isascii.
116469         * lib/fnmatch.c: Likewise.
116470         * lib/mbswidth.c: Likewise
116471         * lib/regex.c: Likewise.
116473         Don't use atoi.
116474         * lib/userspec.c: Include sys/param.h and limits.h.
116475         Include xstrtol.h.
116476         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
116477         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
116478         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
116479         UID, GID.  Check range.
116481 2000-09-06  Jim Meyering  <meyering@lucent.com>
116483         * lib/getopt.c (_getopt_internal): Update from glibc.
116485 2000-08-30  Jim Meyering  <meyering@lucent.com>
116487         * lib/strftime.c: Merge in changes from GNU libc.
116489 2000-08-26  Jim Meyering  <meyering@lucent.com>
116491         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
116492         * m4/fpending.m4: New file.
116494 2000-08-26  Jim Meyering  <meyering@lucent.com>
116496         * lib/closeout.c: Include "__fpending.h".
116497         (close_stdout_status): Return right away if there's nothing to flush.
116499         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
116500         * lib/__fpending.c: New file.
116501         * lib/__fpending.h: New file.
116503 2000-08-20  Jim Meyering  <meyering@lucent.com>
116505         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
116506         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
116507         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
116509 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
116511         Improve fileutils installation on systems where running
116512         programs (like install) can't be unlinked.
116513         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
116514         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
116516 2000-08-07  Paul Eggert  <eggert@twinsun.com>
116518         Standardize on "memory exhausted" instead of "Memory exhausted"
116519         or "virtual memory exhausted".
116520         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
116521         "virtual memory exhausted".
116522         * lib/same.c (same_name): Invoke xalloc_die instead of printing
116523         our own message.
116524         * lib/userspec.c (parse_user_spec): Likewise.
116525         * lib/bumpalloc.h: comment fix
116526         * lib/same.c, userspec.c: Include xalloc.h.
116528         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
116529         not char *const and pointing to a constant array.
116530         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
116531         (xrealloc): Comment fix.
116533         * lib/userspec.c (parse_user_spec):
116534         Don't translate a message until just before returning,
116535         to avoid unnecessary translation.
116537 2000-08-07  Jim Meyering  <meyering@lucent.com>
116539         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
116540         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
116541         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
116542         getgroups.c, gethostname.c, getopt.h, group-member.c,
116543         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
116544         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
116545         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
116546         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
116547         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
116548         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
116549         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
116550         yesno.c: Back out Copyright date changes for each file with no change
116551         this year.  This eases coordination with other programs using the same
116552         source code modules.  From Paul Eggert.
116554 2000-08-06  Paul Eggert  <eggert@twinsun.com>
116556         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
116557         not char, for compatibility with glibc 2.1.3 strftime.c.
116559 2000-08-03  Greg McGary  <greg@mcgary.org>
116561         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
116562         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
116563         (EXTEND_BUFFER): Use them.
116565 2000-08-01  Jim Meyering  <meyering@lucent.com>
116567         * lib/dirname.c (ISSLASH): Define.
116568         (BACKSLASH_IS_PATH_SEPARATOR): Define.
116569         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
116570         both `\' and `/' may be use as path separators.
116571         Based on a patch from Prashant TR.
116573 2000-07-31  Paul Eggert  <eggert@twinsun.com>
116575         * lib/quotearg.c (quotearg_n_options): Don't make the initial
116576         slot vector a constant, since it might get modified.
116578 2000-07-31  Jim Meyering  <meyering@lucent.com>
116580         * lib/xmalloc.c: Use `virtual memory exhausted', not
116581         `Memory exhausted'.
116582         * lib/obstack.c (print_and_abort): Likewise.
116584 2000-07-30  Paul Eggert  <eggert@twinsun.com>
116586         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
116587         buffer, so that the caller can always quote one small
116588         component of a "memory exhausted" message in slot 0.
116589         From a suggestion by Jim Meyering.
116591 2000-07-30  Jim Meyering  <meyering@lucent.com>
116593         * lib/makepath.c (make_path): Quote the other instance, too.
116595         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
116596         (STATIC_BUF_SIZE): Define.
116597         (quotearg_n_options): Use only statically allocated storage when
116598         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
116599         than STATIC_BUF_SIZE.
116601 2000-07-29  Jim Meyering  <meyering@lucent.com>
116603         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
116604         * lib/dirname.c (dir_name): Likewise.
116606         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
116607         `/'.
116609         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
116610         (dir_name): Assert that there are no trailing slashes.
116612 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
116614         * lib/mbswidth.h (mbswidth): Add a flags argument.
116615         (mbswidth): New declaration.
116616         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
116617         * lib/mbswidth.c (mbswidth): Add a flags argument.
116618         (mbsnwidth): New function.
116620 2000-07-24  Jim Meyering  <meyering@lucent.com>
116622         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
116624 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116626         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
116628 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116630         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
116631         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
116632         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
116633         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
116634         invoke multibyte primitives.
116636 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116638         * lib/quotearg.c:
116639         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
116640         so that mbstate_t is always defined.
116642         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
116643         be 1 in at least one GCC installation, and this configuration
116644         error is likely to be common.  Ignoring MB_LEN_MAX hurts
116645         performance on hosts that have mbrtowc but have only unibyte
116646         locales, but I assume these hosts are rare.
116648 2000-07-23  Paul Eggert  <eggert@twinsun.com>
116650         * lib/mbswidth.c (_XOPEN_SOURCE):
116651         Don't define; this causes problems on Solaris 7.
116652         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
116654 2000-07-23  Jim Meyering  <meyering@lucent.com>
116656         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
116657         too: getgrgid, getpwuid, getuid.
116659 2000-07-23  Jim Meyering  <meyering@lucent.com>
116661         * lib/basename.c (base_name): Add an assertion.
116663 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
116665         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
116666         shadow its mbsinit function.
116668 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
116670         * lib/mbswidth.h: New file.
116671         * lib/mbswidth.c: New file.
116672         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
116673         (noinst_HEADERS): Add mbswidth.h.
116675 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
116677         * lib/config.charset: Add support for FreeBSD. Improve support for
116678         HP-UX and IRIX 6.
116680 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
116682         * m4/mbswidth.m4: New file.
116683         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
116685 2000-07-15  Jim Meyering  <meyering@lucent.com>
116687         * lib/makepath.c: Include quote.h.
116688         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
116689         corresponding argument in a `quote (...)' call.
116690         Give better diagnostics.
116692         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
116693         (noinst_HEADERS): Add quote.h.
116695         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
116696         from tar's src/misc.c.
116697         * lib/quote.h: New file.  Prototypes for same.
116699 2000-07-14  Paul Eggert  <eggert@twinsun.com>
116701         From a suggestion by Bruno Haible.
116702         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
116703         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
116704         to decide whether to define the BeOS workaround macro;
116705         this adjusts to the change to AC_MBSTATE_T.
116707 2000-07-14  Jim Meyering  <meyering@lucent.com>
116709         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
116710         jm_AC_TYPE_UINTMAX_T.
116712 2000-07-13  Paul Eggert  <eggert@twinsun.com>
116714         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
116716         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
116717         quotearg_buffer_restyled): Add support for
116718         clocale_quoting_style.  Undo previous change to
116719         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
116720         and "{RIGHT QUOTATION MARK}" msgids.
116722 2000-07-10  Paul Eggert  <eggert@twinsun.com>
116724         From a suggestion by Bruno Haible.
116725         * m4/mbstate_t.m4 (AC_MBSTATE_T):
116726         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
116727         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
116728         and mbstate_t, to a single-part test that simply defines mbstate_t.
116729         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
116730         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
116732 2000-07-10  Jim Meyering  <meyering@lucent.com>
116734         * m4/strerror_r.m4: Mirror the correction made in autoconf.
116736         * m4/gnu-source.m4: Output to confdefs.h directly.
116737         Suggestion from Akim Demaille.
116739 2000-07-09  Paul Eggert  <eggert@twinsun.com>
116741         The old behavior of quoting `like this' doesn't look good with
116742         newer, ISO-style fonts.  See:
116743         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
116745         Instead, quote "like this" by default.  Let the translator
116746         tailor the locale-specific quoting behavior by providing
116747         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
116749         * lib/quotearg.c (N_): New macro.
116750         (gettext_default): New function.
116751         (quotearg_buffer_restyled): Use
116752         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
116753         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
116755 2000-07-09  Jim Meyering  <meyering@lucent.com>
116757         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
116758         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
116760         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
116761         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
116763 2000-07-09  Jim Meyering  <meyering@lucent.com>
116765         * lib/Most files: Update copyright dates to include 2000.
116767 2000-07-08  Jim Meyering  <meyering@lucent.com>
116769         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
116770         if not defined.
116771         (xgethostname): Remove now-unnecessary #ifdef.
116772         Move declaration of `err' into loop where it's used.
116774 2000-07-05  Paul Eggert  <eggert@twinsun.com>
116775         and Bruno Haible  <haible@clisp.cons.org>
116777         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
116778         only if the test for an object-type mbstate_t fails.  This
116779         prevents us from mistakenly reporting that mbstate_t is a
116780         system object type after we "#define mbstate_t int" to work
116781         around its lack.
116783 2000-07-05  Paul Eggert  <eggert@twinsun.com>
116784         and Bruno Haible  <haible@clisp.cons.org>
116786         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
116788 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
116790         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
116791         to strerror_r.
116792         Include <ctype.h> for use of isalpha.
116794 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
116796         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
116797         by allocating a larger buffer. Test the gethostname return value for
116798         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
116799         returns an error and ENAMETOOLONG isn't defined.
116801 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
116803         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
116804         dimension.
116806 2000-07-04  Jim Meyering  <meyering@lucent.com>
116808         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
116809         of the deprecated AC_CHECKING.
116811 2000-07-04  Jim Meyering  <meyering@lucent.com>
116813         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
116814         Reported by Bruno Haible.
116816 2000-07-04  Jim Meyering  <meyering@lucent.com>
116818         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
116819         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
116820         lacks mbrtowc.
116822 2000-07-03  Paul Eggert  <eggert@twinsun.com>
116824         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
116825         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
116827 2000-07-03  Paul Eggert  <eggert@twinsun.com>
116828         and Bruno Haible  <haible@clisp.cons.org>
116830         * lib/quotearg.c (mbrtowc):
116831         Assign to *pwc, and return 1 only if result is nonzero.
116832         (iswprint): Use ISPRINT when substituting our own mbrtowc.
116834 2000-07-03  Jim Meyering  <meyering@lucent.com>
116836         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
116838 2000-07-03  Jim Meyering  <meyering@lucent.com>
116840         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
116841         This is necessary to get a definition of e.g., UTMP_FILE on
116842         HP-UX 10.20.
116843         From Bob Proulx.
116845 2000-07-02  Jim Meyering  <meyering@lucent.com>
116847         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
116849         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
116850         AC_LIBOBJ(function_name).
116851         * m4/chown.m4: Likewise.
116852         * m4/fnmatch.m4: Likewise.
116853         * m4/ftruncate.m4: Likewise.
116854         * m4/getgroups.m4: Likewise.
116855         * m4/getline.m4: Likewise.
116856         * m4/group-member.m4: Likewise.
116857         * m4/jm-macros.m4: Likewise.
116858         * m4/lstat.m4: Likewise.
116859         * m4/malloc.m4: Likewise.
116860         * m4/memcmp.m4: Likewise.
116861         * m4/nanosleep.m4: Likewise.
116862         * m4/putenv.m4: Likewise.
116863         * m4/realloc.m4: Likewise.
116864         * m4/regex.m4: Likewise.
116865         * m4/stat.m4: Likewise.
116866         * m4/strftime.m4: Likewise.
116868 2000-07-02  Jim Meyering  <meyering@lucent.com>
116870         * lib/quotearg.c (mbstate_t): Don't define here.
116872 2000-07-02  Jim Meyering  <meyering@lucent.com>
116874         * lib/nanosleep.c (SIGCONT): Define if not already defined.
116876 2000-07-01  Jim Meyering  <meyering@lucent.com>
116878         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
116880 2000-07-01  Jim Meyering  <meyering@lucent.com>
116882         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
116883         problem.
116885 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
116887         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
116888         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
116890 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
116892         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
116893         per change in ../m4/ls-mntd-fs.m4.
116894         (read_filesystem_list): Ignore symbolic links.
116896 2000-06-29  Jim Meyering  <meyering@lucent.com>
116898         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
116899         for declaration of strcmp.
116901         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
116903         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
116904         Avoid warning by casting result to `char *' to remove `const'.
116906 2000-06-28  Jim Meyering  <meyering@lucent.com>
116908         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
116909         included by quotearg.c, for which we perform this test.  From
116910         Bruno Haible.
116912 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
116914         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
116915         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
116916         <utmpx.h> exists, put readutmp.o into LIBOBJS.
116918 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
116920         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
116922 2000-06-26  Paul Eggert  <eggert@twinsun.com>
116924         savedir now sets errno on failure and invokes xmalloc to get memory.
116925         Fix a couple of other minor bugs while we're at it.
116927         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
116928         (NAMLEN): Remove macro.
116929         (malloc, realloc): Remove decls.
116930         (stpcpy): Likewise.
116931         ("xalloc.h"): Include.
116932         (NAME_SIZE_DEFAULT): New macro.
116933         (savedir): Use xmalloc / xrealloc to allocate memory.
116934         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
116935         Skip "" directory entries.
116936         Use strlen to calculate directory entry length, since the old method
116937         is rarely used these days and isn't worth supporting.
116938         Don't use a pointer after freeing it.
116939         Check for integer overflow when calculating allocation size.
116940         Use memcpy to copy entries, instead of stpcpy.
116941         Set errno properly when returning NULL.
116942         Check for readdir error.
116944 2000-06-26  Jim Meyering  <meyering@lucent.com>
116946         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
116948 2000-06-25  Jim Meyering  <meyering@lucent.com>
116950         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
116951         Linux header bug when _XOPEN_SOURCE is defined to 500.
116953 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
116955         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
116956         deficiency.
116958 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
116960         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
116961         Include xalloc.h.
116962         Don't include <stdlib.h>.  Don't declare malloc, realloc.
116964 2000-06-24  Jim Meyering  <meyering@lucent.com>
116966         * m4/strerror_r.m4: Revive this file -- to try out an experimental
116967         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
116968         for which strerror does return char*, but which lacks a conveniently
116969         accessible declaration of the function.  If the compile-test says
116970         strerror_r doesn't work, then resort to a `run'-test that works on
116971         BeOS and segfaults on DEC Unix.
116973 2000-06-24  Jim Meyering  <meyering@lucent.com>
116975         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
116977 2000-06-23  Paul Eggert  <eggert@twinsun.com>
116979         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
116980         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
116982 2000-06-23  Paul Eggert  <eggert@twinsun.com>
116984         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
116985         (mbrtowc, mbstate_t): Define substitutes if
116986         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
116987         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
116988         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
116990 2000-06-23  Jim Meyering  <meyering@lucent.com>
116992         * m4/afs.m4: Add missing AC_MSG_RESULT.
116993         Reported by Bruno Haible.
116995         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
116996         Suggestion from Bruno Haible.
116998 2000-06-23  Jim Meyering  <meyering@lucent.com>
117000         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
117002 2000-06-21  Jim Meyering  <meyering@lucent.com>
117004         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
117006 2000-06-21  Jim Meyering  <meyering@lucent.com>
117008         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
117009         (noinst_HEADERS): Add getstr.h.
117011         * lib/getline.c (getstr): Move into a separate file.
117012         * lib/getstr.c (getstr): New file, extracted from getline.c, with
117013         the following changes: new parameter, delim2; both delim[12]
117014         parameters have type `int', not `char'.  The latter would lose
117015         with 8-bit delimiters.
117016         * lib/getstr.h: New file.
117018 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117020         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
117021         than 1024, return a memory chunk of least possible size, instead
117022         of size PATH_MAX + 2. In the loop, increment the size proportionally.
117023         Use free/xmalloc instead of xrealloc to avoid copying for very long
117024         paths.
117026 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117028         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
117029         the empty string.
117031 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117033         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
117034         address, not strdup.  Include <stdlib.h> and don't declare free().
117036 2000-06-19  Jim Meyering  <meyering@lucent.com>
117038         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
117040 2000-06-18  Jim Meyering  <meyering@lucent.com>
117042         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
117044         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
117045         `checking whether...' message to be consistent with that of the
117046         lstat test.
117048 2000-06-18  Jim Meyering  <meyering@lucent.com>
117050         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
117051         Besides, these days every porting target provides a mkdir function.
117053         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
117054         needed. (this snippet comes from src/system.h).
117056 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
117058         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
117060 2000-06-15  Paul Eggert  <eggert@twinsun.com>
117062         * lib/human.c (adjust_value): New function.
117063         (human_readable_inexact): Apply rounding style even when
117064         printing approximate values.
117066 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117068         * lib/human.c (human_readable_inexact): Allow an input block
117069         size that is not a multiple of the output block size, and vice versa.
117070         Reported by Piergiorgio Sartor.
117072 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117074         * lib/getdate.y (get_date): Apply relative times after time
117075         zone indicator, not before.  Reported by Todd A. Jacobs.
117077 2000-06-13  Jim Meyering  <meyering@lucent.com>
117079         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
117081         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
117083 2000-06-12  Paul Eggert  <eggert@twinsun.com>
117085         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
117087 2000-06-12  Jim Meyering  <meyering@lucent.com>
117089         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
117090         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
117091         optional argument.
117092         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
117093         the optional argument, `lib'.
117095 2000-06-08  Jim Meyering  <meyering@lucent.com>
117097         * m4/largefile.m4: Remove file (now that it's part of autoconf).
117099 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117101         Rewrite largefile configuration so that we don't need to run
117102         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
117103         AC_CANONICAL_HOST in configure.in -- jmm]
117105         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
117106         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
117107         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
117108         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
117109         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
117110         All uses changed.
117111         Instead of inspecting the output of getconf, try to compile the
117112         test program without and with the macro definition.
117113         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
117114         for getconf.  Instead, check for the needed flags by compiling
117115         test programs.
117117 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117119         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
117121 2000-06-04  Jim Meyering  <meyering@lucent.com>
117123         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
117124         SunOS 4.1.4 for which gid_t is an unsigned type.
117126 2000-06-03  Jim Meyering  <meyering@lucent.com>
117128         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
117129         now that autoconf requires that.
117131         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
117132         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
117133         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
117135 2000-06-03  Jim Meyering  <meyering@lucent.com>
117137         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
117139 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117141         * m4/glibc21.m4: New file.
117142         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
117144 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117146         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
117147         newer, don't install charset.alias.
117148         * lib/config.charset: Change the Linux/glibc rules so they become empty
117149         on glibc-2.1 or newer.
117151 2000-06-02  Jim Meyering  <meyering@lucent.com>
117153         * lib/mountlist.c: Back out last change.  Instead, do this...
117154         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
117155         me_dummy member using the same `ignore'-testing code.
117156         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
117157         fs_type strings.
117158         From Mark D. Roth.
117160 2000-05-29  Jim Meyering  <meyering@lucent.com>
117162         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
117163         mounts with the `ignore' attribute.  Based on a patch from
117164         Mark D. Roth.
117166 2000-05-28  Jim Meyering  <meyering@lucent.com>
117168         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
117169         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117170         * m4/stat.m4: Likewise.
117171         * m4/lstat.m4: Likewise.
117172         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
117174         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
117175         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
117177 2000-05-26  Jim Meyering  <meyering@lucent.com>
117179         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
117181 2000-05-24  Jim Meyering  <meyering@lucent.com>
117183         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
117184         autoconf requires that.
117185         * m4/lib-check.m4: Likewise.
117186         * m4/jm-macros.m4: Likewise.
117187         * m4/strftime.m4: Likewise.
117189         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
117190         AC_CHECK_DECLS, now that autoconf requires that.
117192 2000-05-22  Jim Meyering  <meyering@lucent.com>
117194         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117195         * m4/lstat.m4: Likewise.
117197 2000-05-22  Jim Meyering  <meyering@lucent.com>
117199         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
117201 2000-05-20  Jim Meyering  <meyering@lucent.com>
117203         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
117204         (jm_PREREQ): Use it.
117206 2000-05-18  Jim Meyering  <meyering@lucent.com>
117208         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
117209         back, too, since it may have been modified by allocate_entry.
117210         (hash_delete): Rewrite to use neither the assignment operator
117211         nor the comma operator in an if-expression.
117213 2000-05-15  Paul Eggert  <eggert@twinsun.com>
117215         * lib/closeout.c:
117216         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
117217         Remove; no longer needed.
117218         "quotearg.h": Add include.
117219         (file_name): Do not bother to explicitly initialize to NULL; it's less
117220         efficient on some hosts.
117221         (close_stdout_status): Remove test as to whether stdout was already
117222         closed; it breaks for the case "echo x | sort >&-".
117223         Quote file name colons.
117224         Do not assume that _("write error") lacks format strings.
117226 2000-05-15  Jim Meyering  <meyering@lucent.com>
117228         * lib/version-etc.c (version_etc_copyright): Update the copyright
117229         string used in all --version output.
117231 2000-05-14  Jim Meyering  <meyering@lucent.com>
117233         * lib/closeout.c (close_stdout_set_file_name): New function.
117234         (close_stdout_status): Use new file-scoped global.
117235         Return right away if fstat says the stdout file descriptor is invalid.
117236         * lib/closeout.h (close_stdout_set_file_name): Declare.
117238 2000-05-10  Jim Meyering  <meyering@lucent.com>
117240         * lib/closeout.c [default_exit_status]: New file-scoped variable.
117241         (close_stdout_set_status): New function.
117242         * lib/closeout.h (close_stdout_set_status): Declare.
117244 2000-05-09  Jim Meyering  <meyering@lucent.com>
117246         * m4/gettext.m4: Rename this...
117247         * m4/libintl.m4: ...to this.
117249 2000-05-08  Jim Meyering  <meyering@lucent.com>
117251         * lib/long-options.c: Don't include closeout.h.
117252         (parse_long_options): Don't call close_stdout for --version.
117254 2000-05-06  Paul Eggert  <eggert@twinsun.com>
117256         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
117257         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
117258         2.1.3 bug.  This avoids a clash when files like regex.c define
117259         _GNU_SOURCE.
117261 2000-05-06  Jim Meyering  <meyering@lucent.com>
117263         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
117264         (AC_REPLACE_FUNCS): Add strnlen.
117266         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
117267         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
117269         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
117270         AC_SEARCH_LIBS call for nanosleep.
117271         (LIB_NANOSLEEP): Set and AC_SUBST.
117273 2000-05-06  Jim Meyering  <meyering@lucent.com>
117275         * lib/strnlen.c: Undefine __strnlen and strnlen.
117276         [!weak_alias]: Define __strnlen to strnlen.
117278         * lib/atexit.c: New file, from libiberty.
117280 2000-05-06  Jim Meyering  <meyering@lucent.com>
117282         * lib/closeout.c (close_stdout_status): Also check for errors on the
117283         stderr stream.
117285 2000-05-05  Jim Meyering  <meyering@lucent.com>
117287         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
117288         AC_SEARCH_LIBS call for clock_gettime.
117289         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
117291         * m4/search-libs.m4: Update from autoconf.
117293         su doesn't work on Solaris 2.6.
117294         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
117295         <shadow.h>.  Reported by Dragos Harabor.
117297 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
117299         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
117300         memcpy instead of xmalloc, xrealloc, path_concat.
117301         (locale_charset): Treat empty environment variables as absent.
117302         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
117304 2000-05-04  Jim Meyering  <meyering@lucent.com>
117306         * lib/getopt.c: Update from glibc.
117307         * lib/obstack.c: Likewise.
117308         * lib/obstack.h: Likewise.
117309         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
117310         file
117312         * lib/regex.h: Likewise.
117313         * lib/strndup.c: Likewise.
117314         * lib/strnlen.c: New file, from glibc.
117316 2000-05-03  Jim Meyering  <meyering@lucent.com>
117318         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
117320 2000-05-02  Paul Eggert  <eggert@twinsun.com>
117322         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
117323         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
117324         compile-time test, rather than inspecting host and OS, to
117325         decide whether to define _LARGEFILE_SOURCE.
117327 2000-05-01  Jim Meyering  <meyering@lucent.com>
117329         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
117331         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
117332         Based on a patch from Bruno Haible.
117334 2000-05-01  Jim Meyering  <meyering@lucent.com>
117336         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
117338 2000-04-29  Jim Meyering  <meyering@lucent.com>
117340         * lib/path-concat.c: Declare strdup only if it's not defined.
117341         * lib/canon-host.c: Likewise.
117343 2000-04-28  Jim Meyering  <meyering@lucent.com>
117345         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
117346         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
117347         is included first, then limits.h is included by locale.h by libintl.h.
117348         From John David Anglin.
117350 2000-04-25  Jim Meyering  <meyering@lucent.com>
117352         * lib/makepath.c (S_IRWXUGO): Define.
117353         (make_path): Always perform explicit chmod if MODE specifies any
117354         of the `special' permission bits.  Prompted by a bug report against
117355         install from Mate Wierdl and Joost van Baal.
117357 2000-04-18  Jim Meyering  <meyering@lucent.com>
117359         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
117360         (jm_PREREQ): Use it.
117362 2000-04-18  Jim Meyering  <meyering@lucent.com>
117364         * lib/README: New file.
117366         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
117367         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
117369 2000-04-17  Jim Meyering  <meyering@lucent.com>
117371         Get it right :-)
117372         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
117373         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
117374         Suggestion from Akim Demaille.
117376 2000-04-17  Jim Meyering  <meyering@lucent.com>
117378         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
117379         the definition of it to rpl_strftime also defined-away the system's
117380         declaration.
117382 2000-04-15  Jim Meyering  <meyering@lucent.com>
117384         Use `C' to denote so-called `contiguous' files, the same way
117385         that tar does.
117386         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
117387         (ftypelet): Use S_ISCTG.
117388         From Michael Deutschmann.
117390 2000-04-14  Jim Meyering  <meyering@lucent.com>
117392         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
117393         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
117394         clobbered.
117396 2000-04-14  Jim Meyering  <meyering@lucent.com>
117398         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
117400 2000-04-13  Jim Meyering  <meyering@lucent.com>
117402         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
117403         AH_VERBATIM to insert required #ifndef into config.h.in.
117404         Suggestion from Akim Demaille.
117406 2000-04-12  Jim Meyering  <meyering@lucent.com>
117408         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
117409         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
117410         Christian Krackowizer.
117412         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
117413         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
117414         (AC_SYS_LARGEFILE): Require.
117415         (AM_C_PROTOTYPES): Require.
117417 2000-04-08  Jim Meyering  <meyering@lucent.com>
117419         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
117420         names don't conflict.  Reported by Eli Zaretskii.
117422 2000-04-07  Jim Meyering  <meyering@lucent.com>
117424         * lib/putenv.c: Move inclusion of errno.h so it follows that of
117425         sys/types.h, to work around system header problems on AIX 3.2.5.
117426         From Bruno Haible.
117428 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
117430         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
117431         bug.  Deal with the different error behavior of Irix iconv.
117433 2000-04-05  Paul Eggert  <eggert@twinsun.com>
117435         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
117436         IRIX if the installer said otherwise.
117438 2000-04-05  Jim Meyering  <meyering@lucent.com>
117440         Portability tweaks required for ultrix4.3.
117441         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
117442         (jm_CHECK_DECLS): Add getutent to the list of functions.
117443         (_jm_DECL_HEADERS): Add utmpx.h.
117444         From John David Anglin.
117446         * m4/strftime.m4: Back out the 2000-04-02 change.
117447         Instead of that change, simply undefine putenv in the test program.
117449 2000-04-05  Jim Meyering  <meyering@lucent.com>
117451         Portability tweaks required for ultrix4.3.
117452         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
117453         getutent.
117454         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
117455         * lib/canon-host.c: Declare strdup.
117456         * lib/path-concat.c: Likewise.
117457         From John David Anglin.
117459 2000-04-04  Jim Meyering  <meyering@lucent.com>
117461         Be more DOS 8.3-friendly.
117462         * lib/ref-add.sin: Renamed from ref-add.sed.in.
117463         * lib/ref-del.sin: Renamed from ref-del.sed.in.
117464         * lib/Makefile.am: Reflect renaming.
117465         Reported by Eli Zaretskii.
117467         Use a temporary file name that won't clash with `charset.alias'
117468         in the DOS 8.3 name space.
117469         * lib/Makefile.am (charset_tmp): Define.
117470         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
117471         (uninstall-local): Likewise.
117472         Reported by Eli Zaretskii.
117474 2000-04-03  Jim Meyering  <meyering@lucent.com>
117476         * m4/gettext.m4: Fix typo in comment.
117478         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
117479         textutils/configure.in).  Suggestion from Paul Eggert.
117480         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
117482 2000-04-02  Paul Eggert  <eggert@twinsun.com>
117484         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
117485         variable in the shell rather than using putenv, which isn't
117486         portable.  This avoids the configure-time inter-test dependency
117487         on the potentially-renamed putenv function.
117489 2000-03-30  Paul Eggert  <eggert@twinsun.com>
117491         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
117492         before checking struct stat.st_blksize, so that
117493         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
117495 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117497         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
117498         since strftime.c uses HAVE_STRFTIME to decide whether to use
117499         the underlying strftime.
117501 2000-03-29  Paul Eggert  <eggert@twinsun.com>
117503         * lib/time/strftime.c (my_strftime): Make sure we call the system
117504         strftime, not ourselves, when invoking the underlying strftime.
117506 2000-03-24  Jim Meyering  <meyering@lucent.com>
117508         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
117509         (charset_alias): Define.
117510         (install-exec-local): Factor out common code.
117511         (uninstall-local): Split lines longer than 80.
117512         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
117513         (SUFFIXES): Define.
117514         (.sed.in.sed): New rule.  Don't redirect directly to $@.
117515         (CLEANFILES): Add ref-add.sed and ref-del.sed.
117517 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
117519         * lib/config.charset: Output a line containing "Packages using this
117520         file".
117521         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
117522         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
117523         ref-del.sed): New rules.
117525 2000-03-17  Jim Meyering  <meyering@lucent.com>
117527         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
117528         Otherwise, include <strings.h>
117530 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
117532         * lib/unicodeio.c (utf8_wctomb): New function.
117533         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
117534         format instead of in UCS-4 with platform dependent endianness.
117536 2000-03-10  Jim Meyering  <meyering@lucent.com>
117538         * m4/lib-check.m4: Look for getspnam in -lgen, too.
117539         From Marco Franzen.
117541 2000-03-07  Paul Eggert  <eggert@twinsun.com>
117543         * lib/savedir.c (savedir): Work even if directory size is
117544         negative; this can happen with some screwy NFS configurations.
117546 2000-03-06  Jim Meyering  <meyering@lucent.com>
117548         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
117549         if it's NULL (because we ran out of memory).  From Bruno Haible.
117551 2000-03-05  Jim Meyering  <meyering@lucent.com>
117553         * lib/localcharset.c ("path-concat.h"): Include.
117554         (get_charset_aliases): Use path_concat instead of ANSI string
117555         concatenation.
117557         * lib/unicodeio.h (PARAMS): Define.
117558         Use it to guard prototype.
117560 2000-03-04  Jim Meyering  <meyering@lucent.com>
117562         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
117563         for lib/localcharset.c.
117565 2000-03-04  Jim Meyering  <meyering@lucent.com>
117567         * lib/Makefile.am (install-exec-local): Create $(libdir) before
117568         installing into it.
117569         (uninstall-local): Uncomment this rule so `make distcheck' works
117570         once again.
117572         * lib/unicodeio.c (<errno.h>): Include it.
117573         (errno): Declare if not defined.
117575         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
117577         * lib/config.charset: New version, incorporating remarks from a linux
117578         i18n mailing list.  From Bruno Haible.
117580 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
117582         * m4/codeset.m4: New file.
117583         * m4/iconv.m4: New file.
117584         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
117586 2000-03-03  Jim Meyering  <meyering@lucent.com>
117588         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
117590 2000-03-02  Jim Meyering  <meyering@lucent.com>
117592         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
117593         the messages come out on separate lines.
117595         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
117596         rather than jm_CHECK_DECLARATIONS.
117597         * m4/decl.m4: Remove now-unused file.
117599         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
117600         geteuid.
117602 2000-03-02  Jim Meyering  <meyering@lucent.com>
117604         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
117606 2000-03-01  Jim Meyering  <meyering@lucent.com>
117608         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
117609         * lib/unicodeio.c: Likewise.
117611 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
117613         * lib/config.charset: New file.
117614         * lib/localcharset.c: New file.
117615         * lib/unicodeio.h, lib/unicodeio.c: New files.
117616         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
117617         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
117618         (noinst_HEADERS): Add unicodeio.h.
117619         (all-local, install-exec-local, charset.alias): New targets.
117621 2000-02-28  Paul Eggert  <eggert@twinsun.com>
117623         * lib/quotearg.c (ALERT_CHAR): New macro.
117624         (quotearg_buffer_restyled): Use it.
117626 2000-02-27  Jim Meyering  <meyering@lucent.com>
117628         * m4/check-decl.m4: Add getenv to the list.
117630 2000-02-27  Jim Meyering  <meyering@lucent.com>
117632         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
117633         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
117635         * lib/backupfile.c: Guard inclusion of stdlib.h with
117636         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
117637         Declare malloc if needed.
117639         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
117640         `#ifndef HAVE_DECL..'
117641         now that autoconf always defines the HAVE_DECL_ symbols.
117642         * lib/human.c: Likewise.
117643         * lib/same.c: Likewise.
117644         * lib/strtoumax.c: Likewise.
117646         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
117647         declaration check was not run.
117648         * lib/hash.c: Likewise.
117649         * lib/human.c: Likewise.
117650         * lib/same.c: Likewise.
117651         * lib/strtoumax.c: Likewise.
117653         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
117654         `.', then first look up the entire `.'-containing string as a login
117655         name.
117657 2000-02-23  Jim Meyering  <meyering@lucent.com>
117659         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
117660         in place of my hack.
117662 2000-02-18  Paul Eggert  <eggert@twinsun.com>
117664         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
117665         (textint): New typedef.
117666         (parser_control): Member year changed from int to textint.
117667         All uses changed.
117668         (YYSTYPE): Removed; replaced by %union with int and textint members.
117669         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
117670         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
117671         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
117672         (tSNUMBER, tUNUMBER): Now of type <textintval>.
117673         (date, number, to_year): Use width of number in digits, not its value,
117674         to determine whether it's a 2-digit year, or a 2-digit time.
117675         (yylex): Store number of digits of numeric tokens.
117676         Reported by John Kendall.
117678         (parser_control): Changed from struct parser_control to typedef (for
117679         consistency).  All uses changed.
117681         (tID): Removed; not used.
117682         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
117684 2000-02-14  Paul Eggert  <eggert@twinsun.com>
117686         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
117687         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
117689 2000-02-12  Jim Meyering  <meyering@lucent.com>
117691         * lib/userspec.c (ISDIGIT): Define it.
117692         (isdigit): Remove definition.
117693         (is_number): Use ISDIGIT, not isdigit.
117694         <libintl.h>: Include.
117695         (_ and N_): Define.
117696         (parse_user_spec): Mark translatable strings.
117698 2000-02-10  Jim Meyering  <meyering@lucent.com>
117700         With these changes, nanosleep.[ch] are finally enough like the other
117701         lib/* replacement files to compile on a few more losing systems.
117703         * lib/nanosleep.h: Don't include config.h.
117704         Remove prototype from declaration of nanosleep.
117705         (PARAMS): Remove now-unneeded definition.
117706         * lib/nanosleep.c: #undef nanosleep.
117707         (rpl_nanosleep): Rename from nanosleep.
117709 2000-02-10  Jim Meyering  <meyering@lucent.com>
117711         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
117712         gnu_nanosleep to rpl_nanosleep.
117714 2000-02-09  Jim Meyering  <meyering@lucent.com>
117716         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
117717         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
117719 2000-02-08  Akim Demaille  <akim@epita.fr>
117721         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
117722         `[' and `]' and remove uses of `changequote'.
117723         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
117724         (AC_SYS_LARGEFILE): Likewise.
117725         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
117726         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
117727         of changequote.
117728         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
117729         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
117730         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
117731         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
117733 2000-02-05  Jim Meyering  <meyering@lucent.com>
117735         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
117736         Remove explicit use of AC_HEADER_TIME.  It is required by
117737         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
117738         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
117739         in autoconf whereby the expansion of the latter ended up preceding
117740         the expansion of its prerequisite, AC_HEADER_TIME.
117741         Reported by Volker Borchert.
117743 2000-02-03  Jim Meyering  <meyering@lucent.com>
117745         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
117747 2000-02-03  Jim Meyering  <meyering@lucent.com>
117749         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
117750         rather than with `#if HAVE_UTMPNAME'.
117752 2000-02-02  Jim Meyering  <meyering@lucent.com>
117754         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
117755         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
117756         Reported by Eli Zaretskii.
117758 2000-02-01  Jim Meyering  <meyering@lucent.com>
117760         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
117762 2000-01-31  Jim Meyering  <meyering@lucent.com>
117764         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
117765         functions.  Add the time.h and sys/time.h headers along with the
117766         AC_REQUIRE'ment of AC_HEADER_TIME.
117768 2000-01-31  Jim Meyering  <meyering@lucent.com>
117770         * lib/nanosleep.h (nanosleep): Guard declaration with
117771         `#if ! HAVE_DECL_NANOSLEEP'.
117772         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
117773         the declaration in that vendor's sys/timers.h.
117774         Reported by Christian Krackowizer.
117776         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
117777         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
117778         (ISPRINT): Likewise.
117779         Reported by Tom Tromey.
117781 2000-01-30  Jim Meyering  <meyering@lucent.com>
117783         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
117785         * m4/prereq.m4 (utmp_includes): Define.
117786         Check for ut_user and ut_name members in both struct utmpx
117787         and struct utmp.
117789 2000-01-30  Jim Meyering  <meyering@lucent.com>
117791         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
117792         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
117793         header files where only utmpx.ut_user is declared.
117795         * lib/readutmp.h (UT_USER): Define.
117797 2000-01-29  Jim Meyering  <meyering@lucent.com>
117799         * m4/lib-check.m4: New file containing library-related checks from
117800         fileutils and sh-utils (textutils had none).
117802 2000-01-28  Jim Meyering  <meyering@lucent.com>
117804         * m4/perl.m4: Change format of warning message to look more like that
117805         from the missing script.  Suggestion from François Pinard.
117807 2000-01-25  Jim Meyering  <meyering@lucent.com>
117809         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
117810         well as time.h in the compile check.
117811         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
117812         Fix typo in cross-compiling case: s/yes/no/.
117814 2000-01-23  Jim Meyering  <meyering@lucent.com>
117816         * m4/jm-macros.m4: Move df-related tests here from
117817         fileutils/configure.in
117819         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
117820         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
117822         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
117823         s/space/ac_fsusage_space/.
117824         (jm_FILE_SYSTEM_USAGE): Take two parameters.
117826         * m4/ftruncate.m4: New file (derived from part of
117827         fileutils/configure.in).
117828         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
117829         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
117831         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
117832         AC_SUBST these here, rather than just in sh-util/configure.in, so
117833         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
117834         all the same.
117835         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
117836         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
117837         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
117838         (AC_SUBST(POW_LIBM)): Likewise.
117839         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
117841 2000-01-23  Jim Meyering  <meyering@lucent.com>
117843         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
117844         obstack.c.
117846 2000-01-22  Jim Meyering  <meyering@lucent.com>
117848         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
117850         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
117852         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
117853         configure.in
117854         (AC_CHECK_HEADERS): Likewise for sh-utils.
117855         (AC_CHECK_HEADERS): Likewise for textutils.
117856         Merge the three lists of headers.
117858         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
117859         from fileutils' configure.in.
117861         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
117862         code. Moved tests into their own function (_jm_DECL_HEADERS) in
117863         check-decl.m4.
117865         * m4/check-decl.m4: Use #if rather than #ifdef.
117866         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
117867         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
117868         (_jm_DECL_HEADERS): Define new function.
117869         (jm_CHECK_DECLARATIONS): Require it.
117871 2000-01-22  Jim Meyering  <meyering@lucent.com>
117873         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
117874         [! HAVE_DECL_STRTOULL]: Declare strtoull.
117875         Required for some AIX systems.  Reported by Christian Krackowizer.
117876         [TESTING] (main): New function.
117878         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
117879         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
117880         letters.
117882         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
117883         iswprint.
117885         * lib/strverscmp.c (ISDIGIT): Define.
117886         (strverscmp): Use ISDIGIT, not isdigit.
117888 2000-01-19  Jim Meyering  <meyering@lucent.com>
117890         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
117891         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
117892         defines `struct timespec' in <sys/time.h>
117894         * m4/c-bs-a.m4: Remove uses of changequote altogether.
117895         Thanks to Akim for explaining.
117897 2000-01-17  Paul Eggert  <eggert@twinsun.com>
117899         * lib/nanosleep.c (nanosleep):
117900         Don't use SA_INTERRUPT to decide whether to call sigaction, as
117901         POSIX.1 doesn't require SA_INTERRUPT and some systems
117902         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
117903         it's been part of POSIX.1 since day 1 (in 1988).
117905 2000-01-17  Jim Meyering  <meyering@lucent.com>
117907         * lib/interlock: Remove unused file.  Reported by François Pinard.
117909 2000-01-16  Paul Eggert  <eggert@twinsun.com>
117911         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
117912         alert, backslash, formfeed, and vertical tab unnecessarily in
117913         shell quoting style.
117915 2000-01-16  Jim Meyering  <meyering@lucent.com>
117917         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
117918         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
117919         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
117920         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
117922 2000-01-16  Jim Meyering  <meyering@lucent.com>
117924         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
117925         because the latter didn't work.
117927 2000-01-15  Jim Meyering  <meyering@lucent.com>
117929         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
117930         (AC_REPLACE_FUNCS): Add memcpy and memset.
117931         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
117932         Add strpbrk.
117933         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
117935 2000-01-12  Jim Meyering  <meyering@lucent.com>
117937         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
117938         (jm_PREREQ): Use it.
117939         (jm_PREREQ_READUTMP): New macro.
117940         (jm_PREREQ): Use it.
117942 2000-01-11  Paul Eggert  <eggert@twinsun.com>
117944         Quote multibyte characters correctly.
117945         * m4/c-bs-a.m4: New file.
117946         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
117947         (jm_PREREQ): Use it.
117949 2000-01-11  Paul Eggert  <eggert@twinsun.com>
117951         * m4/uintmax_t.m4: Port to autoconf 2.13.
117953 2000-01-08  Jim Meyering  <meyering@ascend.com>
117955         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
117956         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
117958 2000-01-04  Jim Meyering  <meyering@ascend.com>
117960         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
117961         jm_STRUCT_DIRENT_D_TYPE.
117962         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
117963         jm_STRUCT_DIRENT_D_INO.
117964         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
117965         jm_STRUCT_UTIMBUF.
117966         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
117967         renamings.
117968         * m4/utime.m4: Likewise.
117970         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
117971         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
117973 2000-01-03  Paul Eggert  <eggert@twinsun.com>
117975         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
117976         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
117978 2000-01-02  Jim Meyering  <meyering@ascend.com>
117980         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
117981         remember if this is necessary.
117983 1999-12-26  Jim Meyering  <meyering@ascend.com>
117985         * m4/jm-macros.m4: Use it here.
117986         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
117988 1999-12-23  Jim Meyering  <meyering@ascend.com>
117990         * m4/jm-macros.m4: Check for clock_gettime (moved from
117991         fileutils/configure.in)
117992         Check for gettimeofday.
117994 1999-12-20  Jim Meyering  <meyering@ascend.com>
117996         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
117997         autoconf-2.14a-1999-12-20.
117999 1999-12-19  Jim Meyering  <meyering@ascend.com>
118001         * m4/lstat-slash.m4: New file.
118002         * m4/jm-macros.m4: Use the new macro:
118003         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118005 1999-12-07  Jim Meyering  <meyering@ascend.com>
118007         * m4/perl.m4: Require that File::Compare be available, too.
118008         Too many systems seem to lack it.
118010         * m4/strftime.m4: Add checks for most of the cpp macros tested in
118011         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
118013 1999-11-18  Paul Eggert  <eggert@twinsun.com>
118015         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
118016         problem with the QNX 4.25 shell, which doesn't propagate exit
118017         status of failed commands inside shell assignments.
118019 1999-11-17  Jim Meyering  <meyering@ascend.com>
118021         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
118023 1999-11-07  Jim Meyering  <meyering@ascend.com>
118025         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
118027 1999-11-06  Jim Meyering  <meyering@ascend.com>
118029         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
118030         * m4/jm-macros.m4 (jm_MACROS): Use it here.
118032 1999-11-05  Jim Meyering  <meyering@ascend.com>
118034         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
118035         configure.in of textutils, fileutils, and sh-utils into this one
118036         (shared between those packages) file.
118037         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
118038         AC_STRUCT_ST_BLKSIZE.
118040 1999-11-03  Jim Meyering  <meyering@ascend.com>
118042         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
118043         of AC_CHECK_TYPE checks includes unistd.h.
118044         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
118045         Suggestion from Akim Demaille.
118047 1999-10-30  Jim Meyering  <meyering@ascend.com>
118049         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
118050         m4-quoted string.
118051         * m4/ls-mntd-fs.m4: Likewise.
118052         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
118053         * m4/jm-winsz1.m4: Likewise.
118055         * m4/const.m4: Remove file, since the fix made it into the experimental
118056         version of autoconf.
118057         * m4/mktime.m4: Likewise.
118059         * m4/check-type.m4: Remove file, now that the latest version of
118060         AC_CHECK_TYPE takes a third arg to specify additional #includes.
118062         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
118063         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
118064         AC_CHECK_TYPE.
118066 1999-10-04  Jim Meyering  <meyering@ascend.com>
118068         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
118070 1999-09-22  Paul Eggert  <eggert@twinsun.com>
118072         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
118073         2.95.1 bug with HP-UX 10.20.
118075 1999-09-17  Jim Meyering  <meyering@ascend.com>
118077         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
118078         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
118079         due to missing strdup (against sh-utils-2.0).
118081 1999-08-29  Jim Meyering  <meyering@ascend.com>
118083         * m4/jm-macros.m4: Require jm_BISON.
118084         * m4/bison.m4: New file.
118086 1999-08-17  Paul Eggert  <eggert@twinsun.com>
118088         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
118089         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
118091 1999-08-05  Jim Meyering  <meyering@ascend.com>
118093         * m4/getline.m4: Rename test file from conftestdata to conftest.data
118094         to avoid conflicts with `conftest' on 8+3 filesystems.
118095         Suggestion from Eli Zaretskii.
118097 1999-08-04  Jim Meyering  <meyering@ascend.com>
118099         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
118100         fileutils and sh-utils (textutils's getline test was inadequate).
118101         (AM_FUNC_GETLINE): Run this test.
118102         (AC_CHECK_FUNCS): Check for getdelim.
118103         Reported by Bob Proulx.
118105 1999-08-02  Jim Meyering  <meyering@ascend.com>
118107         * m4/jm-macros.m4: Add a comment.
118109 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118111         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
118112         <inttypes.h> defines strtoumax as a macro (and not as a
118113         function).
118115 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118117         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
118118         that we can shift, multiply and divide unsigned long long
118119         values; Ultrix cc can't do it.
118121 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118123         * m4/mktime.m4: New file, which is a preview of what should appear
118124         in the next public autoconf release.
118126 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118128         * m4/lfs.m4: Remove this file.
118129         * m4/largefile.m4: New file.  It contains the old contents of
118130         lfs.m4, except that all names with prefix AC_LFS have been
118131         changed to use the prefix AC_SYS_LARGEFILE instead, to be
118132         compatible with future autoconf versions.  Also, some minor m4
118133         quoting problems have been fixed.
118135 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118137         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
118138         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
118139         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
118140         and simplify the shell code.
118142 1999-08-01  Jim Meyering  <meyering@ascend.com>
118144         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
118145         m4.
118147 1999-07-20  Jim Meyering  <meyering@ascend.com>
118149         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
118151 1999-07-15  Jim Meyering  <meyering@ascend.com>
118153         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
118155 1999-05-22  Jim Meyering  <meyering@ascend.com>
118157         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
118159 1999-05-20  Jim Meyering  <meyering@ascend.com>
118161         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
118162         Add a colon after each `then' in case $4 is empty.
118164 1999-05-16  Jim Meyering  <meyering@ascend.com>
118166         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
118168 1999-05-10  Jim Meyering  <meyering@ascend.com>
118170         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
118172         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
118173         AC_FUNC_MKTIME.
118175 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
118177         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
118179 1999-05-04  Paul Eggert  <eggert@twinsun.com>
118181         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
118182         not CPPFLAGS, so that linking works correctly in IRIX.
118184 1999-04-30  Paul Eggert  <eggert@twinsun.com>
118186         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
118188 1999-04-20  Paul Eggert  <eggert@twinsun.com>
118190         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
118191         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
118192         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
118193         jm_AC_TYPE_UNSIGNED_LONG_LONG.
118194         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
118196         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
118198 1999-04-20  Jim Meyering  <meyering@ascend.com>
118200         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
118201         AC_REPLACE xstroull if necessary.  From Paul Eggert.
118202         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
118204 1999-04-18  Jim Meyering  <meyering@ascend.com>
118206         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
118207         * m4/jm-macros.m4: Use it.
118209 1999-04-06  Jim Meyering  <meyering@ascend.com>
118211         * m4/strftime.m4: Remove test for %f.
118213 1999-03-29  Jim Meyering  <meyering@ascend.com>
118215         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
118216         superset of the AC_TYPE_* checks in the textutils, fileutils,
118217         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
118218         AC_TYPE_PID_T.
118220 1999-03-28  Jim Meyering  <meyering@ascend.com>
118222         * m4/jm-macros.m4: Define GNU_PACKAGE here.
118223         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
118224         replaced e.g., in the *.sh files of the sh-utils.
118226 1999-03-20  Jim Meyering  <meyering@ascend.com>
118228         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
118229         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
118230         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
118232 1999-03-19  Jim Meyering  <meyering@ascend.com>
118234         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
118236 1999-03-12  Jim Meyering  <meyering@ascend.com>
118238         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
118240 1999-03-07  Jim Meyering  <meyering@ascend.com>
118242         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
118243         declared.
118245 1999-02-17  Jim Meyering  <meyering@ascend.com>
118247         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
118248         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
118250 1999-02-07  Jim Meyering  <meyering@ascend.com>
118252         * m4/group-member.m4: New file -- extracted from sh-utils'
118253         configure.in.
118255         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
118256         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
118258 1999-02-06  Jim Meyering  <meyering@ascend.com>
118260         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
118261         * m4/fnmatch.m4: Likewise.
118262         * m4/getgroups.m4: Likewise.
118263         * m4/lstat.m4: Likewise.
118264         * m4/malloc.m4: Likewise.
118265         * m4/putenv.m4: Likewise.
118266         * m4/realloc.m4: Likewise.
118267         * m4/regex.m4: Likewise.
118268         * m4/stat.m4: Likewise.
118269         * m4/strftime.m4: Likewise.
118270         Suggestion from Alain Magloire.
118272         * m4/chown.m4: Use `.$ac_objext', not `.o'.
118273         * m4/fnmatch.m4: Likewise.
118274         * m4/getgroups.m4: Likewise.
118275         * m4/getline.m4: Likewise.
118276         * m4/lstat.m4: Likewise.
118277         * m4/malloc.m4: Likewise.
118278         * m4/memcmp.m4: Likewise.
118279         * m4/putenv.m4: Likewise.
118280         * m4/realloc.m4: Likewise.
118281         * m4/regex.m4: Likewise.
118282         * m4/stat.m4: Likewise.
118283         * m4/strftime.m4: Likewise.
118284         Suggestion from Alain Magloire.
118286         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
118287         an argument.
118289         * m4/regex.m4: Add a run-time Test for proper operation of
118290         re_compile_pattern.
118292 1999-01-31  Jim Meyering  <meyering@ascend.com>
118294         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
118296 1999-01-30  Jim Meyering  <meyering@ascend.com>
118298         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
118300         * m4/jm-mktime.m4: Make this a wrapper around the official
118301         AM_FUNC_MKTIME rather than my private copy, now that the official one
118302         is up to date.
118303         * m4/mktime.m4: Remove file.
118305         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
118306         * m4/uptime.m4: Likewise.
118307         * m4/uintmax_t.m4: Likewise.
118309 1999-01-28  Jim Meyering  <meyering@ascend.com>
118311         * m4/jm-macros.m4: Use jm_AFS.
118312         * m4/afs.m4: New file (from fileutils' configure.in).
118314         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
118315         * m4/chown.m4: Likewise.
118316         * m4/d-ino.m4: Likewise.
118317         * m4/d-type.m4: Likewise.
118318         * m4/fnmatch.m4: Likewise.
118319         * m4/getgroups.m4: Likewise.
118320         * m4/gettext.m4: Likewise.
118321         * m4/jm-mktime.m4: Likewise.
118322         * m4/jm-winsz2.m4: Likewise.
118323         * m4/lcmessage.m4: Likewise.
118324         * m4/ls-mntd-fs.m4: Likewise.
118325         * m4/malloc.m4: Likewise.
118326         * m4/memcmp.m4: Likewise.
118327         * m4/putenv.m4: Likewise.
118328         * m4/realloc.m4: Likewise.
118329         * m4/st_mtim.m4: Likewise.
118330         * m4/strftime.m4: Likewise.
118332 1999-01-16  Jim Meyering  <meyering@ascend.com>
118334         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
118335         (ARGMATCH_DIE_DECL): Define.
118337 1999-01-12  Jim Meyering  <meyering@ascend.com>
118339         * m4/Makefile.am.in: Rewrite to avoid using fmt.
118340         Reported by Lars Hecking.
118342 1999-01-10  Jim Meyering  <meyering@ascend.com>
118344         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
118345         gross kludge.
118346         * m4/inttypes_h.m4: Likewise.
118347         * m4/lstat.m4: Likewise.
118348         * m4/malloc.m4: Likewise.
118349         * m4/readdir.m4: Likewise.
118350         * m4/realloc.m4: Likewise.
118351         * m4/st_dm_mode.m4: Likewise.
118352         * m4/stat.m4: Likewise.
118353         * m4/utimbuf.m4: Likewise.
118354         * m4/utimes.m4: Likewise.
118356         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
118357         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
118358         comments in config.h.in are meaningful.
118360         * m4/jm-macros.m4: Require autoconf-2.13 here.
118362         * m4/regex.m4: By default, don't use the included regex.c on systems
118363         with glibc 2.  Suggestion from Uli Drepper.
118365 1999-01-02  Jim Meyering  <meyering@ascend.com>
118367         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
118369 1998-12-18  Jim Meyering  <meyering@ascend.com>
118371         * m4/Makefile.am.in (Makefile.am): Simplify rule.
118372         Based on a suggestion from Lars Hecking.
118374 1998-11-16  Paul Eggert  <eggert@twinsun.com>
118376         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
118378 1998-11-16  Jim Meyering  <meyering@ascend.com>
118380         * m4/lfs.m4: Double-quote the `uname...` expression.
118382 1998-11-14  Jim Meyering  <meyering@ascend.com>
118384         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
118385         * m4/stat.m4: Likewise.
118387 1998-11-03  Jim Meyering  <meyering@ascend.com>
118389         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
118390         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
118392 1998-10-18  Jim Meyering  <meyering@ascend.com>
118394         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
118396 1998-10-17  Jim Meyering  <meyering@ascend.com>
118398         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
118399         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
118400         calls for those previously hard-coded headers.  Instead, take a new
118401         parameter.
118402         (jm_CHECK_DECLARATIONS): Reflect interface change.
118403         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
118404         (jm_CHECK_DECL_LOCALTIME_R): New macro.
118406         * m4/mktime.m4: Test for spring-forward gap before long-running test.
118408 1998-10-14  Jim Meyering  <meyering@ascend.com>
118410         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
118411         instead of "TZ=America/Vancouver".  From Paul Eggert.
118413 1998-10-11  Jim Meyering  <meyering@ascend.com>
118415         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
118416         This adds a test for a recently added compatibility fix for mktime.c.
118417         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
118419 1998-09-27  Jim Meyering  <meyering@ascend.com>
118421         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
118423         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
118424         ../configure.in, including a change from Gordon Matzigkeit to allow
118425         cross-compiling for the Hurd.
118427         * m4/glibc.m4: New file/macro to test for the GNU C Library
118428         versions 1 and 2.  From Gordon Matzigkeit.
118429         Indent.
118431 1998-09-21  Jim Meyering  <meyering@ascend.com>
118433         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
118435 1998-08-18  Paul Eggert  <eggert@twinsun.com>
118437         Port nanosecond-resolution times to UnixWare 2.1.2 and
118438         pedantic Solaris 2.6.
118440         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
118441         AC_STRUCT_ST_MTIM.
118442         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
118443         Generate name of ns member, instead of just 1 or undef.
118444         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
118446 1998-08-15  Jim Meyering  <meyering@ascend.com>
118448         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
118449         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
118450         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
118451         instead of jm_TYPE_SSIZE_T.
118453 1998-08-12  Jim Meyering  <meyering@ascend.com>
118455         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
118457 1998-08-02  Jim Meyering  <meyering@ascend.com>
118459         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
118460         in acconfig.h manually.
118462 1998-07-31  Paul Eggert  <eggert@twinsun.com>
118464         * m4/st_mtim.m4: New file.
118466 1998-07-28  Jim Meyering  <meyering@ascend.com>
118468         * m4/utimes.m4: Undef stat.
118470 1998-07-25  Jim Meyering  <meyering@ascend.com>
118472         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
118473         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
118475 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
118477         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
118478         uid and gid actually remain unchanged.
118480 1998-07-07  Jim Meyering  <meyering@ascend.com>
118482         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
118484 1998-07-04  Jim Meyering  <meyering@ascend.com>
118486         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
118487         to prove that this macro can be used in packages without regex.c.
118489 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
118491         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
118492         is to be used.
118494 1998-07-03  Jim Meyering  <meyering@ascend.com>
118496         * m4/gettext.m4: Add -lintl if it's found to be necessary.
118498         * m4/gettext.m4: New file -- from gettext-0.10.35.
118499         * m4/lcmessage.m4: Likewise.
118500         * m4/progtest.m4: Likewise.
118502         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
118503         * m4/jm-macros.m4: Require the new macro.
118505 1998-06-29  Jim Meyering  <meyering@ascend.com>
118507         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
118508         for the definition of NGROUPS (used in a system header included
118509         by sys/mount.h).
118511 1998-06-28  Jim Meyering  <meyering@ascend.com>
118513         * m4/ls-mntd-fs.m4: New file.
118514         * m4/fstypename.m4: New file.
118516         * m4/jm-macros.m4: Require the new macro.
118517         * m4/jm-glibc-io.m4: New file.
118519 1998-05-19  Jim Meyering  <meyering@ascend.com>
118521         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
118522         * m4/lchown.m4: New file.
118524         * m4/Makefile.am.in: New file.
118525         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
118527 1998-05-14  Jim Meyering  <meyering@ascend.com>
118529         * m4/Makefile.am (EXTRA_DIST): Add them.
118530         * m4/jm-macros.m4: New file.
118531         * m4/utimbuf.m4: New file.
118533 1998-05-12  Jim Meyering  <meyering@ascend.com>
118535         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
118537 1998-05-11  Jim Meyering  <meyering@ascend.com>
118539         * m4/isc-posix.m4: New file.
118541 1998-05-10  Jim Meyering  <meyering@ascend.com>
118543         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
118545 1998-05-09  Jim Meyering  <meyering@ascend.com>
118547         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
118548         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
118549         with automake.
118551         * m4/ssize_t.m4: New file.
118552         * m4/mktime.m4: Remove file -- the new automake has this now.
118554 1998-04-26  Jim Meyering  <meyering@ascend.com>
118556         * m4/assert.m4: New file.
118557         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
118559 1998-04-05  Jim Meyering  <meyering@ascend.com>
118561         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
118562         (jm_PREREQ): Use it here.
118564 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
118566         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
118567         in acconfig.h.
118569 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
118571         * m4/prereq.m4: New file.
118572         * m4/error.m4: New file.
118573         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
118575 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
118577         * m4/getline.m4: Don't set am_cv_func_working_getline before the
118578         cache-check for the same variable -- that defeated the purpose of
118579         the test; the test program was never run.  This was a problem only
118580         on systems with losing getline functions -- HP-UX 10.20 is one.
118581         Reported by Bjorn Helgaas.
118583 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
118585         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
118587 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
118589         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
118591         * m4/const.m4: New file.  Use an initializer in this declaration
118592         typedef int charset[2]; const charset x;
118593         Reported by Bob Glickstein.
118595 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
118597         * m4/chown.m4: Fix reversed types on -1 args to chown.
118598         From Kaveh Ghazi.
118600 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
118602         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
118603         Add lseek and memchr.
118605         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
118606         T.E.Dickey <dickey@clark.net> said that some older preprocessors
118607         have a 20-character limit on names.
118609 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
118611         * m4/inttypes_h.m4: New file.
118612         * m4/uintmax_t.m4: New file.
118613         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
118616         -----
118618         Local Variables:
118619         coding: utf-8
118620         End:
118622         Copyright (C) 1997-2018 Free Software Foundation, Inc.
118624         Copying and distribution of this file, with or without
118625         modification, are permitted provided the copyright notice
118626         and this notice are preserved.